Skip to main content
PATCH
/
cart
Update cart
curl --request PATCH \
  --url https://api.atlas.kitchen/storefronts/v1/cart \
  --header 'Content-Type: application/json' \
  --header 'X-Channel-Id: <api-key>' \
  --data '
{
  "outlet_id": 123,
  "brand_id": 123,
  "fulfilment_type": "delivery",
  "serving_date": "2023-12-25",
  "timeslot_start": 123,
  "timeslot_end": 123,
  "timeslot_type": "asap",
  "contact_name": "<string>",
  "contact_email": "[email protected]",
  "contact_number": "<string>",
  "address_line1": "<string>",
  "address_line2": "<string>",
  "address_latitude": 123,
  "address_longitude": 123,
  "postal_code": "<string>",
  "is_gift": true,
  "recipient_name": "<string>",
  "recipient_contact_number": "<string>",
  "gift_message": "<string>",
  "notes": "<string>"
}
'
{
  "id": 123,
  "channel_id": 123,
  "outlet_id": 123,
  "brand_id": 123,
  "user_id": 123,
  "timeslot_start": 123,
  "timeslot_end": 123,
  "timeslot_type": "asap",
  "timeslot_range": "<string>",
  "fulfilment_type": "delivery",
  "serving_date": "2023-12-25",
  "contact_name": "<string>",
  "contact_email": "<string>",
  "contact_number": "<string>",
  "address_line1": "<string>",
  "address_line2": "<string>",
  "address_latitude": 123,
  "address_longitude": 123,
  "postal_code": "<string>",
  "notes": "<string>",
  "is_gift": true,
  "recipient_name": "<string>",
  "recipient_contact_number": "<string>",
  "gift_message": "<string>",
  "promo_code": "<string>",
  "is_checked_out": true,
  "use_points": true,
  "brand": {
    "name": "<string>"
  },
  "cart_items": [
    {
      "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
outlet_id
integer
brand_id
integer
fulfilment_type
enum<string>
Available options:
delivery,
pickup
serving_date
string<date>
timeslot_start
integer
timeslot_end
integer
timeslot_type
enum<string>
Available options:
asap,
available_timeslots
contact_name
string
contact_email
string<email>
contact_number
string
address_line1
string
address_line2
string
address_latitude
number<double>
address_longitude
number<double>
postal_code
string

6-digit Singapore postal code

is_gift
boolean
recipient_name
string
recipient_contact_number
string
gift_message
string
notes
string

Response

Updated cart

id
integer
channel_id
integer
outlet_id
integer | null
brand_id
integer | null
user_id
integer | null
timeslot_start
integer | null
timeslot_end
integer | null
timeslot_type
enum<string>
Available options:
asap,
available_timeslots
timeslot_range
string | null
fulfilment_type
enum<string>
Available options:
delivery,
pickup
serving_date
string<date>
contact_name
string | null
contact_email
string | null
contact_number
string | null
address_line1
string | null
address_line2
string | null
address_latitude
number<double> | null
address_longitude
number<double> | null
postal_code
string | null
notes
string | null
is_gift
boolean
recipient_name
string | null
recipient_contact_number
string | null
gift_message
string | null
promo_code
string | null
is_checked_out
boolean
use_points
boolean
brand
object
cart_items
object[]