Logo
maya API Documentation

Set shipping method

POST {{baseUrl}}/shippingmethods

GET shippingmethods service must be called before this service call.
Service urls:
http://yourdomain.com/api/rest/shippingmethods
OR
http://yourdomain.com/index.php?route=rest/shipping_method/shippingmethods

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
X-Oc-Session
string (Required) User session id
Content-Type
string
Accept
string




RESPONSES

status OK

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



Curl
curl -X POST 'https://api.opencart-api.com/api/rest/shippingmethods' -H 'X-Oc-Session: voluptate' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"shipping_method":"flat.flat","comment":"laborum"}'

ENDPOINTS