Skip to main content

Catering Orders

GET List Catering Orders /restaurants/list

Retrieve all orders for specified location, start date, and end date.

Response

NameValueDescriptionRequired
idstringUnique Idtrue
datestringDate of order (format - "YYYY-MM-DD")true
channelstringCatering Platform Channelstrue
orderDatestringFull date of in UTC in ISO formattrue
restaurantstringRestaurant of ordertrue
locationstringLocation Nametrue
locationIdstringLocation Idtrue
finalizedOrderbooleanSpecifies whether order has been finalizedtrue
mealsEstimatebooleanIf order is not finalized, you can specify an estimate of mealsfalse
filesobjectAn object with keys as file names and values of files urlfalse
orderIdstringOrder id provided by channelfalse
utensilsbooleanSpecifies whether order requires utensilsfalse
totalMealsnumberTotal meals for orderfalse
mealsobject arrayArray of meals with itemName, quantity, modfiers[]false
headCountnumberTotal Headcount for orderfalse
customerNamestringName of customer for orderfalse
cancelledbooleanSpecifies whether order has been cancelledfalse
totalCostnumberGrand total for orderfalse
orderTotalnumberTotal for just orderfalse
taxnumberTax totalfalse
totalPreTaxnumberOrder Total Pre-Taxfalse
deliveryFeenumberDelivery Fee for orderfalse
serviceFeenumberService feefalse
gratuitynumberGratuityfalse
discountnumberDiscount by channelfalse
additionalFeesnumberAny additional fees for orderfalse
comissionnumberCommission for locatoinfalse
tipnumberTipsfalse
deliveryPhonestringDelivery phone to contact in case of problems with deliveringfalse
deliveryInstructionsstringDelivery Instructionsfalse
deliveryAddressstringDelivery Addressfalse

Authorization Bearer Token

Token                             API_Key

Headers

Content-Type                 application/json

Example

import axios from "axios"; 

const headers = {
"Authorization": `Bearer ${your_api_key}`,
"Content-Type": "application/json"
};

const rootUrl = "https://us-central1-checklist-admin-d0013.cloudfunctions.net/api/v1";

const request = axios(rootUrl+`/restaurants/list`, { headers });

Body Response JSON

[
{
"id": "3d151e13-fd3e-4bbb-8066-4faf076899f4",
"date": "2024-01-04",
"channel": "Forkable",
"orderDate": "2024-01-04T01:30:00.000+05:00",
"location": "Houston",
"locationId": "59a87f79-2219-43d0-b607-dc0c4f3fc09b",
"finalizedOrder": true,
"restaurant": "Burger Palace",
"restaurantId": "b4eb9c2a-861c-4273-81b7-85beedba86e3",
"mealsEstimate": 8,
"files": {
"receipt": "https://example.com/labels/example.pdf"
},
"orderId": "order-zeimpatzp",
"utensils": "true",
"totalMeals": 10,
"meals": [
{
"itemName": "Pizza",
"quantity": 3,
"modifiers": [
{
"modifierName": "Gluten-Free",
"quantity": 3
},
]
},
{
"itemName": "Pasta",
"quantity": 7,
"modifiers": [
{
"modifierName": "No Onions",
"quantity": 3
}
]
}
],
"headCount": 6,
"customerName": "Jorge Reyes",
"cancelled": true,
"totalCost": 91.46,
"tax": 5.73,
"totalPreTax": 71.63,
"orderTotal": 32.78,
"deliveryFee": 2.41,
"serviceFee": 3.84,
"gratuity": 10.74,
"discount": 8.8,
"additionalFees": 1.52,
"commission": 7.16,
"tip": 4.38,
"deliveryPhone": "+12345678912",
"deliveryInstructions": "Leave at the door",
"deliveryAddress": "123 Street Ave, San Francisco CA 12345, USA"
},
{
"id": "578ffd0f-cab7-4eac-823f-93ea816b4c32",
"date": "2024-02-04",
"channel": "Forkable",
"orderDate": "2024-02-04T01:30:00.000+05:00",
"location": "Houston",
"locationId": "59a87f79-2219-43d0-b607-dc0c4f3fc09b",
"finalizedOrder": true,
"restaurant": "Burger Palace",
"restaurantId": "b4eb9c2a-861c-4273-81b7-85beedba86e3",
"mealsEstimate": 8,
"files": {
"receipt": "https://example.com/labels/example.pdf"
},
"orderId": "order-zeimpatzp",
"utensils": "true",
"totalMeals": 15,
"meals": [
{
"itemName": "Pizza",
"quantity": 8,
"modifiers": [
{
"modifierName": "Gluten-Free",
"quantity": 3
},
]
},
{
"itemName": "Pasta",
"quantity": 7,
"modifiers": [
{
"modifierName": "No Onions",
"quantity": 3
}
]
}
],
"headCount": 6,
"customerName": "Jorge Reyes",
"cancelled": true,
"totalCost": 107.36,
"tax": 5.73,
"totalPreTax": 101.63,
"orderTotal": 62.78,
"deliveryFee": 2.41,
"serviceFee": 3.84,
"gratuity": 10.74,
"discount": 8.8,
"additionalFees": 1.52,
"commission": 7.16,
"tip": 4.38,
"deliveryPhone": "+12345678912",
"deliveryInstructions": "Leave at the door",
"deliveryAddress": "123 Street Ave, San Francisco CA 12345, USA"
}
]