Learn how to place orders using the FoxGets API.
Endpoint:https://foxapi.foxgets.com/api/shared-api/post-orderMethod: POST Use the HTTP Authorization header: Authorization: BearerYOUR_API_KEYRequired Parameters: restaurant_id, b_id, ordering_type, name, phone_number, items Response Format: JSON
| Parameter | Description | Required | Example |
|---|---|---|---|
| restaurant_id | Unique restaurant ID | Yes | "86" |
| b_id | Branch ID (0 if no branches) | Yes | "0" |
| ordering_type | Type of order (e.g., "on-table") | Yes | "on-table" |
| message | Any customer notes | No | "Extra spicy" |
| name | Customer name | Yes | "John Doe" |
| table_number | Table number (if on-table) | No | "5" |
| room_number | Room number (if applicable) | No | "" |
| phone_number | Customer phone number | Yes | "9876543210" |
| address | Delivery address | No | "" |
| pincode | Delivery pincode | No | "" |
| pay_via | Payment method (cash/card/online) | Yes | "cash" |
| subtotal | Total amount before charges | Yes | 10398 |
| grandtotal | Final amount including charges | Yes | 10408 |
| delivery_amt | Delivery charges | No | 10 |
| items | Array of ordered items | Yes | See example below |
Example Request JSON:
View JSON
{
"restaurant_id": "86",
"b_id": "0",
"ordering_type": "on-table",
"message": "",
"name": "John Doe",
"table_number": "5",
"room_number": "",
"phone_number": "9876543210",
"address": "",
"pincode": "",
"pay_via": "cash",
"subtotal": 10398,
"grandtotal": 10408,
"delivery_amt": 10,
"items": [
{"item_id": "24300","price": 10299,"quantity": 1},
{"item_id": "24315","price": 3499,"quantity": 1}
]
}
Example Response JSON:
View JSON
{
"status": "true",
"message": "Order placed successfully",
"order_id": 34450
}
Fox Apps empowers 50,000+ businesses in optimizing their daily operations.
support@foxappz.com