Catering Orders
GET List Catering Orders /restaurants/list
Retrieve all orders for specified location, start date, and end date.
Response
| Name | Value | Description | Required |
|---|---|---|---|
id | string | Unique Id | true |
date | string | Date of order (format - "YYYY-MM-DD") | true |
channel | string | Catering Platform Channels | true |
orderDate | string | Full date of in UTC in ISO format | true |
restaurant | string | Restaurant of order | true |
location | string | Location Name | true |
locationId | string | Location Id | true |
finalizedOrder | boolean | Specifies whether order has been finalized | true |
mealsEstimate | boolean | If order is not finalized, you can specify an estimate of meals | false |
files | object | An object with keys as file names and values of files url | false |
orderId | string | Order id provided by channel | false |
utensils | boolean | Specifies whether order requires utensils | false |
totalMeals | number | Total meals for order | false |
meals | object array | Array of meals with itemName, quantity, modfiers[] | false |
headCount | number | Total Headcount for order | false |
customerName | string | Name of customer for order | false |
cancelled | boolean | Specifies whether order has been cancelled | false |
totalCost | number | Grand total for order | false |
orderTotal | number | Total for just order | false |
tax | number | Tax total | false |
totalPreTax | number | Order Total Pre-Tax | false |
deliveryFee | number | Delivery Fee for order | false |
serviceFee | number | Service fee | false |
gratuity | number | Gratuity | false |
discount | number | Discount by channel | false |
additionalFees | number | Any additional fees for order | false |
comission | number | Commission for locatoin | false |
tip | number | Tips | false |
deliveryPhone | string | Delivery phone to contact in case of problems with delivering | false |
deliveryInstructions | string | Delivery Instructions | false |
deliveryAddress | string | Delivery Address | false |
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"
}
]