Payment breakdown
curl --request GET \
--url https://api.atlas.kitchen/storefronts/v1/cart/payment_breakdown \
--header 'X-Channel-Id: <api-key>' \
--header 'X-Session-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/storefronts/v1/cart/payment_breakdown"
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/storefronts/v1/cart/payment_breakdown', 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/payment_breakdown",
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/storefronts/v1/cart/payment_breakdown"
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/storefronts/v1/cart/payment_breakdown")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/storefronts/v1/cart/payment_breakdown")
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{
"minimum_order_value": null,
"donation_amount": 0,
"cash_vouchers_amount": 0,
"service_charge": 0,
"delivery_fee": 600,
"amount_to_free_delivery": null,
"amount_to_next_delivery_fee": null,
"delivery_fee_waiver_cart_subtotal": null,
"surcharge": 0,
"surcharge_label": null,
"use_points": false,
"points_amount": 0,
"points_value": 0,
"discount": 0,
"admin_discount": 0,
"subtotal": 1890,
"total": 2490,
"total_including_tax": 2490,
"tax": 0,
"tax_inclusive_prices": false,
"amount_paid": null,
"amount_unpaid": null,
"is_post_tax_discount": false
}Payment breakdown
Returns itemized charges including subtotal, tax, delivery fee, discounts, service charge, and points value.
GET
/
cart
/
payment_breakdown
Payment breakdown
curl --request GET \
--url https://api.atlas.kitchen/storefronts/v1/cart/payment_breakdown \
--header 'X-Channel-Id: <api-key>' \
--header 'X-Session-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/storefronts/v1/cart/payment_breakdown"
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/storefronts/v1/cart/payment_breakdown', 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/payment_breakdown",
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/storefronts/v1/cart/payment_breakdown"
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/storefronts/v1/cart/payment_breakdown")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/storefronts/v1/cart/payment_breakdown")
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{
"minimum_order_value": null,
"donation_amount": 0,
"cash_vouchers_amount": 0,
"service_charge": 0,
"delivery_fee": 600,
"amount_to_free_delivery": null,
"amount_to_next_delivery_fee": null,
"delivery_fee_waiver_cart_subtotal": null,
"surcharge": 0,
"surcharge_label": null,
"use_points": false,
"points_amount": 0,
"points_value": 0,
"discount": 0,
"admin_discount": 0,
"subtotal": 1890,
"total": 2490,
"total_including_tax": 2490,
"tax": 0,
"tax_inclusive_prices": false,
"amount_paid": null,
"amount_unpaid": null,
"is_post_tax_discount": false
}Authorizations
Merchant storefront identifier. Provided during onboarding.
Diner session identifier. Created by GET /channel and returned in the X-Session-Id response header.
Response
Payment breakdown
Was this page helpful?