General notes
Api is available at https://mip.to/api/v1 under this conditions:
- API always return JSON
- authorization using HMAC
- every right answer contains {“status”: “ok”}
Calculating a control sum of HMAC for GET and DELETE
X-hmac = hash_hmac(‘SHA1’ ,PUBLIC+REQUEST_PATH+HTTP_PARAMS, PRIVATE)
Calculating a control sum of HMAC for POST and PUT
X-hmac = hash_hmac(‘SHA1’, PUBLIC+REQUEST_PATH+HTTP_POST_JSON_BODY, PRIVATE)
Order statuses
1 - Waiting for acceptance
2 - Accepted, waiting for pay
3 - Payment proceed
4 - Accepted, paid
5 - Closed
6 - Cancelled
7 - Rejected