Add To Cart By Item ID
Add To Cart API
Params
- reset: required|boolean
- If true it will reset cart and add new item
- If false it will add to exists items
- items: array
- items.*.id: required|exists:products,id,deleted_at,NULL,parent_id,NOT_NULL
- items.*.amount: required
Header Parameters |
---|
Content-Type stringExample: application/json |
Referer stringExample: https://doc.withsupercommerce.com |
lang integer1 = English, 2 = Arabic Example: 1 |
Request Body |
---|
reset integer |
items[0][id] integer |
items[0][amount] integer |
Responses | ||
---|---|---|
200 OK
|