Skip to main content

Add To Cart By Item SKU

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.*.sku: 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][sku] string
items[0][amount] integer
Responses
200

OK

Schema OPTIONAL
object