Skip to main content

Catering Orders

DELETE Delete Catering Order /catering-orders/delete

Deletes a catering order. *NOTE: If you need to cancel an order then you should update the order via the /catering-orders/upsert path, deleting an order is irreverciebl.

Request Body

NameValueDescriptionRequired
idstringId of Catering Order to deletetrue

Response

NameValueDescription
idstringId of Catering Order Deleted
successbooleanResult of operation

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 cateringOrdertId = "catering-order-id";

const data = {
id: cateringOrderId
};

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

const request = axios(rootUrl+`/catering-orders/delete`, { headers, data });

Body Response JSON

{
"id": "catering-order-id",
"success": true
}