Created
December 2, 2025 02:44
-
-
Save kuldeepiitg/99e59dc9179602054b8b56c76b7d86d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/Downloads $ curl --include \ | |
| --request POST \ | |
| --header "Content-Type: application/json" \ | |
| --data-binary '{ | |
| "app_key": "0rydqh23mc7otzpkvgsj9au14wbn8e6x", | |
| "app_secret": "53b855eccad3f342855dea79ce3e9b3dee81bc89", | |
| "access_token": "0bffa392cfe5feaaaf89f12251285d43c220f901", | |
| "restID": "jy83osmer6", | |
| "kotinfo": { | |
| "Restaurant": { | |
| "restID": "jy83osmer6" | |
| }, | |
| "Customer": { | |
| "name": "Kuldeep", | |
| "mobile": "9535580366", | |
| "address": "" | |
| }, | |
| "Kot": { | |
| "uniqueID": "OR12345", // 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": "2025-12-02 8:08:50", | |
| "callback_url": "" | |
| }, | |
| "KotItem": [ | |
| { // variation item with special notes and addon | |
| "name": "Bisleri", // 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": "151254731", // item id - When simple item then item id if variation than variation item id | |
| "fixed_per": "0" // currently pass this as it is or ignore it | |
| } | |
| ] | |
| } | |
| } | |
| ' \ | |
| 'http://api.petpooja.com/V1/captainorders/save_kot_qr_order/' | |
| HTTP/1.1 200 OK | |
| Date: Tue, 02 Dec 2025 02:43:33 GMT | |
| Content-Type: application/json | |
| Transfer-Encoding: chunked | |
| Connection: keep-alive | |
| Server: PetPooja | |
| Set-Cookie: PETPOOJA_API=8dv7lakf8lqomet4s6vu4pas53; expires=Tue, 02-Dec-2025 06:43:33 GMT; Max-Age=14400; path=/; secure; HttpOnly; SameSite=Lax; Secure | |
| X-XSS-Protection: 1; mode=block | |
| X-Content-Type-Options: nosniff | |
| X-Frame-Options: SAMEORIGIN | |
| Strict-Transport-Security: max-age=31536000; includeSubDomains | |
| {"success":"0","message":"Client credentials were not found in the headers or body.","errorCode":"GN_101"}⏎ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment