Read Discount

This action allows you to retrieve a single discount based on the Fusebill generated ID

Path Parameters

discountIDIntegerThis is the Fusebill generated id corresponding to the discount you want to read
curl –X GET{DiscountId}\ 
-H "Content-Type: application/json" \ 
-H "Authorization: Basic {APIKey}"
//query parameter 
int discountId= {discountId}; 
//Setup API key 
string apiKey = "{APIKey}"; 
//Configure URI 
WebRequest request = WebRequest.Create("HTTPS://" + discountId); 
//Add Content type 
request.ContentType = "application/json"; 
//Add Api key authorization 
request.Headers.Add(HttpRequestHeader.Authorization, "Basic "+apiKey); 
//Set request method 
request.Method = "GET"; 
//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 JSON 
import json 
#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.get('{DiscountId}',  headers=headers) 
  "name": "discount name",
  "description": "custom text",
  "code": "firstdaysale",
  "discountType": "Amount",
  "remainingUsagesUntilStart": 2,
  "remainingUsage": 4,
  "amount": 50,
  "status": "Active",
  "frequencyOverrides": [
                "interval": "Monthly",
                "numberOfIntervals": 1,
                "discountType": "Percentage",
                "remainingUsagesUntilStart": 3,
                "remainingUsage": 6,
                "amount": 45.000000
  "id": 1157,
  "uri": ""
    "ErrorId": 0,
    "HttpStatusCode": 404,
    "Errors": [
            "Key": "Api Error",
            "Value": "Discount with id 1 not found."