List wallet promotions
curl --request GET \
--url https://api.atlas.kitchen/accounts/v1/promotions \
--header 'X-Channel-Id: <api-key>' \
--header 'X-Session-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/accounts/v1/promotions"
headers = {
"X-Channel-Id": "<api-key>",
"X-Session-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Channel-Id': '<api-key>', 'X-Session-Id': '<api-key>'}
};
fetch('https://api.atlas.kitchen/accounts/v1/promotions', 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/accounts/v1/promotions",
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-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/accounts/v1/promotions"
req, _ := http.NewRequest("GET", 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.get("https://api.atlas.kitchen/accounts/v1/promotions")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/accounts/v1/promotions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Channel-Id"] = '<api-key>'
request["X-Session-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"object": "user_promotion",
"items": [
{
"id": 1,
"code": "WELCOME15",
"label": "15% Off Welcome Discount",
"description": "Get 15% off your order",
"value": 15,
"value_type": "percent",
"value_cap": 1000,
"active": true,
"start_date": "2026-11-16",
"end_date": "2027-05-16",
"max_claims_per_user": 1,
"claims_reset_period": "none",
"remaining_claims_count": 1,
"unreleased_claims_count": 0,
"fully_redeemed": false
},
{
"id": 2,
"code": "SAVE5",
"label": "$5 Off Your Order",
"description": "Save $5 on your order",
"value": 500,
"value_type": "fractional",
"value_cap": null,
"active": true,
"start_date": "2026-11-16",
"end_date": "2027-02-16",
"max_claims_per_user": 5,
"claims_reset_period": "none",
"remaining_claims_count": 5,
"unreleased_claims_count": 0,
"fully_redeemed": false
}
]
}{
"type": "Unauthorized",
"message": "You did not provide valid credentials for this request. Please check your request and try again.",
"details": [
{
"field": "login",
"message": "You have to be logged in to process this request."
}
]
}{
"type": "Forbidden",
"message": "You do not have permission to process this request. Please check your credentials or contact support if the issue persists.",
"details": [
{
"field": "mobile_number",
"message": "Your mobile number is not verified. Verify your mobile number first before managing your account."
}
]
}List wallet promotions
Promotions in the diner’s wallet that work on this channel’s brand. To use one, apply its code to the cart with Apply promo.
GET
/
promotions
List wallet promotions
curl --request GET \
--url https://api.atlas.kitchen/accounts/v1/promotions \
--header 'X-Channel-Id: <api-key>' \
--header 'X-Session-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/accounts/v1/promotions"
headers = {
"X-Channel-Id": "<api-key>",
"X-Session-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Channel-Id': '<api-key>', 'X-Session-Id': '<api-key>'}
};
fetch('https://api.atlas.kitchen/accounts/v1/promotions', 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/accounts/v1/promotions",
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-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/accounts/v1/promotions"
req, _ := http.NewRequest("GET", 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.get("https://api.atlas.kitchen/accounts/v1/promotions")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/accounts/v1/promotions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Channel-Id"] = '<api-key>'
request["X-Session-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"object": "user_promotion",
"items": [
{
"id": 1,
"code": "WELCOME15",
"label": "15% Off Welcome Discount",
"description": "Get 15% off your order",
"value": 15,
"value_type": "percent",
"value_cap": 1000,
"active": true,
"start_date": "2026-11-16",
"end_date": "2027-05-16",
"max_claims_per_user": 1,
"claims_reset_period": "none",
"remaining_claims_count": 1,
"unreleased_claims_count": 0,
"fully_redeemed": false
},
{
"id": 2,
"code": "SAVE5",
"label": "$5 Off Your Order",
"description": "Save $5 on your order",
"value": 500,
"value_type": "fractional",
"value_cap": null,
"active": true,
"start_date": "2026-11-16",
"end_date": "2027-02-16",
"max_claims_per_user": 5,
"claims_reset_period": "none",
"remaining_claims_count": 5,
"unreleased_claims_count": 0,
"fully_redeemed": false
}
]
}{
"type": "Unauthorized",
"message": "You did not provide valid credentials for this request. Please check your request and try again.",
"details": [
{
"field": "login",
"message": "You have to be logged in to process this request."
}
]
}{
"type": "Forbidden",
"message": "You do not have permission to process this request. Please check your credentials or contact support if the issue persists.",
"details": [
{
"field": "mobile_number",
"message": "Your mobile number is not verified. Verify your mobile number first before managing your account."
}
]
}Authorizations
Was this page helpful?