Logo
maya API Documentation

Delete cart item

DELETE {{baseUrl}}/cart

Service urls:
http://yourdomain.com/api/rest/cart
OR
http://yourdomain.com/index.php?route=rest/cart/cart

The product key can be found in the response of the GET /cart API call.

 

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





Curl
curl -X DELETE 'https://api.opencart-api.com/api/rest/cart' -H 'X-Oc-Session: voluptate' -H 'Content-Type: application/json' -H 'Accept: */*' -d '{"key":-79696118}'

ENDPOINTS