Create cart
curl --request POST \
--url https://api.atlas.kitchen/admin/v1/carts \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Merchant-Id: <api-key>' \
--data '
{
"table_id": 123,
"contact_name": "<string>",
"pax": 2,
"contact_email": "<string>",
"contact_number": "<string>",
"notes": "<string>",
"cart_payment": {
"amount": 2,
"payment_type_id": 123
}
}
'import requests
url = "https://api.atlas.kitchen/admin/v1/carts"
payload = {
"table_id": 123,
"contact_name": "<string>",
"pax": 2,
"contact_email": "<string>",
"contact_number": "<string>",
"notes": "<string>",
"cart_payment": {
"amount": 2,
"payment_type_id": 123
}
}
headers = {
"X-Api-Key": "<api-key>",
"X-Merchant-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Api-Key': '<api-key>',
'X-Merchant-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
table_id: 123,
contact_name: '<string>',
pax: 2,
contact_email: '<string>',
contact_number: '<string>',
notes: '<string>',
cart_payment: {amount: 2, payment_type_id: 123}
})
};
fetch('https://api.atlas.kitchen/admin/v1/carts', 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/admin/v1/carts",
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([
'table_id' => 123,
'contact_name' => '<string>',
'pax' => 2,
'contact_email' => '<string>',
'contact_number' => '<string>',
'notes' => '<string>',
'cart_payment' => [
'amount' => 2,
'payment_type_id' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-Merchant-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/admin/v1/carts"
payload := strings.NewReader("{\n \"table_id\": 123,\n \"contact_name\": \"<string>\",\n \"pax\": 2,\n \"contact_email\": \"<string>\",\n \"contact_number\": \"<string>\",\n \"notes\": \"<string>\",\n \"cart_payment\": {\n \"amount\": 2,\n \"payment_type_id\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Merchant-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/admin/v1/carts")
.header("X-Api-Key", "<api-key>")
.header("X-Merchant-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"table_id\": 123,\n \"contact_name\": \"<string>\",\n \"pax\": 2,\n \"contact_email\": \"<string>\",\n \"contact_number\": \"<string>\",\n \"notes\": \"<string>\",\n \"cart_payment\": {\n \"amount\": 2,\n \"payment_type_id\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/admin/v1/carts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["X-Merchant-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"table_id\": 123,\n \"contact_name\": \"<string>\",\n \"pax\": 2,\n \"contact_email\": \"<string>\",\n \"contact_number\": \"<string>\",\n \"notes\": \"<string>\",\n \"cart_payment\": {\n \"amount\": 2,\n \"payment_type_id\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"identifier": "<string>",
"fulfilment_type": "<string>",
"timeslot_type": "<string>",
"payment_type": "<string>",
"payment_breakdown": {},
"contact_name": "<string>",
"contact_number": "<string>",
"contact_email": "<string>",
"table_id": 123,
"notes": "<string>"
}{
"type": "<string>",
"message": "<string>",
"error_hash": {}
}Creates a dine-in cart for a table with optional upfront payment. Always uses POS platform with DINE_IN fulfilment.
POST
/
carts
Create cart
curl --request POST \
--url https://api.atlas.kitchen/admin/v1/carts \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Merchant-Id: <api-key>' \
--data '
{
"table_id": 123,
"contact_name": "<string>",
"pax": 2,
"contact_email": "<string>",
"contact_number": "<string>",
"notes": "<string>",
"cart_payment": {
"amount": 2,
"payment_type_id": 123
}
}
'import requests
url = "https://api.atlas.kitchen/admin/v1/carts"
payload = {
"table_id": 123,
"contact_name": "<string>",
"pax": 2,
"contact_email": "<string>",
"contact_number": "<string>",
"notes": "<string>",
"cart_payment": {
"amount": 2,
"payment_type_id": 123
}
}
headers = {
"X-Api-Key": "<api-key>",
"X-Merchant-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Api-Key': '<api-key>',
'X-Merchant-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
table_id: 123,
contact_name: '<string>',
pax: 2,
contact_email: '<string>',
contact_number: '<string>',
notes: '<string>',
cart_payment: {amount: 2, payment_type_id: 123}
})
};
fetch('https://api.atlas.kitchen/admin/v1/carts', 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/admin/v1/carts",
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([
'table_id' => 123,
'contact_name' => '<string>',
'pax' => 2,
'contact_email' => '<string>',
'contact_number' => '<string>',
'notes' => '<string>',
'cart_payment' => [
'amount' => 2,
'payment_type_id' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-Merchant-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/admin/v1/carts"
payload := strings.NewReader("{\n \"table_id\": 123,\n \"contact_name\": \"<string>\",\n \"pax\": 2,\n \"contact_email\": \"<string>\",\n \"contact_number\": \"<string>\",\n \"notes\": \"<string>\",\n \"cart_payment\": {\n \"amount\": 2,\n \"payment_type_id\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Merchant-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/admin/v1/carts")
.header("X-Api-Key", "<api-key>")
.header("X-Merchant-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"table_id\": 123,\n \"contact_name\": \"<string>\",\n \"pax\": 2,\n \"contact_email\": \"<string>\",\n \"contact_number\": \"<string>\",\n \"notes\": \"<string>\",\n \"cart_payment\": {\n \"amount\": 2,\n \"payment_type_id\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/admin/v1/carts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["X-Merchant-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"table_id\": 123,\n \"contact_name\": \"<string>\",\n \"pax\": 2,\n \"contact_email\": \"<string>\",\n \"contact_number\": \"<string>\",\n \"notes\": \"<string>\",\n \"cart_payment\": {\n \"amount\": 2,\n \"payment_type_id\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"identifier": "<string>",
"fulfilment_type": "<string>",
"timeslot_type": "<string>",
"payment_type": "<string>",
"payment_breakdown": {},
"contact_name": "<string>",
"contact_number": "<string>",
"contact_email": "<string>",
"table_id": 123,
"notes": "<string>"
}{
"type": "<string>",
"message": "<string>",
"error_hash": {}
}Authorizations
Your API key provided during onboarding. Example c2fb5ae6ea99c37d...
Your numeric merchant ID. Example 1
Body
application/json
Was this page helpful?
⌘I