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
| Name | Value | Description | Required |
|---|---|---|---|
id | string | Id of Catering Order to delete | true |
Response
| Name | Value | Description |
|---|---|---|
id | string | Id of Catering Order Deleted |
success | boolean | Result 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
}