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
| Parameter | Type | Description | Example | 
| price | required | price of class | 10 | 
| scheme_days | required | Days to give access for | 30 | 
| times | required | Access type for limit | 0 for unlimited, 1 for limited | 
| numbertimes | optional | Number of Times price used in class | 12 | 
| format | optional | Response data format | xml for XML response, default JSON response | 
Response XML Example
https://api.braincert.com/v2/addSchemes?apikey=WbMlO5sAx1fmV&format=xmlSuccess 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=WbMlO5sAx1fmVSuccess Response
[{
   "Status":"OK",
   "method":"addprice",
   "Price id":34
}]
 
Error Response
[{
   "Status":" error ",
   "error":"Invalid API KEY"
}]