{"openapi":"3.0.3","info":{"title":"KhajaGo Partner API","version":"1.0.0","description":"Connect an external ERP/POS to manage a restaurant's products, orders and payments on KhajaGo. Authenticate with a per-restaurant API key (Bearer or x-api-key)."},"servers":[{"url":"https://api.khajago.com/api/public/v1"}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"},"BearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/me":{"get":{"summary":"Get the restaurant this key belongs to","responses":{"200":{"description":"OK"}}}},"/products":{"get":{"summary":"List products","parameters":[{"name":"limit","in":"query"},{"name":"page","in":"query"}],"responses":{"200":{"description":"OK"}}},"post":{"summary":"Create a product (scope: products:write)","responses":{"201":{"description":"Created"}}}},"/products/{id}":{"get":{"summary":"Get a product","responses":{"200":{"description":"OK"}}},"patch":{"summary":"Update a product (scope: products:write)","responses":{"200":{"description":"OK"}}}},"/orders":{"get":{"summary":"List orders","parameters":[{"name":"status","in":"query"},{"name":"from","in":"query"},{"name":"to","in":"query"}],"responses":{"200":{"description":"OK"}}}},"/orders/{id}":{"get":{"summary":"Get an order","responses":{"200":{"description":"OK"}}}},"/orders/{id}/status":{"patch":{"summary":"Update order status (scope: orders:write). One of accepted|preparing|ready|cancelled","responses":{"200":{"description":"OK"}}}},"/payments":{"get":{"summary":"List payments (scope: payments:read)","responses":{"200":{"description":"OK"}}}},"/analytics/summary":{"get":{"summary":"Revenue & order summary (scope: analytics:read)","responses":{"200":{"description":"OK"}}}}}}