Logo
maya API Documentation

Add order history

PUT {{baseUrl}}/orderhistory/:id

Service urls:
http://yourdomain.com/api/rest/orderhistory/{order_id}
OR
http://yourdomain.com/index.php?route=feed/rest_api/orderhistory&id={order_id}Set notify value to 1, to send notification to your customer

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

{ "success": 1, "error": [ "Error description", "Error description" ], "data": {} }



Curl
curl -X PUT 'https://api.opencart-api.com/api/rest/orderhistory/:id' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"order_status_id":8,"notify":0,"comment":"This is the comment"}'

ENDPOINTS