Add Pricing Scheme

Method : POST

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

API Endpoint : /v2/addSchemes?apikey=YOUR_API_KEY_HERE

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

Request parameters

ParameterTypeDescriptionExample
pricerequiredprice of class10
scheme_daysrequiredDays to give access for30
timesrequiredAccess type for limit0 for unlimited, 1 for limited
numbertimesoptionalNumber of Times price used in class12
formatoptionalResponse data formatxml for XML response, default JSON response

Response XML Example

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

Success Response

<rsp status="ok">
  <method>addprice</method>
  <price_id>34</price_id>
</rsp>

Error Response

<rsp status="error">
  <method>addprice</method>
  <message>error message</message >
</rsp>

Response JSON Example

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

Success Response

[{
   "Status":"OK",
   "method":"addprice",
   "Price id":34
}]

Error Response

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