{"openapi":"3.1.0","info":{"title":"DineQR Developer API","version":"1.32.0","description":"Read a restaurant's DineQR data with the owner's permission. Money is in minor units (paise). Read-only except dish availability."},"servers":[{"url":"https://www.zionaro.com/api/dev/v1"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"Developer API key (dq_live_…)"}},"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_key","missing_scope","ip_not_allowed","developer_not_approved","restaurant_plan","https_required","not_found","validation","rate_limited"]},"message":{"type":"string"},"request_id":{"type":"string"}}}}}}}}}},"paths":{"/me":{"get":{"tags":["Account"],"summary":"Who am I","description":"Shows your developer account, this key's name, permissions, expiry and your rate limit. Use it to test a new key.","operationId":"whoAmI","responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"developer":{"id":"dev_01jd…","name":"Anil Kumar","company":"PosLink"},"key":{"name":"Production","prefix":"dq_live_7Kp2X","scopes":["menu:read","orders:read"],"expires_at":null},"rate_limit_per_minute":60}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants":{"get":{"tags":["Account"],"summary":"Connected restaurants","description":"Restaurants whose owner connected your app, with the permissions and branches each one allowed. Use the \"id\" in all other calls. business_type is \"restaurant\" or \"home_food\" (a home kitchen: online pickup / delivery only — no tables, waiting list or bookings).","operationId":"connectedRestaurants","responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"01jd2k8m3x9v…","name":"Spice Garden","business_type":"restaurant","handle":"spicegarden","currency":"INR","timezone":"Asia/Kolkata","scopes":["menu:read","orders:read"],"branch_ids":null}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/branches":{"get":{"tags":["Restaurant"],"summary":"Branches","description":"Branches you may see, with address, whether online pickup / delivery is open right now, and whether the waiting list and table booking are switched on (guest_link is the page guests use to join the line or book).\n\nPermission: `branches:read`","operationId":"branches","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":12,"name":"RS Puram","handle":"rspuram","status":"active","city":"Coimbatore","online_ordering":{"pickup":{"enabled":true,"open_now":true},"delivery":{"enabled":true,"open_now":false}},"waiting_list":{"enabled":true},"table_booking":{"enabled":true},"guest_link":"https://dineqr.app/visit/spicegarden/rspuram"}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/branches/{branch}/menu":{"get":{"tags":["Menu"],"summary":"Menu","description":"Categories with their dishes: price (in paise), veg / non-veg, availability, picture, tax rate, option groups and food details (about the dish, ingredients, serves, spice level 0–3, usual prep minutes). Food details are empty when the owner has not filled them.\n\nPermission: `menu:read`","operationId":"menu","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"description":"Branch number","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":3,"name":"Biryani","items":[{"id":41,"name":"Chicken Biryani","price_minor":25000,"food_type":"non_veg","available":true,"about":"Seeraga samba rice slow-cooked with country chicken.","ingredients":"Rice, chicken, ghee, spices","serves":"1–2","spice_level":2,"prep_minutes":20,"tax_rate_bps":500,"option_groups":[{"name":"Portion","required":true,"options":[{"name":"Full","price_delta_minor":0}]}]}]}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/branches/{branch}/menu-items/{item}/availability":{"patch":{"tags":["Menu"],"summary":"Mark a dish available / sold out","description":"The only change the API can make. Body: {\"available\": false}. Limited to 30 calls per minute. Every change is recorded in the restaurant's audit log.\n\nPermission: `menu:availability`","operationId":"markADishAvailableSoldOut","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"description":"Branch number","schema":{"type":"integer"}},{"name":"item","in":"path","required":true,"description":"Menu item number","schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["available"],"properties":{"available":{"type":"boolean","description":"true = available, false = sold out"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":41,"name":"Chicken Biryani","available":false}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/branches/{branch}/tables":{"get":{"tags":["Tables"],"summary":"Tables","description":"Dining tables with number, seats, section and status (available, occupied, billing, cleaning, disabled), plus the live forecast: state (free, busy, billing, held, cleaning) and likely_free_in_minutes, learned from how long groups usually stay. next_booking_at shows the start of a booking due in the next 4 hours. POS counter tickets and online orders are not tables and are not listed. QR codes are never shared.\n\nPermission: `tables:read`","operationId":"tables","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"description":"Branch number","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":7,"number":"05","seats":4,"status":"occupied","section":"Hall","state":"busy","likely_free_in_minutes":12,"next_booking_at":null}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/branches/{branch}/orders":{"get":{"tags":["Orders"],"summary":"Orders","description":"Approved orders (newest first, 50 per page) with dishes and totals. Only orders staff approved are shown. source tells where the order came from: table (QR / waiter), pos (counter sale — pos_ticket is the T- / C- ticket number) or online. Guest names and phone numbers are never included.\n\nPermission: `orders:read`","operationId":"orders","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"description":"Branch number","schema":{"type":"integer"}},{"name":"from","in":"query","required":false,"description":"Default: 7 days ago. Longest range: 31 days.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Default: now.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"approved, preparing, ready, served, completed, cancelled (comma separated)","schema":{"type":"string"}},{"name":"channel","in":"query","required":false,"description":"dine_in, pickup or delivery","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"per_page up to 100","schema":{"type":"integer"}},{"name":"per_page","in":"query","required":false,"description":"per_page up to 100","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":9812,"number":"O251115-00042","status":"completed","channel":"dine_in","source":"table","table":"05","pos_ticket":null,"total_minor":54600,"items":[{"name":"Chicken Biryani","quantity":2,"line_total_minor":50000}]}],"meta":{"page":1,"per_page":50,"total":1,"last_page":1}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/branches/{branch}/orders/{order}":{"get":{"tags":["Orders"],"summary":"One order","description":"A single order with all its lines (including packing / delivery charges, marked is_charge).\n\nPermission: `orders:read`","operationId":"oneOrder","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"description":"Branch number","schema":{"type":"integer"}},{"name":"order","in":"path","required":true,"description":"Order number","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":9812,"number":"O251115-00042","status":"completed"}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/branches/{branch}/online-orders":{"get":{"tags":["Orders"],"summary":"Online pickup & delivery orders","description":"Online orders (restaurants and home kitchens) with type, status, promised time, total and how the guest chose to pay (payment_choice: cash or upi). Only the guest's first name is shared — never the phone number, address or handover code. Home food office lunch orders have \"office\" (id, name) and scheduled_for = the delivery slot.\n\nPermission: `online-orders:read`","operationId":"onlinePickupDeliveryOrders","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"description":"Branch number","schema":{"type":"integer"}},{"name":"from","in":"query","required":false,"description":"Same as orders","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Same as orders","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"pending, accepted, ready, out_for_delivery, completed, rejected, cancelled, not_collected","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"01jd…","number":"D-014","type":"delivery","status":"accepted","guest_first_name":"Priya","ready_by":"2026-11-15T20:10:00+05:30","total_minor":58440,"payment_choice":"upi","office":null}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/branches/{branch}/kitchen-tickets":{"get":{"tags":["Kitchen"],"summary":"Kitchen tickets (last 24 hours)","description":"Kitchen tickets with their dishes and status (new, preparing, ready, completed). Useful for kitchen display or buzzer integrations.\n\nPermission: `kitchen:read`","operationId":"kitchenTicketsLast24Hours","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"description":"Branch number","schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"description":"new, preparing, ready, completed","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":512,"number":"K0042","status":"preparing","channel":"pickup","items":[{"name":"Masala Dosa","quantity":2}]}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/branches/{branch}/waitlist":{"get":{"tags":["Waiting list & bookings"],"summary":"Waiting list (live)","description":"Groups waiting for a table, in order: group size, place in line, smart wait estimate in minutes and the table they will likely get. \"offered\" means a table is kept for them until table_kept_until. meta gives totals and the wait right now for a new group of 2 or 4 — handy for a \"wait time\" screen or your own website. First names only; phone numbers are never shared. Read-only: groups are seated only by the restaurant's staff (or its own auto-allow).\n\nPermission: `waitlist:read`","operationId":"waitingListLive","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"description":"Branch number","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"01jdw…","number":"W-007","status":"waiting","party_size":4,"guest_first_name":"Ravi","position":1,"estimated_wait_minutes":12,"suggested_table":"05","table_kept_until":null,"joined_at":"2026-11-21T20:02:00+05:30","source":"guest"}],"meta":{"waiting_groups":3,"waiting_people":9,"free_tables":0,"wait_now_for_2_minutes":15,"wait_now_for_4_minutes":25}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/branches/{branch}/reservations":{"get":{"tags":["Waiting list & bookings"],"summary":"Table bookings","description":"Table reservations made in advance, soonest first (up to 500). Status: pending (waiting for the restaurant to confirm), confirmed, arrived, seated, declined, cancelled, no_show. source is guest (booked online) or staff (taken by phone / at the desk). First names only; phone numbers are never shared. Read-only: bookings are confirmed only by the restaurant.\n\nPermission: `reservations:read`","operationId":"tableBookings","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"description":"Branch number","schema":{"type":"integer"}},{"name":"from","in":"query","required":false,"description":"Default: today to 7 days ahead. Longest range: 31 days.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Default: today to 7 days ahead. Longest range: 31 days.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"Comma separated, e.g. pending,confirmed","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"01jdx…","number":"R-0012","status":"confirmed","party_size":6,"guest_first_name":"Meena","reserved_for":"2026-11-22T19:30:00+05:30","duration_minutes":90,"table":"08","note":"Birthday","source":"guest"}]}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/branches/{branch}/office-lunch":{"get":{"tags":["Home food"],"summary":"Office lunch (home food)","description":"For a home kitchen that runs office lunch: its offices, the delivery slots with capacity and how many are booked, each office run (slot + office) with order and meal counts, and the cooking list for the day. Office orders themselves appear in Online orders with \"office\" set. No guest names or phone numbers. Read-only.\n\nPermission: `office-lunch:read`","operationId":"officeLunchHomeFood","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"description":"Branch number","schema":{"type":"integer"}},{"name":"date","in":"query","required":false,"description":"Default: today (kitchen time zone).","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"date":"2026-11-24","enabled":true,"cutoff":"10:30","delivery_days":[1,2,3,4,5],"offices":[{"id":3,"name":"Tidel Park – Block A","address":"Rajiv Gandhi Salai, Taramani","handover_point":"Reception, 4th floor","delivery_fee_minor":0}],"slots":[{"time":"12:30","capacity":30,"booked":12},{"time":"13:15","capacity":20,"booked":5}],"runs":[{"slot":"12:30","office_id":3,"orders":7,"meals":9,"statuses":{"pending":2,"accepted":5}}],"cooking_list":[{"dish":"Veg Kongu Meal","quantity":11},{"dish":"Chettinad Chicken Meal","quantity":6}],"totals":{"orders":17,"meals":17}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/restaurants/{restaurant}/reports/sales":{"get":{"tags":["Reports"],"summary":"Sales report","description":"Sales totals for a period (up to 31 days): per day, per branch and per channel (dine-in, pickup, delivery).\n\nPermission: `reports:read`","operationId":"salesReport","parameters":[{"name":"restaurant","in":"path","required":true,"description":"Restaurant ID from GET /restaurants","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Default: last 7 days","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Default: last 7 days","schema":{"type":"string"}},{"name":"branch","in":"query","required":false,"description":"Only one branch","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"currency":"INR","summary":{"sales_minor":1845000,"orders":312,"avg_order_minor":59134},"by_channel":[{"key":"dine_in","orders":260,"total":1500000}]}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}}}}