Skip to main content
POST
/
cart
/
items
Add item
curl --request POST \
  --url https://api.atlas.kitchen/storefronts/v1/cart/items \
  --header 'Content-Type: application/json' \
  --header 'X-Channel-Id: <api-key>' \
  --data '
{
  "item_id": 123,
  "quantity": 2,
  "notes": "<string>",
  "sub_items": [
    {
      "item_id": 123,
      "modifier_id": 123,
      "item_modifier_group_id": 123,
      "quantity": 2
    }
  ]
}
'
{
  "id": 123,
  "item_id": 123,
  "name": "<string>",
  "quantity": 123,
  "price_cents": 123,
  "calculated_subtotal": 123,
  "per_unit_quantity": 123,
  "unit_label": "<string>",
  "notes": "<string>",
  "modifier_id": 123,
  "item_modifier_group_id": 123,
  "sub_items": [
    {
      "item_id": 123,
      "name": "<string>",
      "quantity": 123,
      "price_cents": 123,
      "calculated_subtotal": 123,
      "per_unit_quantity": 123,
      "unit_label": "<string>",
      "notes": "<string>",
      "modifier_id": 123,
      "item_modifier_group_id": 123,
      "sub_items": "<array>"
    }
  ]
}

Authorizations

X-Channel-Id
string
header
required

Channel identifier. A second header X-Session-Id is also required.

Body

application/json
item_id
integer
required
quantity
integer
required
Required range: x >= 1
notes
string
sub_items
object[]

Modifiers. Each must reference a modifier_id and item_modifier_group_id.

Response

Created cart item

id
integer
item_id
integer
name
string
quantity
integer
price_cents
integer
calculated_subtotal
integer
per_unit_quantity
integer
unit_label
string | null
notes
string | null
modifier_id
integer | null
item_modifier_group_id
integer | null
sub_items
object[]