List Pricing Scheme (Shopping cart)

Method : POST

Base URL : https://api.braincert.com

API Endpoint : /v2/listSchemes?apikey=YOUR_API_KEY_HERE

All requests are POST and sent to https://api.braincert.com/v2/listSchemes?apikey=YOUR_API_KEY_HERE You will retrieve results assuming you have added your appKey, and require parameter.

Request parameters

ParameterTypeDescriptionExample
class_idrequiredClass id10
formatoptionalResponse data formatxml for XML response, default JSON response

Response XML Example

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

Success Response

<xml>
 <classid>585</classid>
 <Price>
   <id>29</id>
   <class_id>585</class_id>
   <scheme_price>30</scheme_price>
   <scheme_days>2</scheme_days>
   <lifetime>0</lifetime>
   <times>0</times>
   <numbertimes>0</numbertimes>
  </Price>
</xml>

Error Response

<rsp status="error">
   <errors> error </ errors >
</rsp>

Response JSON Example

https://api.braincert.com/v2/listSchemes?apikey=WbMlO5sAx1fmV

Success Response

[{
   "id":"29",
   "class_id":"598",
   "scheme_price":"30",
   "scheme_days":"2",
   "lifetime":"0",
   "times":"0",
   "numbertimes":"0"
 },
 {
   "id":"30",
   "class_id":"598",
   "scheme_price":"50",
   "scheme_days":"33",
   "lifetime":"0",
   "times":"0",
   "numbertimes":"0"
}]

Error Response

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