cURL
curl --request POST \ --url https://api.atlas.kitchen/storefronts/v1/cart \ --header 'X-Channel-Id: <api-key>'
{ "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>" } ] } ] }
Creates a new cart for the session or returns the existing active cart. Cart starts without outlet or items.
Channel identifier. A second header X-Session-Id is also required.
X-Session-Id
Cart object
asap
available_timeslots
delivery
pickup
Show child attributes
Was this page helpful?