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

ParameterTypeDescriptionExample
discountidrequiredDiscount class id10
formatoptionalResponse data formatxml for XML response, default JSON response

Response XML Example

https://api.braincert.com/v2/removediscount?apikey=WbMlO5sAx1fmV&format=xml

Success 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=WbMlO5sAx1fmV

Success Response

[{
   "status":"ok",
   "method":"removediscount",
   "discount_id":"40"
}]

Error Response

[{
  "status":"error",
  "error":"Invalid API KEY"
}]