Create cart
curl --request POST \
--url https://api.atlas.kitchen/storefronts/v1/cart \
--header 'X-Channel-Id: <api-key>' \
--header 'X-Session-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/storefronts/v1/cart"
headers = {
"X-Channel-Id": "<api-key>",
"X-Session-Id": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Channel-Id': '<api-key>', 'X-Session-Id': '<api-key>'}
};
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 => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.atlas.kitchen/storefronts/v1/cart"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Channel-Id", "<api-key>")
req.Header.Add("X-Session-Id", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.atlas.kitchen/storefronts/v1/cart")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.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::Post.new(url)
request["X-Channel-Id"] = '<api-key>'
request["X-Session-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 2,
"channel_id": 1,
"outlet_id": null,
"brand_id": null,
"user_id": null,
"timeslot_start": null,
"timeslot_end": null,
"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-16",
"timeslot_range": null,
"contact_email": null,
"contact_name": null,
"contact_number": null,
"address_line1": null,
"address_line2": null,
"address_longitude": null,
"address_latitude": null,
"postal_code": null,
"brand": null,
"cart_items": []
}Create cart
Creates a new cart for the session or returns the existing active cart. Cart starts without outlet or items.
POST
/
cart
Create cart
curl --request POST \
--url https://api.atlas.kitchen/storefronts/v1/cart \
--header 'X-Channel-Id: <api-key>' \
--header 'X-Session-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/storefronts/v1/cart"
headers = {
"X-Channel-Id": "<api-key>",
"X-Session-Id": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Channel-Id': '<api-key>', 'X-Session-Id': '<api-key>'}
};
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 => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.atlas.kitchen/storefronts/v1/cart"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Channel-Id", "<api-key>")
req.Header.Add("X-Session-Id", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.atlas.kitchen/storefronts/v1/cart")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.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::Post.new(url)
request["X-Channel-Id"] = '<api-key>'
request["X-Session-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 2,
"channel_id": 1,
"outlet_id": null,
"brand_id": null,
"user_id": null,
"timeslot_start": null,
"timeslot_end": null,
"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-16",
"timeslot_range": null,
"contact_email": null,
"contact_name": null,
"contact_number": null,
"address_line1": null,
"address_line2": null,
"address_longitude": null,
"address_latitude": null,
"postal_code": null,
"brand": null,
"cart_items": []
}Authorizations
Merchant storefront identifier. Provided during onboarding.
Diner session identifier. Created by GET /channel and returned in the X-Session-Id response header.
Response
200 - application/json
Cart object
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?