Skip to main content
POST
/
v3
/
stores
/
{store_id}
/
public
/
cart
/
items
Add an item to the guest storefront cart
curl --request POST \
  --url https://api.myscalev.com/v3/stores/{store_id}/public/cart/items \
  --header 'Content-Type: application/json' \
  --header 'X-Scalev-Storefront-Api-Key: <x-scalev-storefront-api-key>' \
  --data '
{
  "variant_id": 123,
  "quantity": 1
}
'
{}

Headers

X-Scalev-Storefront-Api-Key
string
required

Publishable storefront public API key for the target store.

Path Parameters

store_id
string
required

Store unique_id.

Body

application/json
variant_id
required
quantity
integer
default:1
Required range: x >= 1

Response

Created

Raw single-resource success payload for v3.