{ "openapi": "3.0.3", "info": { "title": "API reference", "description": "swagger ui demo.", "version": "1.0", "x-jentic-source-url": "https://raw.githubusercontent.com/sophie-jentic/openapi-specs/refs/heads/import-jentic-pr-specs/kitchenhub.app/kitchenhub/1.0/openapi.json" }, "servers": [ { "url": "https://api.kitchenhub.app", "description": "KitchenHub API url" } ], "paths": { "/v2/auth/token/": { "post": { "tags": [ "Auth" ], "summary": "Create pair tokens", "description": "Creating access and refresh tokens for authentication", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ObtainTokenRequestSerializer" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ObtainTokenResponseSerializer" } } }, "links": {} }, "400": { "description": "Invalid client secret key", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Company access denied. Account is blocked", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Company not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/auth/token/refresh/": { "post": { "tags": [ "Auth" ], "summary": "Update access token", "description": "Updating access token for authentication", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshTokenRequestSerializer" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshTokenResponseSerializer" } } }, "links": {} }, "400": { "description": "Refresh token is invalid or expired", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Company access denied. Token is banned", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/auth/token/validate/": { "get": { "tags": [ "Auth" ], "summary": "Access token validate handler", "description": "Checking the correct operation of authorization", "parameters": [], "responses": { "200": { "description": "Token is valid", "content": {}, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/webhooks/": { "get": { "tags": [ "Webhooks" ], "summary": "Get webhooks", "description": "Get webhooks configuration", "parameters": [], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListClientWebhookConfig" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "post": { "tags": [ "Webhooks" ], "summary": "Create webhook", "description": "Create webhook. Where we will send notifications.", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateClientWebhookConfig" } } } }, "responses": { "201": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientWebhookConfigDTO" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/webhooks/{webhook_id}/": { "delete": { "tags": [ "Webhooks" ], "summary": "Delete webhook", "description": "Delete webhook configuration", "parameters": [ { "name": "webhook_id", "in": "path", "description": "Id of your webhook", "required": true, "schema": { "title": "webhook_id", "type": "string" } } ], "responses": { "204": { "description": "Success Response", "content": {}, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Partner webhook not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "patch": { "tags": [ "Webhooks" ], "summary": "Update webhook configuration", "description": "Update webhook configuration", "parameters": [ { "name": "webhook_id", "in": "path", "description": "Id of your webhook", "required": true, "schema": { "title": "webhook_id", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientWebhookPatchDTO" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientWebhookConfigDTO" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Partner webhook not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/locations/": { "get": { "tags": [ "Locations" ], "summary": "Get location list", "description": "", "parameters": [], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LocationListResponseSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "post": { "tags": [ "Locations" ], "summary": "Create location", "description": "", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LocationCreateRequestSerializer" } } } }, "responses": { "201": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LocationCreateResponseSerializer" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/locations/{location_id}/": { "get": { "tags": [ "Locations" ], "summary": "Get location by id", "description": "", "parameters": [ { "name": "location_id", "in": "path", "required": true, "schema": { "title": "location_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LocationRetrieveResponseSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "delete": { "tags": [ "Locations" ], "summary": "Delete location", "description": "", "parameters": [ { "name": "location_id", "in": "path", "required": true, "schema": { "title": "location_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "patch": { "tags": [ "Locations" ], "summary": "Update location", "description": "", "parameters": [ { "name": "location_id", "in": "path", "required": true, "schema": { "title": "location_id", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LocationUpdateSerializer" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LocationRetrieveResponseSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/stores/": { "get": { "tags": [ "Stores" ], "summary": "Get list of stores", "description": "", "parameters": [ { "name": "partner_store_id", "in": "query", "required": false, "schema": { "title": "partner_store_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StoreListResponseSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "post": { "tags": [ "Stores" ], "summary": "Create store", "description": "", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StoreCreateRequestSerializer" } } } }, "responses": { "201": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StoreCreateResponseSerializer" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Location not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/stores/{store_id}/": { "get": { "tags": [ "Stores" ], "summary": "Get store by id", "description": "", "parameters": [ { "name": "store_id", "in": "path", "required": true, "schema": { "title": "store_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StoreRetrieveResponseSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Store not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "delete": { "tags": [ "Stores" ], "summary": "Delete store", "description": "", "parameters": [ { "name": "store_id", "in": "path", "required": true, "schema": { "title": "store_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": {}, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Store not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "patch": { "tags": [ "Stores" ], "summary": "Update store", "description": "", "parameters": [ { "name": "store_id", "in": "path", "required": true, "schema": { "title": "store_id", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StoreUpdateRequestSerializer" } } } }, "responses": { "200": { "description": "Success Response", "content": {}, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Store not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/providers/": { "get": { "tags": [ "Providers info" ], "summary": "Get information about all integration", "description": "", "parameters": [], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListProviderGeneralInfoSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/integration_accounts/": { "get": { "tags": [ "Integration Accounts" ], "summary": "Get all your integration accounts", "description": "", "parameters": [ { "name": "store_id", "in": "query", "required": false, "schema": { "title": "store_id", "type": "string" } }, { "name": "is_connected", "in": "query", "required": false, "schema": { "title": "is_connected", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetProviderAccountListResponseSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "post": { "tags": [ "Integration Accounts" ], "summary": "Create integration accounts", "description": "", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateProviderAccountRequestBaseSerializer" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateProviderAccountResponseBaseSerializer" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden. Location is archived", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Store not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/integration_accounts/{integration_id}/": { "get": { "tags": [ "Integration Accounts" ], "summary": "Get your integration account", "description": "", "parameters": [ { "name": "integration_id", "in": "path", "required": true, "schema": { "title": "integration_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetProviderAccountRetrieveResponseSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Provider account not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "delete": { "tags": [ "Integration Accounts" ], "summary": "Delete your integration account", "description": "", "parameters": [ { "name": "integration_id", "in": "path", "required": true, "schema": { "title": "integration_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": {}, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Provider account not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/integration_accounts/{integration_id}/status/": { "get": { "tags": [ "Integration Accounts" ], "summary": "Get integration online status\n ", "description": " integration online status\n ", "parameters": [ { "name": "integration_id", "in": "path", "required": true, "schema": { "title": "integration_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StoreOnlineStatusResponseSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Account access denied", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Provider account not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "put": { "tags": [ "Integration Accounts" ], "summary": "Update integration online status\n ", "description": "ate integration online status\n ", "parameters": [ { "name": "integration_id", "in": "path", "required": true, "schema": { "title": "integration_id", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateStoreOnlineStatusRequestSerializer" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StoreOnlineStatusResponseSerializer" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Account access denied/Location is archived", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Provider account not found", "content": { "application/json": {} }, "links": {} }, "409": { "description": "Conflict", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/integration_accounts/{integration_id}/working_hours/": { "get": { "tags": [ "Integration Working Hours" ], "summary": "Get integration account working hours", "description": "", "parameters": [ { "name": "integration_id", "in": "path", "required": true, "schema": { "title": "integration_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkingHoursDataDTO" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Account access denied", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Provider account not found", "content": { "application/json": {} }, "links": {} }, "409": { "description": "Conflict", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "put": { "tags": [ "Integration Working Hours" ], "summary": "Create integration account working hours", "description": "", "parameters": [ { "name": "integration_id", "in": "path", "required": true, "schema": { "title": "integration_id", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkingHoursDataDTO" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkingHoursDataDTO" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Account access denied/Location is archived", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Provider account not found", "content": { "application/json": {} }, "links": {} }, "409": { "description": "Conflict", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/integration_accounts/{integration_id}/closing_days/": { "get": { "tags": [ "Integration Closing Days" ], "summary": "Get integration account closing days", "description": "", "parameters": [ { "name": "integration_id", "in": "path", "required": true, "schema": { "title": "integration_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClosingDaysDTO" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Account access denied", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Provider account not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "put": { "tags": [ "Integration Closing Days" ], "summary": "Create integration account closing days", "description": "", "parameters": [ { "name": "integration_id", "in": "path", "required": true, "schema": { "title": "integration_id", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClosingDaysDTO" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClosingDaysDTO" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Account access denied/Location is archived", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Provider account not found", "content": { "application/json": {} }, "links": {} }, "409": { "description": "Conflict", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/orders/": { "get": { "tags": [ "Orders" ], "summary": "Get orders", "description": "Retrieve list of orders", "parameters": [ { "name": "store_id", "in": "query", "description": "Get orders by store or multiple stores.\n For multiple stores repeate store_id (example: store_id=value1&store_id=value)", "required": false, "schema": { "title": "store_id", "type": "string" } }, { "name": "location_id", "in": "query", "description": "Get orders from all stores of a location or multiple locations.\n For multiple locations repeate location_id (example: location_id=value1&location_id=value)", "required": false, "schema": { "title": "location_id", "type": "string" } }, { "name": "partner_store_id", "in": "query", "description": "Get orders by ID of the store from your system (partner_store_id),\n or multiple partner_store_id", "required": false, "schema": { "title": "partner_store_id", "type": "string" } }, { "name": "partner_location_id", "in": "query", "description": "Get orders by ID of the location from your system (partner_location_id),\n or multiple partner_location_id", "required": false, "schema": { "title": "partner_location_id", "type": "string" } }, { "name": "date_from", "in": "query", "description": "Date from (format '2022-03-30T16:12:33', UTC)", "required": false, "schema": { "title": "date_from", "type": "string" } }, { "name": "date_to", "in": "query", "description": "Date to (format '2022-03-30T16:12:33', UTC)", "required": false, "schema": { "title": "date_to", "type": "string" } }, { "name": "order_status", "in": "query", "description": "Order status (filter by status of order can be 'new', 'accepted', 'canceled', 'completed')", "required": false, "schema": { "title": "order_status", "type": "string" } }, { "name": "page", "in": "query", "description": "Page - required for pagination (1 by default)", "required": false, "schema": { "title": "page", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResponseListOrdersSerializer" } } }, "links": {} }, "400": { "description": "wrong query parameters", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "store_id, location_id, partner_store_id\n or partner_location_id dont belongs to your company", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/orders/{order_id}/": { "get": { "tags": [ "Orders" ], "summary": "Get Order by Id", "description": "Get order by kh id", "parameters": [ { "name": "order_id", "in": "path", "description": "Id of order", "required": true, "schema": { "title": "order_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ms_api__core_models__OrderModel" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Order not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/orders/{order_id}/status/": { "put": { "tags": [ "Orders" ], "summary": "Change order status", "description": "Change order status (accept, cancel, complete)", "parameters": [ { "name": "order_id", "in": "path", "description": "", "required": true, "schema": { "title": "order_id", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderStatusSerializer" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ms_api__core_models__OrderModel" } } }, "links": {} }, "400": { "description": "body validation error", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Not main account", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Order not found", "content": { "application/json": {} }, "links": {} }, "409": { "description": "Order status conflict", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/orders/{order_id}/delivery/": { "post": { "tags": [ "Orders" ], "summary": "Create delivery for order", "description": "Create delivery for order", "parameters": [ { "name": "order_id", "in": "path", "description": "Id of order", "required": true, "schema": { "title": "order_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": {}, "links": {} }, "400": { "description": "Order not accepted", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Order not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/mock/order/": { "post": { "tags": [ "Orders" ], "summary": "Create mock order", "description": "Create mock order", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MockOrderRequestSerializer" } } } }, "responses": { "201": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ms_api__core_models__OrderModel" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/mock/deliveries/": { "post": { "tags": [ "Deliveries" ], "summary": "Create a mock delivery (mock only)", "description": "|\n Mock-only endpoint for integration testing and development.\n Simulates creating a delivery request — mimics a real provider flow\n where KitchenHub initiates a delivery with a provider.\n\n Supports two modes:\n - **Custom delivery**: provide `delivery_data` with full delivery details.\n - **Template delivery**: provide `store_id`, `order_id` and `delivery_provider_id`\n — KitchenHub will generate the delivery from a template.\n\n The `delivery_order_id` from the response is used to simulate\n status updates via `PUT /v2/mock/deliveries/{delivery_order_id}/status/`.\n ", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MockDeliveryRequestSerializer" } } } }, "responses": { "201": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateDeliveryResponseSerializer" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Order not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/mock/deliveries/{delivery_order_id}/status/": { "put": { "tags": [ "Deliveries" ], "summary": "Simulate a delivery status update (mock only)", "description": "|\n Mock-only endpoint for integration testing and development.\n Simulates a status update from a delivery provider — mimics a real provider flow.\n\n Use `delivery_order_id` from the response of `POST /v2/mock/deliveries/` —\n this is the same ID the delivery provider uses to reference the delivery\n when sending status updates.\n ", "parameters": [ { "name": "delivery_order_id", "in": "path", "required": true, "schema": { "title": "delivery_order_id", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MockDeliveryUpdateRequestSerializer" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/shared_library__serializers__delivery__DeliveryResponseSerializer" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Delivery not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/stores/{store_id}/menu/": { "get": { "tags": [ "Menu" ], "summary": "Get menu", "description": "Retrive store's menu from Kitchenhub.\n This menu is \"source of truth\", which will be uploaded to all Store's connected Integrations", "parameters": [ { "name": "store_id", "in": "path", "description": "ID of Kitchenhub store or Store ID on kitchenhub's side", "required": true, "schema": { "title": "store_id", "type": "string" } }, { "name": "draft_menu", "in": "query", "description": "If true, returns draft menu", "required": false, "schema": { "title": "draft_menu", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MenuSchema" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Menu not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "put": { "tags": [ "Menu" ], "summary": "Update Menu for Store", "description": "Update menu by sending new version of it.\n Menu will be updated for each Provider Integration connected to Store", "parameters": [ { "name": "store_id", "in": "path", "description": "ID of Kitchenhub store or Store ID on kitchenhub's side", "required": true, "schema": { "title": "store_id", "type": "string" } }, { "name": "draft_menu", "in": "query", "description": "If true, saves menu as a draft without uploading to providers and without image processing", "required": false, "schema": { "title": "draft_menu", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateMenuSchema" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MenuSchema" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden. Location is archived", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Menu not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "patch": { "tags": [ "Menu" ], "summary": "Patch Menu for Store", "description": "Partial menu update by sending a part of it.\n Menu will be patched and updated for each Provider Integration connected to Store", "parameters": [ { "name": "store_id", "in": "path", "description": "ID of Kitchenhub store or Store ID on kitchenhub's side", "required": true, "schema": { "title": "store_id", "type": "string" } }, { "name": "draft_menu", "in": "query", "description": "If true, saves menu as a draft without uploading to providers and without image processing", "required": false, "schema": { "title": "draft_menu", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateMenuSchema" } } } }, "responses": { "200": { "description": "Success Response", "content": {}, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden. Location is archived", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Menu not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/stores/{store_id}/menu/integration-status/": { "get": { "tags": [ "Menu" ], "summary": " Get menu upload status description", "description": "Get menu upload statuses for all connected Integration's.\n Menu upload can take 5-30 second, dependent on Integration", "parameters": [ { "name": "store_id", "in": "path", "description": "ID of Kitchenhub store or Store ID on kitchenhub's side", "required": true, "schema": { "title": "store_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListIntegrationStatus" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/stores/{store_id}/menu/pull": { "get": { "tags": [ "Menu" ], "summary": "Pull provider menu", "description": "Retrieve menus from provider", "parameters": [ { "name": "store_id", "in": "path", "description": "KitchenHub id of store", "required": true, "schema": { "title": "store_id", "type": "string" } }, { "name": "provider_id", "in": "query", "description": "Provider id", "required": false, "schema": { "title": "provider_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NormalizedMenu" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden. Location is archived", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Menu not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/stores/{store_id}/catalog/": { "get": { "tags": [ "Menu" ], "summary": "Pull catalog from connected POS", "description": "Retrieve catalog from connected POS", "parameters": [ { "name": "store_id", "in": "path", "description": "KitchenHub id of store", "required": true, "schema": { "title": "store_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MenuFromPOS" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden. Location is archived", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/deliveries/": { "get": { "tags": [ "Deliveries" ], "summary": "Get all deliveries", "description": "Retrieve list of deliveries", "parameters": [ { "name": "store_id", "in": "query", "description": "", "required": false, "schema": { "title": "store_id", "type": "string" } }, { "name": "partner_store_id", "in": "query", "description": "", "required": false, "schema": { "title": "partner_store_id", "type": "string" } }, { "name": "date_from", "in": "query", "description": "", "required": false, "schema": { "title": "date_from", "type": "string" } }, { "name": "date_to", "in": "query", "description": "", "required": false, "schema": { "title": "date_to", "type": "string" } }, { "name": "status", "in": "query", "description": "", "required": false, "schema": { "title": "status", "type": "string" } }, { "name": "order_id", "in": "query", "description": "Filter by a specific order ID (can be anything)", "required": false, "schema": { "title": "order_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeliveriesResponseSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "post": { "tags": [ "Deliveries" ], "summary": "Create delivery", "description": "Create delivery", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateApiDeliveryRequestSerializer" } } } }, "responses": { "201": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateDeliveryResponseSerializer" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden. Location is archived", "content": { "application/json": {} }, "links": {} }, "409": { "description": "Conflict", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/deliveries/{delivery_id}/": { "get": { "tags": [ "Deliveries" ], "summary": "Get delivery by Id", "description": "Get delivery by Id.\n\n Use `delivery_id` from the `id` field in the response of `POST /v2/deliveries/` —\n this is the KitchenHub internal id for the delivery.\n ", "parameters": [ { "name": "delivery_id", "in": "path", "description": "KitchenHub delivery id (id field from POST /v2/deliveries/ response)", "required": true, "schema": { "title": "delivery_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ms_api__dtos__delivery__DeliveryResponseSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Delivery not found", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/deliveries/{delivery_id}/status/": { "put": { "tags": [ "Deliveries" ], "summary": "Change delivery status", "description": "Change status of created delivery.\n\n Use `delivery_id` from the `id` field in the response of `POST /v2/deliveries/` —\n this is the KitchenHub internal id for the delivery.\n ", "parameters": [ { "name": "delivery_id", "in": "path", "description": "KitchenHub delivery id (id field from POST /v2/deliveries/ response)", "required": true, "schema": { "title": "delivery_id", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StatusDeliverySerializer" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ms_api__dtos__delivery__DeliveryResponseSerializer" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Delivery not found", "content": { "application/json": {} }, "links": {} }, "409": { "description": "Delivery status conflict", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/quotes/": { "get": { "tags": [ "Deliveries" ], "summary": "Get all quotes", "description": "Retrieve list of quotes", "parameters": [ { "name": "store_id", "in": "query", "description": "", "required": false, "schema": { "title": "store_id", "type": "string" } }, { "name": "order_id", "in": "query", "description": "Filter by a specific order ID (can be anything)", "required": false, "schema": { "title": "order_id", "type": "string" } }, { "name": "partner_store_id", "in": "query", "description": "", "required": false, "schema": { "title": "partner_store_id", "type": "string" } } ], "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QuotesResponseSerializer" } } }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" }, "post": { "tags": [ "Deliveries" ], "summary": "Create delivery quote.", "description": "Create delivery quote. Create delivery quote method now allowed only for doordash drive deliveries", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateApiDeliveryRequestSerializer" } } } }, "responses": { "201": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateQuoteResponseSerializer" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "409": { "description": "Conflict", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } }, "/v2/quotes/{order_id}/accept/": { "post": { "tags": [ "Deliveries" ], "summary": "Accept quote delivery", "description": "Accept quote delivery. Accept quote delivery method allowed only for doordash drive deliveries", "parameters": [ { "name": "order_id", "in": "path", "description": "Id of delivery order", "required": true, "schema": { "title": "order_id", "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AcceptDeliveryRequestSerializer" } } } }, "responses": { "200": { "description": "Success Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ms_api__dtos__delivery__DeliveryResponseSerializer" } } }, "links": {} }, "400": { "description": "Bad request", "content": { "application/json": {} }, "links": {} }, "401": { "description": "Unauthorized", "content": { "application/json": {} }, "links": {} }, "403": { "description": "Forbidden", "content": { "application/json": {} }, "links": {} }, "404": { "description": "Quote not found", "content": { "application/json": {} }, "links": {} }, "409": { "description": "Delivery already exists", "content": { "application/json": {} }, "links": {} }, "422": { "description": "Validation error", "content": { "application/json": {} }, "links": {} }, "424": { "description": "Error on provider side. Please try again later", "content": { "application/json": {} }, "links": {} }, "500": { "description": "Technical error. Please contact support to resolve this issue", "content": { "application/json": {} }, "links": {} }, "501": { "description": "Provider is not supported or not implemented yet", "content": { "application/json": {} }, "links": {} } }, "deprecated": false, "security": [ { "apiKeyAuth": [] } ], "x-jentic-source-url": "https://www.trykitchenhub.com/developer" } } }, "components": { "schemas": { "IntegrationStatus": { "title": "IntegrationStatus", "type": "object", "properties": { "provider_id": { "title": "Provider Id", "type": "string" }, "restaurant_id": { "title": "Restaurant Id", "type": "string" }, "status": { "title": "Status", "type": "string" }, "failed_reason": { "title": "Failed Reason", "anyOf": [ { "type": "string" }, { "type": "object" } ] }, "updated_at": { "title": "Updated At", "type": "string", "format": "date-time" }, "created_at": { "title": "Created At", "type": "string", "format": "date-time" } }, "required": [ "provider_id", "restaurant_id", "status" ] }, "ListIntegrationStatus": { "title": "ListIntegrationStatus", "type": "array", "items": { "$ref": "#/components/schemas/IntegrationStatus" } }, "LocationCreateRequestSerializer": { "title": "LocationCreateRequestSerializer", "type": "object", "properties": { "location_name": { "title": "Location Name", "description": "Location Name. The minimum length: 3 characters", "type": "string" }, "location_street": { "title": "Location Street", "description": "Location Street", "type": "string" }, "location_city": { "title": "Location City", "description": "Location City", "type": "string" }, "location_state": { "title": "Location State", "description": "Location State", "type": "string" }, "location_zipcode": { "title": "Location Zipcode", "description": "Location Zipcode", "type": "string" }, "location_country": { "title": "Location Country", "description": "Location Country alpha-2 code", "default": "US", "type": "string" }, "pickup_notes": { "title": "Pickup Notes", "description": "Pickup Notes", "maxLength": 1000, "type": "string" }, "location_timezone": { "title": "Location Timezone", "description": "Example: America/New_York, US/Eastern. Default value: America/New_York.For more examples, follow this link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones", "type": "string" }, "partner_location_id": { "title": "Partner Location Id", "description": "Partner Location Id", "type": "string" }, "restaurant_delivery_time": { "title": "Restaurant delivery time", "description": "Restaurant self-delivery time in minutes. Default value: 30", "default": 30, "type": "integer" } }, "required": [ "location_name", "location_street", "location_city", "location_state", "location_zipcode" ] }, "StoreCreateRequestSerializer": { "title": "StoreCreateRequestSerializer", "type": "object", "properties": { "location_id": { "title": "Location Id", "description": "ID of location where store is created", "type": "string" }, "store_name": { "title": "Store Name", "description": "Human-readable store name. No more 256 characters, minimum length: 3 characters", "type": "string" }, "partner_store_id": { "title": "Partner Store Id", "description": "You can pass store ID in your system", "type": "string" }, "auto_accept_enabled": { "title": "Auto Accept Enabled", "description": "Auto accept orders. Default value: False", "default": false, "type": "boolean" }, "auto_complete_enabled": { "title": "Auto Complete Enabled", "description": "Auto complete orders. Default value: True", "default": true, "type": "boolean" }, "auto_accept_cooking_time": { "title": "Auto Accept Cooking Time", "description": "Auto accept orders cooking Time in minutes. Default value: 20", "default": 20, "type": "integer" }, "restaurant_delivery_time": { "title": "Restaurant delivery time", "description": "Restaurant self-delivery time in minutes. Default value: 30", "default": 30, "type": "integer" } }, "required": [ "location_id", "store_name" ] }, "ClosingDaysDTO": { "title": "ClosingDaysDTO", "type": "object", "properties": { "days": { "title": "Days", "description": "Days when the service is closed. If day not specified, service will be closed for all days.List of days should be always fresh. Closing days which are not in the list but are in account will be removed.", "type": "array", "items": { "type": "string", "format": "date" } } }, "required": [ "days" ] }, "ms_api__dtos__delivery__PickupInfo": { "title": "PickupInfo", "type": "object", "properties": { "restaurant_name": { "title": "Restaurant Name", "description": "The name of the restaurant where the order will be picked up.", "type": "string" }, "restaurant_address": { "title": "Restaurant Address", "description": "The complete address of the restaurant for pickup location.", "type": "string" }, "pickup_datetime": { "title": "Pickup Date and Time", "description": "The scheduled date and time for picking up the order from the restaurant.", "type": "string", "format": "date-time" }, "pickup_notes": { "title": "Pickup Notes", "description": "Any special instructions or notes related to the pickup.", "type": "string" }, "pickup_time_estimated": { "title": "Estimated Pickup Time", "description": "The estimated time when the order will be ready for pickup.", "type": "string", "format": "date-time" } }, "required": [ "restaurant_name", "restaurant_address" ] }, "ms_api__dtos__delivery__CustomerInfoSerializer": { "title": "CustomerInfoSerializer", "type": "object", "properties": { "first_name": { "title": "First Name", "description": "The customer's first name.", "type": "string" }, "last_name": { "title": "Last Name", "description": "The customer's last name.", "type": "string" }, "phone_number": { "title": "Phone Number", "description": "The customer's contact phone number.", "type": "string" }, "email": { "title": "Email", "description": "The customer's email address.", "type": "string" } }, "required": [ "first_name", "last_name" ] }, "ms_api__dtos__delivery__DropOffInfo": { "title": "DropOffInfo", "type": "object", "properties": { "drop_off_address": { "title": "Drop Off Address", "description": "The address where the order will be delivered.", "type": "string" }, "drop_off_datetime": { "title": "Drop Off Date and Time", "description": "The scheduled date and time for the drop-off at the delivery location.", "type": "string", "format": "date-time" }, "drop_off_notes": { "title": "Drop Off Notes", "description": "Any special instructions or notes related to the drop-off.", "type": "string" }, "dropoff_time_estimated": { "title": "Estimated Drop Off Time", "description": "The estimated time when the order will be delivered.", "type": "string", "format": "date-time" } }, "required": [ "drop_off_address" ] }, "ms_api__dtos__delivery__ChargesSerializer": { "title": "ChargesSerializer", "type": "object", "properties": { "total": { "title": "Total", "description": "The total amount to be paid.", "type": "number" }, "delivery_fee": { "title": "Delivery Fee", "description": "The fee for the delivery service.", "type": "number" }, "delivery_tips": { "title": "Delivery Tips", "description": "The tips given to the delivery person.", "type": "number" }, "subtotal": { "title": "Subtotal", "description": "The subtotal amount.", "type": "number" } }, "required": [ "total" ] }, "DeliveryStatus": { "title": "DeliveryStatus", "description": "An enumeration.", "enum": [ "new", "placed", "enroute", "arrived", "delivered", "cancelled" ], "type": "string" }, "DeliveryServiceEnum": { "title": "DeliveryServiceEnum", "description": "An enumeration.", "enum": [ "delivery_logic", "delivery_logic_marketplace", "doordash_drive", "cartwheel" ], "type": "string" }, "CourierInfoSerializer": { "title": "CourierInfoSerializer", "type": "object", "properties": { "id": { "title": "Courier ID", "description": "The unique identifier for the courier assigned to this delivery.", "anyOf": [ { "type": "integer" }, { "type": "string" } ] }, "name": { "title": "Courier Name", "description": "The name of the courier.", "type": "string" }, "phone_number": { "title": "Courier Phone Number", "description": "The contact phone number of the courier.", "type": "string" }, "phone_code": { "title": "Courier Phone Code", "description": "The international dialing code for the courier's phone number.", "type": "string" }, "photo_url": { "title": "Courier Photo URL", "description": "A URL to the courier's photo.", "type": "string" }, "vehicle_type": { "title": "Courier Vehicle Type", "description": "The type of vehicle used by the courier for the delivery.", "type": "string" } } }, "DeliveryItemDTO": { "title": "DeliveryItemDTO", "type": "object", "properties": { "name": { "title": "Name", "description": "The name of the item.", "type": "string" }, "quantity": { "title": "Quantity", "description": "The quantity of the item.", "type": "integer" }, "price": { "title": "Price", "description": "The price of the item.", "type": "number" }, "is_alcohol": { "title": "Is alcohol", "description": "Flag indicates that item contain alcohol", "default": false, "type": "boolean" } }, "required": [ "name", "quantity", "price" ] }, "ms_api__dtos__delivery__DeliveryResponseSerializer": { "title": "DeliveryResponseSerializer", "description": "Scheme used for fetch full delivery object", "type": "object", "properties": { "id": { "title": "Delivery ID", "description": "A unique identifier for the delivery.", "type": "integer" }, "order_id": { "title": "Order ID", "description": "A unique identifier for the order.", "type": "string" }, "store_id": { "title": "Store ID", "description": "A unique identifier for the store where the order is being processed.", "type": "string" }, "scheduled_order": { "title": "Scheduled Order", "description": "Indicates whether the order is scheduled for a future time or is immediate.", "type": "boolean" }, "delivery_order_id": { "title": "Delivery Order ID", "description": "A unique identifier for the delivery order.", "type": "string" }, "cancellation_reason": { "title": "Cancellation Reason", "description": "The reason for cancellation if the delivery is canceled.", "type": "string" }, "pickup_info": { "title": "Pickup Info", "description": "Detailed information about the pickup location and time.", "allOf": [ { "$ref": "#/components/schemas/ms_api__dtos__delivery__PickupInfo" } ] }, "customer_info": { "title": "Customer Info", "description": "Detailed information about the customer placing the order.", "allOf": [ { "$ref": "#/components/schemas/ms_api__dtos__delivery__CustomerInfoSerializer" } ] }, "drop_off_info": { "title": "Drop Off Info", "description": "Detailed information about the drop-off location and time.", "allOf": [ { "$ref": "#/components/schemas/ms_api__dtos__delivery__DropOffInfo" } ] }, "charges": { "title": "Charges", "description": "Detailed breakdown of charges for the delivery service.", "allOf": [ { "$ref": "#/components/schemas/ms_api__dtos__delivery__ChargesSerializer" } ] }, "status": { "title": "Status", "description": "The current status of the delivery order.", "allOf": [ { "$ref": "#/components/schemas/DeliveryStatus" } ] }, "created_at": { "title": "Created At", "description": "The timestamp when the delivery order was created.", "type": "string", "format": "date-time" }, "delivery_service": { "title": "Delivery Service", "description": "The service handling the delivery.", "allOf": [ { "$ref": "#/components/schemas/DeliveryServiceEnum" } ] }, "courier_info": { "title": "Courier Info", "description": "Detailed information about the courier assigned to the delivery.", "allOf": [ { "$ref": "#/components/schemas/CourierInfoSerializer" } ] }, "delivery_at": { "title": "Delivery At", "description": "The timestamp when the delivery was completed.", "type": "string", "format": "date-time" }, "canceled_at": { "title": "Canceled At", "description": "The timestamp when the delivery was canceled.", "type": "string", "format": "date-time" }, "accepted_at": { "title": "Accepted At", "description": "The timestamp when the delivery was accepted.", "type": "string", "format": "date-time" }, "is_mock_delivery": { "title": "Is Mock Delivery", "description": "flag indicating real or fake delivery created", "default": false, "type": "boolean" }, "tracking_url": { "title": "Tracking URL", "description": "The URL for tracking the delivery", "type": "string" }, "items": { "title": "Items", "description": "Detailed information about the items being delivered.", "type": "array", "items": { "$ref": "#/components/schemas/DeliveryItemDTO" } } }, "required": [ "id", "order_id", "store_id", "pickup_info", "customer_info", "drop_off_info", "charges", "status", "created_at", "delivery_service", "items" ] }, "DeliveriesResponseSerializer": { "title": "DeliveriesResponseSerializer", "type": "object", "properties": { "deliveries": { "title": "Deliveries", "description": "A list of deliveries containing detailed information about each delivery.", "type": "array", "items": { "$ref": "#/components/schemas/ms_api__dtos__delivery__DeliveryResponseSerializer" } } }, "required": [ "deliveries" ] }, "OrderStatusSerializer": { "title": "OrderStatusSerializer", "type": "object", "properties": { "status": { "title": "Status", "description": "status of the order ('accept', 'cancel', 'complete')", "type": "string" }, "prep_time": { "title": "Preparation time", "description": "Cooking time, required for accept status", "type": "integer" } }, "required": [ "status" ] }, "CreateDeliveryResponseSerializer": { "title": "CreateDeliveryResponseSerializer", "description": "Scheme used for created api response", "type": "object", "properties": { "id": { "title": "ID", "description": "Unique identifier for the delivery order or delivery quote.", "type": "integer" }, "status": { "title": "Status", "description": "The current status of the delivery order.", "allOf": [ { "$ref": "#/components/schemas/DeliveryStatus" } ] }, "delivery_order_id": { "title": "Delivery Order ID", "description": "A unique identifier for the delivery order.", "type": "string" }, "delivery_fee": { "title": "Delivery Fee", "description": "The fee charged for the delivery service.", "type": "string" } }, "required": [ "id", "status", "delivery_order_id" ] }, "ObtainTokenResponseSerializer": { "title": "ObtainTokenResponseSerializer", "type": "object", "properties": { "access_token": { "title": "Access Token", "description": "Access token", "type": "string" }, "refresh_token": { "title": "Refresh Token", "description": "Refresh token", "type": "string" }, "access_token_expire": { "title": "Access Token Expire", "description": "Access token expire time in minutes", "type": "integer" }, "refresh_token_expire": { "title": "Refresh Token Expire", "description": "Refresh token expire time in minutes", "type": "integer" } }, "required": [ "access_token", "refresh_token", "access_token_expire", "refresh_token_expire" ] }, "CapabilitySchema": { "title": "CapabilitySchema", "type": "object", "properties": { "is_supported": { "title": "Is Supported", "description": "Is capability supported for provider", "type": "boolean" }, "description": { "title": "Description", "description": "Description of capability", "type": "string" } }, "required": [ "is_supported" ] }, "PriceSupportSchema": { "title": "PriceSupportSchema", "type": "object", "properties": { "price": { "title": "Price", "description": "Supports price including discounts, delivery, etc.", "default": true, "type": "boolean" }, "original_price": { "title": "Original Price", "description": "Supports original price. Used for pickup.", "type": "boolean" } }, "required": [ "original_price" ] }, "MenuCapabilities": { "title": "MenuCapabilities", "type": "object", "properties": { "pull_menu": { "title": "Pull Menu", "description": "Pull menu capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] }, "update_menu": { "title": "Update Menu", "description": "Push menu capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] }, "update_menu_elements_status": { "title": "Update Menu Elements Status", "description": "Update menu elements status capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] }, "required_for_connection": { "title": "Required For Connection", "description": "Is required for connection for provider", "type": "boolean" }, "price_customization": { "title": "Price Customization", "description": "Price customization capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/PriceSupportSchema" } ] } }, "required": [ "pull_menu", "update_menu", "update_menu_elements_status", "required_for_connection", "price_customization" ] }, "OrderCapabilities": { "title": "OrderCapabilities", "type": "object", "properties": { "accept_order": { "title": "Accept Order", "description": "Accept order capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] }, "cancel_order": { "title": "Cancel Order", "description": "Cancel order capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] }, "complete_order": { "title": "Complete Order", "description": "Complete order capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] } }, "required": [ "accept_order", "cancel_order", "complete_order" ] }, "ServiceType": { "title": "ServiceType", "description": "An enumeration.", "enum": [ "DELIVERY", "PICKUP" ], "type": "string" }, "WorkingHoursCapabilities": { "title": "WorkingHoursCapabilities", "type": "object", "properties": { "get_working_hours": { "title": "Get Working Hours", "description": "Get working hours capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] }, "update_working_hours": { "title": "Update Working Hours", "description": "Update working hours capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] }, "supported_overrides": { "description": "Supported overrides for provider. Can be `DELIVERY`, `PICKUP`", "type": "array", "items": { "$ref": "#/components/schemas/ServiceType" } } }, "required": [ "get_working_hours", "update_working_hours", "supported_overrides" ] }, "OnlineStatusCapabilities": { "title": "OnlineStatusCapabilities", "type": "object", "properties": { "get_online_status": { "title": "Get Online Status", "description": "Get online status capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] }, "update_online_status": { "title": "Update Online Status", "description": "Update online status capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] } }, "required": [ "get_online_status", "update_online_status" ] }, "ClosingDaysCapabilities": { "title": "ClosingDaysCapabilities", "type": "object", "properties": { "get_closing_days": { "title": "Get Closing Days", "description": "Get closing days capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] }, "update_closing_days": { "title": "Update Closing Days", "description": "Update closing days capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] } }, "required": [ "get_closing_days", "update_closing_days" ] }, "ProviderCapabilities": { "title": "ProviderCapabilities", "type": "object", "properties": { "menu": { "title": "Menu", "description": "Menu capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/MenuCapabilities" } ] }, "order": { "title": "Order", "description": "Order capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/OrderCapabilities" } ] }, "working_hours": { "title": "Working Hours", "description": "Working hours capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/WorkingHoursCapabilities" } ] }, "online_status": { "title": "Online Status", "description": "Online status capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/OnlineStatusCapabilities" } ] }, "closing_days": { "title": "Closing Days", "description": "Closing days capabilities for provider", "allOf": [ { "$ref": "#/components/schemas/ClosingDaysCapabilities" } ] } }, "required": [ "menu", "order", "working_hours", "online_status", "closing_days" ] }, "CatalogCapabilities": { "title": "CatalogCapabilities", "type": "object", "properties": { "mapping_catalog": { "title": "Mapping Catalog", "description": "Catalog mapping capabilities for pos", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] }, "pull_catalog": { "title": "Pull Catalog", "description": "Get catalog capabilities for pos", "allOf": [ { "$ref": "#/components/schemas/CapabilitySchema" } ] }, "allow_full_menu_update": { "title": "Allow Full Menu Update", "description": "Can full menu be updated in providers if pos connected.", "type": "boolean" } }, "required": [ "mapping_catalog", "pull_catalog", "allow_full_menu_update" ] }, "PosCapabilities": { "title": "PosCapabilities", "type": "object", "properties": { "catalog": { "title": "Catalog", "description": "Catalog capabilities for pos", "allOf": [ { "$ref": "#/components/schemas/CatalogCapabilities" } ] } }, "required": [ "catalog" ] }, "ProviderGeneralInfoSerializer": { "title": "ProviderGeneralInfoSerializer", "description": "Pydantic serializer for retrieve provider general info", "type": "object", "properties": { "provider_name": { "title": "Provider Name", "description": "Provider Name", "type": "string" }, "provider_id": { "title": "Provider Id", "description": "Provider Id", "type": "string" }, "provider_capabilities": { "title": "Provider Capabilities", "description": "Capabilities for provider type providers", "allOf": [ { "$ref": "#/components/schemas/ProviderCapabilities" } ] }, "pos_capabilities": { "title": "Pos Capabilities", "description": "Capabilities for pos type providers", "allOf": [ { "$ref": "#/components/schemas/PosCapabilities" } ] }, "delivery_capabilities": { "title": "Delivery Capabilities", "description": "Capabilities for delivery type providers", "type": "object" } }, "required": [ "provider_name", "provider_id" ] }, "ListProviderGeneralInfoSerializer": { "title": "ListProviderGeneralInfoSerializer", "type": "array", "items": { "$ref": "#/components/schemas/ProviderGeneralInfoSerializer" } }, "MenuInfoFromPOS": { "title": "MenuInfoFromPOS", "type": "object", "properties": { "name": { "title": "Name", "description": "Name of the menu.", "type": "string" }, "description": { "title": "Description", "description": "Description of the menu.", "type": "string" }, "media_url": { "title": "Media Url", "description": "URL for media related to the menu.", "type": "string" }, "note": { "title": "Note", "description": "Note related to the menu.", "type": "string" }, "pos_id": { "title": "Pos Id", "description": "ID in the POS system", "type": "string" }, "pos_categories": { "title": "Pos Categories", "description": "List of categories from the pos.", "type": "array", "items": { "type": "string" } } } }, "CategoryFromPOS": { "title": "CategoryFromPOS", "type": "object", "properties": { "title": { "title": "Title", "description": "Title of the category.", "type": "string" }, "description": { "title": "Description", "description": "Description of the category.", "type": "string" }, "is_deactivated": { "title": "Is Deactivated", "description": "Indicates if the category is deactivated.", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Deactivation Start Date", "description": "Start date of the deactivation period.", "type": "string" }, "deactivation_end_date": { "title": "Deactivation End Date", "description": "End date of the deactivation period.", "type": "string" }, "media_url": { "title": "Media Url", "description": "URL for media related to the category.", "type": "string" }, "pos_id": { "title": "Pos Id", "description": "ID in the POS system", "type": "string" }, "pos_items": { "title": "Pos Items", "description": "List of items provided by the pos.", "type": "array", "items": { "type": "string" } }, "pos_availability": { "title": "Pos Availability", "description": "Availability status from the pos.", "type": "string" } } }, "TaxCategory": { "title": "TaxCategory", "description": "An enumeration.", "enum": [ "ALCOHOL", "NO_TAX", "SUGARED_DRINK", "BAKED_GOODS", "NON_FOOD", "GST_ONLY", "PST_ONLY", "PREPARED_FOOD" ], "type": "string" }, "shared_library__kh_core_models__menu__menu_base__CustomPriceSchema": { "title": "CustomPriceSchema", "description": "Customization price information for providers. Can be extended by new fields.\n\nFree items allowed. Applicable for item options.", "type": "object", "properties": { "price": { "title": "Price", "description": "The cost of the item including discounts, delivery etc. Required Field. Should be positive num. 0 is allowed", "minimum": 0, "type": "number" }, "original_price": { "title": "Original item price", "description": "The cost of the item for pickup. This price does not include delivery charges. This field should be a positive number. Used only by doordash provider.", "minimum": 0, "type": "number" } }, "required": [ "price" ] }, "ItemFromPOS": { "title": "ItemFromPOS", "type": "object", "properties": { "name": { "title": "Name", "description": "Name of the item.", "type": "string" }, "is_deactivated": { "title": "Is Deactivated", "description": "Indicates if the item is deactivated.", "default": false, "type": "boolean" }, "description": { "title": "Description", "description": "Description of the item.", "type": "string" }, "internal_notes": { "title": "Internal Notes", "description": "Internal notes related to the item.", "type": "string" }, "deactivation_start_date": { "title": "Deactivation Start Date", "description": "Start date of the deactivation period.", "type": "string" }, "deactivation_end_date": { "title": "Deactivation End Date", "description": "End date of the deactivation period.", "type": "string" }, "tax_rate": { "title": "Tax Rate", "description": "Tax rate applicable to the item. 5 chars after comma", "type": "number" }, "tax_category": { "description": "Tax category that an item belongs to (only for Canada)", "allOf": [ { "$ref": "#/components/schemas/TaxCategory" } ] }, "media_url": { "title": "Media Url", "description": "URL for media related to the item.", "type": "string" }, "price": { "title": "Price", "description": "Current price of the item.", "minimum": 0, "type": "number" }, "original_price": { "title": "Original Price", "description": "Original price (pickup price) - without delivery.", "minimum": 0, "type": "number" }, "min_amount": { "title": "Min Amount", "description": "Minimum amount that can be ordered.", "default": 1, "type": "integer" }, "max_amount": { "title": "Max Amount", "description": "Maximum amount that can be ordered.", "default": 3, "type": "integer" }, "prices_customization": { "title": "Prices Customization", "description": "Mapping provider ID to custom prices for this provider.", "type": "object", "additionalProperties": { "$ref": "#/components/schemas/shared_library__kh_core_models__menu__menu_base__CustomPriceSchema" } }, "is_alcohol": { "title": "Is Alcohol", "description": "Item contains alcohol", "default": false, "type": "boolean" }, "pos_id": { "title": "Pos Id", "description": "ID in the POS system", "type": "string" }, "partner_id": { "title": "Partner Id", "description": "Partner id of the item. In some poses can be dublicates. So we need to keep pos_id and create unique partner_id.", "type": "string" }, "pos_availability": { "title": "Pos Availability", "description": "Availability status from the pos.", "type": "string" }, "pos_modifiers": { "title": "Pos Modifiers", "description": "List of modifiers provided by the pos.", "type": "array", "items": { "type": "string" } } } }, "ModifierType": { "title": "ModifierType", "description": "An enumeration.", "enum": [ "variation", "size" ], "type": "string" }, "ModifierFromPOS": { "title": "ModifierFromPOS", "type": "object", "properties": { "name": { "title": "Name", "description": "Name of the modifier.", "type": "string" }, "type": { "description": "Type of the modifier. Size or variation.", "allOf": [ { "$ref": "#/components/schemas/ModifierType" } ] }, "min_options": { "title": "Min Options", "description": "Indicates the minimum number of unique options that must be selected when this modifier is selected", "default": 0, "type": "integer" }, "max_options": { "title": "Max Options", "description": "Indicates the maximum number of unique options that can be selected when this modifier is selected", "default": 3, "type": "integer" }, "free_options_quantity": { "title": "Free Options Quantity", "description": "Indicates how many options are free when this modifier is selected", "type": "integer" }, "min_options_quantity": { "title": "Min Options Quantity", "description": "Indicates the minimum number of options quantity that must be selected when this modifier is selected", "type": "integer" }, "max_options_quantity": { "title": "Max Options Quantity", "description": "Indicates the maximum number of options quantity that can be selected when this modifier is selected", "type": "integer" }, "default_options": { "title": "Default Options", "description": "Default options for the modifier.", "type": "array", "items": { "type": "string" } }, "is_required": { "title": "Is Required", "description": "Indicates if selecting this modifier is required.", "default": false, "type": "boolean" }, "pos_id": { "title": "Pos Id", "description": "ID in the POS system", "type": "string" }, "partner_id": { "title": "Partner Id", "description": "Partner id of the modifier. In some poses can be dublicates. So we need to keep pos_id and create unique partner_id.", "type": "string" }, "pos_options": { "title": "Pos Options", "description": "List of options provided by the pos.", "type": "array", "items": { "type": "string" } } } }, "OptionFromPOS": { "title": "OptionFromPOS", "type": "object", "properties": { "description": { "title": "Description", "description": "Description of the option.", "type": "string" }, "name": { "title": "Name", "description": "Name of the option.", "type": "string" }, "tax_rate": { "title": "Tax Rate", "description": "Tax rate applicable to the option. Can be 5 chars afte comma", "type": "number" }, "tax_category": { "description": "Tax category that an option belongs to (only for Canada)", "allOf": [ { "$ref": "#/components/schemas/TaxCategory" } ] }, "type": { "title": "Type", "description": "Type of the option.", "type": "string" }, "price": { "title": "Price", "description": "Price of the option.", "type": "number" }, "original_price": { "title": "Original Price", "description": "Original price ???.", "type": "number" }, "prices_customization": { "title": "Prices Customization", "description": "Mapping provider to custom prices for this option.", "type": "object", "additionalProperties": { "$ref": "#/components/schemas/shared_library__kh_core_models__menu__menu_base__CustomPriceSchema" } }, "is_deactivated": { "title": "Is Deactivated", "description": "Indicates if the option is deactivated.", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Deactivation Start Date", "description": "Start date of the deactivation period.", "type": "string" }, "deactivation_end_date": { "title": "Deactivation End Date", "description": "End date of the deactivation period.", "type": "string" }, "pos_id": { "title": "Pos Id", "description": "ID in the POS system", "type": "string" }, "partner_id": { "title": "Partner Id", "description": "Partner id of the option. In some poses can be dublicates. So we need to keep pos_id and create unique partner_id.", "type": "string" }, "pos_modifiers": { "title": "Pos Modifiers", "description": "Modifiers related to this option from the partner.", "type": "array", "items": { "type": "string" } } } }, "shared_library__kh_core_models__enums__DaysOfWeek": { "title": "DaysOfWeek", "description": "An enumeration.", "enum": [ "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY" ], "type": "string" }, "shared_library__kh_core_models__menu__menu_base__Rule": { "title": "Rule", "type": "object", "properties": { "days_of_week": { "description": "Days of the week when the rule is applicable.", "type": "array", "items": { "$ref": "#/components/schemas/shared_library__kh_core_models__enums__DaysOfWeek" } }, "start_time": { "title": "Start Time", "description": "Start time for the rule.", "type": "string" }, "end_time": { "title": "End Time", "description": "End time for the rule.", "type": "string" } }, "required": [ "days_of_week", "start_time", "end_time" ] }, "AvailabilityFromPOS": { "title": "AvailabilityFromPOS", "type": "object", "properties": { "rules": { "title": "Rules", "description": "Availability rules for the item.", "type": "array", "items": { "$ref": "#/components/schemas/shared_library__kh_core_models__menu__menu_base__Rule" } }, "pos_id": { "title": "Pos Id", "description": "Identifier for the availability from the pos.", "type": "string" } } }, "MenuFromPOS": { "title": "MenuFromPOS", "description": "Use this model to parse pos menu and put to ms-menu", "type": "object", "properties": { "menu": { "$ref": "#/components/schemas/MenuInfoFromPOS" }, "categories": { "title": "Categories", "description": "List of categories from the pos.", "type": "array", "items": { "$ref": "#/components/schemas/CategoryFromPOS" } }, "items": { "title": "Items", "description": "List of items from the pos.", "type": "array", "items": { "$ref": "#/components/schemas/ItemFromPOS" } }, "modifiers": { "title": "Modifiers", "description": "List of modifiers from the pos.", "type": "array", "items": { "$ref": "#/components/schemas/ModifierFromPOS" } }, "options": { "title": "Options", "description": "List of options from the pos.", "type": "array", "items": { "$ref": "#/components/schemas/OptionFromPOS" } }, "availabilities": { "title": "Availabilities", "description": "List of availabilities from the pos.", "type": "array", "items": { "$ref": "#/components/schemas/AvailabilityFromPOS" } } }, "required": [ "menu" ] }, "PickUpInfoRequestSerializer": { "title": "PickUpInfoRequestSerializer", "type": "object", "properties": { "pickup_datetime": { "title": "Pickup Date and Time", "description": "The scheduled date and time for picking up the order from the restaurant.", "type": "string", "format": "date-time" } } }, "ms_api__dtos__delivery__DropOffInfoRequestSerializer": { "title": "DropOffInfoRequestSerializer", "type": "object", "properties": { "drop_off_address": { "title": "Drop Off Address", "description": "The address where the order will be delivered.", "type": "string" }, "drop_off_datetime": { "title": "Drop Off Date and Time", "description": "The scheduled date and time for the drop-off at the delivery location.", "type": "string", "format": "date-time" }, "drop_off_notes": { "title": "Drop Off Notes", "description": "Any special instructions or notes related to the drop-off.", "type": "string" } }, "required": [ "drop_off_address" ] }, "CreateApiDeliveryRequestSerializer": { "title": "CreateApiDeliveryRequestSerializer", "description": "Scheme used for delivery from ms-api and ms-gateway", "type": "object", "properties": { "order_id": { "title": "Order ID", "description": "A unique identifier for the order.", "type": "string" }, "pickup_info": { "title": "Pickup Info", "description": "Detailed information about the pickup location and time.", "allOf": [ { "$ref": "#/components/schemas/PickUpInfoRequestSerializer" } ] }, "store_id": { "title": "Store ID", "description": "A unique identifier for the store where the order is being placed.", "type": "string" }, "scheduled_order": { "title": "Scheduled Order", "description": "Indicates whether the order is scheduled for a future time or is immediate.", "type": "boolean" }, "customer_info": { "title": "Customer Info", "description": "Detailed information about the customer placing the order.", "allOf": [ { "$ref": "#/components/schemas/ms_api__dtos__delivery__CustomerInfoSerializer" } ] }, "drop_off_info": { "title": "Drop Off Info", "description": "Detailed information about the drop-off location and time.", "allOf": [ { "$ref": "#/components/schemas/ms_api__dtos__delivery__DropOffInfoRequestSerializer" } ] }, "charges": { "title": "Charges", "description": "Detailed breakdown of charges for the delivery service.", "allOf": [ { "$ref": "#/components/schemas/ms_api__dtos__delivery__ChargesSerializer" } ] }, "items": { "title": "Items", "description": "Detailed information about the items being delivered.", "default": [], "type": "array", "items": { "$ref": "#/components/schemas/DeliveryItemDTO" } } }, "required": [ "order_id", "pickup_info", "store_id", "scheduled_order", "customer_info", "drop_off_info", "charges" ] }, "MockDeliveryUpdateRequestSerializer": { "title": "MockDeliveryUpdateRequestSerializer", "type": "object", "properties": { "courier_info": { "title": "Courier Info", "description": "Information about the courier", "allOf": [ { "$ref": "#/components/schemas/CourierInfoSerializer" } ] }, "status": { "title": "Status", "description": "Current status of the delivery", "allOf": [ { "$ref": "#/components/schemas/DeliveryStatus" } ] }, "cancellation_reason": { "title": "Cancellation Reason", "description": "Reason for cancelling the delivery", "type": "string" }, "pickup_time_estimated": { "title": "Pickup Time Estimated", "description": "Estimated time for pickup", "type": "string", "format": "date-time" }, "dropoff_time_estimated": { "title": "Dropoff Time Estimated", "description": "Estimated time for dropoff", "type": "string", "format": "date-time" }, "delivery_provider_id": { "title": "Delivery Provider ID", "description": "Identifier for the delivery provider", "type": "string" } }, "required": [ "status", "delivery_provider_id" ] }, "ms_api__dtos__mock__Order": { "title": "Order", "type": "object", "properties": { "id": { "title": "Id", "description": "Do not fill order id. It will be automatically generated", "type": "integer" }, "external_id": { "title": "External Id", "type": "string" }, "number": { "title": "Number", "type": "string" }, "daily_number": { "title": "Daily Number", "type": "integer" }, "type": { "title": "Type", "type": "string" }, "status": { "title": "Status", "type": "string" }, "notes": { "title": "Notes", "type": "string" }, "paid": { "title": "Paid", "type": "boolean" }, "asap": { "title": "Asap", "type": "boolean" }, "add_disposable_items": { "title": "Add Disposable Items", "type": "boolean" }, "prep_time_minutes": { "title": "Prep Time Minutes", "type": "integer" }, "data": { "title": "Data", "default": {}, "type": "object" }, "cancelled_by": { "title": "Cancelled By", "type": "string" } }, "required": [ "external_id", "number", "daily_number", "type", "status", "paid", "asap" ] }, "ms_api__dtos__mock__Provider": { "title": "Provider", "type": "object", "properties": { "id": { "title": "Id", "type": "string" }, "name": { "title": "Name", "type": "string" }, "merchant_id": { "title": "Merchant Id", "type": "string" }, "store_id": { "title": "Store Id", "type": "string" } }, "required": [ "id" ] }, "ms_api__dtos__mock__Store": { "title": "Store", "type": "object", "properties": { "id": { "title": "Id", "type": "string" }, "name": { "title": "Name", "type": "string" }, "partner_store_id": { "title": "Partner Store Id", "type": "string" } }, "required": [ "id", "name" ] }, "ms_api__dtos__mock__Customer": { "title": "Customer", "type": "object", "properties": { "name": { "title": "Name", "type": "string" }, "email": { "title": "Email", "type": "string" }, "phone_number": { "title": "Phone Number", "type": "string" }, "phone_code": { "title": "Phone Code", "type": "string" } }, "required": [ "name" ] }, "ms_api__dtos__mock__Option": { "title": "Option", "description": "Part of Item model", "type": "object", "properties": { "id": { "title": "Id", "type": "string" }, "name": { "title": "Name", "type": "string" }, "quantity": { "title": "Quantity", "type": "integer" }, "price": { "title": "Price", "type": "string" }, "base_price": { "title": "Base Price", "type": "string" }, "original_price": { "title": "Original Price", "type": "string" }, "modifier_name": { "title": "Modifier Name", "type": "string" }, "options": { "title": "Options", "default": [], "type": "array", "items": { "$ref": "#/components/schemas/ms_api__dtos__mock__Option" } } }, "required": [ "name", "quantity", "price" ] }, "ms_api__dtos__mock__Item": { "title": "Item", "type": "object", "properties": { "id": { "title": "Id", "type": "string" }, "name": { "title": "Name", "type": "string" }, "quantity": { "title": "Quantity", "type": "integer" }, "price": { "title": "Price", "type": "string" }, "base_price": { "title": "Base Price", "type": "string" }, "original_price": { "title": "Original Price", "type": "string" }, "prep_instructions": { "title": "Prep Instructions", "type": "string" }, "instructions": { "title": "Instructions", "type": "string" }, "options": { "title": "Options", "type": "array", "items": { "$ref": "#/components/schemas/ms_api__dtos__mock__Option" } }, "is_alcohol": { "title": "Is Alcohol", "default": false, "type": "boolean" } }, "required": [ "name", "quantity", "price", "options" ] }, "ms_api__dtos__mock__Address": { "title": "Address", "description": "Part of Delivery model", "type": "object", "properties": { "country": { "title": "Country", "type": "string" }, "street": { "title": "Street", "type": "string" }, "city": { "title": "City", "type": "string" }, "state": { "title": "State", "type": "string" }, "zipcode": { "title": "Zipcode", "type": "string" }, "unit_number": { "title": "Unit Number", "type": "string" }, "latitude": { "title": "Latitude", "type": "number" }, "longitude": { "title": "Longitude", "type": "number" } } }, "ms_api__dtos__mock__Courier": { "title": "Courier", "description": "Part of Delivery model", "type": "object", "properties": { "name": { "title": "Name", "type": "string" }, "photo_url": { "title": "Photo Url", "type": "string" }, "phone_number": { "title": "Phone Number", "type": "string" }, "status": { "title": "Status", "type": "string" } } }, "ms_api__dtos__mock__Delivery": { "title": "Delivery", "type": "object", "properties": { "type": { "title": "Type", "type": "string" }, "address": { "$ref": "#/components/schemas/ms_api__dtos__mock__Address" }, "courier": { "$ref": "#/components/schemas/ms_api__dtos__mock__Courier" }, "status": { "title": "Status", "type": "string" }, "notes": { "title": "Notes", "type": "string" } }, "required": [ "type", "address", "courier" ] }, "ms_api__dtos__mock__Payment": { "title": "Payment", "type": "object", "properties": { "method": { "title": "Method", "type": "string" } } }, "ms_api__dtos__mock__Charges": { "title": "Charges", "type": "object", "properties": { "subtotal": { "title": "Subtotal", "type": "string" }, "tax": { "title": "Tax", "type": "string" }, "tax_payout": { "title": "Tax Payout", "type": "string" }, "restaurant_tip_amount": { "title": "Restaurant Tip Amount", "type": "string" }, "adjustment": { "title": "Adjustment", "type": "string" }, "tips": { "title": "Tips", "type": "string" }, "discount": { "title": "Discount", "type": "string" }, "total": { "title": "Total", "type": "string" }, "delivery_fee": { "title": "Delivery Fee", "type": "string" }, "service_fee": { "title": "Service Fee", "type": "string" }, "processing_fee": { "title": "Processing Fee", "type": "string" }, "commission": { "title": "Commission", "type": "string" }, "payout": { "title": "Payout", "type": "string" }, "other_fee": { "title": "Other Fee", "type": "object" } }, "required": [ "subtotal", "tax", "total" ] }, "ms_api__dtos__mock__Timestamps": { "title": "Timestamps", "description": "Represents a collection of timestamps associated with a food delivery order_model.", "type": "object", "properties": { "placed_at": { "title": "Placed At", "type": "string" }, "created_at": { "title": "Created At", "type": "string" }, "pickup_at": { "title": "Pickup At", "type": "string" }, "accepted_at": { "title": "Accepted At", "type": "string" }, "cancelled_at": { "title": "Cancelled At", "type": "string" }, "completed_at": { "title": "Completed At", "type": "string" }, "delivery_at": { "title": "Delivery At", "type": "string" }, "scheduled_for": { "title": "Scheduled For", "type": "string" }, "updated_at": { "title": "Updated At", "type": "string" } }, "required": [ "placed_at", "created_at" ] }, "MockOrderRequestSerializer": { "title": "MockOrderRequestSerializer", "type": "object", "properties": { "order_data": { "title": "Order Data", "description": "Required field if you want to create your own order", "allOf": [ { "$ref": "#/components/schemas/OrderData" } ] }, "store_id": { "title": "Store Id", "description": "Required field if you want to use the order template", "type": "string" }, "provider_id": { "title": "Provider Id", "description": "Required field if you want to use the order template", "type": "string" }, "order_type": { "title": "Order Type", "description": "Required field if you want to use the order template", "type": "string" } } }, "UpdateStoreOnlineStatusRequestSerializer": { "title": "UpdateStoreOnlineStatusRequestSerializer", "type": "object", "properties": { "online": { "title": "Online", "description": "integration status. Optional field.", "type": "boolean" }, "pause_duration": { "title": "Pause Duration", "description": "Pause duration seconds. Optional field", "type": "integer" } }, "required": [ "online" ] }, "IntegrationConnectionStatus": { "title": "IntegrationConnectionStatus", "description": "An enumeration.", "enum": [ "connected", "in_progress", "waiting", "disabled", "rejected", "waiting_menu" ] }, "IntegrationAccountType": { "title": "IntegrationAccountType", "description": "An enumeration.", "enum": [ "provider", "pos", "delivery" ] }, "GetProviderAccountRetrieveResponseSerializer": { "title": "GetProviderAccountRetrieveResponseSerializer", "type": "object", "properties": { "store_id": { "title": "Store Id", "description": "Store Id from KitchenHub system", "type": "string" }, "provider_id": { "title": "Provider Id", "description": "Provider Id", "type": "string" }, "connection": { "title": "Connection", "description": "Integration Account connection status. Example: connected, in_progress, kh_authorization, provider_authorization", "allOf": [ { "$ref": "#/components/schemas/IntegrationConnectionStatus" } ] }, "created_at": { "title": "Created At", "description": "Date of creating account", "type": "string" }, "integration_account_id": { "title": "Integration Account Id", "description": "Integration Account Id", "type": "string" }, "is_main_account": { "title": "Is Main Account", "description": "Indicate that this account integration has a privilege to change order status and update menu.", "type": "boolean" }, "updated_at": { "title": "Updated At", "description": "Date of last updating account", "type": "string" }, "integration_store_id": { "title": "Integration Store Id", "description": "Store ID in provider system", "type": "string" }, "account_type": { "title": "Integration Account type", "description": "Integration account type. Example: provider, pos, delivery, etc", "allOf": [ { "$ref": "#/components/schemas/IntegrationAccountType" } ] } }, "required": [ "store_id", "provider_id", "connection", "created_at", "integration_account_id", "account_type" ] }, "SubscriptionV2Status": { "title": "Location Status", "description": "Location Status. Patching this property may result in changing online/offline status of all the connected providers of all the stores of the location. It also limits the provider and menu management access and it affects the order processing.", "enum": [ "active", "archived" ], "type": "string" }, "LocationUpdateSerializer": { "title": "LocationUpdateSerializer", "type": "object", "properties": { "location_timezone": { "title": "Location Timezone", "description": "Example: America/New_York, US/Eastern", "type": "string" }, "location_name": { "title": "Location Name", "description": "Location Name. The minimum length: 3 characters", "type": "string" }, "location_street": { "title": "Location Street", "description": "Location Street", "type": "string" }, "location_city": { "title": "Location City", "description": "Location City", "type": "string" }, "location_state": { "title": "Location State", "description": "Location State", "type": "string" }, "location_zip": { "title": "Location Zipcode", "description": "Location Zipcode", "type": "string" }, "location_lat": { "title": "Location Lat", "description": "Location Latitude", "type": "number" }, "location_lon": { "title": "Location Lon", "description": "Location Longitude", "type": "number" }, "location_country": { "title": "Location Country", "description": "Location Country", "type": "string" }, "pickup_notes": { "title": "Pickup Notes", "description": "Pickup Notes", "maxLength": 1000, "type": "string" }, "auto_accept_enabled": { "title": "Auto Accept Enabled", "description": "Is Auto Accept Enabled", "type": "boolean" }, "auto_accept_cooking_time": { "title": "Auto Accept Cooking Time", "description": "Time of auto accepting cooking time", "type": "integer" }, "auto_complete_enabled": { "title": "Auto Complete Enabled", "description": "Is Auto Complete Enabled", "type": "boolean" }, "location_delivery_time": { "title": "Location delivery Time", "description": "Restaurant self-delivery time in minutes. Default value: 30", "type": "integer" }, "partner_location_id": { "title": "Partner Location Id", "description": "Partner Location Id", "type": "string" }, "auto_accept_delivery_enabled": { "title": "Auto Accept Delivery Enabled", "description": "Auto Accept Delivery Enabled", "type": "boolean" }, "location_status": { "title": "Location Status", "description": "Location Status. Patching this property may result in changing online/offline status of all the connected providers of all the stores of the location. It also limits the provider and menu management access and it affects the order processing.", "allOf": [ { "$ref": "#/components/schemas/SubscriptionV2Status" } ] } } }, "QuoteResponseSerializer": { "title": "QuoteResponseSerializer", "type": "object", "properties": { "id": { "title": "Delivery ID", "description": "A unique identifier for the quote.", "type": "integer" }, "order_id": { "title": "Order ID", "description": "A unique identifier for the order.", "type": "string" }, "store_id": { "title": "Store ID", "description": "A unique identifier for the store where the order is being processed.", "type": "string" }, "delivery_service": { "title": "Delivery Service", "description": "The service handling the delivery.", "allOf": [ { "$ref": "#/components/schemas/DeliveryServiceEnum" } ] }, "scheduled_order": { "title": "Scheduled Order", "description": "Indicates whether the order is scheduled for a future time or is immediate.", "type": "boolean" }, "pickup_info": { "title": "Pickup Info", "description": "Detailed information about the pickup location and time.", "allOf": [ { "$ref": "#/components/schemas/ms_api__dtos__delivery__PickupInfo" } ] }, "customer_info": { "title": "Customer Info", "description": "Detailed information about the customer placing the order.", "allOf": [ { "$ref": "#/components/schemas/ms_api__dtos__delivery__CustomerInfoSerializer" } ] }, "drop_off_info": { "title": "Drop Off Info", "description": "Detailed information about the drop-off location and time.", "allOf": [ { "$ref": "#/components/schemas/ms_api__dtos__delivery__DropOffInfo" } ] }, "charges": { "title": "Charges", "description": "Detailed breakdown of charges for the delivery service.", "allOf": [ { "$ref": "#/components/schemas/ms_api__dtos__delivery__ChargesSerializer" } ] }, "delivery_order_id": { "title": "Delivery Order ID", "description": "A unique identifier for the delivery order.", "type": "string" }, "created_at": { "title": "Created At", "description": "The timestamp when the delivery order was created.", "type": "string", "format": "date-time" }, "is_mock_delivery": { "title": "Is Mock Delivery", "description": "flag indicating real or fake delivery created", "default": false, "type": "boolean" }, "items": { "title": "Items", "description": "Detailed information about the items being delivered.", "default": [], "type": "array", "items": { "$ref": "#/components/schemas/DeliveryItemDTO" } } }, "required": [ "id", "order_id", "store_id", "delivery_service", "pickup_info", "customer_info", "drop_off_info", "charges", "created_at" ] }, "QuotesResponseSerializer": { "title": "QuotesResponseSerializer", "type": "object", "properties": { "quotes": { "title": "Quotes", "description": "A list of quotes containing detailed information about each quote.", "type": "array", "items": { "$ref": "#/components/schemas/QuoteResponseSerializer" } } }, "required": [ "quotes" ] }, "LocationCreateResponseSerializer": { "title": "LocationCreateResponseSerializer", "type": "object", "properties": { "id": { "title": "Location Id", "description": "Location Id", "type": "string" }, "partner_location_id": { "title": "Partner Location Id", "description": "Partner Location Id", "type": "string" }, "location_name": { "title": "Name", "description": "Location Name", "type": "string" }, "location_street": { "title": "Street", "description": "Location Street", "type": "string" }, "location_city": { "title": "City", "description": "Location City", "type": "string" }, "location_state": { "title": "State", "description": "Location State", "type": "string" }, "location_zipcode": { "title": "Location Zipcode", "description": "Location Zipcode", "type": "string" }, "location_timezone": { "title": "Location Timezone", "description": "Example: America/New_York, US/Eastern. Default value: America/New_York.For more examples, follow this link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones", "type": "string" }, "location_country": { "title": "Location Country", "description": "Location Country", "type": "string" }, "pickup_notes": { "title": "Pickup Notes", "description": "Pickup Notes", "type": "string" }, "created_at": { "title": "Created At", "description": "Location Creation Date", "type": "string" }, "restaurant_delivery_time": { "title": "Restaurant delivery time", "description": "Restaurant self-delivery time in minutes. Default value: 30", "default": 30, "type": "integer" }, "location_status": { "title": "Location Status", "description": "Location Status", "type": "string" } }, "required": [ "id", "location_name", "location_street", "location_city", "location_state", "location_zipcode", "location_country", "created_at" ] }, "GetProviderAccountListResponseSerializer": { "title": "GetProviderAccountListResponseSerializer", "type": "array", "items": { "$ref": "#/components/schemas/GetProviderAccountRetrieveResponseSerializer" } }, "UpdateMenuInfoSchema": { "title": "UpdateMenuInfoSchema", "type": "object", "properties": { "partner_id": { "title": "Partner menu id", "description": "Id menu from the client", "type": "string" }, "name": { "title": "Name", "description": "The name of the menu to be displayed", "type": "string" }, "description": { "title": "Description", "description": "Menu description", "type": "string" }, "media_url": { "title": "Media url", "description": "\n The URL where the image file can be downloaded.\n The image you have selected will be transformed to fit provider requirements\n (we recommend to keep at least 1024 px each side). If provider expects specific aspect-ratio,\n white borders can be added to fit this requirement.\n ", "type": "string" }, "partner_categories": { "title": "Partner categories", "description": "\n List of partner categories ids, which belongs to this menu.\n Categories will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } } }, "required": [ "partner_id" ] }, "UpdateCategorySchema": { "title": "UpdateCategorySchema", "type": "object", "properties": { "pos_id": { "title": "POS category id", "description": "Category id from your POS system", "type": "string" }, "partner_id": { "title": "Partner category id", "description": "Partner category id. Filled in manually", "type": "string" }, "title": { "title": "Title", "description": "The displayed name for the category", "type": "string" }, "description": { "title": "Description", "description": "Category Description", "type": "string" }, "is_deactivated": { "title": "Is deactivated", "description": "Boolean field which show if category is deactivated. Client can also specify the time when category is deactivated", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Deactivation start date", "description": "Date since category is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "deactivation_end_date": { "title": "Deactivation end date", "description": "Date till category is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "media_url": { "title": "Media url", "description": "\n The URL where the image file can be downloaded.\n The image you have selected will be transformed to fit provider requirements\n (we recommend to keep at least 1024 px each side). If provider expects specific aspect-ratio,\n white borders can be added to fit this requirement.\n ", "type": "string" }, "partner_items": { "title": "Partner items", "description": "\n All of the partner IDs for the menu items that belongs to this category.\n Items will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } }, "partner_availability": { "title": "Partner availability", "description": "Partner ID of availability, which is connected with this category(opening hours of the restaurant)", "type": "string" } }, "required": [ "partner_id" ] }, "shared_library__kh_core_models__menu__menu_deprecated__CustomPriceSchema": { "title": "CustomPriceSchema", "description": "Customization price information for providers. Can be extended by new fields.\nFree items allowed. Applicable for item options.", "type": "object", "properties": { "price": { "title": "Price", "description": "The cost of the item including discounts, delivery etc. Required Field. Should be positive num. 0 is allowed", "minimum": 0, "type": "number" }, "original_price": { "title": "Original item price", "description": "The cost of the item for pickup. This price does not include delivery charges. This field should be a positive number. Used only by doordash provider.", "minimum": 0, "type": "number" } }, "required": [ "price" ] }, "UpdateItemSchema": { "title": "UpdateItemSchema", "type": "object", "properties": { "pos_id": { "title": "POS item id", "description": "Item id from your POS system", "type": "string" }, "partner_id": { "title": "Partner item id", "description": "Partner item id", "type": "string" }, "name": { "title": "Name", "description": "The display name of the menu item", "type": "string" }, "description": { "title": "Description", "description": "Item description", "type": "string" }, "internal_notes": { "title": "Internal notes", "description": "Additional information about item cooking", "type": "string" }, "is_deactivated": { "title": "Is deactivated", "description": "\n Boolean field which show if item is deactivated.\n Client can also specify the time when item is deactivated\n ", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Deactivation start date", "description": "Date since item is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "deactivation_end_date": { "title": "Deactivation end date", "description": "Date till item is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "media_url": { "title": "Media url", "description": "\n The URL where the image file can be downloaded.\n The image you have selected will be transformed to fit provider requirements\n (we recommend to keep at least 1024 px each side). If provider expects specific aspect-ratio,\n white borders can be added to fit this requirement.\n ", "type": "string" }, "price": { "title": "Price", "description": "The cost of this item. This field should be a positive number.", "default": 0, "minimum": 0, "type": "number" }, "original_price": { "title": "Original item price", "description": "The cost of the item for pickup. This price does not include delivery charges. This field should be a positive number.", "minimum": 0, "type": "number" }, "prices_customization": { "title": "Prices Customization", "description": "Custom price information for selected providers. Contains mapping of provider_id to prices. This field can be skipped, but cannot contain a null value.", "default": {}, "type": "object", "additionalProperties": { "$ref": "#/components/schemas/shared_library__kh_core_models__menu__menu_deprecated__CustomPriceSchema" } }, "min_amount": { "title": "Min amount", "description": "Default minimum quantity that can be ordered of this item. Default value - 1", "default": 1, "minimum": 1, "type": "integer" }, "max_amount": { "title": "Max amount", "description": "Default maximum quantity that can be ordered of this item. Default value - 3", "default": 3, "type": "integer" }, "partner_availability": { "title": "Partner availability", "description": "Partner ID of availability, which is connected with this item (opening hours of the restaurant)", "type": "string" }, "partner_modifiers": { "title": "Partner modifiers", "description": "\n All of the partner IDs for the menu modifiers that belongs to this item.\n Modifiers will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } }, "tax_rate": { "title": "Tax rate", "description": "\n Extra tax which may be added to some items on top of regular sales tax. Must be between 0 and 1.\n ", "type": "number" }, "tax_category": { "title": "Tax category", "description": "Tax category that an item belongs to (only for Canada). It's ignored if is_alcohol is True", "allOf": [ { "$ref": "#/components/schemas/TaxCategory" } ] }, "is_alcohol": { "title": "Is alcohol", "description": "Flag indicates that item contain alcohol", "default": false, "type": "boolean" } }, "required": [ "partner_id" ] }, "UpdateModifierSchema": { "title": "UpdateModifierSchema", "type": "object", "properties": { "pos_id": { "title": "POS modifier id", "description": "Modifier id from your POS system", "type": "string" }, "partner_id": { "title": "Partner modifier id", "description": "Partner modifier id. Filled in manually", "type": "string" }, "name": { "title": "Name", "description": "The displayed name for the modifier or size", "type": "string" }, "is_required": { "title": "Is required", "description": "A boolean field that indicates that the modifier is required or not ", "default": false, "type": "boolean" }, "min_options": { "title": "Min options", "description": "Min number of options which customer select.", "default": 0, "type": "integer" }, "max_options": { "title": "Max options", "description": "Max number of options which customer select.", "default": 3, "type": "integer" }, "default_options": { "title": "Default options", "description": "The options ids, if any, that are selected by default for this modifier", "default": [], "type": "array", "items": { "type": "string" } }, "partner_options": { "title": "Partner options", "description": "\n All of the partner IDs for the menu options that belongs to this modifier.\n Options will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } }, "type": { "title": "Modifier type", "description": "\n The type of modifier it can be size or variation.\n Min and max options will be ignored if modifier type is 'size'.\n ", "default": "variation", "type": "string" }, "free_options_quantity": { "title": "Free Options Quantity", "description": "Indicates how many options are free when this modifier is selected when this modifier is selected", "minimum": 0, "type": "integer" }, "min_options_quantity": { "title": "Min Options Quantity", "description": "Indicates the minimum number of options quantity that must be selected when this modifier is selected", "minimum": 0, "type": "integer" }, "max_options_quantity": { "title": "Max Options Quantity", "description": "Indicates the maximum number of options quantity that can be selected when this modifier is selected", "minimum": 0, "type": "integer" } }, "required": [ "partner_id" ] }, "UpdateOptionSchema": { "title": "UpdateOptionSchema", "type": "object", "properties": { "pos_id": { "title": "POS option id", "description": "Option id from your POS system", "type": "string" }, "partner_id": { "title": "Partner option id", "description": "Partner option id.", "type": "string" }, "name": { "title": "Name", "description": "The displayed name for the option or size", "type": "string" }, "price": { "title": "Price", "description": "The cost of this option", "default": 0, "minimum": 0, "type": "number" }, "original_price": { "title": "The cost of the item for pickup. This price does not include delivery charges. This field should be a positive number.", "minimum": 0, "type": "number" }, "prices_customization": { "title": "Prices Customization", "description": "Custom price information for selected providers. Contains mapping of provider_id to prices. This field can be skipped, but cannot contain a null value.", "default": {}, "type": "object", "additionalProperties": { "$ref": "#/components/schemas/shared_library__kh_core_models__menu__menu_deprecated__CustomPriceSchema" } }, "tax_rate": { "title": "Tax rate", "description": "\n Extra tax which may be added to some options on top of regular sales tax.. Must be between 0 and 1.\n ", "type": "number" }, "tax_category": { "title": "Tax category", "description": "Tax category that an option belongs to (only for Canada)", "allOf": [ { "$ref": "#/components/schemas/TaxCategory" } ] }, "description": { "title": "Description", "description": "Option description", "type": "string" }, "is_deactivated": { "title": "Is deactivated", "description": "Boolean field which show if option is deactivated. Client can also specify the time when option is deactivated", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Start date", "description": "Date since option is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "deactivation_end_date": { "title": "End date", "description": "Date till option is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "partner_modifiers": { "title": "Partner modifiers", "description": "\n Option's nested modifiers.\n Maximum nesting level = 3.\n ", "default": [], "type": "array", "items": { "type": "string" } } }, "required": [ "partner_id" ] }, "ms_api__enums__DaysOfWeek": { "title": "DaysOfWeek", "description": "An enumeration.", "enum": [ "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY" ] }, "ms_api__dtos__menu_v2__Rule": { "title": "Rule", "type": "object", "properties": { "days_of_week": { "title": "Days of week", "description": "List of days of the week (MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY)", "type": "array", "items": { "$ref": "#/components/schemas/ms_api__enums__DaysOfWeek" } }, "start_time": { "title": "Start time", "description": "Time after which item is available in 24-hour HH:MM:SS format in restaurant local timezone", "type": "string" }, "end_time": { "title": "End time", "description": "Time after which item is not available in 24-hour HH:MM:SS format in restaurant local timezone", "type": "string" } }, "required": [ "days_of_week", "start_time", "end_time" ] }, "UpdateAvailabilitySchema": { "title": "UpdateAvailabilitySchema", "type": "object", "properties": { "partner_id": { "title": "Partner availability id", "description": "Partner availability id. Filled in manually", "type": "string" }, "rules": { "title": "Rules", "type": "array", "items": { "$ref": "#/components/schemas/ms_api__dtos__menu_v2__Rule" } } }, "required": [ "partner_id", "rules" ] }, "UpdateMenuSchema": { "title": "UpdateMenuSchema", "type": "object", "properties": { "menu": { "title": "Menu Info", "allOf": [ { "$ref": "#/components/schemas/UpdateMenuInfoSchema" } ] }, "categories": { "title": "Categories", "type": "array", "items": { "$ref": "#/components/schemas/UpdateCategorySchema" } }, "items": { "title": "Items", "type": "array", "items": { "$ref": "#/components/schemas/UpdateItemSchema" } }, "modifiers": { "title": "Modifiers", "type": "array", "items": { "$ref": "#/components/schemas/UpdateModifierSchema" } }, "options": { "title": "Options", "type": "array", "items": { "$ref": "#/components/schemas/UpdateOptionSchema" } }, "availabilities": { "title": "Availabilities", "type": "array", "items": { "$ref": "#/components/schemas/UpdateAvailabilitySchema" } } } }, "CreateProviderAccountRequestBaseSerializer": { "title": "CreateProviderAccountRequestBaseSerializer", "description": "BaseModel for create account. First step of connecting provider", "type": "object", "properties": { "provider_id": { "title": "Provider Name", "description": "Example: ubereats, grubhub, etc.", "type": "string" }, "store_id": { "title": "Store Id", "description": "Store id from KitchenHub system", "type": "string" }, "redirect_url": { "title": "Redirect Url", "description": "Your redirect URL after going through all the steps of connecting the provider", "type": "string" } }, "required": [ "provider_id", "store_id", "redirect_url" ] }, "AcceptDeliveryRequestSerializer": { "title": "AcceptDeliveryRequestSerializer", "type": "object", "properties": { "tip": { "title": "Tip", "description": "The amount of tip provided for the delivery service.", "minimum": 0, "type": "number" }, "store_id": { "title": "Restaurant ID", "description": "A unique identifier for the restaurant where the order is being canceled.", "type": "string" } }, "required": [ "store_id" ] }, "LinkedRestaurantsBaseModel": { "title": "LinkedRestaurantsBaseModel", "type": "object", "properties": { "id": { "title": "Id", "description": "Store Id", "type": "string" }, "name": { "title": "Name", "description": "Store Name", "type": "string" }, "created_at": { "title": "Created At", "description": "Store Creation Date", "type": "string" } }, "required": [ "id", "name" ] }, "LocationRetrieveResponseSerializer": { "title": "LocationRetrieveResponseSerializer", "type": "object", "properties": { "id": { "title": "Id", "description": "Location Id", "type": "string" }, "partner_location_id": { "title": "Partner Location Id", "description": "Partner Location Id", "type": "string" }, "location_name": { "title": "Name", "description": "Location Name", "type": "string" }, "location_street": { "title": "Street", "description": "Location Street", "type": "string" }, "location_country": { "title": "Location Country", "description": "Location Country", "type": "string" }, "location_city": { "title": "City", "description": "Location City", "type": "string" }, "location_state": { "title": "State", "description": "Location State", "type": "string" }, "location_zipcode": { "title": "Zipcode", "description": "Location Zipcode", "type": "string" }, "lat": { "title": "Lat", "description": "Location Latitude", "type": "number" }, "lon": { "title": "Lon", "description": "Location Longitude", "type": "number" }, "created_at": { "title": "Created At", "description": "Location Creation Date", "type": "string" }, "location_timezone": { "title": "Location Timezone", "description": "Example: America/New_York, US/Eastern", "type": "string" }, "location_lat": { "title": "Location Lat", "description": "Location Latitude", "type": "number" }, "location_lon": { "title": "Location Lon", "description": "Location Longitude", "type": "number" }, "location_delivery_time": { "title": "Location delivery Time", "description": "Default Location delivery Time", "type": "integer" }, "restaurant_delivery_time": { "title": "Restaurant delivery time", "description": "Restaurant self-delivery time in minutes. Default value: 30", "default": 30, "type": "integer" }, "pickup_notes": { "title": "Pickup Notes", "description": "Pickup Notes", "type": "string" }, "location_status": { "title": "Location Status", "description": "Location Status", "type": "string" }, "auto_accept_cooking_time": { "title": "Cooking time", "description": "Auto accept cooking time", "type": "integer" }, "auto_accept_enabled": { "title": "Auto accept enabled", "description": "Auto accept enabled", "type": "boolean" }, "auto_complete_enabled": { "title": "Auto complete enabled", "description": "Auto accept enabled", "type": "boolean" }, "stores": { "title": "Stores", "description": "Linked Stores", "type": "array", "items": { "$ref": "#/components/schemas/LinkedRestaurantsBaseModel" } } }, "required": [ "id", "location_name", "auto_accept_cooking_time", "auto_accept_enabled", "auto_complete_enabled" ] }, "CreateProviderAccountResponseBaseSerializer": { "title": "CreateProviderAccountResponseBaseSerializer", "description": "Response for create account. From first step of connecting provider", "type": "object", "properties": { "integration_account_id": { "title": "Account Id", "description": "Provider account id in KitchenHub system", "type": "string" }, "url": { "title": "Url", "description": "Url for client(first step in connecting provider)", "type": "string" } }, "required": [ "integration_account_id", "url" ] }, "StoreCreateResponseSerializer": { "title": "StoreCreateResponseSerializer", "type": "object", "properties": { "id": { "title": "Id", "description": "Store Id in our system", "type": "string" }, "store_name": { "title": "Store Name", "description": "Store Name", "type": "string" }, "partner_store_id": { "title": "Partner Store Id", "description": "Store ID in your system", "type": "string" }, "location_id": { "title": "Location Id", "description": "ID of location where store is created", "type": "string" }, "created_at": { "title": "Created At", "description": "Store Creation Date", "type": "string" }, "auto_accept_enabled": { "title": "Auto Accept Enabled", "description": "Auto Accept Orders.", "type": "boolean" }, "auto_complete_enabled": { "title": "Auto Complete Enabled", "description": "Auto complete orders.", "type": "boolean" }, "auto_accept_cooking_time": { "title": "Auto Accept Cooking Time", "description": "Auto accept orders cooking time in minutes.", "type": "integer" }, "restaurant_delivery_time": { "title": "Restaurant delivery time", "description": "Restaurant self-delivery time in minutes. Default value: 30", "default": 30, "type": "integer" } }, "required": [ "id", "store_name" ] }, "ObtainTokenRequestSerializer": { "title": "ObtainTokenRequestSerializer", "type": "object", "properties": { "client_id": { "title": "Client Id", "description": "Client id from kitchenHub system", "type": "string" }, "client_secret": { "title": "Client Secret", "description": "Client secret from kitchenHub system", "type": "string" } }, "required": [ "client_id", "client_secret" ] }, "TimeSlotDTO": { "title": "TimeSlotDTO", "type": "object", "properties": { "start_time": { "title": "Start Time", "description": "Start time of the time slot. Can be in format HH:MM or HH:MM:SS", "type": "string" }, "end_time": { "title": "End Time", "description": "End time of the time slot. Can be in format HH:MM or HH:MM:SS", "type": "string" } }, "required": [ "start_time", "end_time" ] }, "WorkingHoursEntryDTO": { "title": "WorkingHoursEntryDTO", "type": "object", "properties": { "days": { "description": "Days of the week. U can specify multiple days by separating them with a comma.", "type": "array", "items": { "$ref": "#/components/schemas/shared_library__kh_core_models__enums__DaysOfWeek" } }, "time_slots": { "title": "Time Slots", "description": "Time slots", "type": "array", "items": { "$ref": "#/components/schemas/TimeSlotDTO" } } }, "required": [ "days", "time_slots" ] }, "WorkingHoursOverrideDTO": { "title": "WorkingHoursOverrideDTO", "type": "object", "properties": { "service_type": { "description": "Service type for which the working hours will be overrided", "allOf": [ { "$ref": "#/components/schemas/ServiceType" } ] }, "overrides": { "title": "Overrides", "description": "Working hours overrides for the service type", "type": "array", "items": { "$ref": "#/components/schemas/WorkingHoursEntryDTO" } } }, "required": [ "service_type", "overrides" ] }, "WorkingHoursDataDTO": { "title": "WorkingHoursDataDTO", "type": "object", "properties": { "working_hours": { "title": "Working Hours", "description": "Common working hours for all service types if provider support different working hours for different service types if provider support different service types", "type": "array", "items": { "$ref": "#/components/schemas/WorkingHoursEntryDTO" } }, "working_hours_overrides": { "title": "Working Hours Overrides", "description": "Working hours overrides for the service type. Used if provider support different service typesIf day specified, hours from common working hours will be overridden. If day not specified, hours from common working hours will be used.", "type": "array", "items": { "$ref": "#/components/schemas/WorkingHoursOverrideDTO" } } }, "required": [ "working_hours", "working_hours_overrides" ] }, "WebhookType": { "title": "Webhook type", "description": "Webhook type", "enum": [ "Order", "MenuIntegrationStatus", "IntegrationAccount", "IntegrationAccountOnlineStatus", "Delivery", "Cook" ], "type": "string" }, "ClientWebhookPatchDTO": { "title": "ClientWebhookPatchDTO", "type": "object", "properties": { "url": { "title": "Webhook url", "description": "Url in your system where we send orders or different notifications", "type": "string" }, "authorization_headers": { "title": "Authorization headers", "description": "Headers for authorization on your side which we will send with orders", "default": {}, "type": "object" }, "filters": { "title": "Filters", "description": "\n Necessary field, that can take such params as order_status, order_type, order_delivery_type\n Empty dict means that all filters will be suitable\n And list of supported values for example:\n \"order_status\": [\"new\", \"accepted\", \"completed\", \"cancelled\"]\n \"order_type\": [\"pickup\", \"delivery\", \"dinein\"]\n \"order_delivery_type\": [\"restaurant\"]\n ", "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, "webhook_type": { "title": "Webhook type", "description": "Type of webhook. Example: `Order`, `MenuIntegrationStatus`", "allOf": [ { "$ref": "#/components/schemas/WebhookType" } ] }, "version": { "title": "Webhook version", "description": "Payload which we are sending on your webhook depends on version.For Order events you can use `1` or `2`.For Other events you can use only `1`", "minimum": 1, "maximum": 2, "type": "integer" } }, "required": [ "filters", "version" ] }, "ClientWebhookConfigDTO": { "title": "ClientWebhookConfigDTO", "type": "object", "properties": { "url": { "title": "Webhook url", "description": "Url in your system where we send orders or different notifications", "type": "string" }, "version": { "title": "Webhook version", "description": "Payload which we are sending on your webhook depends on version.For Order events you can use `1` or `2`.For Other events you can use only `1`", "minimum": 1, "maximum": 2, "type": "integer" }, "webhook_type": { "title": "Webhook type", "description": "\n Type of webhook.\n Example: `Order`, `MenuIntegrationStatus`, `IntegrationAccount`, `Delivery`, `Cook`", "allOf": [ { "$ref": "#/components/schemas/WebhookType" } ] }, "filters": { "title": "Filters", "description": "\n Necessary field, that can take such params as order_status, order_type, order_delivery_type\n Empty dict means that all filters will be suitable\n And list of supported values for example:\n \"order_status\": [\"new\", \"accepted\", \"completed\", \"cancelled\"]\n \"order_type\": [\"pickup\", \"delivery\", \"dinein\"],\n \"order_delivery_type\": [\"restaurant\"],\n ", "default": {}, "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, "authorization_headers": { "title": "Authorization headers", "description": "Headers for authorization on your side which we will send with orders", "default": {}, "type": "object", "additionalProperties": { "type": "string" } }, "id": { "title": "Id", "description": "Webhook id", "type": "string" }, "created_at": { "title": "Created At", "description": "Date and time of webhook creation", "type": "string", "format": "date-time" }, "updated_at": { "title": "Updated At", "description": "Date and time of webhook update", "type": "string", "format": "date-time" } }, "required": [ "url", "version", "webhook_type", "id", "created_at" ] }, "ListClientWebhookConfig": { "title": "ListClientWebhookConfig", "type": "array", "items": { "$ref": "#/components/schemas/ClientWebhookConfigDTO" } }, "DeliveryUpdateStatus": { "title": "DeliveryUpdateStatus", "description": "An enumeration.", "enum": [ "cancelled" ], "type": "string" }, "StatusDeliverySerializer": { "title": "StatusDeliverySerializer", "type": "object", "properties": { "status": { "title": "Status", "description": "Change delivery status to (cancelled)", "allOf": [ { "$ref": "#/components/schemas/DeliveryUpdateStatus" } ] } }, "required": [ "status" ] }, "MenuInfo": { "title": "MenuInfo", "type": "object", "properties": { "provider_menu_id": { "title": "Provider Menu Id", "type": "string" }, "name": { "title": "Name", "type": "string" }, "description": { "title": "Description", "type": "string" }, "media_url": { "title": "Media Url", "type": "string" }, "provider_categories": { "title": "Provider Categories", "default": [], "type": "array", "items": { "type": "string" } } } }, "Category": { "title": "Category", "type": "object", "properties": { "title": { "title": "Title", "type": "string" }, "provider_id": { "title": "Provider Id", "type": "string" }, "description": { "title": "Description", "type": "string" }, "is_deactivated": { "title": "Is Deactivated", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Deactivation Start Date", "type": "string" }, "deactivation_end_date": { "title": "Deactivation End Date", "type": "string" }, "provider_items": { "title": "Provider Items", "default": [], "type": "array", "items": { "type": "string" } }, "provider_availability": { "title": "Provider Availability", "type": "string" } } }, "ms_api__dtos__normalized_menu__Item": { "title": "Item", "type": "object", "properties": { "provider_id": { "title": "Provider Id", "type": "string" }, "provider_modifiers": { "title": "Provider Modifiers", "default": [], "type": "array", "items": { "type": "string" } }, "name": { "title": "Name", "type": "string" }, "is_deactivated": { "title": "Is Deactivated", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Deactivation Start Date", "type": "string" }, "deactivation_end_date": { "title": "Deactivation End Date", "type": "string" }, "tax_rate": { "title": "Tax Rate", "type": "number" }, "description": { "title": "Description", "type": "string" }, "media_url": { "title": "Media Url", "type": "string" }, "price": { "title": "Price", "minimum": 0, "type": "number" }, "original_price": { "title": "Original Price", "minimum": 0, "type": "number" }, "prices_customization": { "title": "Prices Customization", "default": {}, "type": "object", "additionalProperties": { "$ref": "#/components/schemas/shared_library__kh_core_models__menu__menu_deprecated__CustomPriceSchema" } }, "min_amount": { "title": "Min Amount", "default": 1, "type": "integer" }, "max_amount": { "title": "Max Amount", "default": 3, "type": "integer" }, "provider_availability": { "title": "Provider Availability", "type": "string" }, "is_alcohol": { "title": "Is alcohol", "description": "Flag indicates that item contain alcohol", "default": false, "type": "boolean" } } }, "Modifier": { "title": "Modifier", "type": "object", "properties": { "name": { "title": "Name", "type": "string" }, "provider_id": { "title": "Provider Id", "type": "string" }, "type": { "title": "Type", "type": "string" }, "min_options": { "title": "Min Options", "type": "integer" }, "max_options": { "title": "Max Options", "type": "integer" }, "default_options": { "title": "Default Options", "default": [], "type": "array", "items": { "type": "string" } }, "provider_options": { "title": "Provider Options", "default": [], "type": "array", "items": { "type": "string" } }, "is_required": { "title": "Is Required", "default": false, "type": "boolean" }, "free_options_quantity": { "title": "Free Options Quantity", "description": "Indicates how many options are free when this modifier is selected when this modifier is selected", "minimum": 0, "type": "integer" }, "min_options_quantity": { "title": "Min Options Quantity", "description": "Indicates the minimum number of options quantity that must be selected when this modifier is selected", "minimum": 0, "type": "integer" }, "max_options_quantity": { "title": "Max Options Quantity", "description": "Indicates the maximum number of options quantity that can be selected when this modifier is selected", "minimum": 0, "type": "integer" } } }, "ms_api__dtos__normalized_menu__Option": { "title": "Option", "type": "object", "properties": { "provider_id": { "title": "Provider Id", "type": "string" }, "description": { "title": "Description", "type": "string" }, "name": { "title": "Name", "type": "string" }, "tax_rate": { "title": "Tax Rate", "type": "number" }, "type": { "title": "Type", "type": "string" }, "price": { "title": "Price", "type": "number" }, "original_price": { "title": "Original Price", "type": "number" }, "prices_customization": { "title": "Prices Customization", "default": {}, "type": "object", "additionalProperties": { "$ref": "#/components/schemas/shared_library__kh_core_models__menu__menu_deprecated__CustomPriceSchema" } }, "is_deactivated": { "title": "Is Deactivated", "default": false, "type": "boolean" }, "partner_modifiers": { "title": "Partner Modifiers", "default": [], "type": "array", "items": { "type": "string" } } } }, "Availability": { "title": "Availability", "type": "object", "properties": { "provider_id": { "title": "Provider Id", "type": "string" }, "rules": { "title": "Rules", "default": [], "type": "array", "items": { "type": "object" } } } }, "NormalizedMenu": { "title": "NormalizedMenu", "type": "object", "properties": { "menu": { "$ref": "#/components/schemas/MenuInfo" }, "categories": { "title": "Categories", "default": [], "type": "array", "items": { "$ref": "#/components/schemas/Category" } }, "items": { "title": "Items", "default": [], "type": "array", "items": { "$ref": "#/components/schemas/ms_api__dtos__normalized_menu__Item" } }, "modifiers": { "title": "Modifiers", "default": [], "type": "array", "items": { "$ref": "#/components/schemas/Modifier" } }, "options": { "title": "Options", "default": [], "type": "array", "items": { "$ref": "#/components/schemas/ms_api__dtos__normalized_menu__Option" } }, "availabilities": { "title": "Availabilities", "default": [], "type": "array", "items": { "$ref": "#/components/schemas/Availability" } } }, "required": [ "menu" ] }, "DeliveryType": { "title": "DeliveryType", "description": "An enumeration.", "enum": [ "restaurant", "provider" ], "type": "string" }, "shared_library__serializers__delivery__PickupInfo": { "title": "PickupInfo", "type": "object", "properties": { "restaurant_address": { "title": "Restaurant Address", "description": "The complete address of the restaurant for pickup location.", "type": "string" }, "restaurant_street": { "title": "Restaurant Street", "description": "The street address of the restaurant for pickup location.", "type": "string" }, "restaurant_city": { "title": "Restaurant City", "description": "The city of the restaurant for pickup location.", "type": "string" }, "restaurant_state": { "title": "Restaurant State", "description": "The state of the restaurant for pickup location.", "type": "string" }, "restaurant_zip": { "title": "Restaurant Zip", "description": "The zip code of the restaurant for pickup location.", "type": "string" }, "pickup_datetime": { "title": "Pickup Date and Time", "description": "The scheduled date and time for picking up the order from the restaurant.", "type": "string", "format": "date-time" }, "preparation_time": { "title": "Preparation Time", "description": "The time required by the restaurant to prepare the order.", "type": "string", "format": "time" }, "restaurant_name": { "title": "Restaurant Name", "description": "The name of the restaurant where the order will be picked up.", "type": "string" }, "pickup_notes": { "title": "Pickup Notes", "description": "Any special instructions or notes related to the pickup.", "type": "string" }, "pickup_time_estimated": { "title": "Estimated Pickup Time", "description": "The estimated time when the order will be ready for pickup.", "type": "string", "format": "date-time" } }, "required": [ "restaurant_address", "restaurant_name" ] }, "shared_library__serializers__delivery__CustomerInfoSerializer": { "title": "CustomerInfoSerializer", "type": "object", "properties": { "first_name": { "title": "First Name", "description": "The customer's first name.", "type": "string" }, "last_name": { "title": "Last Name", "description": "The customer's last name.", "type": "string" }, "phone_number": { "title": "Phone Number", "description": "The customer's contact phone number.", "type": "string" }, "phone_code": { "title": "Phone Code", "description": "The international dialing code for the customer's phone number.", "type": "string" }, "email": { "title": "Email", "description": "The customer's email address.", "type": "string" } }, "required": [ "first_name", "last_name" ] }, "shared_library__serializers__delivery__DropOffInfo": { "title": "DropOffInfo", "type": "object", "properties": { "drop_off_address": { "title": "Drop Off Address", "description": "The address where the order will be delivered.", "type": "string" }, "drop_off_street": { "title": "Drop Off Street", "description": "The street address where the order will be delivered.", "type": "string" }, "drop_off_unit_number": { "title": "Drop Off Unit Number", "description": "The unit number where the order will be delivered.", "type": "string" }, "drop_off_city": { "title": "Drop Off City", "description": "The city where the order will be delivered.", "type": "string" }, "drop_off_state": { "title": "Drop Off State", "description": "The state where the order will be delivered.", "type": "string" }, "drop_off_zip": { "title": "Drop Off Zip", "description": "The zip code where the order will be delivered.", "type": "string" }, "drop_off_datetime": { "title": "Drop Off Date and Time", "description": "The scheduled date and time for the drop-off at the delivery location.", "type": "string", "format": "date-time" }, "drop_off_notes": { "title": "Drop Off Notes", "description": "Any special instructions or notes related to the drop-off.", "type": "string" }, "dropoff_time_estimated": { "title": "Estimated Drop Off Time", "description": "The estimated time when the order will be delivered.", "type": "string", "format": "date-time" } }, "required": [ "drop_off_address" ] }, "shared_library__serializers__delivery__ChargesSerializer": { "title": "ChargesSerializer", "type": "object", "properties": { "total": { "title": "Total", "description": "The total amount to be paid.", "type": "number" }, "delivery_fee": { "title": "Delivery Fee", "description": "The fee charged for the delivery service.", "type": "number" }, "delivery_tips": { "title": "Delivery Tips", "description": "The tips given to the delivery person.", "type": "number" }, "subtotal": { "title": "Subtotal", "description": "The subtotal amount.", "type": "number" } }, "required": [ "total" ] }, "KHService": { "title": "KHService", "description": "An enumeration.", "enum": [ "ms-delivery-manager", "ms-providers", "ms-orders", "ms-menu-v2", "ms-beyondmenu", "ms-chownow", "ms-cloudwaitress", "ms-delivery", "ms-dickeys", "ms-eatstreet", "ms-flipdish", "ms-grubhub", "ms-grubhub-pos", "ms-doordash", "doordash-v2", "ms-gloriafood", "ms-menu", "ms-one-delivery", "ms-printers", "ms-pusher", "ms-restaurants", "ms-sms", "ms-menufy", "ms-pos", "ms-sause", "ms-ubereats", "ms-foodhub", "ms-billing", "ms-telegram", "ms-delivery-logic-marketplace", "ms-media-processor", "delivery_logic", "delivery_logic_marketplace", "doordash_drive", "ms-skip-the-dish", "ms-openapi-providers", "ms-openapi", "cartwheel", "provider_adapter", "ms-gateway", "ms-mock", "ms-printer-v2" ] }, "DeliveryItem": { "title": "DeliveryItem", "type": "object", "properties": { "name": { "title": "Name", "description": "The name of the item.", "type": "string" }, "quantity": { "title": "Quantity", "description": "The quantity of the item.", "type": "integer" }, "price": { "title": "Price", "description": "The price of the item.", "type": "number" }, "is_alcohol": { "title": "Is alcohol", "description": "Flag indicates that item contain alcohol", "default": false, "type": "boolean" } }, "required": [ "name", "quantity", "price" ] }, "shared_library__serializers__delivery__DeliveryResponseSerializer": { "title": "DeliveryResponseSerializer", "description": "Scheme used for fetch full delivery object", "type": "object", "properties": { "id": { "title": "Delivery ID", "description": "A unique identifier for the delivery.", "type": "integer" }, "order_id": { "title": "Order ID", "description": "A unique identifier for the order.", "type": "string" }, "store_id": { "title": "Store ID", "description": "A unique identifier for the store where the order is being processed.", "type": "string" }, "scheduled_order": { "title": "Scheduled Order", "description": "Indicates whether the order is scheduled for a future time or is immediate.", "type": "boolean" }, "delivery_order_id": { "title": "Delivery Order ID", "description": "A unique identifier for the delivery order.", "type": "string" }, "cancellation_reason": { "title": "Cancellation Reason", "description": "The reason for cancellation if the delivery is canceled.", "type": "string" }, "delivery_type": { "title": "Delivery Type", "description": "The type of delivery service.", "default": "restaurant", "allOf": [ { "$ref": "#/components/schemas/DeliveryType" } ] }, "pickup_info": { "title": "Pickup Info", "description": "Detailed information about the pickup location and time.", "allOf": [ { "$ref": "#/components/schemas/shared_library__serializers__delivery__PickupInfo" } ] }, "customer_info": { "title": "Customer Info", "description": "Detailed information about the customer placing the order.", "allOf": [ { "$ref": "#/components/schemas/shared_library__serializers__delivery__CustomerInfoSerializer" } ] }, "drop_off_info": { "title": "Drop Off Info", "description": "Detailed information about the drop-off location and time.", "allOf": [ { "$ref": "#/components/schemas/shared_library__serializers__delivery__DropOffInfo" } ] }, "charges": { "title": "Charges", "description": "Detailed breakdown of charges for the delivery service.", "allOf": [ { "$ref": "#/components/schemas/shared_library__serializers__delivery__ChargesSerializer" } ] }, "status": { "title": "Status", "description": "The current status of the delivery order.", "allOf": [ { "$ref": "#/components/schemas/DeliveryStatus" } ] }, "created_at": { "title": "Created At", "description": "The timestamp when the delivery order was created.", "type": "string", "format": "date-time" }, "delivery_service": { "title": "Delivery Service", "description": "The service handling the delivery.", "allOf": [ { "$ref": "#/components/schemas/KHService" } ] }, "courier_info": { "title": "Courier Info", "description": "Detailed information about the courier assigned to the delivery.", "allOf": [ { "$ref": "#/components/schemas/CourierInfoSerializer" } ] }, "delivered_at": { "title": "Delivered At", "description": "The timestamp when the delivery was completed.", "type": "string", "format": "date-time" }, "canceled_at": { "title": "Canceled At", "description": "The timestamp when the delivery was canceled.", "type": "string", "format": "date-time" }, "accepted_at": { "title": "Accepted At", "description": "The timestamp when the delivery was accepted.", "type": "string", "format": "date-time" }, "is_mock_delivery": { "title": "Is Mock Delivery", "description": "flag indicating real or fake delivery created", "default": false, "type": "boolean" }, "tracking_url": { "title": "Tracking URL", "description": "The URL of the tracking page for the delivery", "type": "string" }, "items": { "title": "Items", "description": "Detailed information about the items in the delivery order.", "type": "array", "items": { "$ref": "#/components/schemas/DeliveryItem" } } }, "required": [ "id", "order_id", "store_id", "pickup_info", "customer_info", "drop_off_info", "charges", "status", "created_at", "delivery_service", "items" ] }, "LocationDTO": { "title": "LocationDTO", "type": "object", "properties": { "id": { "title": "Id", "description": "Location Id", "type": "string" }, "partner_location_id": { "title": "Partner Location Id", "description": "Partner Location Id", "type": "string" }, "location_name": { "title": "Name", "description": "Location Name", "type": "string" }, "location_street": { "title": "Street", "description": "Location Street", "type": "string" }, "location_country": { "title": "Location Country", "description": "Location Country", "type": "string" }, "location_city": { "title": "City", "description": "Location City", "type": "string" }, "location_state": { "title": "State", "description": "Location State", "type": "string" }, "location_zipcode": { "title": "Zipcode", "description": "Location Zipcode", "type": "string" }, "lat": { "title": "Lat", "description": "Location Latitude", "type": "number" }, "lon": { "title": "Lon", "description": "Location Longitude", "type": "number" }, "created_at": { "title": "Created At", "description": "Location Creation Date", "type": "string" }, "location_timezone": { "title": "Location Timezone", "description": "Example: America/New_York, US/Eastern", "type": "string" }, "location_lat": { "title": "Location Lat", "description": "Location Latitude", "type": "number" }, "location_lon": { "title": "Location Lon", "description": "Location Longitude", "type": "number" }, "location_delivery_time": { "title": "Location delivery Time", "description": "Default Location delivery Time", "type": "integer" }, "restaurant_delivery_time": { "title": "Restaurant delivery time", "description": "Restaurant self-delivery time in minutes. Default value: 30", "default": 30, "type": "integer" }, "pickup_notes": { "title": "Pickup Notes", "description": "Pickup Notes", "type": "string" }, "location_status": { "title": "Location Status", "description": "Location Status", "type": "string" }, "auto_accept_cooking_time": { "title": "Cooking time", "description": "Auto accept cooking time", "type": "integer" }, "auto_accept_enabled": { "title": "Auto accept enabled", "description": "Auto accept enabled", "type": "boolean" }, "auto_complete_enabled": { "title": "Auto complete enabled", "description": "Auto accept enabled", "type": "boolean" } }, "required": [ "id", "location_name", "auto_accept_cooking_time", "auto_accept_enabled", "auto_complete_enabled" ] }, "LocationListResponseSerializer": { "title": "LocationListResponseSerializer", "type": "object", "properties": { "locations": { "title": "Locations", "type": "array", "items": { "$ref": "#/components/schemas/LocationDTO" } } } }, "CreateClientWebhookConfig": { "title": "CreateClientWebhookConfig", "type": "object", "properties": { "url": { "title": "Webhook url", "description": "Url in your system where we send orders or different notifications", "type": "string" }, "version": { "title": "Webhook version", "description": "Payload which we are sending on your webhook depends on version.For Order events you can use `1` or `2`.For Other events you can use only `1`", "minimum": 1, "maximum": 2, "type": "integer" }, "webhook_type": { "title": "Webhook type", "description": "\n Type of webhook.\n Example: `Order`, `MenuIntegrationStatus`, `IntegrationAccount`, `Delivery`, `Cook`", "allOf": [ { "$ref": "#/components/schemas/WebhookType" } ] }, "filters": { "title": "Filters", "description": "\n Necessary field, that can take such params as order_status, order_type, order_delivery_type\n Empty dict means that all filters will be suitable\n And list of supported values for example:\n \"order_status\": [\"new\", \"accepted\", \"completed\", \"cancelled\"]\n \"order_type\": [\"pickup\", \"delivery\", \"dinein\"],\n \"order_delivery_type\": [\"restaurant\"],\n ", "default": {}, "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, "authorization_headers": { "title": "Authorization headers", "description": "Headers for authorization on your side which we will send with orders", "default": {}, "type": "object", "additionalProperties": { "type": "string" } } }, "required": [ "url", "version", "webhook_type" ] }, "CreateQuoteResponseSerializer": { "title": "CreateQuoteResponseSerializer", "type": "object", "properties": { "id": { "title": "Quote ID", "description": "Unique identifier for the created quote in the KitchenHub system. Use this ID to accept the quote via `POST /v2/quotes/{order_id}/accept/`.", "type": "integer" }, "status": { "title": "Status", "description": "The current status of the quote.", "allOf": [ { "$ref": "#/components/schemas/DeliveryStatus" } ] }, "delivery_order_id": { "title": "Delivery Order ID", "description": "The ID that identifies this delivery in the delivery provider's system.", "type": "string" } }, "required": [ "id", "status" ] }, "StoreUpdateRequestSerializer": { "title": "StoreUpdateRequestSerializer", "type": "object", "properties": { "store_name": { "title": "Store Name", "description": "Store Name", "type": "string" }, "partner_store_id": { "title": "Partner Store Id", "description": "Partner Store Id", "type": "string" }, "auto_accept_enabled": { "title": "Auto Accept Enabled", "description": "Auto accept orders.", "type": "boolean" }, "auto_complete_enabled": { "title": "Auto Complete Enabled", "description": "Auto complete orders.", "type": "boolean" }, "auto_accept_cooking_time": { "title": "Auto Accept Cooking Time", "description": "Auto accept orders cooking Time in minutes.", "type": "integer" }, "restaurant_delivery_time": { "title": "Restaurant delivery time", "description": "Restaurant self-delivery time in minutes. Default value: 30", "default": 30, "type": "integer" }, "auto_accept_delivery_enabled": { "title": "Auto Accept Delivery Enabled", "description": "Auto accept delivery enabled indicates whether automatic order delivery confirmation is enabled.", "type": "boolean" } } }, "RefreshTokenResponseSerializer": { "title": "RefreshTokenResponseSerializer", "type": "object", "properties": { "access_token": { "title": "Access Token", "description": "Access token", "type": "string" }, "access_token_expire": { "title": "Access Token Expire", "description": "Access token expire time in minutes", "type": "integer" } }, "required": [ "access_token", "access_token_expire" ] }, "ms_api__core_models__Order": { "title": "Order", "type": "object", "properties": { "id": { "title": "id", "description": "Order id in kitchenhub", "type": "integer" }, "external_id": { "title": "external id", "description": "Order id in provider", "type": "string" }, "number": { "title": "number", "description": "Order number", "type": "string" }, "daily_number": { "title": "daily number", "description": "Order daily number", "type": "integer" }, "type": { "title": "type", "description": "Order type", "type": "string" }, "status": { "title": "status", "description": "Order status", "type": "string" }, "notes": { "title": "notes", "description": "Order notes", "type": "string" }, "paid": { "title": "paid", "description": "Boolean field which show if order paid", "type": "boolean" }, "asap": { "title": "asap", "description": "Boolean field which show if order is asap", "type": "boolean" }, "add_disposable_items": { "title": "add disposable items", "description": "Boolean field which show to add disposable items", "type": "boolean" }, "prep_time_minutes": { "title": "prep time minutes", "description": "Preparation time in minutes", "type": "integer" }, "data": { "title": "data", "description": "Original order data", "type": "object" }, "cancelled_by": { "title": "cancelled by", "description": "Cancelled by", "type": "string" } }, "required": [ "id", "external_id", "number", "daily_number", "type", "status", "paid", "asap", "data" ] }, "ms_api__core_models__Provider": { "title": "Provider", "type": "object", "properties": { "id": { "title": "id", "description": "Provider id", "type": "string" }, "name": { "title": "name", "description": "Provider name", "type": "string" }, "merchant_id": { "title": "merchant id", "description": "Merchant id", "type": "string" }, "store_id": { "title": "store id", "description": "Store id", "type": "string" } }, "required": [ "id" ] }, "ms_api__core_models__Store": { "title": "Store", "type": "object", "properties": { "id": { "title": "id", "description": "Store id", "type": "string" }, "name": { "title": "name", "description": "Store name", "type": "string" }, "partner_store_id": { "title": "partner store id", "description": "Partner store id linked to location", "type": "string" } }, "required": [ "id", "name" ] }, "ms_api__core_models__Customer": { "title": "Customer", "type": "object", "properties": { "name": { "title": "name", "description": "Customer name", "type": "string" }, "email": { "title": "email", "description": "Customer email", "type": "string" }, "phone_number": { "title": "phone number", "description": "Customer phone number", "type": "string" }, "phone_code": { "title": "phone code", "description": "Customer phone code", "type": "string" } }, "required": [ "name" ] }, "ms_api__core_models__Option": { "title": "Option", "description": "Part of Item model", "type": "object", "properties": { "id": { "title": "id", "description": "Option id", "type": "string" }, "partner_id": { "title": "partner id", "description": "Option partner id", "type": "string" }, "name": { "title": "name", "description": "Option name", "type": "string" }, "quantity": { "title": "quantity", "description": "Option quantity", "type": "integer" }, "price": { "title": "price", "description": "Option price", "type": "string" }, "base_price": { "title": "base price", "description": "Option base price", "type": "string" }, "original_price": { "title": "original price", "description": "Option original price. If a value for original price is not provided then the value from base_price or price will be assigned", "type": "string" }, "modifier_name": { "title": "modifier name", "description": "Option modifier name", "type": "string" }, "options": { "title": "Nested options", "description": "Nested options containing the name of the nested modifier of the current parameter", "type": "array", "items": {} } }, "required": [ "name", "quantity", "price" ] }, "ms_api__core_models__Item": { "title": "Item", "type": "object", "properties": { "id": { "title": "id", "description": "Item id", "type": "string" }, "partner_id": { "title": "partner_id", "description": "Item partner id", "type": "string" }, "name": { "title": "name", "description": "Item name", "type": "string" }, "quantity": { "title": "quantity", "description": "Item quantity", "type": "integer" }, "price": { "title": "price", "description": "Item price", "type": "string" }, "base_price": { "title": "base price", "description": "Item base price", "type": "string" }, "original_price": { "title": "original price", "description": "Item original price. It does not include options and quantity. If a value for original_price is not provided then the value from base_price or price will be assigned", "type": "string" }, "prep_instructions": { "title": "prep instructions", "description": "Item preparation instructions", "type": "string" }, "instructions": { "title": "instructions", "description": "Item instructions", "type": "string" }, "options": { "title": "Item options", "description": "Item options", "type": "array", "items": { "$ref": "#/components/schemas/ms_api__core_models__Option" } }, "is_alcohol": { "title": "Is alcohol", "description": "Flag indicates that item contain alcohol", "default": false, "type": "boolean" } }, "required": [ "name", "quantity", "price" ] }, "ms_api__core_models__Address": { "title": "Address", "description": "Part of Delivery model", "type": "object", "properties": { "country": { "title": "country", "description": "Address country", "type": "string" }, "street": { "title": "street", "description": "Address street", "type": "string" }, "city": { "title": "city", "description": "Address city", "type": "string" }, "state": { "title": "state", "description": "Address state", "type": "string" }, "zipcode": { "title": "zipcode", "description": "Address zipcode", "type": "string" }, "unit_number": { "title": "unit number", "description": "Address unit number", "type": "string" }, "latitude": { "title": "latitude", "description": "Address latitude", "type": "number" }, "longitude": { "title": "longitude", "description": "Address longitude", "type": "number" } } }, "ms_api__core_models__Courier": { "title": "Courier", "description": "Part of Delivery model", "type": "object", "properties": { "name": { "title": "name", "description": "Courier name", "type": "string" }, "photo_url": { "title": "photo url", "description": "Courier photo url", "type": "string" }, "phone_number": { "title": "phone number", "description": "Courier phone number", "type": "string" }, "status": { "title": "status", "description": "Courier status", "type": "string" } } }, "ms_api__core_models__Delivery": { "title": "Delivery", "type": "object", "properties": { "type": { "title": "type", "description": "Delivery type", "type": "string" }, "address": { "title": "address", "description": "Delivery address", "allOf": [ { "$ref": "#/components/schemas/ms_api__core_models__Address" } ] }, "courier": { "title": "courier", "description": "Delivery courier", "allOf": [ { "$ref": "#/components/schemas/ms_api__core_models__Courier" } ] }, "status": { "title": "status", "description": "Delivery status", "type": "string" }, "notes": { "title": "notes", "description": "Delivery notes", "type": "string" }, "service": { "title": "service", "description": "Delivery service", "type": "string" }, "cancellation_reason": { "title": "cancellation reason", "description": "Delivery cancellation reason", "type": "string" } }, "required": [ "address", "courier" ] }, "ms_api__core_models__Payment": { "title": "Payment", "type": "object", "properties": { "method": { "title": "method", "description": "Payment method", "type": "string" } } }, "ms_api__core_models__Charges": { "title": "Charges", "type": "object", "properties": { "subtotal": { "title": "subtotal", "description": "Charges subtotal", "type": "string" }, "tax": { "title": "tax", "description": "Charges tax", "type": "string" }, "tax_payout": { "title": "tax payout", "description": "Charges tax payout", "type": "string" }, "restaurant_tip_amount": { "title": "restaurant tip amount", "description": "Charges restaurant tip amount", "type": "string" }, "adjustment": { "title": "adjustment", "description": "Charges adjustment", "type": "string" }, "tips": { "title": "tips", "description": "Charges tips", "type": "string" }, "discount": { "title": "discount", "description": "Charges discount", "type": "string" }, "total": { "title": "total", "description": "Charges total", "type": "string" }, "delivery_fee": { "title": "delivery fee", "description": "Charges delivery fee", "type": "string" }, "service_fee": { "title": "service fee", "description": "Charges service fee", "type": "string" }, "processing_fee": { "title": "processing fee", "description": "Charges processing fee", "type": "string" }, "commission": { "title": "commission", "description": "Charges commission", "type": "string" }, "payout": { "title": "payout", "description": "Charges payout", "type": "string" }, "other_fee": { "title": "other fee", "description": "Charges other fee", "type": "object" }, "free_options_discount": { "title": "free options discount", "description": "Free options discount. Calculated based on menu prices if free_options configured", "type": "string" } }, "required": [ "subtotal", "total" ] }, "ms_api__core_models__Timestamps": { "title": "Timestamps", "description": "Represents a collection of timestamps associated with a food delivery order_model.", "type": "object", "properties": { "placed_at": { "title": "placed at", "description": "Timestamp placed at time", "type": "string" }, "created_at": { "title": "created at", "description": "Timestamp created at time", "type": "string" }, "pickup_at": { "title": "pickup at", "description": "Timestamp pickup at time", "type": "string" }, "accepted_at": { "title": "accepted at", "description": "Timestamp accepted at time", "type": "string" }, "cancelled_at": { "title": "cancelled at", "description": "Timestamp cancelled at time", "type": "string" }, "completed_at": { "title": "completed at", "description": "Timestamp completed at time", "type": "string" }, "delivery_at": { "title": "delivery at", "description": "Timestamp delivery at time", "type": "string" }, "scheduled_for": { "title": "scheduled for", "description": "Timestamp scheduled for", "type": "string" }, "updated_at": { "title": "updated at", "description": "Timestamp updated at", "type": "string" } }, "required": [ "placed_at", "created_at" ] }, "ms_api__core_models__OrderModel": { "title": "OrderModel", "type": "object", "properties": { "order": { "$ref": "#/components/schemas/ms_api__core_models__Order" }, "provider": { "$ref": "#/components/schemas/ms_api__core_models__Provider" }, "store": { "$ref": "#/components/schemas/ms_api__core_models__Store" }, "customer": { "$ref": "#/components/schemas/ms_api__core_models__Customer" }, "items": { "title": "Items", "type": "array", "items": { "$ref": "#/components/schemas/ms_api__core_models__Item" } }, "delivery": { "$ref": "#/components/schemas/ms_api__core_models__Delivery" }, "payment": { "$ref": "#/components/schemas/ms_api__core_models__Payment" }, "charges": { "$ref": "#/components/schemas/ms_api__core_models__Charges" }, "timestamps": { "$ref": "#/components/schemas/ms_api__core_models__Timestamps" } }, "required": [ "order", "provider", "store", "customer", "items", "delivery", "payment", "charges", "timestamps" ] }, "OrderDetailSerializer": { "title": "OrderDetailSerializer", "$ref": "#/components/schemas/ms_api__core_models__OrderModel" }, "PickupInfoRequestSerializer": { "title": "PickupInfoRequestSerializer", "type": "object", "properties": { "restaurant_address": { "title": "Restaurant Address", "description": "The complete address of the restaurant for pickup location.", "type": "string" }, "restaurant_street": { "title": "Restaurant Street", "description": "The street address of the restaurant for pickup location.", "type": "string" }, "restaurant_city": { "title": "Restaurant City", "description": "The city of the restaurant for pickup location.", "type": "string" }, "restaurant_state": { "title": "Restaurant State", "description": "The state of the restaurant for pickup location.", "type": "string" }, "restaurant_zip": { "title": "Restaurant Zip", "description": "The zip code of the restaurant for pickup location.", "type": "string" }, "pickup_datetime": { "title": "Pickup Date and Time", "description": "The scheduled date and time for picking up the order from the restaurant.", "type": "string", "format": "date-time" }, "preparation_time": { "title": "Preparation Time", "description": "The time required by the restaurant to prepare the order.", "type": "string", "format": "time" } } }, "shared_library__serializers__delivery__DropOffInfoRequestSerializer": { "title": "DropOffInfoRequestSerializer", "type": "object", "properties": { "drop_off_address": { "title": "Drop Off Address", "description": "The address where the order will be delivered.", "type": "string" }, "drop_off_street": { "title": "Drop Off Street", "description": "The street address where the order will be delivered.", "type": "string" }, "drop_off_unit_number": { "title": "Drop Off Unit Number", "description": "The unit number where the order will be delivered.", "type": "string" }, "drop_off_city": { "title": "Drop Off City", "description": "The city where the order will be delivered.", "type": "string" }, "drop_off_state": { "title": "Drop Off State", "description": "The state where the order will be delivered.", "type": "string" }, "drop_off_zip": { "title": "Drop Off Zip", "description": "The zip code where the order will be delivered.", "type": "string" }, "drop_off_datetime": { "title": "Drop Off Date and Time", "description": "The scheduled date and time for the drop-off at the delivery location.", "type": "string", "format": "date-time" }, "drop_off_notes": { "title": "Drop Off Notes", "description": "Any special instructions or notes related to the drop-off.", "type": "string" } }, "required": [ "drop_off_address" ] }, "DeliveryRequestSerializer": { "title": "DeliveryRequestSerializer", "description": "Scheme used only in mock delivery scheme MockDeliveryRequestSerializer", "type": "object", "properties": { "store_id": { "title": "Store ID", "description": "A unique identifier for the store where the order is being placed.", "type": "string" }, "scheduled_order": { "title": "Scheduled Order", "description": "Indicates whether the order is scheduled for a future time or is immediate.", "type": "boolean" }, "pickup_info": { "title": "Pickup Info", "description": "Detailed information about the pickup location and time.", "allOf": [ { "$ref": "#/components/schemas/PickupInfoRequestSerializer" } ] }, "customer_info": { "title": "Customer Info", "description": "Detailed information about the customer placing the order.", "allOf": [ { "$ref": "#/components/schemas/shared_library__serializers__delivery__CustomerInfoSerializer" } ] }, "drop_off_info": { "title": "Drop Off Info", "description": "Detailed information about the drop-off location and time.", "allOf": [ { "$ref": "#/components/schemas/shared_library__serializers__delivery__DropOffInfoRequestSerializer" } ] }, "charges": { "title": "Charges", "description": "Detailed breakdown of charges for the delivery service.", "allOf": [ { "$ref": "#/components/schemas/shared_library__serializers__delivery__ChargesSerializer" } ] }, "items": { "title": "Items", "description": "List of items in the order.", "default": [], "type": "array", "items": { "$ref": "#/components/schemas/DeliveryItem" } }, "order_id": { "title": "Order Id", "type": "string" }, "delivery_provider_id": { "title": "Delivery Provider Id", "type": "string" } }, "required": [ "store_id", "scheduled_order", "pickup_info", "customer_info", "drop_off_info", "charges", "order_id" ] }, "MockDeliveryRequestSerializer": { "title": "MockDeliveryRequestSerializer", "type": "object", "properties": { "delivery_data": { "title": "Delivery Data", "description": "Required field if you want to create your own delivery", "allOf": [ { "$ref": "#/components/schemas/DeliveryRequestSerializer" } ] }, "order_id": { "title": "Order ID", "description": "Required field if you want to use the delivery template.", "type": "string" }, "store_id": { "title": "Store ID", "description": "Required field if you want to use the delivery template.", "type": "string" }, "delivery_provider_id": { "title": "Delivery Provider ID", "description": "Required field if you want to use the delivery template.", "type": "string" } } }, "CreateMenuInfoSchema": { "title": "CreateMenuInfoSchema", "type": "object", "properties": { "partner_id": { "title": "Partner menu id", "description": "Id menu from the client", "type": "string" }, "name": { "title": "Name", "description": "The name of the menu to be displayed", "type": "string" }, "description": { "title": "Description", "description": "Menu description", "type": "string" }, "media_url": { "title": "Media url", "description": "\n The URL where the image file can be downloaded.\n The image you have selected will be transformed to fit provider requirements\n (we recommend to keep at least 1024 px each side). If provider expects specific aspect-ratio,\n white borders can be added to fit this requirement.\n ", "type": "string" }, "partner_categories": { "title": "Partner categories", "description": "\n List of partner categories ids, which belongs to this menu.\n Categories will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } } }, "required": [ "partner_id", "name" ] }, "CreateCategorySchema": { "title": "CreateCategorySchema", "type": "object", "properties": { "pos_id": { "title": "POS category id", "description": "Category id from your POS system", "type": "string" }, "partner_id": { "title": "Partner category id", "description": "Partner category id. Filled in manually", "type": "string" }, "title": { "title": "Title", "description": "The displayed name for the category", "type": "string" }, "description": { "title": "Description", "description": "Category Description", "type": "string" }, "is_deactivated": { "title": "Is deactivated", "description": "Boolean field which show if category is deactivated. Client can also specify the time when category is deactivated", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Deactivation start date", "description": "Date since category is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "deactivation_end_date": { "title": "Deactivation end date", "description": "Date till category is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "media_url": { "title": "Media url", "description": "\n The URL where the image file can be downloaded.\n The image you have selected will be transformed to fit provider requirements\n (we recommend to keep at least 1024 px each side). If provider expects specific aspect-ratio,\n white borders can be added to fit this requirement.\n ", "type": "string" }, "partner_items": { "title": "Partner items", "description": "\n All of the partner IDs for the menu items that belongs to this category.\n Items will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } }, "partner_availability": { "title": "Partner availability", "description": "Partner ID of availability, which is connected with this category(opening hours of the restaurant)", "type": "string" } }, "required": [ "partner_id", "title" ] }, "CreateItemSchema": { "title": "CreateItemSchema", "type": "object", "properties": { "pos_id": { "title": "POS item id", "description": "Item id from your POS system", "type": "string" }, "partner_id": { "title": "Partner item id", "description": "Partner item id", "type": "string" }, "name": { "title": "Name", "description": "The display name of the menu item", "type": "string" }, "description": { "title": "Description", "description": "Item description", "type": "string" }, "internal_notes": { "title": "Internal notes", "description": "Additional information about item cooking", "type": "string" }, "is_deactivated": { "title": "Is deactivated", "description": "\n Boolean field which show if item is deactivated.\n Client can also specify the time when item is deactivated\n ", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Deactivation start date", "description": "Date since item is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "deactivation_end_date": { "title": "Deactivation end date", "description": "Date till item is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "media_url": { "title": "Media url", "description": "\n The URL where the image file can be downloaded.\n The image you have selected will be transformed to fit provider requirements\n (we recommend to keep at least 1024 px each side). If provider expects specific aspect-ratio,\n white borders can be added to fit this requirement.\n ", "type": "string" }, "price": { "title": "Price", "description": "The cost of this item. This field should be a positive number.", "default": 0, "minimum": 0, "type": "number" }, "original_price": { "title": "Original item price", "description": "The cost of the item for pickup. This price does not include delivery charges. This field should be a positive number.", "minimum": 0, "type": "number" }, "prices_customization": { "title": "Prices Customization", "description": "Custom price information for selected providers. Contains mapping of provider_id to prices. This field can be skipped, but cannot contain a null value.", "default": {}, "type": "object", "additionalProperties": { "$ref": "#/components/schemas/shared_library__kh_core_models__menu__menu_deprecated__CustomPriceSchema" } }, "min_amount": { "title": "Min amount", "description": "Default minimum quantity that can be ordered of this item. Default value - 1", "default": 1, "minimum": 1, "type": "integer" }, "max_amount": { "title": "Max amount", "description": "Default maximum quantity that can be ordered of this item. Default value - 3", "default": 3, "type": "integer" }, "partner_availability": { "title": "Partner availability", "description": "Partner ID of availability, which is connected with this item (opening hours of the restaurant)", "type": "string" }, "partner_modifiers": { "title": "Partner modifiers", "description": "\n All of the partner IDs for the menu modifiers that belongs to this item.\n Modifiers will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } }, "tax_rate": { "title": "Tax rate", "description": "\n Extra tax which may be added to some items on top of regular sales tax. Must be between 0 and 1.\n ", "type": "number" }, "tax_category": { "title": "Tax category", "description": "Tax category that an item belongs to (only for Canada). It's ignored if is_alcohol is True", "allOf": [ { "$ref": "#/components/schemas/TaxCategory" } ] }, "is_alcohol": { "title": "Is alcohol", "description": "Flag indicates that item contain alcohol", "default": false, "type": "boolean" } }, "required": [ "partner_id", "name" ] }, "CreateModifierSchema": { "title": "CreateModifierSchema", "type": "object", "properties": { "pos_id": { "title": "POS modifier id", "description": "Modifier id from your POS system", "type": "string" }, "partner_id": { "title": "Partner modifier id", "description": "Partner modifier id. Filled in manually", "type": "string" }, "name": { "title": "Name", "description": "The displayed name for the modifier or size", "type": "string" }, "is_required": { "title": "Is required", "description": "A boolean field that indicates that the modifier is required or not ", "default": false, "type": "boolean" }, "min_options": { "title": "Min options", "description": "Min number of options which customer select.", "default": 0, "type": "integer" }, "max_options": { "title": "Max options", "description": "Max number of options which customer select.", "default": 3, "type": "integer" }, "default_options": { "title": "Default options", "description": "The options ids, if any, that are selected by default for this modifier", "default": [], "type": "array", "items": { "type": "string" } }, "partner_options": { "title": "Partner options", "description": "\n All of the partner IDs for the menu options that belongs to this modifier.\n Options will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } }, "type": { "title": "Modifier type", "description": "\n The type of modifier it can be size or variation.\n Min and max options will be ignored if modifier type is 'size'.\n ", "default": "variation", "type": "string" }, "free_options_quantity": { "title": "Free Options Quantity", "description": "Indicates how many options are free when this modifier is selected when this modifier is selected", "minimum": 0, "type": "integer" }, "min_options_quantity": { "title": "Min Options Quantity", "description": "Indicates the minimum number of options quantity that must be selected when this modifier is selected", "minimum": 0, "type": "integer" }, "max_options_quantity": { "title": "Max Options Quantity", "description": "Indicates the maximum number of options quantity that can be selected when this modifier is selected", "minimum": 0, "type": "integer" } }, "required": [ "partner_id", "name" ] }, "CreateOptionSchema": { "title": "CreateOptionSchema", "type": "object", "properties": { "pos_id": { "title": "POS option id", "description": "Option id from your POS system", "type": "string" }, "partner_id": { "title": "Partner option id", "description": "Partner option id.", "type": "string" }, "name": { "title": "Name", "description": "The displayed name for the option or size", "type": "string" }, "price": { "title": "Price", "description": "The cost of this option", "default": 0, "minimum": 0, "type": "number" }, "original_price": { "title": "The cost of the item for pickup. This price does not include delivery charges. This field should be a positive number.", "minimum": 0, "type": "number" }, "prices_customization": { "title": "Prices Customization", "description": "Custom price information for selected providers. Contains mapping of provider_id to prices. This field can be skipped, but cannot contain a null value.", "default": {}, "type": "object", "additionalProperties": { "$ref": "#/components/schemas/shared_library__kh_core_models__menu__menu_deprecated__CustomPriceSchema" } }, "tax_rate": { "title": "Tax rate", "description": "\n Extra tax which may be added to some options on top of regular sales tax.. Must be between 0 and 1.\n ", "type": "number" }, "tax_category": { "title": "Tax category", "description": "Tax category that an option belongs to (only for Canada)", "allOf": [ { "$ref": "#/components/schemas/TaxCategory" } ] }, "description": { "title": "Description", "description": "Option description", "type": "string" }, "is_deactivated": { "title": "Is deactivated", "description": "Boolean field which show if option is deactivated. Client can also specify the time when option is deactivated", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Start date", "description": "Date since option is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "deactivation_end_date": { "title": "End date", "description": "Date till option is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "partner_modifiers": { "title": "Partner modifiers", "description": "\n Option's nested modifiers.\n Maximum nesting level = 3.\n ", "default": [], "type": "array", "items": { "type": "string" } } }, "required": [ "partner_id", "name" ] }, "CreateAvailabilitySchema": { "title": "CreateAvailabilitySchema", "type": "object", "properties": { "partner_id": { "title": "Partner availability id", "description": "Partner availability id. Filled in manually", "type": "string" }, "rules": { "title": "Rules", "type": "array", "items": { "$ref": "#/components/schemas/ms_api__dtos__menu_v2__Rule" } } }, "required": [ "partner_id", "rules" ] }, "CreateMenuSchema": { "title": "CreateMenuSchema", "type": "object", "properties": { "menu": { "title": "Menu Info", "allOf": [ { "$ref": "#/components/schemas/CreateMenuInfoSchema" } ] }, "categories": { "title": "Categories", "type": "array", "items": { "$ref": "#/components/schemas/CreateCategorySchema" } }, "items": { "title": "Items", "type": "array", "items": { "$ref": "#/components/schemas/CreateItemSchema" } }, "modifiers": { "title": "Modifiers", "type": "array", "items": { "$ref": "#/components/schemas/CreateModifierSchema" } }, "options": { "title": "Options", "type": "array", "items": { "$ref": "#/components/schemas/CreateOptionSchema" } }, "availabilities": { "title": "Availabilities", "type": "array", "items": { "$ref": "#/components/schemas/CreateAvailabilitySchema" } } }, "required": [ "menu", "categories", "items", "modifiers", "options", "availabilities" ] }, "StoreRetrieveResponseSerializer": { "title": "StoreRetrieveResponseSerializer", "type": "object", "properties": { "id": { "title": "Id", "description": "Store Id in our system", "type": "string" }, "partner_store_id": { "title": "Partner Store Id", "description": "Store ID in your system", "type": "string" }, "store_name": { "title": "Store Name", "description": "Store Name", "type": "string" }, "street": { "title": "Street", "description": "Restaurant Street", "type": "string" }, "city": { "title": "Restaurant City", "description": "Restaurant City", "type": "string" }, "country": { "title": "Restaurant Country", "description": "Restaurant Country", "type": "string" }, "state": { "title": "Restaurant State", "description": "Restaurant State", "type": "string" }, "zipcode": { "title": "Restaurant Zipcode", "description": "Restaurant Zipcode", "type": "string" }, "lat": { "title": "Restaurant Latitude", "description": "Restaurant Latitude", "type": "number" }, "lon": { "title": "Restaurant Longitude", "description": "Restaurant Longitude", "type": "number" }, "location_id": { "title": "Location Id", "description": "Location Id", "type": "string" }, "created_at": { "title": "Created at", "description": "Created at", "type": "string" }, "auto_accept_enabled": { "title": "Auto Accept Enabled", "description": "Auto Accept Orders.", "type": "boolean" }, "auto_complete_enabled": { "title": "Auto Complete Enabled", "description": "Auto complete orders.", "type": "boolean" }, "auto_accept_cooking_time": { "title": "Auto Accept Cooking Time", "description": "Auto accept orders cooking time in minutes.", "type": "integer" }, "pickup_notes": { "title": "Pickup Notes", "description": "Pickup Notes", "type": "string" }, "restaurant_delivery_time": { "title": "Restaurant delivery time", "description": "Restaurant self-delivery time in minutes. Default value: 30", "default": 30, "type": "integer" }, "auto_accept_delivery_enabled": { "title": "Auto Accept Delivery Enabled", "description": "Auto accept delivery enabled indicates whether automatic order delivery confirmation is enabled.", "type": "boolean" } }, "required": [ "id", "country", "created_at" ] }, "StoreListResponseSerializer": { "title": "StoreListResponseSerializer", "type": "object", "properties": { "stores": { "title": "Stores", "description": "Stores", "type": "array", "items": { "$ref": "#/components/schemas/StoreRetrieveResponseSerializer" } } }, "required": [ "stores" ] }, "RefreshTokenRequestSerializer": { "title": "RefreshTokenRequestSerializer", "type": "object", "properties": { "refresh_token": { "title": "Refresh Token", "description": "Refresh Token", "type": "string" } }, "required": [ "refresh_token" ] }, "ResponseListOrdersSerializer": { "title": "ResponseListOrdersSerializer", "type": "array", "items": { "$ref": "#/components/schemas/ms_api__core_models__OrderModel" } }, "MenuInfoSchema": { "title": "MenuInfoSchema", "type": "object", "properties": { "partner_id": { "title": "Partner menu id", "description": "Id menu from the client", "type": "string" }, "name": { "title": "Name", "description": "The name of the menu to be displayed", "type": "string" }, "description": { "title": "Description", "description": "Menu description", "type": "string" }, "media_url": { "title": "Media url", "description": "The URL where the image file can be downloaded.", "type": "string" }, "partner_categories": { "title": "Partner categories", "description": "\n List of partner categories ids, which belongs to this menu.\n Categories will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } } }, "required": [ "partner_id", "name" ] }, "CategorySchema": { "title": "CategorySchema", "type": "object", "properties": { "pos_id": { "title": "POS category id", "description": "Category id from your POS system", "type": "string" }, "partner_id": { "title": "Partner category id", "description": "Partner category id. Filled in manually", "type": "string" }, "title": { "title": "Title", "description": "The displayed name for the category", "type": "string" }, "description": { "title": "Description", "description": "Category Description", "type": "string" }, "is_deactivated": { "title": "Is deactivated", "description": "Boolean field which show if category is deactivated. Client can also specify the time when category is deactivated", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Deactivation start date", "description": "Date since category is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "deactivation_end_date": { "title": "Deactivation end date", "description": "Date till category is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "media_url": { "title": "Media url", "description": "The URL where the image file can be downloaded.", "type": "string" }, "partner_items": { "title": "Partner items", "description": "\n All of the partner IDs for the menu items that belongs to this category.\n Items will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } }, "partner_availability": { "title": "Partner availability", "description": "Partner ID of availability, which is connected with this category(opening hours of the restaurant)", "type": "string" } }, "required": [ "partner_id", "title" ] }, "ItemSchema": { "title": "ItemSchema", "type": "object", "properties": { "pos_id": { "title": "POS item id", "description": "Item id from your POS system", "type": "string" }, "partner_id": { "title": "Partner item id", "description": "Partner item id", "type": "string" }, "name": { "title": "Name", "description": "The display name of the menu item", "type": "string" }, "description": { "title": "Description", "description": "Item description", "type": "string" }, "internal_notes": { "title": "Internal notes", "description": "Additional information about item cooking", "type": "string" }, "is_deactivated": { "title": "Is deactivated", "description": "\n Boolean field which show if item is deactivated.\n Client can also specify the time when item is deactivated\n ", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Deactivation start date", "description": "Date since item is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "deactivation_end_date": { "title": "Deactivation end date", "description": "Date till item is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "media_url": { "title": "Media url", "description": "The URL where the image file can be downloaded.", "type": "string" }, "price": { "title": "Price", "description": "The cost of this item. This field should be a positive number.", "default": 0, "minimum": 0, "type": "number" }, "original_price": { "title": "Original item price", "description": "The cost of the item for pickup. This price does not include delivery charges. This field should be a positive number.", "minimum": 0, "type": "number" }, "prices_customization": { "title": "Prices Customization", "description": "Custom price information for selected providers. Contains mapping of provider_id to prices. This field can be skipped, but cannot contain a null value.", "default": {}, "type": "object", "additionalProperties": { "$ref": "#/components/schemas/shared_library__kh_core_models__menu__menu_deprecated__CustomPriceSchema" } }, "min_amount": { "title": "Min amount", "description": "Default minimum quantity that can be ordered of this item. Default value - 1", "default": 1, "minimum": 1, "type": "integer" }, "max_amount": { "title": "Max amount", "description": "Default maximum quantity that can be ordered of this item. Default value - 3", "default": 3, "type": "integer" }, "partner_availability": { "title": "Partner availability", "description": "Partner ID of availability, which is connected with this item (opening hours of the restaurant)", "type": "string" }, "partner_modifiers": { "title": "Partner modifiers", "description": "\n All of the partner IDs for the menu modifiers that belongs to this item.\n Modifiers will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } }, "tax_rate": { "title": "Tax rate", "description": "\n Extra tax which may be added to some items on top of regular sales tax. Must be between 0 and 1.\n ", "type": "number" }, "tax_category": { "title": "Tax category", "description": "Tax category that an item belongs to (only for Canada). It's ignored if is_alcohol is True", "allOf": [ { "$ref": "#/components/schemas/TaxCategory" } ] }, "is_alcohol": { "title": "Is alcohol", "description": "Flag indicates that item contain alcohol", "default": false, "type": "boolean" } }, "required": [ "partner_id", "name" ] }, "ModifierSchema": { "title": "ModifierSchema", "type": "object", "properties": { "pos_id": { "title": "POS modifier id", "description": "Modifier id from your POS system", "type": "string" }, "partner_id": { "title": "Partner modifier id", "description": "Partner modifier id. Filled in manually", "type": "string" }, "name": { "title": "Name", "description": "The displayed name for the modifier or size", "type": "string" }, "is_required": { "title": "Is required", "description": "A boolean field that indicates that the modifier is required or not ", "default": false, "type": "boolean" }, "min_options": { "title": "Min options", "description": "Min number of options which customer select.", "default": 0, "type": "integer" }, "max_options": { "title": "Max options", "description": "Max number of options which customer select.", "default": 3, "type": "integer" }, "default_options": { "title": "Default options", "description": "The options ids, if any, that are selected by default for this modifier", "default": [], "type": "array", "items": { "type": "string" } }, "partner_options": { "title": "Partner options", "description": "\n All of the partner IDs for the menu options that belongs to this modifier.\n Options will be displayed in UI in the same order they are listed here.\n ", "default": [], "type": "array", "items": { "type": "string" } }, "type": { "title": "Modifier type", "description": "\n The type of modifier it can be size or variation.\n Min and max options will be ignored if modifier type is 'size'.\n ", "default": "variation", "type": "string" }, "free_options_quantity": { "title": "Free Options Quantity", "description": "Indicates how many options are free when this modifier is selected when this modifier is selected", "minimum": 0, "type": "integer" }, "min_options_quantity": { "title": "Min Options Quantity", "description": "Indicates the minimum number of options quantity that must be selected when this modifier is selected", "minimum": 0, "type": "integer" }, "max_options_quantity": { "title": "Max Options Quantity", "description": "Indicates the maximum number of options quantity that can be selected when this modifier is selected", "minimum": 0, "type": "integer" } }, "required": [ "partner_id", "name" ] }, "OptionSchema": { "title": "OptionSchema", "type": "object", "properties": { "pos_id": { "title": "POS option id", "description": "Option id from your POS system", "type": "string" }, "partner_id": { "title": "Partner option id", "description": "Partner option id.", "type": "string" }, "name": { "title": "Name", "description": "The displayed name for the option or size", "type": "string" }, "price": { "title": "Price", "description": "The cost of this option", "default": 0, "minimum": 0, "type": "number" }, "original_price": { "title": "The cost of the item for pickup. This price does not include delivery charges. This field should be a positive number.", "minimum": 0, "type": "number" }, "prices_customization": { "title": "Prices Customization", "description": "Custom price information for selected providers. Contains mapping of provider_id to prices. This field can be skipped, but cannot contain a null value.", "default": {}, "type": "object", "additionalProperties": { "$ref": "#/components/schemas/shared_library__kh_core_models__menu__menu_deprecated__CustomPriceSchema" } }, "tax_rate": { "title": "Tax rate", "description": "\n Extra tax which may be added to some options on top of regular sales tax.. Must be between 0 and 1.\n ", "type": "number" }, "tax_category": { "title": "Tax category", "description": "Tax category that an option belongs to (only for Canada)", "allOf": [ { "$ref": "#/components/schemas/TaxCategory" } ] }, "description": { "title": "Description", "description": "Option description", "type": "string" }, "is_deactivated": { "title": "Is deactivated", "description": "Boolean field which show if option is deactivated. Client can also specify the time when option is deactivated", "default": false, "type": "boolean" }, "deactivation_start_date": { "title": "Start date", "description": "Date since option is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "deactivation_end_date": { "title": "End date", "description": "Date till option is deactivated (format year-month-dayThour:minute:second.msecZ)", "type": "string", "format": "date-time" }, "partner_modifiers": { "title": "Partner modifiers", "description": "\n Option's nested modifiers.\n Maximum nesting level = 3.\n ", "default": [], "type": "array", "items": { "type": "string" } } }, "required": [ "partner_id", "name" ] }, "AvailabilitySchema": { "title": "AvailabilitySchema", "type": "object", "properties": { "partner_id": { "title": "Partner availability id", "description": "Partner availability id. Filled in manually", "type": "string" }, "rules": { "title": "Rules", "type": "array", "items": { "$ref": "#/components/schemas/ms_api__dtos__menu_v2__Rule" } } }, "required": [ "partner_id", "rules" ] }, "MenuSchema": { "title": "MenuSchema", "type": "object", "properties": { "menu": { "$ref": "#/components/schemas/MenuInfoSchema" }, "categories": { "title": "Categories", "type": "array", "items": { "$ref": "#/components/schemas/CategorySchema" } }, "items": { "title": "Items", "type": "array", "items": { "$ref": "#/components/schemas/ItemSchema" } }, "modifiers": { "title": "Modifiers", "type": "array", "items": { "$ref": "#/components/schemas/ModifierSchema" } }, "options": { "title": "Options", "type": "array", "items": { "$ref": "#/components/schemas/OptionSchema" } }, "availabilities": { "title": "Availabilities", "type": "array", "items": { "$ref": "#/components/schemas/AvailabilitySchema" } } }, "required": [ "menu", "categories", "items", "modifiers", "options", "availabilities" ] }, "IntegrationOnlineStatus": { "title": "IntegrationOnlineStatus", "description": "Enums for integration account online status", "enum": [ "online", "offline", "unknown" ] }, "StoreOnlineStatusResponseSerializer": { "title": "StoreOnlineStatusResponseSerializer", "type": "object", "properties": { "online": { "description": "Store online status. Example: online, offline, unknown", "allOf": [ { "$ref": "#/components/schemas/IntegrationOnlineStatus" } ] }, "offline_reason": { "title": "Offline Reason", "description": "Offline reason", "type": "string" } }, "required": [ "online" ] }, "OrderData": { "title": "OrderModel", "type": "object", "properties": { "order": { "$ref": "#/components/schemas/ms_api__dtos__mock__Order" }, "provider": { "$ref": "#/components/schemas/ms_api__dtos__mock__Provider" }, "store": { "$ref": "#/components/schemas/ms_api__dtos__mock__Store" }, "customer": { "$ref": "#/components/schemas/ms_api__dtos__mock__Customer" }, "items": { "title": "Items", "type": "array", "items": { "$ref": "#/components/schemas/ms_api__dtos__mock__Item" } }, "delivery": { "$ref": "#/components/schemas/ms_api__dtos__mock__Delivery" }, "payment": { "$ref": "#/components/schemas/ms_api__dtos__mock__Payment" }, "charges": { "$ref": "#/components/schemas/ms_api__dtos__mock__Charges" }, "timestamps": { "$ref": "#/components/schemas/ms_api__dtos__mock__Timestamps" } }, "required": [ "order", "provider", "store", "customer", "items", "delivery", "payment", "charges", "timestamps" ] }, "ErrorResponse": { "type": "object", "properties": { "error": { "type": "string" }, "message": { "type": "string" } } } }, "responses": {}, "parameters": {}, "examples": {}, "requestBodies": {}, "headers": {}, "securitySchemes": { "apiKeyAuth": { "type": "apiKey", "description": "Enter the token with the `Bearer: ` prefix, e.g. 'Bearer abcde12345'.", "name": "Authorization", "in": "header" } }, "links": {}, "callbacks": {} }, "security": [ { "apiKeyAuth": [] } ], "tags": [] }