Update cart
curl --request PATCH \
--url https://api.atlas.kitchen/storefronts/v1/cart \
--header 'Content-Type: application/json' \
--header 'X-Channel-Id: <api-key>' \
--header 'X-Session-Id: <api-key>' \
--data '
{
"outlet_id": 123,
"brand_id": 123,
"serving_date": "2023-12-25",
"timeslot_start": 123,
"timeslot_end": 123,
"contact_name": "<string>",
"contact_email": "jsmith@example.com",
"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>"
}
'import requests
url = "https://api.atlas.kitchen/storefronts/v1/cart"
payload = {
"outlet_id": 123,
"brand_id": 123,
"serving_date": "2023-12-25",
"timeslot_start": 123,
"timeslot_end": 123,
"contact_name": "<string>",
"contact_email": "jsmith@example.com",
"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>"
}
headers = {
"X-Channel-Id": "<api-key>",
"X-Session-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Channel-Id': '<api-key>',
'X-Session-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
outlet_id: 123,
brand_id: 123,
serving_date: '2023-12-25',
timeslot_start: 123,
timeslot_end: 123,
contact_name: '<string>',
contact_email: 'jsmith@example.com',
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>'
})
};
fetch('https://api.atlas.kitchen/storefronts/v1/cart', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.atlas.kitchen/storefronts/v1/cart",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'outlet_id' => 123,
'brand_id' => 123,
'serving_date' => '2023-12-25',
'timeslot_start' => 123,
'timeslot_end' => 123,
'contact_name' => '<string>',
'contact_email' => 'jsmith@example.com',
'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>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Channel-Id: <api-key>",
"X-Session-Id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.atlas.kitchen/storefronts/v1/cart"
payload := strings.NewReader("{\n \"outlet_id\": 123,\n \"brand_id\": 123,\n \"serving_date\": \"2023-12-25\",\n \"timeslot_start\": 123,\n \"timeslot_end\": 123,\n \"contact_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_number\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"address_latitude\": 123,\n \"address_longitude\": 123,\n \"postal_code\": \"<string>\",\n \"is_gift\": true,\n \"recipient_name\": \"<string>\",\n \"recipient_contact_number\": \"<string>\",\n \"gift_message\": \"<string>\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Channel-Id", "<api-key>")
req.Header.Add("X-Session-Id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.atlas.kitchen/storefronts/v1/cart")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"outlet_id\": 123,\n \"brand_id\": 123,\n \"serving_date\": \"2023-12-25\",\n \"timeslot_start\": 123,\n \"timeslot_end\": 123,\n \"contact_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_number\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"address_latitude\": 123,\n \"address_longitude\": 123,\n \"postal_code\": \"<string>\",\n \"is_gift\": true,\n \"recipient_name\": \"<string>\",\n \"recipient_contact_number\": \"<string>\",\n \"gift_message\": \"<string>\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/storefronts/v1/cart")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Channel-Id"] = '<api-key>'
request["X-Session-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"outlet_id\": 123,\n \"brand_id\": 123,\n \"serving_date\": \"2023-12-25\",\n \"timeslot_start\": 123,\n \"timeslot_end\": 123,\n \"contact_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_number\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"address_latitude\": 123,\n \"address_longitude\": 123,\n \"postal_code\": \"<string>\",\n \"is_gift\": true,\n \"recipient_name\": \"<string>\",\n \"recipient_contact_number\": \"<string>\",\n \"gift_message\": \"<string>\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 2,
"channel_id": 1,
"outlet_id": 1,
"brand_id": 1,
"user_id": null,
"timeslot_start": 34200,
"timeslot_end": 36000,
"timeslot_type": "available_timeslots",
"fulfilment_type": "delivery",
"notes": null,
"is_gift": false,
"recipient_name": null,
"recipient_contact_number": null,
"gift_message": null,
"promo_code": null,
"is_checked_out": false,
"use_points": false,
"serving_date": "2026-04-17",
"timeslot_range": "9:30AM–10:00AM",
"contact_email": "jane@example.com",
"contact_name": "Jane Doe",
"contact_number": "+6591234567",
"address_line1": "123 Orchard Road",
"address_line2": "#04-56",
"address_longitude": 103.8198,
"address_latitude": 1.3021,
"postal_code": "238858",
"brand": {
"name": "Aviato Burger"
},
"cart_items": []
}{
"type": "Invalid Parameter",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}Update cart
Set outlet, fulfilment type, timeslot, contact info, delivery address, gifting details.
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>' \
--header 'X-Session-Id: <api-key>' \
--data '
{
"outlet_id": 123,
"brand_id": 123,
"serving_date": "2023-12-25",
"timeslot_start": 123,
"timeslot_end": 123,
"contact_name": "<string>",
"contact_email": "jsmith@example.com",
"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>"
}
'import requests
url = "https://api.atlas.kitchen/storefronts/v1/cart"
payload = {
"outlet_id": 123,
"brand_id": 123,
"serving_date": "2023-12-25",
"timeslot_start": 123,
"timeslot_end": 123,
"contact_name": "<string>",
"contact_email": "jsmith@example.com",
"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>"
}
headers = {
"X-Channel-Id": "<api-key>",
"X-Session-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Channel-Id': '<api-key>',
'X-Session-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
outlet_id: 123,
brand_id: 123,
serving_date: '2023-12-25',
timeslot_start: 123,
timeslot_end: 123,
contact_name: '<string>',
contact_email: 'jsmith@example.com',
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>'
})
};
fetch('https://api.atlas.kitchen/storefronts/v1/cart', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.atlas.kitchen/storefronts/v1/cart",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'outlet_id' => 123,
'brand_id' => 123,
'serving_date' => '2023-12-25',
'timeslot_start' => 123,
'timeslot_end' => 123,
'contact_name' => '<string>',
'contact_email' => 'jsmith@example.com',
'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>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Channel-Id: <api-key>",
"X-Session-Id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.atlas.kitchen/storefronts/v1/cart"
payload := strings.NewReader("{\n \"outlet_id\": 123,\n \"brand_id\": 123,\n \"serving_date\": \"2023-12-25\",\n \"timeslot_start\": 123,\n \"timeslot_end\": 123,\n \"contact_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_number\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"address_latitude\": 123,\n \"address_longitude\": 123,\n \"postal_code\": \"<string>\",\n \"is_gift\": true,\n \"recipient_name\": \"<string>\",\n \"recipient_contact_number\": \"<string>\",\n \"gift_message\": \"<string>\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Channel-Id", "<api-key>")
req.Header.Add("X-Session-Id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.atlas.kitchen/storefronts/v1/cart")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"outlet_id\": 123,\n \"brand_id\": 123,\n \"serving_date\": \"2023-12-25\",\n \"timeslot_start\": 123,\n \"timeslot_end\": 123,\n \"contact_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_number\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"address_latitude\": 123,\n \"address_longitude\": 123,\n \"postal_code\": \"<string>\",\n \"is_gift\": true,\n \"recipient_name\": \"<string>\",\n \"recipient_contact_number\": \"<string>\",\n \"gift_message\": \"<string>\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/storefronts/v1/cart")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Channel-Id"] = '<api-key>'
request["X-Session-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"outlet_id\": 123,\n \"brand_id\": 123,\n \"serving_date\": \"2023-12-25\",\n \"timeslot_start\": 123,\n \"timeslot_end\": 123,\n \"contact_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"contact_number\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"address_latitude\": 123,\n \"address_longitude\": 123,\n \"postal_code\": \"<string>\",\n \"is_gift\": true,\n \"recipient_name\": \"<string>\",\n \"recipient_contact_number\": \"<string>\",\n \"gift_message\": \"<string>\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 2,
"channel_id": 1,
"outlet_id": 1,
"brand_id": 1,
"user_id": null,
"timeslot_start": 34200,
"timeslot_end": 36000,
"timeslot_type": "available_timeslots",
"fulfilment_type": "delivery",
"notes": null,
"is_gift": false,
"recipient_name": null,
"recipient_contact_number": null,
"gift_message": null,
"promo_code": null,
"is_checked_out": false,
"use_points": false,
"serving_date": "2026-04-17",
"timeslot_range": "9:30AM–10:00AM",
"contact_email": "jane@example.com",
"contact_name": "Jane Doe",
"contact_number": "+6591234567",
"address_line1": "123 Orchard Road",
"address_line2": "#04-56",
"address_longitude": 103.8198,
"address_latitude": 1.3021,
"postal_code": "238858",
"brand": {
"name": "Aviato Burger"
},
"cart_items": []
}{
"type": "Invalid Parameter",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}When you set
outlet_id, the API auto-derives brand_id from the outlet’s branded ChannelLink configuration — you don’t need to (and shouldn’t) set brand_id manually.Authorizations
Merchant storefront identifier. Provided during onboarding.
Diner session identifier. Created by GET /channel and returned in the X-Session-Id response header.
Body
application/json
Available options:
delivery, pickup Available options:
asap, available_timeslots 6-digit Singapore postal code
Response
Updated cart
Available options:
asap, available_timeslots Available options:
delivery, pickup Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I