delete https://secure.fusebill.com/v1/SubscriptionProductPriceOverrides/
This action removes a price override on a Subscription Product.
Path Parameter
Property | Type | Description |
---|---|---|
subscriptionProductId | Integer | This is the SubscriptionProduct Id of the product you want to remove the override from. |
Examples
curl -X DELETE "https://secure.fusebill.com/v1/SubscriptionProductPriceOverrides/{subscriptionProductId}" \
-H "Content-Type: application/json" \
-H "Authorization: Basic {APIKey}"
//path parameter, subscription product Id
int pathParameter = {subscriptionProductId};
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://secure.fusebill.com/v1/SubscriptionProductPriceOverrides/"+pathParameter);
//Add Content type
request.ContentLength = 0;
request.ContentType = "application/json";
//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic "+apiKey);
//Set request method
request.Method = "DELETE";
//Perform the request
var httpResponse = (HttpWebResponse)request.GetResponse();
//Record the response from our request
var result = "";
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
result = streamReader.ReadToEnd();
}
#Import library Requests
import requests
#Pass in a dictionary to the Headers parameter
headers = {'Authorization' : 'Basic {APIKey}', 'Content-Type' : 'application/json'}
#Pass in your URI and Headers
r = requests.delete('https://secure.fusebill.com/v1/subscriptionProductPriceOverrides/{id}', headers=headers)
print(r.content)
Response
204 No Content
{
"ErrorId": 0,
"HttpStatusCode": 404,
"Errors": [
{
"Key": "Api Error",
"Value": "SubscriptionProduct with id 2 not found."
}
]
}