Sign in

Add item to cart

documented

Add a product to the cart for the current customer.

POST /rest/{store_code}/V1/carts/mine/itemsCartsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$host}}/rest/{{$store_code}}/V1/carts/mine/items" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -d '{"cartItem": {"sku": "{{$sku}}", "qty": {{$qty}}, "quote_id": "{{$quote_id}}"}}'