Get point history
curl --request GET \
--url https://api.atlas.kitchen/accounts/v1/point_history \
--header 'X-Channel-Id: <api-key>' \
--header 'X-Session-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/accounts/v1/point_history"
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/point_history', 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/point_history",
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/point_history"
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/point_history")
.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/point_history")
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": "point_transaction",
"current_page": 1,
"per_page": 20,
"total_count": 2,
"total_pages": 1,
"items": [
{
"id": 9,
"type": "award",
"event_name": "Order A-1024",
"comment": null,
"amount": 40,
"amount_value": null,
"points_remaining": 40,
"expires_at": "2026-11-28",
"order_id": 1024,
"created_at": 1794935538
},
{
"id": 8,
"type": "award",
"event_name": "Welcome bonus",
"comment": null,
"amount": 500,
"amount_value": null,
"points_remaining": 500,
"expires_at": "2027-02-18",
"order_id": null,
"created_at": 1794935538
}
]
}{
"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."
}
]
}{
"type": "Invalid Parameter",
"message": "Validation failed for one or more fields. Please check your request and try again.",
"details": [
{
"field": "state",
"message": "must be one of: awarded, deducted, expiring, expired"
}
]
}Get point history
The diner’s points earned and used in the channel’s point program, newest first. If the channel has no point program, the list is empty.
GET
/
point_history
Get point history
curl --request GET \
--url https://api.atlas.kitchen/accounts/v1/point_history \
--header 'X-Channel-Id: <api-key>' \
--header 'X-Session-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/accounts/v1/point_history"
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/point_history', 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/point_history",
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/point_history"
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/point_history")
.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/point_history")
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": "point_transaction",
"current_page": 1,
"per_page": 20,
"total_count": 2,
"total_pages": 1,
"items": [
{
"id": 9,
"type": "award",
"event_name": "Order A-1024",
"comment": null,
"amount": 40,
"amount_value": null,
"points_remaining": 40,
"expires_at": "2026-11-28",
"order_id": 1024,
"created_at": 1794935538
},
{
"id": 8,
"type": "award",
"event_name": "Welcome bonus",
"comment": null,
"amount": 500,
"amount_value": null,
"points_remaining": 500,
"expires_at": "2027-02-18",
"order_id": null,
"created_at": 1794935538
}
]
}{
"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."
}
]
}{
"type": "Invalid Parameter",
"message": "Validation failed for one or more fields. Please check your request and try again.",
"details": [
{
"field": "state",
"message": "must be one of: awarded, deducted, expiring, expired"
}
]
}Authorizations
Query Parameters
awarded: points earned that have an expiry date still to comededucted: points usedexpiring: points earned that expire in the next 30 daysexpired: points earned whose expiry date has passed, including any fully used before then
Available options:
awarded, deducted, expiring, expired Was this page helpful?