Remove Class Discount
Method : POST
Base URL : https://api.braincert.com
API Endpoint : /v2/removediscount?apikey=YOUR_API_KEY_HERE
All requests are POST
and sent to https://api.braincert.com/v2/removediscount?apikey=YOUR_API_KEY_HERE You will retrieve results assuming you have added your appKey, and require parameter.
Request parameters
Parameter | Type | Description | Example |
discountid | required | Discount class id | 10 |
format | optional | Response data format | xml for XML response, default JSON response |
Response XML Example
https://api.braincert.com/v2/removediscount?apikey=WbMlO5sAx1fmV&format=xmlSuccess Response
<rsp status="ok">
<method>removediscount</method>
<discount_id>12345</discount_id>
</rsp>
Error Response
<rsp status="error">
<method>removediscount</method>
<message>error message</message >
</rsp>
Response JSON Example
https://api.braincert.com/v2/removediscount?apikey=WbMlO5sAx1fmVSuccess Response
[{
"status":"ok",
"method":"removediscount",
"discount_id":"40"
}]
Error Response
[{
"status":"error",
"error":"Invalid API KEY"
}]