{"openapi":"3.1.0","info":{"title":"Misse Restaurant REST API","version":"1.2.0","description":"Environment-bound reads and canonical writes. Sandbox keys operate on a separate fresh test restaurant, never production IDs. Writes require Idempotency-Key; repeating a successful request returns its original receipt, while changed payloads return 409. Dine-in table opening, item addition and sending are supported; card payment and table-free channel creation are not write endpoints. Signed webhooks cover order.created, order.sent, order.paid, stock.changed and reservation.changed; explicit retry is available in Global Settings. order.paid means canonical invoice/payment recording, including account charges, not a card processor authorization."},"servers":[{"url":"/api/public/v1","description":"Production · mise_live_ key"},{"url":"/api/public/v1/sandbox","description":"Isolated restaurant sandbox · mise_test_ key"}],"paths":{"/products":{"get":{"operationId":"list-products","tags":["products"],"summary":"List products","description":"Requires products:read and live Products screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/products"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"products:read","x-permission-screen":"Products"},"post":{"operationId":"post-products","summary":"POST products","description":"Requires products:write, live EditProducts and its screen. Product price changes also require EditPrices. Canonical terminal PIN, stock-policy, choice and reservation conflict rules apply.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"Code":{"type":"string","pattern":"^[A-Z0-9]{2,6}-[0-9]{1,5}$"},"Name":{"type":"string","minLength":1,"maxLength":120},"Category":{"type":"string","enum":["Starters","Mains","Pasta","Pizza","Desserts","Drinks","Wines","Coffee"]},"CategoryId":{"type":"string","format":"uuid","nullable":true},"Price":{"type":"string","pattern":"^\\d{1,15}(\\.\\d{1,4})?$"},"TaxRate":{"type":"string","enum":["NoTax","Vat105","Vat21"]},"Description":{"type":"string","maxLength":1000,"default":""},"IsActive":{"type":"boolean","default":true},"Type":{"type":"string","enum":["Dish","Beverage","Bottle"]}},"required":["Code","Name","Category","Price","TaxRate","Type"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"201":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"400":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"products:write","x-permission-action":"EditProducts"}},"/products/{id}":{"get":{"operationId":"get-products","tags":["products"],"summary":"Read one products","description":"Requires products:read and live Products screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/products"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"products:read","x-permission-screen":"Products"},"patch":{"operationId":"patch-products","summary":"PATCH products/{id}","description":"Requires products:write, live EditProducts and its screen. Product price changes also require EditPrices. Canonical terminal PIN, stock-policy, choice and reservation conflict rules apply.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"Code":{"type":"string","pattern":"^[A-Z0-9]{2,6}-[0-9]{1,5}$"},"Name":{"type":"string","minLength":1,"maxLength":120},"Category":{"type":"string","enum":["Starters","Mains","Pasta","Pizza","Desserts","Drinks","Wines","Coffee"]},"CategoryId":{"type":"string","format":"uuid","nullable":true},"Price":{"type":"string","pattern":"^\\d{1,15}(\\.\\d{1,4})?$"},"TaxRate":{"type":"string","enum":["NoTax","Vat105","Vat21"]},"Description":{"type":"string","maxLength":1000,"default":""},"IsActive":{"type":"boolean","default":true},"Type":{"type":"string","enum":["Dish","Beverage","Bottle"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"201":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"400":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"products:write","x-permission-action":"EditProducts"}},"/categories":{"get":{"operationId":"list-categories","tags":["products"],"summary":"List categories","description":"Requires products:read and live Products screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/categories"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"products:read","x-permission-screen":"Products"}},"/categories/{id}":{"get":{"operationId":"get-categories","tags":["products"],"summary":"Read one categories","description":"Requires products:read and live Products screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/categories"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"products:read","x-permission-screen":"Products"}},"/price-lists":{"get":{"operationId":"list-price-lists","tags":["pricing"],"summary":"List price-lists","description":"Requires pricing:read and live Pricing screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/price-lists"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"pricing:read","x-permission-screen":"Pricing"}},"/price-lists/{id}":{"get":{"operationId":"get-price-lists","tags":["pricing"],"summary":"Read one price-lists","description":"Requires pricing:read and live Pricing screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/price-lists"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"pricing:read","x-permission-screen":"Pricing"}},"/tables":{"get":{"operationId":"list-tables","tags":["tables"],"summary":"List tables","description":"Requires tables:read and live Tables screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/tables"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"tables:read","x-permission-screen":"Tables"}},"/tables/{id}":{"get":{"operationId":"get-tables","tags":["tables"],"summary":"Read one tables","description":"Requires tables:read and live Tables screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/tables"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"tables:read","x-permission-screen":"Tables"}},"/sectors":{"get":{"operationId":"list-sectors","tags":["tables"],"summary":"List sectors","description":"Requires tables:read and live Sectors screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/sectors"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"tables:read","x-permission-screen":"Sectors"}},"/sectors/{id}":{"get":{"operationId":"get-sectors","tags":["tables"],"summary":"Read one sectors","description":"Requires tables:read and live Sectors screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/sectors"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"tables:read","x-permission-screen":"Sectors"}},"/orders":{"get":{"operationId":"list-orders","tags":["orders"],"summary":"List orders","description":"Requires orders:read and live OrderEntry screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/orders"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"orders:read","x-permission-screen":"OrderEntry"},"post":{"operationId":"post-orders","summary":"POST orders","description":"Requires orders:write, live Plus and its screen. Product price changes also require EditPrices. Canonical terminal PIN, stock-policy, choice and reservation conflict rules apply.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"TableId":{"type":"string","format":"uuid"},"Covers":{"type":"integer","minimum":1,"maximum":20,"default":1},"Waiter":{"type":"string","maxLength":120,"default":""},"Guest":{"type":"object","properties":{"CustomerId":{"type":"string","format":"uuid","nullable":true,"default":null},"Name":{"type":"string","maxLength":160,"default":""},"Phone":{"type":"string","maxLength":80,"default":""},"Address":{"type":"string","maxLength":300,"default":""},"Driver":{"type":"string","maxLength":120,"default":""},"Waiter":{"type":"string","maxLength":120,"default":""},"Covers":{"type":"integer","minimum":1,"maximum":20,"nullable":true,"default":null},"PickupAt":{"type":"string","format":"date-time","nullable":true,"default":null}},"additionalProperties":false},"TerminalId":{"type":"string","format":"uuid"}},"required":["TableId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"201":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"400":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"orders:write","x-permission-action":"Plus"}},"/orders/{id}":{"get":{"operationId":"get-orders","tags":["orders"],"summary":"Read one orders","description":"Requires orders:read and live OrderEntry screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/orders"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"orders:read","x-permission-screen":"OrderEntry"}},"/order-items":{"get":{"operationId":"list-order-items","tags":["orders"],"summary":"List order-items","description":"Requires orders:read and live OrderEntry screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"},{"name":"order_id","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/order-items"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"orders:read","x-permission-screen":"OrderEntry"}},"/order-items/{id}":{"get":{"operationId":"get-order-items","tags":["orders"],"summary":"Read one order-items","description":"Requires orders:read and live OrderEntry screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/order-items"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"orders:read","x-permission-screen":"OrderEntry"}},"/ingredients":{"get":{"operationId":"list-ingredients","tags":["inventory"],"summary":"List ingredients","description":"Requires inventory:read and live Ingredients screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ingredients"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"inventory:read","x-permission-screen":"Ingredients"}},"/ingredients/{id}":{"get":{"operationId":"get-ingredients","tags":["inventory"],"summary":"Read one ingredients","description":"Requires inventory:read and live Ingredients screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ingredients"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"inventory:read","x-permission-screen":"Ingredients"}},"/warehouses":{"get":{"operationId":"list-warehouses","tags":["inventory"],"summary":"List warehouses","description":"Requires inventory:read and live Inventory screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/warehouses"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"inventory:read","x-permission-screen":"Inventory"}},"/warehouses/{id}":{"get":{"operationId":"get-warehouses","tags":["inventory"],"summary":"Read one warehouses","description":"Requires inventory:read and live Inventory screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/warehouses"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"inventory:read","x-permission-screen":"Inventory"}},"/stock-positions":{"get":{"operationId":"list-stock-positions","tags":["inventory"],"summary":"List stock-positions","description":"Requires inventory:read and live WarehouseStock screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"IngredientId:WarehouseId composite cursor"},{"name":"warehouse_id","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/stock-positions"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"inventory:read","x-permission-screen":"WarehouseStock"}},"/stock-movements":{"get":{"operationId":"list-stock-movements","tags":["inventory"],"summary":"List stock-movements","description":"Requires inventory:read and live WarehouseMovements screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"},{"name":"warehouse_id","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/stock-movements"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"inventory:read","x-permission-screen":"WarehouseMovements"}},"/stock-movements/{id}":{"get":{"operationId":"get-stock-movements","tags":["inventory"],"summary":"Read one stock-movements","description":"Requires inventory:read and live WarehouseMovements screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/stock-movements"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"inventory:read","x-permission-screen":"WarehouseMovements"}},"/customers":{"get":{"operationId":"list-customers","tags":["customers"],"summary":"List customers","description":"Requires customers:read and live Customers screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/customers"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"customers:read","x-permission-screen":"Customers"}},"/customers/{id}":{"get":{"operationId":"get-customers","tags":["customers"],"summary":"Read one customers","description":"Requires customers:read and live Customers screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/customers"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"customers:read","x-permission-screen":"Customers"}},"/reservations":{"get":{"operationId":"list-reservations","tags":["reservations"],"summary":"List reservations","description":"Requires reservations:read and live Reservations screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/reservations"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"reservations:read","x-permission-screen":"Reservations"},"post":{"operationId":"post-reservations","summary":"POST reservations","description":"Requires reservations:write, live ManageHost and its screen. Product price changes also require EditPrices. Canonical terminal PIN, stock-policy, choice and reservation conflict rules apply.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"Name":{"type":"string","minLength":1,"maxLength":160},"Phone":{"type":"string","maxLength":80,"default":""},"CustomerId":{"type":"string","format":"uuid"},"People":{"type":"integer","minimum":1,"maximum":20},"TableId":{"type":"string","format":"uuid"},"Sector":{"type":"string","maxLength":80,"default":"AnySector"},"StartsAt":{"type":"string","format":"date-time"},"Duration":{"type":"integer","minimum":15,"maximum":480,"default":90},"Note":{"type":"string","maxLength":500,"default":""},"Version":{"type":"integer","minimum":0}},"required":["Name","People","StartsAt"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"201":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"400":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"reservations:write","x-permission-action":"ManageHost"}},"/reservations/{id}":{"get":{"operationId":"get-reservations","tags":["reservations"],"summary":"Read one reservations","description":"Requires reservations:read and live Reservations screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/reservations"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"reservations:read","x-permission-screen":"Reservations"},"put":{"operationId":"put-reservations","summary":"PUT reservations/{id}","description":"Requires reservations:write, live ManageHost and its screen. Product price changes also require EditPrices. Canonical terminal PIN, stock-policy, choice and reservation conflict rules apply.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"Name":{"type":"string","minLength":1,"maxLength":160},"Phone":{"type":"string","maxLength":80,"default":""},"CustomerId":{"type":"string","format":"uuid"},"People":{"type":"integer","minimum":1,"maximum":20},"TableId":{"type":"string","format":"uuid"},"Sector":{"type":"string","maxLength":80,"default":"AnySector"},"StartsAt":{"type":"string","format":"date-time"},"Duration":{"type":"integer","minimum":15,"maximum":480,"default":90},"Note":{"type":"string","maxLength":500,"default":""},"Version":{"type":"integer","minimum":0}},"required":["Name","People","StartsAt","Version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"201":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"400":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"reservations:write","x-permission-action":"ManageHost"}},"/invoices":{"get":{"operationId":"list-invoices","tags":["invoices"],"summary":"List invoices","description":"Requires invoices:read and live Invoicing screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string"},"description":"Last UUID from meta.next_cursor; ascending UUID ordering"}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/invoices"}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"invoices:read","x-permission-screen":"Invoicing"}},"/invoices/{id}":{"get":{"operationId":"get-invoices","tags":["invoices"],"summary":"Read one invoices","description":"Requires invoices:read and live Invoicing screen access.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/invoices"},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"environment":{"enum":["production","sandbox"]},"next_cursor":{"type":["string","null"]}}}}}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid, expired or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Missing scope or current permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource or entity not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"60 requests per minute per key exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds before retrying"}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"invoices:read","x-permission-screen":"Invoicing"}},"/orders/{id}/items":{"post":{"operationId":"post-order-items","summary":"POST orders/{id}/items","description":"Requires orders:write, live Plus and its screen. Product price changes also require EditPrices. Canonical terminal PIN, stock-policy, choice and reservation conflict rules apply.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ProductId":{"type":"string","format":"uuid"},"Quantity":{"type":"integer","minimum":1,"maximum":999},"Seat":{"type":"integer","minimum":1,"maximum":20},"Choices":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string","format":"uuid"}}},"TerminalId":{"type":"string","format":"uuid"}},"required":["ProductId","Quantity"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"201":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"400":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"orders:write","x-permission-action":"Plus"}},"/orders/{id}/send":{"post":{"operationId":"post-order-send","summary":"POST orders/{id}/send","description":"Requires orders:write, live Send and its screen. Product price changes also require EditPrices. Canonical terminal PIN, stock-policy, choice and reservation conflict rules apply.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"TerminalId":{"type":"string","format":"uuid"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"201":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"400":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"orders:write","x-permission-action":"Send"}},"/inventory/adjustments":{"post":{"operationId":"post-inventory-adjustments","summary":"POST inventory/adjustments","description":"Requires inventory:write, live EditInventory and its screen. Product price changes also require EditPrices. Canonical terminal PIN, stock-policy, choice and reservation conflict rules apply.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"IngredientId":{"type":"string","format":"uuid"},"WarehouseId":{"type":"string","format":"uuid"},"ReasonId":{"type":"string","format":"uuid"},"Quantity":{"type":"string","pattern":"^-?\\d{1,15}(\\.\\d{1,4})?$"},"Cost":{"type":"string","pattern":"^\\d{1,15}(\\.\\d{1,4})?$"},"Note":{"type":"string","maxLength":200,"default":""},"TerminalId":{"type":"string","format":"uuid"}},"required":["IngredientId","WarehouseId","ReasonId","Quantity"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"201":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"400":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"inventory:write","x-permission-action":"EditInventory"}},"/reservations/{id}/status":{"post":{"operationId":"post-reservation-status","summary":"POST reservations/{id}/status","description":"Requires reservations:write, live ManageHost and its screen. Product price changes also require EditPrices. Canonical terminal PIN, stock-policy, choice and reservation conflict rules apply.","security":[{"RestaurantApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"Action":{"type":"string","enum":["Confirm","Cancel","NoShow"]},"Version":{"type":"integer","minimum":0}},"required":["Action","Version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"201":{"description":"Saved canonical entity / idempotent replay","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"},"meta":{"type":"object","properties":{"environment":{"enum":["production","sandbox"]},"replayed":{"type":"boolean"},"request_id":{"type":"string","format":"uuid"}}}}}}}},"400":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Rejected request; see error.code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"reservations:write","x-permission-action":"ManageHost"}}},"components":{"securitySchemes":{"RestaurantApiKey":{"type":"http","scheme":"bearer","description":"Environment-bound restaurant API credential. Never a user login token."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"request_id":{"type":"string","format":"uuid"}}}}},"products":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"Code":{"type":["string","null"]},"Name":{"type":["string","null"]},"CategoryId":{"type":["string","null"],"format":"uuid"},"Price":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"TaxRate":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"Description":{"type":["string","null"]},"IsActive":{"type":"boolean"},"Type":{"type":["string","null"]},"UpdatedAt":{"type":["string","null"],"format":"date-time"}}},"categories":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"ParentId":{"type":["string","null"],"format":"uuid"},"Name":{"type":["string","null"]},"SortOrder":{"type":["integer","null"]},"Archived":{"type":"boolean"},"Version":{"type":["integer","null"]}}},"price-lists":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"Name":{"type":["string","null"]},"Version":{"type":["integer","null"]},"Archived":{"type":"boolean"},"ValidFrom":{"type":["string","null"]},"ValidUntil":{"type":["string","null"]},"UsesShift":{"type":"boolean"},"ShiftStart":{"type":["string","null"]},"ShiftEnd":{"type":["string","null"]}}},"tables":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"SectorId":{"type":["string","null"],"format":"uuid"},"Name":{"type":["string","null"]},"Seats":{"type":["integer","null"]},"Status":{"type":["string","null"]},"Archived":{"type":"boolean"},"IsService":{"type":"boolean"}}},"sectors":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"Name":{"type":["string","null"]},"Description":{"type":["string","null"]},"SectorTypeId":{"type":["string","null"],"format":"uuid"},"IsActive":{"type":"boolean"},"Archived":{"type":"boolean"},"Version":{"type":["integer","null"]}}},"orders":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"TableId":{"type":["string","null"],"format":"uuid"},"Covers":{"type":["integer","null"]},"Status":{"type":["string","null"]},"OpenedAt":{"type":["string","null"],"format":"date-time"},"Currency":{"type":["string","null"]},"Channel":{"type":["string","null"]},"FulfillmentStatus":{"type":["string","null"]},"ChannelVersion":{"type":["integer","null"]},"PricingVersion":{"type":["integer","null"]},"LastSentAt":{"type":["string","null"],"format":"date-time"}}},"order-items":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"OrderId":{"type":["string","null"],"format":"uuid"},"CatalogProductId":{"type":["string","null"],"format":"uuid"},"Quantity":{"type":["integer","null"]},"Price":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"HalfPrice":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"Half":{"type":"boolean"},"Seat":{"type":["integer","null"]},"Status":{"type":["string","null"]},"Station":{"type":["string","null"]},"SentAt":{"type":["string","null"],"format":"date-time"},"ReadyAt":{"type":["string","null"],"format":"date-time"},"CourseId":{"type":["string","null"],"format":"uuid"},"CourseHeld":{"type":"boolean"},"FireCount":{"type":["integer","null"]}}},"ingredients":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"Code":{"type":["string","null"]},"Name":{"type":["string","null"]},"Unit":{"type":["string","null"]},"Minimum":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"Maximum":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"IsPreparacion":{"type":"boolean"},"DefaultWarehouseId":{"type":["string","null"],"format":"uuid"}}},"warehouses":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"Code":{"type":["string","null"]},"Name":{"type":["string","null"]}}},"stock-positions":{"type":"object","additionalProperties":false,"properties":{"IngredientId":{"type":["string","null"],"format":"uuid"},"WarehouseId":{"type":["string","null"],"format":"uuid"},"Quantity":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"}}},"stock-movements":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"IngredientId":{"type":["string","null"],"format":"uuid"},"WarehouseId":{"type":["string","null"],"format":"uuid"},"Type":{"type":["string","null"]},"Quantity":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"At":{"type":["string","null"],"format":"date-time"},"Ref":{"type":["string","null"]},"LedgerSequence":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"LedgerBalance":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"Unit":{"type":["string","null"]}}},"customers":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"Name":{"type":["string","null"]},"HasAccount":{"type":"boolean"},"AccountKind":{"type":["string","null"]},"CreatedAt":{"type":["string","null"],"format":"date-time"},"UpdatedAt":{"type":["string","null"],"format":"date-time"}}},"reservations":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"Status":{"type":["string","null"]},"Version":{"type":["integer","null"]},"CreatedAt":{"type":["string","null"],"format":"date-time"},"SeatedAt":{"type":["string","null"],"format":"date-time"},"OrderId":{"type":["string","null"],"format":"uuid"},"Name":{"type":["string","null"]},"StartsAt":{"type":["string","null"],"format":"date-time"},"People":{"type":["integer","null"]},"Table":{"type":["string","null"]},"Sector":{"type":["string","null"]}}},"invoices":{"type":"object","additionalProperties":false,"properties":{"Id":{"type":["string","null"],"format":"uuid"},"FiscalType":{"type":["string","null"]},"PointOfSale":{"type":["integer","null"]},"Number":{"type":["integer","null"]},"Subtotal":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"Vat":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"Total":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"Currency":{"type":["string","null"]},"IssuedAt":{"type":["string","null"],"format":"date-time"},"OrderId":{"type":["string","null"],"format":"uuid"},"Channel":{"type":["string","null"]},"GoodsTotal":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"},"TipAmount":{"type":["string","null"],"description":"Exact decimal or large integer represented as a string"}}}}},"x-supported-scopes":["products:read","pricing:read","tables:read","orders:read","inventory:read","customers:read","reservations:read","invoices:read","products:write","orders:write","inventory:write","reservations:write"],"x-release-status":{"reads":"implemented","writes":"implemented","sandbox":"implemented","webhooks":"implemented"},"x-webhooks":{"events":["order.created","order.sent","order.paid","stock.changed","reservation.changed"],"signature":"X-Mise-Signature: t=<Unix timestamp>,v1=<hex HMAC-SHA256(secret, timestamp + \".\" + raw body)>","delivery":"Event-driven after commit. At least once with explicit retries; deduplicate by event id. Failed receivers and timeouts are retained for review. No automatic recurring retry poll."}}