انتقل إلى المحتوى الرئيسي

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 string
Example: application/json
Referer string
Example: https://doc.withsupercommerce.com
lang integer

1 = English, 2 = Arabic

Example: 1
Request Body
reset integer
items[0][id] integer
items[0][amount] integer
Responses
200

OK

Schema OPTIONAL
object