Logo
maya API Documentation

Add items to cart

POST {{baseUrl}}/cart_bulk

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

 

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 POST 'https://api.opencart-api.com/api/rest/cart_bulk' -H 'X-Oc-Session: voluptate' -H 'Content-Type: application/json' -H 'Accept: */*' -d '{"0":{"product_id":34,"quantity":2},"1":{"product_id":34,"quantity":2}}'

ENDPOINTS