Update discounts
After you create a discount, you can update it with the following endpoint:
Example
curl -X put \
https://example.byappdirect.com/api/channel/v1/discounts/22
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"id": "22",
"code": "ILOVEAPPDIRECT",
"description": "A discount for those who love AppDirect",
"type": "PERCENTAGE",
"percentage": "80",
"autoApply": "false",
"startDate": "2015-05-06",
"expirationDate": "2016-05-06"
}'
Response
{
"id": "22",
"code": "ILOVEAPPDIRECT",
"redemptions": "0",
"startDate": "2015-05-06T00:00:00-06:00",
"expirationDate": "2016-05-06T00:00:00-06:00",
"type": "PERCENTAGE",
"percentage": "80.0",
"description": "A discount for those who love AppDirect",
"autoApply": "false",
"retainable": "false",
"redemptionRestriction": "NONE",
"vendorSharePercentage": "0",
"partnerSharePercentage": "100",
"basePartnerSharePercentage": "0",
"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!