Skip to content

Instantly share code, notes, and snippets.

@kuldeepiitg
Created December 2, 2025 01:02
Show Gist options
  • Select an option

  • Save kuldeepiitg/06204652db2625c1fa08554956d1660c to your computer and use it in GitHub Desktop.

Select an option

Save kuldeepiitg/06204652db2625c1fa08554956d1660c to your computer and use it in GitHub Desktop.
{
"app_key": "xxx",
"app_secret": "xxx",
"access_token": "xxx",
"restID": "xxxxxx",
"kotinfo": {
"Restaurant": {
"restID": "xxxxxx"
},
"Customer": {
"name": "",
"mobile": "",
"address": ""
},
"Kot": {
"uniqueID": "1", // Unique order id from third party
"order_type": "D", // D for Dine In, H for home delivery, P for parcel
"table_no": "A1", // In case of order_type = D, table_no is mandatory
"no_of_persons": "",
"created_on": "2019-11-11 18:53:50",
"callback_url": ""
},
"KotItem": [
{ // variation item with special notes and addon
"name": "Chinese Soup (1\/4)", // Item name --- here Chinese Soup is item name and 1/4 is variation. So in variation item format is "item_name (variation_name)"
"quantity": 1, // Quantity of item
"specialnotes": "Less Spicy,Without Onion", // Instruction for that item
"id": "753218", // item id - When simple item then item id if variation than variation item id
"AddonItem": "[{\"group_id\":\"337\",\"group_name\":\"Test_Addon_Group\",\"id\":\"1648\",\"name\":\"Test Addon 6\",\"price\":\"1\",\"quantity\":1}]", // addon string.
"fixed_per": "0" // currently pass this as it is or ignore it
},
{ // simple item with special notes
"name": "Chiken Kima",
"quantity": 1,
"specialnotes": "Less Spicy,Without Onion",
"id": "755872",
"AddonItem": "",
"fixed_per": "0"
},
{ // variation item with addon
"name": "Item With Addon & Variation (1\/2)",
"quantity": 1,
"specialnotes": "",
"id": "754987",
"AddonItem": "[{\"group_id\":\"342\",\"group_name\":\"Choice Of Sauces\",\"id\":\"1643\",\"name\":\"Tomato Sauce\",\"price\":\"1.2\",\"quantity\":1},{\"group_id\":\"341\",\"group_name\":\"Pizza Additional Topping\",\"id\":\"1637\",\"name\":\"Extra Cheese Medium Topping\",\"price\":\"55\",\"quantity\":1}]",
"fixed_per": "0"
},
{ // simple item
"name": "Chocolate Ice-cream",
"quantity": 1,
"specialnotes": "",
"id": "755878",
"AddonItem": "",
"fixed_per": "0"
},
{ // simple item
"name": "Item With Combo",
"quantity": 1,
"specialnotes": "",
"id": "754979",
"AddonItem": "",
"fixed_per": "0"
},
{ // variation item
"name": "Item With Variation (Medium)",
"quantity": 1,
"specialnotes": "",
"id": "754984",
"AddonItem": "",
"fixed_per": "0"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment