List discounts
You can list all available discounts through the API with the following endpoint:
Example
curl -X get \
https://example.byappdirect.com/api/channel/v1/discounts
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
Response
{
[
{
"id": "1",
"code": "100PERCENT",
"redemptions": "0",
"createdOn": "2014-06-02T16:20:02-06:00",
"type": "PERCENTAGE",
"percentage": "100.0000000000",
"description": "For 100% discount testing",
"autoApply": "false",
"retainable": "false",
"redemptionRestriction": "NONE",
"unit": "USER",
"minUnits": "0",
"maxUnits": "0"
},
{
"id": "2",
"code": "ILOVEAPPDIRECT",
"redemptions": "0",
"createdOn": "2015-06-04T12:39:51-06:00",
"startDate": "2015-05-06T00:00:00-06:00",
"expirationDate": "2015-10-11T00:00:00-06:00",
"type": "PERCENTAGE",
"percentage": "50.0000000000",
"description": "A discount for those who love AppDirect",
"autoApply": "false",
"retainable": "false",
"redemptionRestriction": "NONE",
"unit": "USER",
"minUnits": "0",
"maxUnits": "0"
}
]
}
Was this page helpful?
Tell us more…
Help us improve our content. Responses are anonymous.
Thanks
We appreciate your feedback!