List orders
curl --request GET \
--url https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders \
--header 'X-Api-Key: <api-key>' \
--header 'X-Merchant-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders"
headers = {
"X-Api-Key": "<api-key>",
"X-Merchant-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Api-Key': '<api-key>', 'X-Merchant-Id': '<api-key>'}
};
fetch('https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders', 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/outlets/{outlet_id}/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Merchant-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.get("https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders")
.header("X-Api-Key", "<api-key>")
.header("X-Merchant-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
request["X-Merchant-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"object": "order",
"per_page": 200,
"next_updated_after": 1795409393,
"next_after_id": 5521,
"items": [
{
"id": 123,
"identifier": "<string>",
"user_id": 123,
"channel_id": 123,
"outlet_id": 123,
"brand_id": 123,
"fulfilment_type": "<string>",
"state": "<string>",
"call_number": 123,
"notes": "<string>",
"source_label": "<string>",
"serving_date": "2023-12-25",
"timeslot_start": 123,
"timeslot_end": 123,
"timeslot_range": "<string>",
"contact_name": "<string>",
"contact_email": "<string>",
"contact_number": "<string>",
"external_order_id": "<string>",
"external_order_short_code": "<string>",
"is_gift": true,
"is_paid": true,
"promo_code": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"address_latitude": 123,
"address_longitude": 123,
"postal_code": "<string>",
"is_cutlery_required": true,
"is_contactless": true,
"is_asap": true,
"recipient_name": "<string>",
"recipient_contact_number": "<string>",
"recipient_organisation_name": "<string>",
"gift_message": "<string>",
"confirmation_custom_message": "<string>",
"current_trip": {},
"payment_breakdown": {},
"created_at": 123,
"updated_at": 123,
"cancelled_at": 123,
"completed_at": 123,
"order_items": [
{
"id": 123,
"item_id": 123,
"name": "<string>",
"quantity": 123,
"currency": "<string>",
"price_cents": 123,
"discount": 123,
"calculated_subtotal": 123,
"per_unit_quantity": 123,
"unit_label": "<string>",
"notes": "<string>",
"report_category": "<string>",
"brand_id": 123,
"voided": true,
"adjustment_reason": {
"id": 123,
"label": "Wrong order"
},
"product_tags": [
"<string>"
],
"kitchen_tags": [
"<string>"
],
"sub_items": "<array>"
}
],
"order_payments": [
{
"id": 123,
"capture_id": "<string>",
"is_captured": true,
"capture_type": "<string>",
"payment_method_id": 123,
"amount": 123
}
],
"order_refunds": [
{
"id": 123,
"type": "OrderRefund",
"amount_cents": 500
}
],
"order_item_refunds": [
{
"id": 123,
"order_item_id": 123,
"amount_cents": 500
}
]
}
]
}{
"type": "<string>",
"message": "<string>",
"error_hash": {}
}{
"type": "<string>",
"message": "<string>",
"error_hash": {}
}List orders
Returns the outlet’s orders, oldest change first. For an order’s payment_breakdown, use Order details.
An order shows up again when it changes, including later refunds. For the next page, send back next_updated_after and next_after_id.
GET
/
outlets
/
{outlet_id}
/
orders
List orders
curl --request GET \
--url https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders \
--header 'X-Api-Key: <api-key>' \
--header 'X-Merchant-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders"
headers = {
"X-Api-Key": "<api-key>",
"X-Merchant-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Api-Key': '<api-key>', 'X-Merchant-Id': '<api-key>'}
};
fetch('https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders', 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/outlets/{outlet_id}/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Merchant-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.get("https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders")
.header("X-Api-Key", "<api-key>")
.header("X-Merchant-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/admin/v1/outlets/{outlet_id}/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
request["X-Merchant-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"object": "order",
"per_page": 200,
"next_updated_after": 1795409393,
"next_after_id": 5521,
"items": [
{
"id": 123,
"identifier": "<string>",
"user_id": 123,
"channel_id": 123,
"outlet_id": 123,
"brand_id": 123,
"fulfilment_type": "<string>",
"state": "<string>",
"call_number": 123,
"notes": "<string>",
"source_label": "<string>",
"serving_date": "2023-12-25",
"timeslot_start": 123,
"timeslot_end": 123,
"timeslot_range": "<string>",
"contact_name": "<string>",
"contact_email": "<string>",
"contact_number": "<string>",
"external_order_id": "<string>",
"external_order_short_code": "<string>",
"is_gift": true,
"is_paid": true,
"promo_code": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"address_latitude": 123,
"address_longitude": 123,
"postal_code": "<string>",
"is_cutlery_required": true,
"is_contactless": true,
"is_asap": true,
"recipient_name": "<string>",
"recipient_contact_number": "<string>",
"recipient_organisation_name": "<string>",
"gift_message": "<string>",
"confirmation_custom_message": "<string>",
"current_trip": {},
"payment_breakdown": {},
"created_at": 123,
"updated_at": 123,
"cancelled_at": 123,
"completed_at": 123,
"order_items": [
{
"id": 123,
"item_id": 123,
"name": "<string>",
"quantity": 123,
"currency": "<string>",
"price_cents": 123,
"discount": 123,
"calculated_subtotal": 123,
"per_unit_quantity": 123,
"unit_label": "<string>",
"notes": "<string>",
"report_category": "<string>",
"brand_id": 123,
"voided": true,
"adjustment_reason": {
"id": 123,
"label": "Wrong order"
},
"product_tags": [
"<string>"
],
"kitchen_tags": [
"<string>"
],
"sub_items": "<array>"
}
],
"order_payments": [
{
"id": 123,
"capture_id": "<string>",
"is_captured": true,
"capture_type": "<string>",
"payment_method_id": 123,
"amount": 123
}
],
"order_refunds": [
{
"id": 123,
"type": "OrderRefund",
"amount_cents": 500
}
],
"order_item_refunds": [
{
"id": 123,
"order_item_id": 123,
"amount_cents": 500
}
]
}
]
}{
"type": "<string>",
"message": "<string>",
"error_hash": {}
}{
"type": "<string>",
"message": "<string>",
"error_hash": {}
}Authorizations
Query Parameters
Was this page helpful?