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>' \
--header 'X-Session-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
}
]
}
'import requests
url = "https://api.atlas.kitchen/storefronts/v1/cart/items"
payload = {
"item_id": 123,
"quantity": 2,
"notes": "<string>",
"sub_items": [
{
"item_id": 123,
"modifier_id": 123,
"item_modifier_group_id": 123,
"quantity": 2
}
]
}
headers = {
"X-Channel-Id": "<api-key>",
"X-Session-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Channel-Id': '<api-key>',
'X-Session-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
item_id: 123,
quantity: 2,
notes: '<string>',
sub_items: [{item_id: 123, modifier_id: 123, item_modifier_group_id: 123, quantity: 2}]
})
};
fetch('https://api.atlas.kitchen/storefronts/v1/cart/items', 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/items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'item_id' => 123,
'quantity' => 2,
'notes' => '<string>',
'sub_items' => [
[
'item_id' => 123,
'modifier_id' => 123,
'item_modifier_group_id' => 123,
'quantity' => 2
]
]
]),
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/items"
payload := strings.NewReader("{\n \"item_id\": 123,\n \"quantity\": 2,\n \"notes\": \"<string>\",\n \"sub_items\": [\n {\n \"item_id\": 123,\n \"modifier_id\": 123,\n \"item_modifier_group_id\": 123,\n \"quantity\": 2\n }\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.atlas.kitchen/storefronts/v1/cart/items")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"item_id\": 123,\n \"quantity\": 2,\n \"notes\": \"<string>\",\n \"sub_items\": [\n {\n \"item_id\": 123,\n \"modifier_id\": 123,\n \"item_modifier_group_id\": 123,\n \"quantity\": 2\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/storefronts/v1/cart/items")
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>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"item_id\": 123,\n \"quantity\": 2,\n \"notes\": \"<string>\",\n \"sub_items\": [\n {\n \"item_id\": 123,\n \"modifier_id\": 123,\n \"item_modifier_group_id\": 123,\n \"quantity\": 2\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 1,
"item_id": 1,
"name": "Scrambled Eggs Bowl",
"quantity": 1,
"price_cents": 790,
"calculated_subtotal": 840,
"per_unit_quantity": 1,
"unit_label": null,
"notes": "Extra napkins please",
"modifier_id": null,
"item_modifier_group_id": null,
"sub_items": [
{
"item_id": 2,
"name": "Mild",
"quantity": 1,
"price_cents": 0,
"calculated_subtotal": 0,
"per_unit_quantity": 1,
"unit_label": null,
"notes": null,
"modifier_id": 1,
"item_modifier_group_id": 1,
"sub_items": []
},
{
"item_id": 4,
"name": "Bacon",
"quantity": 1,
"price_cents": 0,
"calculated_subtotal": 0,
"per_unit_quantity": 1,
"unit_label": null,
"notes": null,
"modifier_id": 3,
"item_modifier_group_id": 2,
"sub_items": []
},
{
"item_id": 13,
"name": "Extra Cheese",
"quantity": 1,
"price_cents": 50,
"calculated_subtotal": 50,
"per_unit_quantity": 1,
"unit_label": null,
"notes": null,
"modifier_id": 12,
"item_modifier_group_id": 4,
"sub_items": []
}
]
}{
"type": "Invalid Parameter",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}Add item
Add a menu item with optional modifiers (sub_items). Validates stock and modifier group constraints.
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>' \
--header 'X-Session-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
}
]
}
'import requests
url = "https://api.atlas.kitchen/storefronts/v1/cart/items"
payload = {
"item_id": 123,
"quantity": 2,
"notes": "<string>",
"sub_items": [
{
"item_id": 123,
"modifier_id": 123,
"item_modifier_group_id": 123,
"quantity": 2
}
]
}
headers = {
"X-Channel-Id": "<api-key>",
"X-Session-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Channel-Id': '<api-key>',
'X-Session-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
item_id: 123,
quantity: 2,
notes: '<string>',
sub_items: [{item_id: 123, modifier_id: 123, item_modifier_group_id: 123, quantity: 2}]
})
};
fetch('https://api.atlas.kitchen/storefronts/v1/cart/items', 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/items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'item_id' => 123,
'quantity' => 2,
'notes' => '<string>',
'sub_items' => [
[
'item_id' => 123,
'modifier_id' => 123,
'item_modifier_group_id' => 123,
'quantity' => 2
]
]
]),
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/items"
payload := strings.NewReader("{\n \"item_id\": 123,\n \"quantity\": 2,\n \"notes\": \"<string>\",\n \"sub_items\": [\n {\n \"item_id\": 123,\n \"modifier_id\": 123,\n \"item_modifier_group_id\": 123,\n \"quantity\": 2\n }\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.atlas.kitchen/storefronts/v1/cart/items")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"item_id\": 123,\n \"quantity\": 2,\n \"notes\": \"<string>\",\n \"sub_items\": [\n {\n \"item_id\": 123,\n \"modifier_id\": 123,\n \"item_modifier_group_id\": 123,\n \"quantity\": 2\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/storefronts/v1/cart/items")
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>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"item_id\": 123,\n \"quantity\": 2,\n \"notes\": \"<string>\",\n \"sub_items\": [\n {\n \"item_id\": 123,\n \"modifier_id\": 123,\n \"item_modifier_group_id\": 123,\n \"quantity\": 2\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 1,
"item_id": 1,
"name": "Scrambled Eggs Bowl",
"quantity": 1,
"price_cents": 790,
"calculated_subtotal": 840,
"per_unit_quantity": 1,
"unit_label": null,
"notes": "Extra napkins please",
"modifier_id": null,
"item_modifier_group_id": null,
"sub_items": [
{
"item_id": 2,
"name": "Mild",
"quantity": 1,
"price_cents": 0,
"calculated_subtotal": 0,
"per_unit_quantity": 1,
"unit_label": null,
"notes": null,
"modifier_id": 1,
"item_modifier_group_id": 1,
"sub_items": []
},
{
"item_id": 4,
"name": "Bacon",
"quantity": 1,
"price_cents": 0,
"calculated_subtotal": 0,
"per_unit_quantity": 1,
"unit_label": null,
"notes": null,
"modifier_id": 3,
"item_modifier_group_id": 2,
"sub_items": []
},
{
"item_id": 13,
"name": "Extra Cheese",
"quantity": 1,
"price_cents": 50,
"calculated_subtotal": 50,
"per_unit_quantity": 1,
"unit_label": null,
"notes": null,
"modifier_id": 12,
"item_modifier_group_id": 4,
"sub_items": []
}
]
}{
"type": "Invalid Parameter",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}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
Was this page helpful?
⌘I