{"info":{"_postman_id":"4db0d7d3-ef2e-4747-9822-d9934d61136d","name":"Favouritetable - Booking API","description":"<html><head></head><body><p>The Favouritetable Booking API provides endpoints for managing restaurant bookings, billing, booking status updates, and order-of-service operations. All endpoints require an authentication token passed as part of the URL path. Use the <code>bookingapi_base_url</code> and <code>auth_token</code> environment variables to configure requests.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"18027074","collectionId":"4db0d7d3-ef2e-4747-9822-d9934d61136d","publishedId":"2sBY4JvhCW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-07-06T15:05:32.000Z"},"item":[{"name":"Booking","item":[{"name":"GetBookingList","id":"3f7800c0-6577-4223-bbec-b2d638102b69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{bookingapi_base_url}}/Booking/GetBookingList/{{auth_token}}?SiteCode={{site_code}}&ShiftCode=&BookingDate=","description":"<p>Retrieves a list of bookings for a specific site and shift on a given date.</p>\n<p><strong>Method:</strong> GET<br /><strong>URL:</strong> <code>{{bookingapi_base_url}}/Booking/GetBookingList/{{auth_token}}</code></p>\n","urlObject":{"path":["Booking","GetBookingList","{{auth_token}}"],"host":["{{bookingapi_base_url}}"],"query":[{"key":"SiteCode","value":"{{site_code}}"},{"key":"ShiftCode","value":""},{"description":{"content":"<p>yyyyMMdd format</p>\n","type":"text/plain"},"key":"BookingDate","value":""}],"variable":[]}},"response":[],"_postman_id":"3f7800c0-6577-4223-bbec-b2d638102b69"},{"name":"GetDepositReport","id":"66bfb490-9991-4201-a866-8f44a05362d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"SiteCode\": {{site_code}},\r\n  \"StartDate\": \"{{start_date}}\",\r\n  \"EndDate\": \"{{end_date}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{bookingapi_base_url}}/Booking/GetDepositReport/{{auth_token}}","description":"<p>Retrieves all bookings with associated deposit information for a specified site within the requested date range.</p>\n<p><strong>Method:</strong> POST<br /><strong>URL:</strong> <code>{{bookingapi_base_url}}/Booking/GetDepositReport/{{auth_token}}</code></p>\n","urlObject":{"path":["Booking","GetDepositReport","{{auth_token}}"],"host":["{{bookingapi_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"66bfb490-9991-4201-a866-8f44a05362d1"},{"name":"SubmitBookingBill","id":"d0451a89-1af6-4f6f-8518-c4f0ad7d775a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {\r\n  \"BookingCode\": ,\r\n  \"SiteCode\": {{site_code}},\r\n  \"SubTotal\": ,\r\n  \"VAT\": ,\r\n  \"GrossTotal\": ,\r\n  \"BillItemList\": [\r\n    {\r\n      \"ItemName\": \"{{item_name_1}}\",\r\n      \"Quantity\": {{item_quantity_1}},\r\n      \"Price\": {{item_price_1}},\r\n      \"SubTotal\": {{item_subtotal_1}},\r\n      \"VAT\": {{item_vat_1}},\r\n      \"GrossTotal\": {{item_gross_total_1}}\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{bookingapi_base_url}}/Booking/SubmitBookingBill/{{auth_token}}","description":"<p>Submits the bill for a booking, including itemised bill details, subtotals, VAT, and gross totals.</p>\n<p><strong>Method:</strong> POST<br /><strong>URL:</strong> <code>{{bookingapi_base_url}}/Booking/SubmitBookingBill/{{auth_token}}</code></p>\n<p><strong>Request Body (JSON):</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>BookingCode</td>\n<td>number</td>\n<td>Unique identifier for the booking.</td>\n</tr>\n<tr>\n<td>SiteCode</td>\n<td>number</td>\n<td>The code identifying the restaurant site.</td>\n</tr>\n<tr>\n<td>SubTotal</td>\n<td>number</td>\n<td>Total before VAT.</td>\n</tr>\n<tr>\n<td>VAT</td>\n<td>number</td>\n<td>VAT amount applied to the bill.</td>\n</tr>\n<tr>\n<td>GrossTotal</td>\n<td>number</td>\n<td>Total amount including VAT.</td>\n</tr>\n<tr>\n<td>BillItemList[].ItemName</td>\n<td>string</td>\n<td>Name of the billed item.</td>\n</tr>\n<tr>\n<td>BillItemList[].Quantity</td>\n<td>number</td>\n<td>Quantity of the item ordered.</td>\n</tr>\n<tr>\n<td>BillItemList[].Price</td>\n<td>number</td>\n<td>Unit price of the item.</td>\n</tr>\n<tr>\n<td>BillItemList[].SubTotal</td>\n<td>number</td>\n<td>Item subtotal before VAT.</td>\n</tr>\n<tr>\n<td>BillItemList[].VAT</td>\n<td>number</td>\n<td>VAT applied to the item.</td>\n</tr>\n<tr>\n<td>BillItemList[].GrossTotal</td>\n<td>number</td>\n<td>Item total including VAT.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["Booking","SubmitBookingBill","{{auth_token}}"],"host":["{{bookingapi_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"bd66a73d-8af8-4220-8942-82acfc7e78f2","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"BookingCode\": 59763,\r\n    \"SiteCode\": 37,\r\n    \"GrossTotal\": 89,\r\n    \"BillItemList\": [\r\n        {\r\n            \"ItemName\": \"Naan\",\r\n            \"Quantity\": 4\r\n        },\r\n        {\r\n            \"ItemName\": \"Mixed Vegetable\",\r\n            \"Quantity\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{bookingapi_base_url}}/Booking/SubmitBookingBill/{{auth_token}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\"Description\": \"BookingBill submitted successfully!\",\"ErrorCode\": 0,\"IsSuccess\": true,\"ResultInfo\": true}"},{"id":"1c78930b-7188-42d4-99bb-121def91947d","name":"Failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"BookingCode\": 59763,\r\n    \"SiteCode\": 37,\r\n    \"GrossTotal\": 89,\r\n    \"BillItemList\": [\r\n        {\r\n            \"ItemName\": \"Naan\",\r\n            \"Quantity\": 4\r\n        },\r\n        {\r\n            \"ItemName\": \"Mixed Vegetable\",\r\n            \"Quantity\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{bookingapi_base_url}}/Booking/SubmitBookingBill/{{auth_token}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{ \"Description\": \"Unknown Error\", \"ErrorCode\": 9999, \"IsSuccess\": false}"}],"_postman_id":"d0451a89-1af6-4f6f-8518-c4f0ad7d775a"}],"id":"826654ea-631c-4830-8b0e-7627ceb6b2a6","description":"<p>Endpoints for retrieving booking lists, deposits and submitting booking bills. These operations cover the core booking lifecycle from listing active bookings for a shift to finalising the bill for a booking.</p>\n","_postman_id":"826654ea-631c-4830-8b0e-7627ceb6b2a6"},{"name":"BookingStatus","item":[{"name":"Complete","id":"45b08e92-467e-4310-9fec-d053c8d36595","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {\r\n  \"BookingCode\": ,\r\n  \"Description\": {{description}},\r\n  \"TotalAmount \": {{total_amount}}\r\n}","options":{"raw":{"language":"json"}}},"url":"{{bookingapi_base_url}}/BookingStatus/Complete/{{auth_token}}","description":"<p>Marks a booking as complete. This should be called after the dining experience has ended and the bill has been settled.</p>\n<p><strong>Method:</strong> POST<br /><strong>URL:</strong> <code>{{bookingapi_base_url}}/BookingStatus/Complete/{{auth_token}}</code></p>\n<p><strong>Request Body (JSON):</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>BookingCode</td>\n<td>number</td>\n<td>Unique identifier for the booking to complete.</td>\n</tr>\n<tr>\n<td>Description</td>\n<td>string</td>\n<td>Optional notes or description for the completion.</td>\n</tr>\n<tr>\n<td>TotalAmount</td>\n<td>number</td>\n<td>The final total amount paid for the booking.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["BookingStatus","Complete","{{auth_token}}"],"host":["{{bookingapi_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"75d08374-f515-431c-a2ce-7a74774e8cd5","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"BookingCode\": 51186,\r\n    \"Description\": \"Customer left\",\r\n    \"TotalAmount \": 100.24\r\n}","options":{"raw":{"language":"json"}}},"url":"{{bookingapi_base_url}}/BookingStatus/Complete/{{auth_token}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n\"Description\":\"\",\r\n\"ErrorCode\":0,\r\n\"IsSuccess\":true,\r\n\"ResultInfo\":true\r\n}"},{"id":"d4a42f8c-20be-45e9-9ea9-95e02cd80658","name":"Failure","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"BookingCode\": 51186,\r\n    \"Description\": \"Customer left\",\r\n    \"TotalAmount \": 100.24\r\n}","options":{"raw":{"language":"json"}}},"url":"{{bookingapi_base_url}}/BookingStatus/Complete/{{auth_token}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{ \"Description\": \"Unknown Error\", \"ErrorCode\": 9999, \"IsSuccess\": false}"}],"_postman_id":"45b08e92-467e-4310-9fec-d053c8d36595"}],"id":"53b60972-5bd4-44aa-87bb-ec736cada48b","description":"<p>Endpoints for updating the status of a booking. Use these to mark a booking as complete once the dining experience has concluded and payment has been processed.</p>\n","_postman_id":"53b60972-5bd4-44aa-87bb-ec736cada48b"},{"name":"OrderofService","item":[{"name":"Update","id":"76ab4617-08c9-46ac-8fbd-175ae6cdfaeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {\r\n  \"BookingCode\": ,\r\n  \"OrderOfServiceCode\": {{order_of_service}}\r\n}","options":{"raw":{"language":"json"}}},"url":"{{bookingapi_base_url}}/OrderofService/Update/{{auth_token}}","description":"<p>Updates the order-of-service code assigned to a booking.</p>\n<p><strong>Method:</strong> POST<br /><strong>URL:</strong> <code>{{bookingapi_base_url}}/OrderofService/Update/{{auth_token}}</code></p>\n<p><strong>Request Body (JSON):</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>BookingCode</td>\n<td>number</td>\n<td>Unique identifier for the booking to update.</td>\n</tr>\n<tr>\n<td>OrderOfServiceCode</td>\n<td>number</td>\n<td>The new order-of-service code to assign.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["OrderofService","Update","{{auth_token}}"],"host":["{{bookingapi_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"af8f0f37-c90a-4520-b045-5194f7bb762e","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"BookingCode\":51186,\r\n\"OrderOfServiceCode \":2\r\n}","options":{"raw":{"language":"json"}}},"url":"{{bookingapi_base_url}}/OrderofService/Update/{{auth_token}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n\"Description\":\"\",\r\n\"ErrorCode\":0,\r\n\"IsSuccess\":true,\r\n\"ResultInfo\":true\r\n}\r\n"}],"_postman_id":"76ab4617-08c9-46ac-8fbd-175ae6cdfaeb"}],"id":"f4343bfb-fa06-4787-8dc4-a70469222c42","description":"<p>Endpoints for managing the order of service associated with a booking. Use these to update the assigned order-of-service code for a given booking.</p>\n<p>Following are the valid OrderOfServiceCode values and their description.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>None</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Drinks order taken</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Starters served</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Mains served</td>\n</tr>\n<tr>\n<td>5</td>\n<td>Dessert Served</td>\n</tr>\n<tr>\n<td>6</td>\n<td>Coffees served</td>\n</tr>\n<tr>\n<td>7</td>\n<td>Bill requested</td>\n</tr>\n<tr>\n<td>8</td>\n<td>Bill paid</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"f4343bfb-fa06-4787-8dc4-a70469222c42"},{"name":"Appendix","item":[],"id":"21ecb665-b1a8-49da-afd9-f9cb15c3957f","description":"<h4 id=\"error-responses\">Error Responses</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>3001</td>\n<td>Invalid BookingCode</td>\n</tr>\n<tr>\n<td>1006</td>\n<td>You are not authorized to access this site!</td>\n</tr>\n<tr>\n<td>3021</td>\n<td>Invalid SiteCode</td>\n</tr>\n<tr>\n<td>3022</td>\n<td>One or more itemnames(s) are blank</td>\n</tr>\n<tr>\n<td>9999</td>\n<td>Unknown error</td>\n</tr>\n<tr>\n<td>9999999</td>\n<td>Any other error</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"table-status-code\">Table Status Code</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Name</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>3</td>\n<td>Partially Seated</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Seated</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"21ecb665-b1a8-49da-afd9-f9cb15c3957f"}],"event":[{"listen":"prerequest","script":{"id":"07af7620-1335-4ca4-99f0-628daa6a6900","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"0f273ab0-bcb4-4845-af04-9b333119f6a5","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"booking_code","value":""},{"key":"sub_total","value":""},{"key":"vat","value":""},{"key":"gross_total","value":""},{"key":"shift_code","value":""},{"key":"booking_date","value":""}]}