Orders POST API Documentation

Learn how to place orders using the FoxGets API.

API Request
Endpoint:
https://foxapi.foxgets.com/api/shared-api/post-order

Method: POST
Use the HTTP Authorization header:
Authorization: Bearer YOUR_API_KEY

Required Parameters: restaurant_id, b_id, ordering_type, name, phone_number, items
Response Format: JSON
                
Parameters
Parameter Description Required Example
restaurant_idUnique restaurant IDYes"86"
b_idBranch ID (0 if no branches)Yes"0"
ordering_typeType of order (e.g., "on-table")Yes"on-table"
messageAny customer notesNo"Extra spicy"
nameCustomer nameYes"John Doe"
table_numberTable number (if on-table)No"5"
room_numberRoom number (if applicable)No""
phone_numberCustomer phone numberYes"9876543210"
addressDelivery addressNo""
pincodeDelivery pincodeNo""
pay_viaPayment method (cash/card/online)Yes"cash"
subtotalTotal amount before chargesYes10398
grandtotalFinal amount including chargesYes10408
delivery_amtDelivery chargesNo10
itemsArray of ordered itemsYesSee 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}
  ]
}
                  
API Response

Example Response JSON:

View JSON
{
  "status": "true",
  "message": "Order placed successfully",
  "order_id": 34450
}
                  

Think unique and be creative. Make a difference with FoxGets.

Fox Apps empowers 50,000+ businesses in optimizing their daily operations.

support@foxappz.com