{
  "openapi": "3.1.0",
  "info": {
    "title": "OpenQloud Market Platform API",
    "version": "v1",
    "description": "### Introduction\nConnect your marketplace, QR ordering application, kiosk or ordering software to OpenQloud through the Market Platform API.\n\n### Access\nManage your developer account and integration credentials at https://console.openqloud.com. Requests use x-api-server-access-token and the connection-specific x-api-user-access-token. Connection credentials are not obtained through a restaurant login endpoint.\n\n### API environment\nProduction base URL: https://api.openqloud.com/market-platform/v1.\n\n### Capabilities\nRead selling points, menus and availability; submit and manage orders; exchange table-service data and receive configured webhooks. OpenQloud is the shared data standard, not a restaurant application or middleware user interface.\n\nDocumentation: https://www.openqloud.com/en/docs/market-platform-api/"
  },
  "servers": [
    {
      "url": "https://api.openqloud.com/market-platform/v1",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "SellingPoint",
      "description": "Menus and selling point availability"
    },
    {
      "name": "Order",
      "description": "Order services"
    },
    {
      "name": "Table service specific",
      "description": "Read service zones and service locations, create table-service orders, and manage grouped orders and payments through the documented API. Your software or middleware provides the user interface."
    }
  ],
  "paths": {
    "/definition.json": {
      "get": {
        "operationId": "getDefinition",
        "summary": "Get the Market Platform API definition",
        "security": [],
        "responses": {
          "200": {
            "description": "The public Market Platform API definition",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/modules/{moduleCode}/orders": {
      "post": {
        "operationId": "postModuleOrder",
        "summary": "Create an order through a legacy module alias",
        "parameters": [
          {
            "name": "moduleCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/modules/{moduleCode}/orders/{marketOrderId}": {
      "get": {
        "operationId": "getModuleOrder",
        "summary": "Get an order through a legacy module alias",
        "parameters": [
          {
            "name": "moduleCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "marketOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sellingPointId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "avoidErrors",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/modules/{moduleCode}/orders/{marketOrderId}/status": {
      "post": {
        "operationId": "postModuleOrderStatus",
        "summary": "Update an order status through a legacy module alias",
        "parameters": [
          {
            "name": "moduleCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "marketOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Order status",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/orders/{marketOrderId}/cancel": {
      "post": {
        "operationId": "postOrderCancel",
        "summary": "Cancel an order through the root legacy alias",
        "parameters": [
          {
            "name": "marketOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Cancelled order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/markets/{marketCode}/clients": {
      "get": {
        "operationId": "getMarketClients",
        "summary": "List consumers known by a market",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "accountExtended",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Clients",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/markets/{marketCode}/checkout/validation": {
      "post": {
        "operationId": "postCheckoutValidation",
        "summary": "Validate a checkout without creating an order",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Checkout validation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "checkout",
                    "validations"
                  ],
                  "properties": {
                    "checkout": {
                      "type": "object"
                    },
                    "validations": {
                      "type": "object"
                    },
                    "availability": {}
                  }
                }
              }
            }
          }
        }
      }
    },
    "/menus/catalog/callback": {
      "post": {
        "operationId": "postMarketMenuCatalogCallback",
        "summary": "Register an asynchronous marketplace catalog callback",
        "parameters": [
          {
            "name": "marketCode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "catalogImportId"
                ],
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Callback registered",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "catalogImportId"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "catalogImportId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/markets/{marketCode}/catalog/callback": {
      "post": {
        "operationId": "postMarketCatalogCallback",
        "summary": "Register a catalog callback for a market",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "catalogImportId"
                ],
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Callback registered",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "success",
                    "catalogImportId"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "catalogImportId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/markets/{marketCode}/connections/{connectionId}": {
      "get": {
        "operationId": "getMarketConnection",
        "summary": "Get a market connection",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Connection",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/markets/{marketCode}/connections/{connectionId}/menus": {
      "get": {
        "operationId": "getMarketConnectionMenus",
        "summary": "Get menus for a market connection",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Menus",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/markets/{marketCode}/connections/{connectionId}/menus/availability": {
      "get": {
        "operationId": "getMarketConnectionMenusAvailability",
        "summary": "Get menu availability for a market connection",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Menu availability",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/modules/{moduleCode}/connections/{connectionId}/menus": {
      "get": {
        "operationId": "getModuleConnectionMenus",
        "summary": "Get menus through a module connection alias",
        "parameters": [
          {
            "name": "moduleCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Menus",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/modules/{moduleCode}/connections/{connectionId}/orders/{marketOrderId}": {
      "get": {
        "operationId": "getModuleConnectionOrder",
        "summary": "Get an order through a module connection alias",
        "parameters": [
          {
            "name": "moduleCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "marketOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/markets/{marketCode}/sellingPoints": {
      "get": {
        "summary": "Get market selling points",
        "description": "Get all market selling points",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "6a6861963c"
            },
            "description": "Market code identifier"
          },
          {
            "name": "tags",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Filter by tags code",
              "example": "veggie"
            },
            "description": "Filter by tags code"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SellingPointsCollection"
                },
                "example": [
                  {
                    "id": 3442,
                    "name": "My restaurant",
                    "address": {
                      "id": 1003,
                      "street": "C/ Example, 23",
                      "details": "Canada building",
                      "city": "City name",
                      "province": "Province name",
                      "postalCode": "12345",
                      "latitude": 41.308166,
                      "longitude": 2.019725,
                      "googlePlaceId": "xxxxxxxxxxxx",
                      "placeName": "C/ Example, 23, City name"
                    },
                    "phone": "+34600000000",
                    "email": "myrestaurant@example.com",
                    "logo": "http://mycdn.com/selling-point-logo.jpeg",
                    "mainImage": "http://mycdn.com/selling-point-main-image.jpeg",
                    "listImage": "http://mycdn.com/selling-point-list-image.jpeg",
                    "urlKey": "restaurant-name-city",
                    "type": "Italian",
                    "timezone": "Europe/Madrid",
                    "description": "This restaurant...",
                    "schedule": {
                      "id": 2113,
                      "ranges": [
                        {
                          "startTime": "06:00:00",
                          "endTime": "18:00:00",
                          "timezone": "Europe/Madrid",
                          "startDay": {
                            "id": 1,
                            "name": "Lunes"
                          },
                          "endDay": {
                            "id": 1,
                            "name": "Lunes"
                          }
                        }
                      ]
                    },
                    "allowedOrderTypes": [
                      null
                    ],
                    "tags": [
                      {
                        "name": "Veggie",
                        "code": "veggie"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "SellingPoint"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      }
    },
    "/markets/{marketCode}/sellingPoints/{sellingPointId}": {
      "get": {
        "summary": "Get market selling point",
        "description": "Get market selling point by id",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "glovo"
            },
            "description": "Market code identifier"
          },
          {
            "name": "sellingPointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "description": "Selling point identifier",
              "example": 1176
            },
            "description": "Selling point identifier"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SellingPoint"
                },
                "example": {
                  "id": 3961,
                  "name": "SuperPizza",
                  "address": {
                    "id": 16187,
                    "street": "Carrer de la Tecnologia, 17",
                    "details": "",
                    "city": "Viladecans",
                    "province": "Barcelona",
                    "postalCode": "08840",
                    "latitude": 41.31372,
                    "longitude": 2.031222,
                    "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
                    "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
                    "autoGeolocated": true
                  },
                  "phone": "+34900000000",
                  "email": "superpizza@example.com",
                  "logo": "https://example.com/e4cd836538_f79efe5783_82291551976531iconImagesqd2mt.png",
                  "mainImage": "https://example.com/d770d57632_4e01533575_85091551975570baked-cheese-cherry-tomato-1552635.png",
                  "mainImageLarge": "https://example.com/1551975570_bab77d7d5bbcec5e64cd3c1ac22c56ee.png",
                  "listImage": "https://example.com/d770d57632_4e01533575_85091551975570baked-cheese-cherry-tomato-1552635.png",
                  "listImageLarge": "https://example.com/1551975570_bab77d7d5bbcec5e64cd3c1ac22c56ee.png",
                  "type": "Pizzería",
                  "allowedOrderTypes": [
                    "delivery",
                    "collection",
                    "insitu",
                    "reservation",
                    "inside"
                  ],
                  "urlKey": "superpizza-viladecans",
                  "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin euismod ante sit amet nulla pretium imperdiet. Nunc laoreet ultricies metus a dictum. Aliquam lorem dui, volutpat vitae orci ut, efficitur pretium erat. Nulla consectetur varius ullamcorper. In ut tristique odio, vitae dignissim magna. Cras euismod eleifend commodo. Cras iaculis felis non mauris mattis, quis pulvinar tellus tincidunt.\n\nEtiam congue augue dapibus odio rhoncus, vel gravida est mattis. In ultrices suscipit ante ut dapibus. Curabitur quis nisl eu lacus sollicitudin vestibulum ac non magna. Vivamus et diam ac odio aliquam efficitur. Fusce ultrices aliquam massa id viverra. Suspendisse eu fringilla nisi. Nullam accumsan neque non lorem ultricies vestibulum id eget tellus.",
                  "schedule": {
                    "id": 1193,
                    "ranges": [
                      {
                        "startTime": "19:00",
                        "endTime": "23:30",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 1,
                          "name": "Lunes"
                        },
                        "endDay": {
                          "id": 1,
                          "name": "Lunes"
                        }
                      },
                      {
                        "startTime": "11:00",
                        "endTime": "16:00",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 2,
                          "name": "Martes"
                        },
                        "endDay": {
                          "id": 2,
                          "name": "Martes"
                        }
                      },
                      {
                        "startTime": "20:00",
                        "endTime": "23:30",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 2,
                          "name": "Martes"
                        },
                        "endDay": {
                          "id": 2,
                          "name": "Martes"
                        }
                      },
                      {
                        "startTime": "11:00",
                        "endTime": "16:00",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 3,
                          "name": "Miércoles"
                        },
                        "endDay": {
                          "id": 3,
                          "name": "Miércoles"
                        }
                      },
                      {
                        "startTime": "20:00",
                        "endTime": "23:30",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 3,
                          "name": "Miércoles"
                        },
                        "endDay": {
                          "id": 3,
                          "name": "Miércoles"
                        }
                      },
                      {
                        "startTime": "11:00",
                        "endTime": "16:00",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 4,
                          "name": "Jueves"
                        },
                        "endDay": {
                          "id": 4,
                          "name": "Jueves"
                        }
                      },
                      {
                        "startTime": "20:00",
                        "endTime": "23:30",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 4,
                          "name": "Jueves"
                        },
                        "endDay": {
                          "id": 4,
                          "name": "Jueves"
                        }
                      },
                      {
                        "startTime": "11:00",
                        "endTime": "16:00",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 5,
                          "name": "Viernes"
                        },
                        "endDay": {
                          "id": 5,
                          "name": "Viernes"
                        }
                      },
                      {
                        "startTime": "20:00",
                        "endTime": "23:30",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 5,
                          "name": "Viernes"
                        },
                        "endDay": {
                          "id": 5,
                          "name": "Viernes"
                        }
                      },
                      {
                        "startTime": "11:00",
                        "endTime": "17:00",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 6,
                          "name": "Sábado"
                        },
                        "endDay": {
                          "id": 6,
                          "name": "Sábado"
                        }
                      },
                      {
                        "startTime": "20:00",
                        "endTime": "23:30",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 6,
                          "name": "Sábado"
                        },
                        "endDay": {
                          "id": 6,
                          "name": "Sábado"
                        }
                      },
                      {
                        "startTime": "12:00",
                        "endTime": "17:00",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 7,
                          "name": "Domingo"
                        },
                        "endDay": {
                          "id": 7,
                          "name": "Domingo"
                        }
                      },
                      {
                        "startTime": "20:00",
                        "endTime": "23:30",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 7,
                          "name": "Domingo"
                        },
                        "endDay": {
                          "id": 7,
                          "name": "Domingo"
                        }
                      }
                    ]
                  },
                  "tags": [],
                  "timezone": "Europe/Madrid",
                  "customStatusMessage": null
                }
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "SellingPoint"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      }
    },
    "/markets/{marketCode}/sellingPoints/{sellingPointId}/menus": {
      "get": {
        "summary": "Get selling point menus",
        "description": "Get menus",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "glovo"
            },
            "description": "Market code identifier"
          },
          {
            "name": "sellingPointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "sellingPoint identifier",
              "example": 1176
            },
            "description": "sellingPoint identifier"
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "description": "Used date to calculate current product selection flags. If no date is provided the system will use NOW(). Example: 2017-10-10",
              "example": "2026-08-28"
            },
            "description": "Used date to calculate current product selection flags. If no date is provided the system will use NOW(). Example: 2017-10-10"
          },
          {
            "name": "orderType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Used to filter by order type code. More info in 'Understanding order types' section.",
              "enum": [
                "delivery",
                "collection",
                "insitu",
                "inside"
              ],
              "example": "delivery"
            },
            "description": "Filters menus by order type and projects the rate configured for that order type onto every scalar price. More info in 'Understanding order types' section."
          },
          {
            "name": "loadProducts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true,
              "description": "When false, omits the menu section and product collection.",
              "example": true
            },
            "description": "Controls whether products are loaded."
          },
          {
            "name": "loadAvailability",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "description": "When true, includes calculated menu availability.",
              "example": false
            },
            "description": "Controls whether availability is calculated."
          },
          {
            "name": "includeNotMatchingScheduleDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true,
              "description": "Compatibility parameter. Market Platform always returns all menus assigned to the connection; date is used for schedule labels and availability.",
              "example": true
            },
            "description": "Accepted for compatibility with existing Market Platform consumers."
          },
          {
            "name": "extended",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "description": "When true (or 1), returns the enriched menu representation, including translations, allergens, selected rates and other extended catalog fields. When omitted, false or 0, the legacy representation is returned.",
              "example": true
            },
            "description": "Opt in to the enriched menu representation. Accepted enabled values are true and 1."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MenuCollection"
                },
                "example": [
                  {
                    "id": 543,
                    "name": "Pizzas",
                    "type": "menu",
                    "position": 1,
                    "allowedOrderTypes": [
                      null
                    ],
                    "availableFrom": "2017-02-12T21:30:00+0000",
                    "availableTo": "2017-02-12T21:30:00+0000",
                    "hasSelection": true,
                    "selectionAvailable": false,
                    "selectionUpcoming": false,
                    "price": null,
                    "shortDescription": "Our best pizzas",
                    "menuSections": [
                      {
                        "id": "298",
                        "name": "Gluten free",
                        "shortDescription": "Gluten free pizzas",
                        "position": 1,
                        "minSelection": 0,
                        "maxSelection": 0,
                        "showProductImages": true,
                        "selectionLabel": "One required",
                        "products": [
                          {
                            "id": "843",
                            "name": "Neapolitan Pizza",
                            "image": "https://example.com/assets/images/placeholder_image.jpg",
                            "price": 11.5,
                            "public": true,
                            "featured": false,
                            "shortDescription": "Tomatoes, cheese, oil, and garlic",
                            "description": "It was our first pizza ...",
                            "parentName": null,
                            "isAvailable": true,
                            "tags": [
                              null
                            ],
                            "productOptionsCategories": [
                              {
                                "id": "102",
                                "name": "Our ingredients",
                                "shortDescription": "What do you put on your pizza?",
                                "position": 1,
                                "maxSelection": 10,
                                "minSelection": null,
                                "maxSameOptionSelection": 2,
                                "selectionLabel": "Max. 10",
                                "productOptions": [
                                  {
                                    "id": "233",
                                    "name": "Cheddar",
                                    "shortDescription": "Add cheddar to your pizza",
                                    "position": 1,
                                    "isAvailable": true,
                                    "price": 0.75
                                  }
                                ]
                              }
                            ],
                            "urlKey": "product-name",
                            "productVariants": [
                              {
                                "id": "843",
                                "name": "XXL size",
                                "image": "https://example.com/assets/images/placeholder_image.jpg",
                                "price": 14,
                                "public": true,
                                "featured": false,
                                "shortDescription": "Tomatoes, cheese, oil, and garlic",
                                "description": "It was our first pizza ...",
                                "parentName": null,
                                "isAvailable": true,
                                "tags": [
                                  null
                                ],
                                "productOptionsCategories": [
                                  {
                                    "id": "102",
                                    "name": "Our ingredients",
                                    "shortDescription": "What do you put on your pizza?",
                                    "position": 1,
                                    "maxSelection": 10,
                                    "minSelection": null,
                                    "maxSameOptionSelection": 2,
                                    "selectionLabel": "Max. 10",
                                    "productOptions": [
                                      {
                                        "id": "233",
                                        "name": "Cheddar",
                                        "shortDescription": "Add cheddar to your pizza",
                                        "position": 1,
                                        "isAvailable": true,
                                        "price": 0.75
                                      }
                                    ]
                                  }
                                ],
                                "urlKey": "product-name"
                              }
                            ]
                          }
                        ]
                      }
                    ],
                    "urlKey": "menu-name",
                    "schedule": {
                      "id": 2113,
                      "ranges": [
                        {
                          "startTime": "06:00:00",
                          "endTime": "18:00:00",
                          "timezone": "Europe/Madrid",
                          "startDay": {
                            "id": 1,
                            "name": "Lunes"
                          },
                          "endDay": {
                            "id": 1,
                            "name": "Lunes"
                          }
                        }
                      ]
                    },
                    "scheduleLabel": "All days from 09:00h to 22:00h"
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "SellingPoint"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      }
    },
    "/markets/{marketCode}/sellingPoints/{sellingPointId}/menus/availability": {
      "get": {
        "summary": "Get selling point menus with availability",
        "description": "Get menus with availability",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "glovo"
            },
            "description": "Market code identifier"
          },
          {
            "name": "sellingPointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "sellingPoint identifier",
              "example": 1176
            },
            "description": "sellingPoint identifier"
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "description": "Used date to calculate menu availability. If no date is provided the system will use NOW(). Example: 2017-10-10",
              "example": "2026-08-28"
            },
            "description": "Used date to calculate menu availability. If no date is provided the system will use NOW(). Example: 2017-10-10"
          },
          {
            "name": "orderType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Used to filter by order type code. More info in 'Understanding order types' section.",
              "enum": [
                "delivery",
                "collection",
                "insitu",
                "inside"
              ],
              "example": "delivery"
            },
            "description": "Used to filter by order type code. More info in 'Understanding order types' section."
          },
          {
            "name": "loadProducts",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Default value is true if the parameter is not send in the request. If loadProducts is false, the menu will not return menuSections property.",
              "example": true
            },
            "description": "Default value is true if the parameter is not send in the request. If loadProducts is false, the menu will not return menuSections property."
          },
          {
            "name": "extended",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "description": "When true (or 1), returns the enriched menu representation, including translations, allergens, selected rates and other extended catalog fields. When omitted, false or 0, the legacy representation is returned.",
              "example": true
            },
            "description": "Opt in to the enriched menu representation. Accepted enabled values are true and 1."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Menus"
                },
                "example": [
                  {
                    "id": 543,
                    "name": "Pizzas",
                    "type": "menu",
                    "position": 1,
                    "allowedOrderTypes": [
                      null
                    ],
                    "availableFrom": "2017-02-12T21:30:00+0000",
                    "availableTo": "2017-02-12T21:30:00+0000",
                    "hasSelection": true,
                    "selectionAvailable": false,
                    "selectionUpcoming": false,
                    "price": null,
                    "shortDescription": "Our best pizzas",
                    "menuSections": [
                      {
                        "id": "298",
                        "name": "Gluten free",
                        "shortDescription": "Gluten free pizzas",
                        "position": 1,
                        "minSelection": 0,
                        "maxSelection": 0,
                        "showProductImages": true,
                        "selectionLabel": "One required",
                        "products": [
                          {
                            "id": "843",
                            "name": "Neapolitan Pizza",
                            "image": "https://example.com/assets/images/placeholder_image.jpg",
                            "price": 11.5,
                            "public": true,
                            "featured": false,
                            "shortDescription": "Tomatoes, cheese, oil, and garlic",
                            "description": "It was our first pizza ...",
                            "parentName": null,
                            "isAvailable": true,
                            "tags": [
                              null
                            ],
                            "productOptionsCategories": [
                              {
                                "id": "102",
                                "name": "Our ingredients",
                                "shortDescription": "What do you put on your pizza?",
                                "position": 1,
                                "maxSelection": 10,
                                "minSelection": null,
                                "maxSameOptionSelection": 2,
                                "selectionLabel": "Max. 10",
                                "productOptions": [
                                  {
                                    "id": "233",
                                    "name": "Cheddar",
                                    "shortDescription": "Add cheddar to your pizza",
                                    "position": 1,
                                    "isAvailable": true,
                                    "price": 0.75
                                  }
                                ]
                              }
                            ],
                            "urlKey": "product-name",
                            "productVariants": [
                              {
                                "id": "843",
                                "name": "XXL size",
                                "image": "https://example.com/assets/images/placeholder_image.jpg",
                                "price": 14,
                                "public": true,
                                "featured": false,
                                "shortDescription": "Tomatoes, cheese, oil, and garlic",
                                "description": "It was our first pizza ...",
                                "parentName": null,
                                "isAvailable": true,
                                "tags": [
                                  null
                                ],
                                "productOptionsCategories": [
                                  {
                                    "id": "102",
                                    "name": "Our ingredients",
                                    "shortDescription": "What do you put on your pizza?",
                                    "position": 1,
                                    "maxSelection": 10,
                                    "minSelection": null,
                                    "maxSameOptionSelection": 2,
                                    "selectionLabel": "Max. 10",
                                    "productOptions": [
                                      {
                                        "id": "233",
                                        "name": "Cheddar",
                                        "shortDescription": "Add cheddar to your pizza",
                                        "position": 1,
                                        "isAvailable": true,
                                        "price": 0.75
                                      }
                                    ]
                                  }
                                ],
                                "urlKey": "product-name"
                              }
                            ]
                          }
                        ]
                      }
                    ],
                    "urlKey": "menu-name",
                    "schedule": {
                      "id": 2113,
                      "ranges": [
                        {
                          "startTime": "06:00:00",
                          "endTime": "18:00:00",
                          "timezone": "Europe/Madrid",
                          "startDay": {
                            "id": 1,
                            "name": "Lunes"
                          },
                          "endDay": {
                            "id": 1,
                            "name": "Lunes"
                          }
                        }
                      ]
                    },
                    "scheduleLabel": "All days from 09:00h to 22:00h",
                    "deliveryAvailability": {
                      "checkoutAllowed": true,
                      "orderTypeAllowed": true,
                      "availabilityLabel": "DISPONIBLE hoy 15/02",
                      "availableRangesLabel": "Hoy de 08 a 22",
                      "availableRanges": [
                        {
                          "startTime": "2018-02-15T08:00:00+0000",
                          "endTime": "2018-02-15T22:00:00+0000"
                        }
                      ]
                    },
                    "collectionAvailability": {
                      "checkoutAllowed": true,
                      "orderTypeAllowed": true,
                      "availabilityLabel": "DISPONIBLE hoy 15/02",
                      "availableRangesLabel": "Hoy de 08 a 22",
                      "availableRanges": [
                        {
                          "startTime": "2018-02-15T08:00:00+0000",
                          "endTime": "2018-02-15T22:00:00+0000"
                        }
                      ]
                    },
                    "insituAvailability": {
                      "checkoutAllowed": true,
                      "orderTypeAllowed": true,
                      "availabilityLabel": "DISPONIBLE hoy 15/02",
                      "availableRangesLabel": "Hoy de 08 a 22",
                      "availableRanges": [
                        {
                          "startTime": "2018-02-15T08:00:00+0000",
                          "endTime": "2018-02-15T22:00:00+0000"
                        }
                      ]
                    }
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "SellingPoint"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      }
    },
    "/markets/{marketCode}/sellingPoints/{sellingPointId}/exceptions/next": {
      "get": {
        "summary": "Get selling point closing exceptions",
        "description": "Get selling point next closing exceptions",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "glovo"
            },
            "description": "Market code identifier"
          },
          {
            "name": "sellingPointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "description": "Selling point identifier",
              "example": 1176
            },
            "description": "Selling point identifier"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SellingPointExceptionCollection"
                },
                "examples": {
                  "scheduled_closure": {
                    "summary": "Selling point with an upcoming closing exception",
                    "value": [
                      {
                        "id": 872,
                        "startsAt": "2026-08-30T22:00:00+0000",
                        "expiresAt": "2026-08-31T21:59:00+0000"
                      }
                    ]
                  },
                  "no_exceptions": {
                    "summary": "Selling point without upcoming closing exceptions",
                    "value": []
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "SellingPoint"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      }
    },
    "/markets/{marketCode}/orders": {
      "post": {
        "summary": "Post order",
        "description": "Create new order",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderRaw"
              },
              "examples": {
                "delivery": {
                  "summary": "Delivery order",
                  "description": "Order delivered to the consumer address, including the delivery charge and address details.",
                  "value": {
                    "marketOrderId": "DOC-DELIVERY-20260828-001",
                    "code": "DOC-DEL-001",
                    "productsAmount": 7.5,
                    "deliveryAmount": 2.5,
                    "discountsAmount": 0,
                    "totalAmount": 10,
                    "executionTime": "2026-08-28 21:00:00",
                    "comment": "Leave the order at reception",
                    "currency": "EUR",
                    "consumer": {
                      "email": "consumer@example.com",
                      "name": "Alex",
                      "lastname": "Doe",
                      "phone": "+34600000000",
                      "billingName": null,
                      "billingAddress": null,
                      "billingVatNumber": null
                    },
                    "type": "delivery",
                    "sellingPoint": {
                      "oqId": 1176
                    },
                    "payments": [
                      {
                        "amount": 10,
                        "tipAmount": 0,
                        "methodCode": "EXTERNAL_PAYMENT"
                      }
                    ],
                    "orderLines": [
                      {
                        "type": "PRODUCT",
                        "totalAmount": 7.5,
                        "unitAdditionalAmount": 0,
                        "unitFinalAmount": 7.5,
                        "unitAmount": 7.5,
                        "quantity": 1,
                        "label": "Pollo Rebozado + Patatas Fritas",
                        "comment": null,
                        "childrenOrderLines": [],
                        "baseAmount": 6.82,
                        "vatAmount": 0.68,
                        "vatValue": 10,
                        "product": {
                          "oqId": 24052
                        }
                      },
                      {
                        "type": "DELIVERY",
                        "totalAmount": 2.5,
                        "unitAmount": 2.5,
                        "quantity": 1,
                        "label": "Delivery cost",
                        "comment": null,
                        "childrenOrderLines": [],
                        "baseAmount": 2.07,
                        "vatAmount": 0.43,
                        "vatValue": 21,
                        "distance": 0
                      }
                    ],
                    "delivery": {
                      "deliveryAddress": {
                        "streetAndNumber": "Carrer de la Tecnologia, 17",
                        "details": "Reception",
                        "city": "Viladecans",
                        "province": "Barcelona",
                        "postalCode": "08840",
                        "latitude": "41.31359311686318",
                        "longitude": "2.0311733479297978",
                        "forceCreation": true
                      }
                    }
                  }
                },
                "collection": {
                  "summary": "Collection order",
                  "description": "Order collected by the consumer at the selling point.",
                  "value": {
                    "marketOrderId": "DOC-COLLECTION-20260828-001",
                    "code": "DOC-COL-001",
                    "productsAmount": 7.5,
                    "deliveryAmount": 0,
                    "discountsAmount": 0,
                    "totalAmount": 7.5,
                    "executionTime": "2026-08-28 21:00:00",
                    "comment": "Consumer will collect at the counter",
                    "currency": "EUR",
                    "consumer": {
                      "email": "consumer@example.com",
                      "name": "Alex",
                      "lastname": "Doe",
                      "phone": "+34600000000",
                      "billingName": null,
                      "billingAddress": null,
                      "billingVatNumber": null
                    },
                    "type": "collection",
                    "sellingPoint": {
                      "oqId": 1176
                    },
                    "payments": [
                      {
                        "amount": 7.5,
                        "tipAmount": 0,
                        "methodCode": "EXTERNAL_PAYMENT"
                      }
                    ],
                    "orderLines": [
                      {
                        "type": "PRODUCT",
                        "totalAmount": 7.5,
                        "unitAdditionalAmount": 0,
                        "unitFinalAmount": 7.5,
                        "unitAmount": 7.5,
                        "quantity": 1,
                        "label": "Pollo Rebozado + Patatas Fritas",
                        "comment": null,
                        "childrenOrderLines": [],
                        "baseAmount": 6.82,
                        "vatAmount": 0.68,
                        "vatValue": 10,
                        "product": {
                          "oqId": 24052
                        }
                      }
                    ]
                  }
                },
                "insitu": {
                  "summary": "On-premise order",
                  "description": "Order consumed at the selling point without table assignment.",
                  "value": {
                    "marketOrderId": "DOC-INSITU-20260828-001",
                    "code": "DOC-INS-001",
                    "productsAmount": 7.5,
                    "deliveryAmount": 0,
                    "discountsAmount": 0,
                    "totalAmount": 7.5,
                    "executionTime": "2026-08-28 21:00:00",
                    "comment": "Customer is waiting on premises",
                    "currency": "EUR",
                    "consumer": {
                      "email": "consumer@example.com",
                      "name": "Alex",
                      "lastname": "Doe",
                      "phone": "+34600000000",
                      "billingName": null,
                      "billingAddress": null,
                      "billingVatNumber": null
                    },
                    "type": "insitu",
                    "sellingPoint": {
                      "oqId": 1176
                    },
                    "payments": [
                      {
                        "amount": 7.5,
                        "tipAmount": 0,
                        "methodCode": "CASH"
                      }
                    ],
                    "orderLines": [
                      {
                        "type": "PRODUCT",
                        "totalAmount": 7.5,
                        "unitAdditionalAmount": 0,
                        "unitFinalAmount": 7.5,
                        "unitAmount": 7.5,
                        "quantity": 1,
                        "label": "Pollo Rebozado + Patatas Fritas",
                        "comment": null,
                        "childrenOrderLines": [],
                        "baseAmount": 6.82,
                        "vatAmount": 0.68,
                        "vatValue": 10,
                        "product": {
                          "oqId": 24052
                        }
                      }
                    ]
                  }
                },
                "reservation": {
                  "summary": "Reservation order",
                  "description": "Order associated with a reservation at the selling point.",
                  "value": {
                    "marketOrderId": "DOC-RESERVATION-20260828-001",
                    "code": "DOC-RES-001",
                    "productsAmount": 7.5,
                    "deliveryAmount": 0,
                    "discountsAmount": 0,
                    "totalAmount": 7.5,
                    "executionTime": "2026-08-28 21:00:00",
                    "comment": "Reservation for two people",
                    "currency": "EUR",
                    "consumer": {
                      "email": "consumer@example.com",
                      "name": "Alex",
                      "lastname": "Doe",
                      "phone": "+34600000000",
                      "billingName": null,
                      "billingAddress": null,
                      "billingVatNumber": null
                    },
                    "type": "reservation",
                    "sellingPoint": {
                      "oqId": 1176
                    },
                    "dinersNumber": 2,
                    "payments": [
                      {
                        "amount": 7.5,
                        "tipAmount": 0,
                        "methodCode": "EXTERNAL_PAYMENT"
                      }
                    ],
                    "orderLines": [
                      {
                        "type": "PRODUCT",
                        "totalAmount": 7.5,
                        "unitAdditionalAmount": 0,
                        "unitFinalAmount": 7.5,
                        "unitAmount": 7.5,
                        "quantity": 1,
                        "label": "Pollo Rebozado + Patatas Fritas",
                        "comment": null,
                        "childrenOrderLines": [],
                        "baseAmount": 6.82,
                        "vatAmount": 0.68,
                        "vatValue": 10,
                        "product": {
                          "oqId": 24052
                        }
                      }
                    ]
                  }
                },
                "inside": {
                  "summary": "Inside/table order",
                  "description": "Order placed from inside the venue, typically from a table-ordering flow.",
                  "value": {
                    "marketOrderId": "DOC-INSIDE-20260828-001",
                    "code": "DOC-TABLE-001",
                    "productsAmount": 17,
                    "deliveryAmount": 0,
                    "discountsAmount": 0,
                    "totalAmount": 17,
                    "executionTime": "2026-08-28 21:00:00",
                    "comment": "Table-ordering flow",
                    "currency": "EUR",
                    "consumer": {
                      "email": "consumer@example.com",
                      "name": "Alex",
                      "lastname": "Doe",
                      "phone": "+34600000000",
                      "billingName": null,
                      "billingAddress": null,
                      "billingVatNumber": null
                    },
                    "type": "inside",
                    "sellingPoint": {
                      "oqId": 375
                    },
                    "dinersNumber": 2,
                    "serviceLocationCode": "S9",
                    "payments": [
                      {
                        "amount": 17,
                        "tipAmount": 0,
                        "methodCode": "EXTERNAL_PAYMENT"
                      }
                    ],
                    "orderLines": [
                      {
                        "type": "PRODUCT",
                        "totalAmount": 17,
                        "unitAdditionalAmount": 0,
                        "unitFinalAmount": 17,
                        "unitAmount": 17,
                        "quantity": 1,
                        "label": "Milanesa Pampa",
                        "comment": null,
                        "childrenOrderLines": [],
                        "baseAmount": 14.29,
                        "vatAmount": 2.71,
                        "vatValue": 19,
                        "product": {
                          "oqId": 33915
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "glovo"
            },
            "description": "Market code identifier"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                },
                "example": {
                  "id": 217508,
                  "orderGroupId": null,
                  "serviceFeeAmount": 0,
                  "totalAmount": 7.5,
                  "executionTimeLabel": "hoy 28/08 a las 23:00h",
                  "preparationTimeLabel": "hoy 28/08 a las 23:00h",
                  "comment": "Consumer will collect at the counter",
                  "cancellationComment": null,
                  "consumer": {
                    "id": 10001,
                    "name": "Alex",
                    "lastname": "Doe",
                    "email": "consumer@example.com",
                    "phone": "+34600000000",
                    "image": null,
                    "notificationsChannel": "example-notifications-channel",
                    "chatToken": null,
                    "language": "es",
                    "marketClientId": null
                  },
                  "status": {
                    "code": "waiting_sp_validation",
                    "name": "Esperando validación del negocio",
                    "color": "#f7981d",
                    "isFinalStatus": false,
                    "globalStatusCode": "processing"
                  },
                  "type": "collection",
                  "sellingPoint": {
                    "id": 1176,
                    "uuid": "00000000-0000-4000-8000-000000000001",
                    "name": "Example Restaurant",
                    "address": {
                      "id": 1001,
                      "street": "Carrer de la Tecnologia, 17",
                      "details": null,
                      "city": "Viladecans",
                      "province": "Barcelona",
                      "country": {
                        "isoCode": "ES",
                        "name": "Spain",
                        "currency": {
                          "isoCode": "EUR",
                          "symbol": "€",
                          "displayPattern": "{{ amount }} €",
                          "minorUnit": 2
                        }
                      },
                      "postalCode": "08840",
                      "latitude": 41.313593,
                      "longitude": 2.031173,
                      "googlePlaceId": null,
                      "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans",
                      "autoGeolocated": true
                    },
                    "phone": "+34900000000",
                    "email": "restaurant@example.com",
                    "logo": null,
                    "mainImage": null,
                    "mainImageLarge": null,
                    "listImage": null,
                    "listImageLarge": null,
                    "type": "Burger",
                    "urlKey": "example-restaurant-viladecans",
                    "timezone": "Europe/Madrid",
                    "requiredPostalCode": true,
                    "currency": {
                      "isoCode": "EUR",
                      "symbol": "€",
                      "displayPattern": "{{ amount }} €",
                      "minorUnit": 2
                    }
                  },
                  "brand": {
                    "id": 2864,
                    "name": "Example Brand",
                    "iconImage": null,
                    "logoImage": null,
                    "lightLogoImage": null,
                    "squareLogoImage": null,
                    "mainImage": null
                  },
                  "payments": [
                    {
                      "id": 33136,
                      "amount": 7.5,
                      "debtAmount": 7.5,
                      "tipAmount": 0,
                      "paymentMethodName": "Pago desde plataformas externas",
                      "prepaid": true,
                      "methodCode": "EXTERNAL_PAYMENT"
                    }
                  ],
                  "orderLines": [
                    {
                      "type": "PRODUCT",
                      "totalAmount": 7.5,
                      "unitPrice": 7.5,
                      "quantity": 1,
                      "label": "Pollo Rebozado + Patatas Fritas",
                      "comment": null,
                      "childrenOrderLines": [],
                      "baseAmount": 6.82,
                      "vatAmount": 0.68,
                      "vatValue": 10,
                      "product": {
                        "id": 24052,
                        "externalId": null
                      }
                    }
                  ],
                  "isCancellable": false,
                  "isAcceptable": true,
                  "baseAmount": 6.82,
                  "vatAmount": 0.68,
                  "test": false,
                  "currency": {
                    "isoCode": "EUR",
                    "symbol": "€",
                    "displayPattern": "{{ amount }} €",
                    "minorUnit": 2
                  },
                  "moduleCode": "GLOVO",
                  "moduleName": "Glovo",
                  "preparationTime": "2026-08-28T21:00:00+0000",
                  "requestedPreparationTime": "2026-08-28T21:00:00+0000",
                  "posOrderId": null,
                  "marketOrderId": "DOC-COLLECTION-20260828-001",
                  "marketOrderCode": "DOC-COL-001",
                  "executionTime": "2026-08-28T21:00:00+0000"
                }
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "Order"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      }
    },
    "/markets/{marketCode}/orders/{marketOrderId}": {
      "get": {
        "summary": "Get order",
        "description": "Get order by identifier",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "glovo"
            },
            "description": "Market code identifier"
          },
          {
            "name": "marketOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market order identifier",
              "example": "104374933"
            },
            "description": "Market order identifier"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                },
                "example": {
                  "id": 418774,
                  "orderGroupId": null,
                  "totalAmount": 68,
                  "executionTimeLabel": "hoy 23/07 a las 09:06h",
                  "preparationTimeLabel": "hoy 23/07 a las 08:56h",
                  "comment": "This is the order comment!",
                  "cancellationComment": null,
                  "consumer": {
                    "id": 18899,
                    "name": "Client_73626",
                    "lastname": "Lastname_73626",
                    "email": null,
                    "phone": "+34600000000",
                    "image": null,
                    "notificationsChannel": "1f4cac2743f504bb2a10cdff9bc2c365",
                    "chatToken": null,
                    "marketClientId": null
                  },
                  "status": {
                    "code": "waiting_sp_validation",
                    "name": "Esperando validación del negocio",
                    "color": "#f7981d",
                    "isFinalStatus": false,
                    "globalStatusCode": "processing"
                  },
                  "type": "delivery",
                  "sellingPoint": {
                    "id": 3961,
                    "name": "SuperPizza",
                    "address": {
                      "id": 16187,
                      "street": "Carrer de la Tecnologia, 17",
                      "details": "",
                      "city": "Viladecans",
                      "province": "Barcelona",
                      "postalCode": "08840",
                      "latitude": 41.31372,
                      "longitude": 2.031222,
                      "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
                      "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
                      "autoGeolocated": true
                    },
                    "phone": "+34900000000",
                    "email": "superpizza@example.com",
                    "logo": "https://example.com/e4cd836538_f79efe5783_82291551976531iconImagesqd2mt.png",
                    "mainImage": "https://example.com/d770d57632_4e01533575_85091551975570baked-cheese-cherry-tomato-1552635.png",
                    "mainImageLarge": "https://example.com/1551975570_bab77d7d5bbcec5e64cd3c1ac22c56ee.png",
                    "listImage": "https://example.com/d770d57632_4e01533575_85091551975570baked-cheese-cherry-tomato-1552635.png",
                    "listImageLarge": "https://example.com/1551975570_bab77d7d5bbcec5e64cd3c1ac22c56ee.png",
                    "type": "Pizzería",
                    "urlKey": "superpizza-viladecans",
                    "timezone": "Europe/Madrid"
                  },
                  "payments": [
                    {
                      "id": 54712,
                      "amount": 68,
                      "paymentMethodName": "Efectivo",
                      "prepaid": false
                    }
                  ],
                  "orderLines": [
                    {
                      "type": "PRODUCT",
                      "totalAmount": 36,
                      "unitPrice": 12,
                      "quantity": 3,
                      "label": "Pizza de la huerta",
                      "comment": null,
                      "childrenOrderLines": [
                        {
                          "type": "PRODUCT_OPTION",
                          "totalAmount": 1,
                          "unitPrice": 1,
                          "quantity": 1,
                          "label": "Bacon",
                          "comment": null,
                          "childrenOrderLines": [],
                          "baseAmount": 0.91,
                          "vatAmount": 0.09,
                          "vatValue": 10,
                          "productOption": {
                            "id": 234816,
                            "externalId": null
                          }
                        }
                      ],
                      "baseAmount": 32.73,
                      "vatAmount": 3.27,
                      "vatValue": 10,
                      "product": {
                        "id": 109838,
                        "externalId": null
                      }
                    },
                    {
                      "type": "PRODUCT",
                      "totalAmount": 27,
                      "unitPrice": 13.5,
                      "quantity": 2,
                      "label": "Pizza Barbacoa",
                      "comment": null,
                      "childrenOrderLines": [
                        {
                          "type": "PRODUCT_OPTION",
                          "totalAmount": 1,
                          "unitPrice": 1,
                          "quantity": 1,
                          "label": "Bacon",
                          "comment": null,
                          "childrenOrderLines": [],
                          "baseAmount": 0.91,
                          "vatAmount": 0.09,
                          "vatValue": 10,
                          "productOption": {
                            "id": 234816,
                            "externalId": null
                          }
                        }
                      ],
                      "baseAmount": 24.55,
                      "vatAmount": 2.45,
                      "vatValue": 10,
                      "product": {
                        "id": 109840,
                        "externalId": null
                      }
                    },
                    {
                      "type": "PRODUCT",
                      "totalAmount": 4,
                      "unitPrice": 2,
                      "quantity": 2,
                      "label": "Cerveza 33cl",
                      "comment": "Comment 1",
                      "childrenOrderLines": [],
                      "baseAmount": 3.64,
                      "vatAmount": 0.36,
                      "vatValue": 10,
                      "product": {
                        "id": 109842,
                        "externalId": null
                      }
                    },
                    {
                      "type": "DELIVERY",
                      "totalAmount": 1,
                      "unitPrice": 1,
                      "quantity": 1,
                      "label": "Delivery cost",
                      "comment": null,
                      "childrenOrderLines": [],
                      "baseAmount": 0.83,
                      "vatAmount": 0.17,
                      "vatValue": 21,
                      "distance": 0
                    }
                  ],
                  "isCancellable": true,
                  "isAcceptable": true,
                  "baseAmount": 61.75,
                  "vatAmount": 6.25,
                  "currency": {
                    "isoCode": "EUR",
                    "symbol": "€",
                    "displayPattern": "{{ amount }}€"
                  },
                  "posOrderId": null,
                  "marketOrderId": "73626",
                  "marketOrderCode": "RNYLUD",
                  "executionTime": "2020-07-23T07:06:52+0000",
                  "deliveryAmount": 1,
                  "deliveryAddress": {
                    "id": 16188,
                    "street": "Carrer de la Tecnologia, 17",
                    "details": null,
                    "city": "Viladecans",
                    "province": "Barcelona",
                    "postalCode": "08840",
                    "latitude": 41.31372,
                    "longitude": 2.031222,
                    "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
                    "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
                    "autoGeolocated": true
                  },
                  "deliveries": [
                    {
                      "id": 283003,
                      "status": {
                        "code": "WAITING_SELLING_POINT_ACCEPTANCE",
                        "name": "Esperando aceptación punto de venta",
                        "color": "#f7981d",
                        "isFinalStatus": false
                      },
                      "driver": null,
                      "deliveryAccountName": null,
                      "deliveryAccountPhone": null,
                      "pickupAddress": {
                        "id": 16187,
                        "street": "Carrer de la Tecnologia, 17",
                        "details": "",
                        "city": "Viladecans",
                        "province": "Barcelona",
                        "postalCode": "08840",
                        "latitude": 41.31372,
                        "longitude": 2.031222,
                        "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
                        "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
                        "autoGeolocated": true
                      },
                      "pickupAgreedAt": "2020-07-23T06:56:52+0000",
                      "pickupConfirmedAt": "2020-07-23T06:56:52+0000",
                      "deliveryAddress": {
                        "id": 16188,
                        "street": "Carrer de la Tecnologia, 17",
                        "details": null,
                        "city": "Viladecans",
                        "province": "Barcelona",
                        "postalCode": "08840",
                        "latitude": 41.31372,
                        "longitude": 2.031222,
                        "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
                        "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
                        "autoGeolocated": true
                      },
                      "deliveryAgreedAt": "2020-07-23T07:06:52+0000",
                      "deliveryConfirmedAt": "2020-07-23T07:06:52+0000",
                      "deliveryInstructions": null,
                      "forSenderInstructions": null,
                      "linearDistance": 0,
                      "realDistance": null,
                      "route": null,
                      "estimatedDeliveryDuration": 0,
                      "destinationContactEmail": null,
                      "destinationContactName": "Client_73626 · Lastname_73626",
                      "destinationContactPhone": "600000000",
                      "trackingUrl": "https://example.com/tracking/example"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "Order"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      }
    },
    "/markets/{marketCode}/orders/{marketOrderId}/status": {
      "get": {
        "summary": "Get order status",
        "description": "Get consumer order current status",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "glovo"
            },
            "description": "Market code identifier"
          },
          {
            "name": "marketOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market order identifier",
              "example": "104374933"
            },
            "description": "Market order identifier"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatus"
                },
                "examples": {
                  "waiting_validation": {
                    "summary": "Waiting for selling point validation",
                    "value": {
                      "code": "waiting_sp_validation",
                      "name": "Waiting selling point validation",
                      "color": "#f7981d",
                      "isFinalStatus": false,
                      "globalStatusCode": "processing"
                    }
                  },
                  "accepted": {
                    "summary": "Order accepted",
                    "value": {
                      "code": "accepted",
                      "name": "Accepted",
                      "color": "#5aac44",
                      "isFinalStatus": false,
                      "globalStatusCode": "processing"
                    }
                  },
                  "finished": {
                    "summary": "Order finished",
                    "value": {
                      "code": "finished",
                      "name": "Finished",
                      "color": "#5aac44",
                      "isFinalStatus": true,
                      "globalStatusCode": "completed"
                    }
                  },
                  "cancelled_by_selling_point": {
                    "summary": "Order cancelled by the selling point",
                    "value": {
                      "code": "cancelled_by_sp",
                      "name": "Cancelled by selling point",
                      "color": "#d0021b",
                      "isFinalStatus": true,
                      "globalStatusCode": "completed"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "Order"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      },
      "post": {
        "operationId": "postMarketOrderStatus",
        "summary": "Update a market order status",
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "marketOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Order status",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/markets/{marketCode}/orders/{marketOrderId}/cancel": {
      "post": {
        "summary": "Cancel order",
        "description": "Cancel order. Order only can be cancelled if selling point has not accepted it",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "comment": {
                    "type": "string",
                    "description": "Cancellation comment",
                    "example": "Cancelled at the customer's request"
                  }
                },
                "required": [
                  "comment"
                ]
              },
              "examples": {
                "customer_request": {
                  "summary": "Cancellation requested by the customer",
                  "value": {
                    "comment": "Cancelled at the customer's request"
                  }
                },
                "duplicate_order": {
                  "summary": "Duplicate marketplace order",
                  "value": {
                    "comment": "Duplicate marketplace order"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "glovo"
            },
            "description": "Market code identifier"
          },
          {
            "name": "marketOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market order identifier",
              "example": "104374933"
            },
            "description": "Market order identifier"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                },
                "example": {
                  "id": 217508,
                  "orderGroupId": null,
                  "serviceFeeAmount": 0,
                  "totalAmount": 7.5,
                  "executionTimeLabel": "hoy 28/08 a las 23:00h",
                  "preparationTimeLabel": "hoy 28/08 a las 23:00h",
                  "comment": "Consumer will collect at the counter",
                  "cancellationComment": null,
                  "consumer": {
                    "id": 10001,
                    "name": "Alex",
                    "lastname": "Doe",
                    "email": "consumer@example.com",
                    "phone": "+34600000000",
                    "image": null,
                    "notificationsChannel": "example-notifications-channel",
                    "chatToken": null,
                    "language": "es",
                    "marketClientId": null
                  },
                  "status": {
                    "code": "waiting_sp_validation",
                    "name": "Esperando validación del negocio",
                    "color": "#f7981d",
                    "isFinalStatus": false,
                    "globalStatusCode": "processing"
                  },
                  "type": "collection",
                  "sellingPoint": {
                    "id": 1176,
                    "uuid": "00000000-0000-4000-8000-000000000001",
                    "name": "Example Restaurant",
                    "address": {
                      "id": 1001,
                      "street": "Carrer de la Tecnologia, 17",
                      "details": null,
                      "city": "Viladecans",
                      "province": "Barcelona",
                      "country": {
                        "isoCode": "ES",
                        "name": "Spain",
                        "currency": {
                          "isoCode": "EUR",
                          "symbol": "€",
                          "displayPattern": "{{ amount }} €",
                          "minorUnit": 2
                        }
                      },
                      "postalCode": "08840",
                      "latitude": 41.313593,
                      "longitude": 2.031173,
                      "googlePlaceId": null,
                      "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans",
                      "autoGeolocated": true
                    },
                    "phone": "+34900000000",
                    "email": "restaurant@example.com",
                    "logo": null,
                    "mainImage": null,
                    "mainImageLarge": null,
                    "listImage": null,
                    "listImageLarge": null,
                    "type": "Burger",
                    "urlKey": "example-restaurant-viladecans",
                    "timezone": "Europe/Madrid",
                    "requiredPostalCode": true,
                    "currency": {
                      "isoCode": "EUR",
                      "symbol": "€",
                      "displayPattern": "{{ amount }} €",
                      "minorUnit": 2
                    }
                  },
                  "brand": {
                    "id": 2864,
                    "name": "Example Brand",
                    "iconImage": null,
                    "logoImage": null,
                    "lightLogoImage": null,
                    "squareLogoImage": null,
                    "mainImage": null
                  },
                  "payments": [
                    {
                      "id": 33136,
                      "amount": 7.5,
                      "debtAmount": 7.5,
                      "tipAmount": 0,
                      "paymentMethodName": "Pago desde plataformas externas",
                      "prepaid": true,
                      "methodCode": "EXTERNAL_PAYMENT"
                    }
                  ],
                  "orderLines": [
                    {
                      "type": "PRODUCT",
                      "totalAmount": 7.5,
                      "unitPrice": 7.5,
                      "quantity": 1,
                      "label": "Pollo Rebozado + Patatas Fritas",
                      "comment": null,
                      "childrenOrderLines": [],
                      "baseAmount": 6.82,
                      "vatAmount": 0.68,
                      "vatValue": 10,
                      "product": {
                        "id": 24052,
                        "externalId": null
                      }
                    }
                  ],
                  "isCancellable": false,
                  "isAcceptable": true,
                  "baseAmount": 6.82,
                  "vatAmount": 0.68,
                  "test": false,
                  "currency": {
                    "isoCode": "EUR",
                    "symbol": "€",
                    "displayPattern": "{{ amount }} €",
                    "minorUnit": 2
                  },
                  "moduleCode": "GLOVO",
                  "moduleName": "Glovo",
                  "preparationTime": "2026-08-28T21:00:00+0000",
                  "requestedPreparationTime": "2026-08-28T21:00:00+0000",
                  "posOrderId": null,
                  "marketOrderId": "DOC-COLLECTION-20260828-001",
                  "marketOrderCode": "DOC-COL-001",
                  "executionTime": "2026-08-28T21:00:00+0000"
                }
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "Order"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      }
    },
    "/markets/{marketCode}/sellingPoints/{sellingPointId}/serviceZones": {
      "get": {
        "summary": "Get selling point zones and tables",
        "description": "Get all the restaurant zones and tables",
        "parameters": [
          {
            "name": "sellingPointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Selling point identifier",
              "example": 375
            },
            "description": "Selling point identifier"
          },
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "glovo"
            },
            "description": "Market code identifier"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceZonesCollection"
                },
                "example": [
                  {
                    "code": "TZ",
                    "name": "Terraza",
                    "serviceLocations": [
                      {
                        "code": "TZ1",
                        "name": "Mesa 1"
                      },
                      {
                        "code": "TZ2",
                        "name": "Mesa 2"
                      },
                      {
                        "code": "TZ3",
                        "name": "Mesa 3"
                      },
                      {
                        "code": "TZ4",
                        "name": "Mesa 4"
                      },
                      {
                        "code": "TZ5",
                        "name": "Mesa 5"
                      },
                      {
                        "code": "TZ6",
                        "name": "Mesa 6"
                      },
                      {
                        "code": "TZ7",
                        "name": "Mesa 7"
                      },
                      {
                        "code": "TZ8",
                        "name": "Mesa 8"
                      },
                      {
                        "code": "TZ9",
                        "name": "Mesa 9"
                      },
                      {
                        "code": "TZ10",
                        "name": "Mesa 10"
                      },
                      {
                        "code": "TZ11",
                        "name": "Mesa 11"
                      },
                      {
                        "code": "TZ12",
                        "name": "Mesa 12"
                      },
                      {
                        "code": "TZ13",
                        "name": "Mesa 13"
                      },
                      {
                        "code": "TZ14",
                        "name": "Mesa 14"
                      },
                      {
                        "code": "TZ15",
                        "name": "Mesa 15"
                      },
                      {
                        "code": "TZ16",
                        "name": "Mesa 16"
                      },
                      {
                        "code": "TZ17",
                        "name": "Mesa 17"
                      },
                      {
                        "code": "TZ18",
                        "name": "Mesa 18"
                      },
                      {
                        "code": "TZ19",
                        "name": "Mesa 19"
                      },
                      {
                        "code": "TZ20",
                        "name": "Mesa 20"
                      }
                    ]
                  },
                  {
                    "code": "BAR",
                    "name": "Bar",
                    "serviceLocations": [
                      {
                        "code": "BAR1",
                        "name": "Mesa 1"
                      },
                      {
                        "code": "BAR2",
                        "name": "Mesa 2"
                      },
                      {
                        "code": "BAR3",
                        "name": "Mesa 3"
                      },
                      {
                        "code": "BAR4",
                        "name": "Mesa 4"
                      },
                      {
                        "code": "BAR5",
                        "name": "Mesa 5"
                      }
                    ]
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "Table service specific"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      }
    },
    "/markets/{marketCode}/sellingPoints/{sellingPointId}/serviceLocations/{serviceLocationCode}": {
      "get": {
        "summary": "Get selling point service location",
        "description": "It returns the items and payments that a serviceLocation (table) has at this moment",
        "parameters": [
          {
            "name": "sellingPointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Selling point identifier",
              "example": 375
            },
            "description": "Selling point identifier"
          },
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "glovo"
            },
            "description": "Market code identifier"
          },
          {
            "name": "serviceLocationCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Service location (table) code",
              "example": "S9"
            },
            "description": "Service location (table) code"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceLocationLiveData"
                },
                "example": {
                  "id": 4482,
                  "code": "TERZ1",
                  "name": "Mesa 1",
                  "serviceZone": {
                    "code": "TERZ",
                    "name": "Terraza"
                  },
                  "currentOrderGroup": {
                    "id": 888353,
                    "orderTypeCode": "inside",
                    "openCheckouts": [],
                    "closedCheckouts": [
                      {
                        "id": 21847529,
                        "inProgress": false,
                        "userName": "John D.",
                        "totalAmount": 12,
                        "lastUpdateAt": "2022-03-17T10:32:18+0000",
                        "orderId": 21847529,
                        "marketOrderId": null,
                        "marketOrderCode": "21847529",
                        "items": [
                          {
                            "name": "Pizza de la huerta",
                            "quantity": 1,
                            "comment": "",
                            "unitPrice": 11,
                            "unitAdditionalPrice": 1,
                            "unitFinalPrice": 12,
                            "totalPrice": 12,
                            "items": [
                              {
                                "name": "Champiñones",
                                "quantity": 1,
                                "comment": null,
                                "unitPrice": 1,
                                "unitAdditionalPrice": 0,
                                "unitFinalPrice": 1,
                                "totalPrice": 1,
                                "items": []
                              }
                            ]
                          }
                        ]
                      }
                    ],
                    "payments": [],
                    "amounts": {
                      "ordersAmount": 12,
                      "paymentsAmount": 0,
                      "pendingPaymentsAmount": 12
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "Table service specific"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      }
    },
    "/markets/{marketCode}/sellingPoints/{sellingPointId}/serviceLocations/{serviceLocationCode}/payments": {
      "post": {
        "summary": "Post service location payment",
        "description": "Creates a payment for the current serviceLocation (table) order group",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentInputData"
              },
              "examples": {
                "exact_amount": {
                  "summary": "Exact table payment without tip",
                  "value": {
                    "marketPaymentId": "DOC-PAY-1001",
                    "amount": 30,
                    "tipAmount": 0,
                    "consumer": {
                      "name": "Alex",
                      "lastname": "Doe",
                      "email": "alex@example.com",
                      "phone": "+34600000000"
                    }
                  }
                },
                "with_tip": {
                  "summary": "Table payment including a tip",
                  "value": {
                    "marketPaymentId": "DOC-PAY-1002",
                    "amount": 31.5,
                    "tipAmount": 1.5,
                    "consumer": {
                      "name": "Alex",
                      "lastname": "Doe"
                    }
                  }
                },
                "anonymous": {
                  "summary": "Table payment without consumer details",
                  "value": {
                    "marketPaymentId": "DOC-PAY-1003",
                    "amount": 12.75,
                    "tipAmount": 0
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "sellingPointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Selling point identifier",
              "example": 375
            },
            "description": "Selling point identifier"
          },
          {
            "name": "marketCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Market code identifier",
              "example": "glovo"
            },
            "description": "Market code identifier"
          },
          {
            "name": "serviceLocationCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Service location (table) code",
              "example": "S9"
            },
            "description": "Service location (table) code"
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentCreatedData"
                },
                "example": {
                  "payment": {
                    "id": 33139,
                    "amount": 30,
                    "debtAmount": 30,
                    "tipAmount": 0,
                    "paymentMethodName": "Pago desde plataformas externas",
                    "prepaid": true,
                    "methodCode": "EXTERNAL_PAYMENT",
                    "userName": "Alex Doe",
                    "paidAt": "2026-08-28T15:32:12+0000"
                  },
                  "orderGroup": {
                    "id": 209491,
                    "orderTypeCode": "inside",
                    "openCheckouts": [],
                    "closedCheckouts": [],
                    "payments": [
                      {
                        "id": 33139,
                        "amount": 30,
                        "debtAmount": 30,
                        "tipAmount": 0,
                        "paymentMethodName": "Pago desde plataformas externas",
                        "prepaid": true,
                        "methodCode": "EXTERNAL_PAYMENT",
                        "userName": "Alex Doe",
                        "paidAt": "2026-08-28T15:32:12+0000"
                      }
                    ],
                    "amounts": {
                      "ordersAmount": 0,
                      "paymentsAmount": 30,
                      "pendingPaymentsAmount": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error/s",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "errors": [
                    {
                      "code": "ERROR_CODE_EXAMPLE",
                      "message": "Error message"
                    }
                  ],
                  "code": "ERROR_CODE_EXAMPLE",
                  "message": "Error message",
                  "httpResponseCode": "400"
                }
              }
            }
          }
        },
        "tags": [
          "Table service specific"
        ],
        "security": [
          {
            "ServerAccessToken": [],
            "UserAccessToken": []
          }
        ]
      }
    },
    "/markets/{marketCode}/sellingPoints/availability": {
      "get": {
        "operationId": "getSellingPointsAvailability",
        "summary": "Get availability for all market selling points",
        "tags": [
          "SellingPoint"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "marketCode",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Selling point availability",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/markets/{marketCode}/sellingPoints/{sellingPointId}/availability": {
      "get": {
        "operationId": "getSellingPointAvailability",
        "summary": "Get selling point availability",
        "tags": [
          "SellingPoint"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "marketCode",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "sellingPointId",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Availability",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Selling point not found"
          }
        }
      }
    },
    "/markets/{marketCode}/sellingPoints/{sellingPointId}/availability/{orderType}": {
      "get": {
        "operationId": "getSellingPointAvailabilityByOrderType",
        "summary": "Get selling point availability by order type",
        "tags": [
          "SellingPoint"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "marketCode",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "sellingPointId",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "path",
            "name": "orderType",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Availability",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Selling point or order type not found"
          }
        }
      }
    },
    "/markets/{marketCode}/sellingPoints/{sellingPointId}/products": {
      "get": {
        "operationId": "getSellingPointProducts",
        "summary": "List selling point products",
        "tags": [
          "SellingPoint"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "marketCode",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "sellingPointId",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Products",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Selling point not found"
          }
        }
      }
    },
    "/markets/{marketCode}/liveOrders": {
      "get": {
        "operationId": "getLiveOrders",
        "summary": "List active market orders",
        "tags": [
          "Order"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "marketCode",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Active orders",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/markets/{marketCode}/orders/{marketOrderId}/delivery": {
      "get": {
        "operationId": "getOrderDelivery",
        "summary": "Get the current delivery of an order",
        "tags": [
          "Order"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "marketCode",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "marketOrderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Delivery",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Order without delivery"
          },
          "404": {
            "description": "Order not found"
          }
        }
      }
    },
    "/markets/{marketCode}/orders/{marketOrderId}/liveData": {
      "get": {
        "operationId": "getOrderLiveData",
        "summary": "Get order with current POS live data",
        "tags": [
          "Order"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "marketCode",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "marketOrderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order live data",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "404": {
            "description": "Order not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Address": {
        "type": "object",
        "description": "Selling point address",
        "example": {
          "id": 1003,
          "street": "C/ Example, 23",
          "details": "Canada building",
          "city": "City name",
          "province": "Province name",
          "postalCode": "12345",
          "latitude": 41.308166,
          "longitude": 2.019725,
          "googlePlaceId": "xxxxxxxxxxxx",
          "placeName": "C/ Example, 23, City name"
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Address identifier",
            "example": 0
          },
          "street": {
            "type": "string",
            "description": "Address street with number",
            "example": "string"
          },
          "details": {
            "type": "string",
            "description": "Extra address information",
            "example": "string"
          },
          "city": {
            "type": "string",
            "description": "Address city name",
            "example": "string"
          },
          "province": {
            "type": "string",
            "description": "Address province name",
            "example": "string"
          },
          "postalCode": {
            "type": "string",
            "description": "Address postal code",
            "example": "string"
          },
          "latitude": {
            "type": "number",
            "format": "float",
            "description": "Address latitude",
            "example": 0
          },
          "longitude": {
            "type": "number",
            "format": "float",
            "description": "Address longitude",
            "example": 0
          },
          "googlePlaceId": {
            "type": "string",
            "description": "Google place identifier",
            "example": "string"
          },
          "placeName": {
            "type": "string",
            "description": "Place name",
            "example": "string"
          }
        },
        "required": [
          "id",
          "street"
        ]
      },
      "Day": {
        "type": "object",
        "description": "",
        "example": {
          "id": 1,
          "name": "Lunes"
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Day identifier",
            "example": 0
          },
          "name": {
            "type": "string",
            "description": "Day name",
            "example": "string"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "ScheduleRange": {
        "type": "object",
        "description": "",
        "example": {
          "startTime": "06:00:00",
          "endTime": "18:00:00",
          "timezone": "Europe/Madrid",
          "startDay": {
            "id": 1,
            "name": "Lunes"
          },
          "endDay": {
            "id": 1,
            "name": "Lunes"
          }
        },
        "properties": {
          "startTime": {
            "type": "string",
            "description": "Range start time",
            "example": "string"
          },
          "endTime": {
            "type": "string",
            "description": "Range end time",
            "example": "string"
          },
          "timezone": {
            "type": "string",
            "description": "Range times time zone",
            "example": "string"
          },
          "startDay": {
            "$ref": "#/components/schemas/Day"
          },
          "endDay": {
            "$ref": "#/components/schemas/Day"
          }
        },
        "required": [
          "startTime",
          "endTime",
          "timezone",
          "startDay",
          "endDay"
        ]
      },
      "ranges": {
        "type": "array",
        "description": "Schedule ranges",
        "example": [
          {
            "startTime": "06:00:00",
            "endTime": "18:00:00",
            "timezone": "Europe/Madrid",
            "startDay": {
              "id": 1,
              "name": "Lunes"
            },
            "endDay": {
              "id": 1,
              "name": "Lunes"
            }
          }
        ],
        "items": {
          "$ref": "#/components/schemas/ScheduleRange"
        }
      },
      "Schedule": {
        "type": "object",
        "description": "",
        "example": {
          "id": 2113,
          "ranges": [
            {
              "startTime": "06:00:00",
              "endTime": "18:00:00",
              "timezone": "Europe/Madrid",
              "startDay": {
                "id": 1,
                "name": "Lunes"
              },
              "endDay": {
                "id": 1,
                "name": "Lunes"
              }
            }
          ]
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Schedule identifier",
            "example": 0
          },
          "ranges": {
            "$ref": "#/components/schemas/ranges"
          }
        },
        "required": [
          "id"
        ]
      },
      "allowedOrderTypes": {
        "type": "array",
        "description": "Codes of the allowed order types. More info in 'Understanding order types' section.",
        "example": [
          null
        ],
        "items": {
          "type": "string",
          "example": "string"
        }
      },
      "Tag": {
        "type": "object",
        "description": "SellingPoint tag",
        "example": {
          "name": "Veggie",
          "code": "veggie"
        },
        "properties": {
          "name": {
            "type": "string",
            "description": "Tag name",
            "example": "string"
          },
          "code": {
            "type": "string",
            "description": "Tag identifier code",
            "example": "string"
          }
        },
        "required": [
          "name",
          "code"
        ]
      },
      "tags": {
        "type": "array",
        "description": "Array with selling point tags",
        "example": [
          {
            "name": "Veggie",
            "code": "veggie"
          }
        ],
        "items": {
          "$ref": "#/components/schemas/Tag"
        }
      },
      "SellingPoint": {
        "type": "object",
        "description": "Selling point data",
        "example": {
          "id": 3442,
          "name": "My restaurant",
          "address": {
            "id": 1003,
            "street": "C/ Example, 23",
            "details": "Canada building",
            "city": "City name",
            "province": "Province name",
            "postalCode": "12345",
            "latitude": 41.308166,
            "longitude": 2.019725,
            "googlePlaceId": "xxxxxxxxxxxx",
            "placeName": "C/ Example, 23, City name"
          },
          "phone": "+34600000000",
          "email": "myrestaurant@example.com",
          "logo": "http://mycdn.com/selling-point-logo.jpeg",
          "mainImage": "http://mycdn.com/selling-point-main-image.jpeg",
          "listImage": "http://mycdn.com/selling-point-list-image.jpeg",
          "urlKey": "restaurant-name-city",
          "type": "Italian",
          "timezone": "Europe/Madrid",
          "description": "This restaurant...",
          "schedule": {
            "id": 2113,
            "ranges": [
              {
                "startTime": "06:00:00",
                "endTime": "18:00:00",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 1,
                  "name": "Lunes"
                },
                "endDay": {
                  "id": 1,
                  "name": "Lunes"
                }
              }
            ]
          },
          "allowedOrderTypes": [
            null
          ],
          "tags": [
            {
              "name": "Veggie",
              "code": "veggie"
            }
          ]
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Selling point identifier",
            "example": 0
          },
          "name": {
            "type": "string",
            "description": "Selling point name",
            "example": "string"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "phone": {
            "type": "string",
            "description": "Selling point phone",
            "example": "string"
          },
          "email": {
            "type": "string",
            "description": "Selling point contact email",
            "example": "string"
          },
          "logo": {
            "type": "string",
            "description": "Selling point logo url",
            "example": "string"
          },
          "mainImage": {
            "type": "string",
            "description": "Selling point main image",
            "example": "string"
          },
          "listImage": {
            "type": "string",
            "description": "Selling point list image",
            "example": "string"
          },
          "urlKey": {
            "type": "string",
            "description": "Encoded name for url",
            "example": "string"
          },
          "type": {
            "type": "string",
            "description": "Type of selling point",
            "example": "string"
          },
          "timezone": {
            "type": "string",
            "description": "Selling point time zone",
            "example": "string"
          },
          "description": {
            "type": "string",
            "description": "Selling point description",
            "example": "string"
          },
          "schedule": {
            "$ref": "#/components/schemas/Schedule"
          },
          "allowedOrderTypes": {
            "$ref": "#/components/schemas/allowedOrderTypes"
          },
          "tags": {
            "$ref": "#/components/schemas/tags"
          }
        },
        "required": [
          "id",
          "name",
          "address"
        ]
      },
      "SellingPointsCollection": {
        "type": "array",
        "description": "Collection of restaurants",
        "example": [
          {
            "id": 3442,
            "name": "My restaurant",
            "address": {
              "id": 1003,
              "street": "C/ Example, 23",
              "details": "Canada building",
              "city": "City name",
              "province": "Province name",
              "postalCode": "12345",
              "latitude": 41.308166,
              "longitude": 2.019725,
              "googlePlaceId": "xxxxxxxxxxxx",
              "placeName": "C/ Example, 23, City name"
            },
            "phone": "+34600000000",
            "email": "myrestaurant@example.com",
            "logo": "http://mycdn.com/selling-point-logo.jpeg",
            "mainImage": "http://mycdn.com/selling-point-main-image.jpeg",
            "listImage": "http://mycdn.com/selling-point-list-image.jpeg",
            "urlKey": "restaurant-name-city",
            "type": "Italian",
            "timezone": "Europe/Madrid",
            "description": "This restaurant...",
            "schedule": {
              "id": 2113,
              "ranges": [
                {
                  "startTime": "06:00:00",
                  "endTime": "18:00:00",
                  "timezone": "Europe/Madrid",
                  "startDay": {
                    "id": 1,
                    "name": "Lunes"
                  },
                  "endDay": {
                    "id": 1,
                    "name": "Lunes"
                  }
                }
              ]
            },
            "allowedOrderTypes": [
              null
            ],
            "tags": [
              {
                "name": "Veggie",
                "code": "veggie"
              }
            ]
          }
        ],
        "items": {
          "$ref": "#/components/schemas/SellingPoint"
        }
      },
      "Error": {
        "type": "object",
        "description": "Error",
        "example": {
          "code": "ERROR_CODE_EXAMPLE",
          "message": "Error message"
        },
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code identifier",
            "example": "string"
          },
          "message": {
            "type": "string",
            "description": "Error description",
            "example": "string"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "errors": {
        "type": "array",
        "description": "Errors",
        "example": [
          {
            "code": "ERROR_CODE_EXAMPLE",
            "message": "Error message"
          }
        ],
        "items": {
          "$ref": "#/components/schemas/Error"
        }
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Error response",
        "example": {
          "errors": [
            {
              "code": "ERROR_CODE_EXAMPLE",
              "message": "Error message"
            }
          ],
          "code": "ERROR_CODE_EXAMPLE",
          "message": "Error message",
          "httpResponseCode": "400"
        },
        "properties": {
          "errors": {
            "$ref": "#/components/schemas/errors"
          },
          "code": {
            "type": "string",
            "description": "Error code identifier",
            "example": "string"
          },
          "message": {
            "type": "string",
            "description": "Error description",
            "example": "string"
          },
          "httpResponseCode": {
            "type": "string",
            "description": "HTTP response code",
            "example": "string"
          }
        },
        "required": [
          "code",
          "message",
          "httpResponseCode"
        ]
      },
      "ProductOption": {
        "type": "object",
        "description": "",
        "example": {
          "id": "233",
          "name": "Cheddar",
          "shortDescription": "Add cheddar to your pizza",
          "position": 1,
          "isAvailable": true,
          "price": 0.75
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Product option identifier",
            "example": 0
          },
          "externalId": {
            "type": "string",
            "description": "Custom identifier",
            "example": "string"
          },
          "name": {
            "type": "string",
            "description": "Product option name",
            "example": "string"
          },
          "shortDescription": {
            "type": "string",
            "description": "Product option short description",
            "example": "string"
          },
          "position": {
            "type": "integer",
            "format": "int32",
            "description": "Product option position",
            "example": 0
          },
          "isAvailable": {
            "type": "boolean",
            "description": "Returns true if the product option can be purchased",
            "example": true
          },
          "price": {
            "type": "number",
            "format": "float",
            "description": "Product option price",
            "example": 0
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "productOptions": {
        "type": "array",
        "description": "Product options for product option category",
        "example": [
          {
            "id": "233",
            "name": "Cheddar",
            "shortDescription": "Add cheddar to your pizza",
            "position": 1,
            "isAvailable": true,
            "price": 0.75
          }
        ],
        "items": {
          "$ref": "#/components/schemas/ProductOption"
        }
      },
      "ProductOptionsCategory": {
        "type": "object",
        "description": "",
        "example": {
          "id": "102",
          "name": "Our ingredients",
          "shortDescription": "What do you put on your pizza?",
          "position": 1,
          "maxSelection": 10,
          "minSelection": null,
          "maxSameOptionSelection": 2,
          "selectionLabel": "Max. 10",
          "productOptions": [
            {
              "id": "233",
              "name": "Cheddar",
              "shortDescription": "Add cheddar to your pizza",
              "position": 1,
              "isAvailable": true,
              "price": 0.75
            }
          ]
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Product option category identifier",
            "example": 0
          },
          "externalId": {
            "type": "string",
            "description": "Custom identifier",
            "example": "string"
          },
          "name": {
            "type": "string",
            "description": "Product option category name",
            "example": "string"
          },
          "shortDescription": {
            "type": "string",
            "description": "Product option category description",
            "example": "string"
          },
          "position": {
            "type": "integer",
            "format": "int32",
            "description": "Product option category position",
            "example": 0
          },
          "maxSelection": {
            "type": "integer",
            "format": "int32",
            "description": "Maximum of options selected for product option category",
            "example": 0
          },
          "minSelection": {
            "type": "integer",
            "format": "int32",
            "description": "Required minimum of product options selected by consumer. If this value is NULL the consumer may not select any option in this category",
            "example": 0
          },
          "maxSameOptionSelection": {
            "type": "integer",
            "format": "int32",
            "description": "Maximum times wich the same product option can be selected by consumer. If this value is NULL the consumer can select the same option as many times as he want limited by maxOptions value",
            "example": 0
          },
          "selectionLabel": {
            "type": "string",
            "description": "Text describing minimum and maximum selection options",
            "example": "string"
          },
          "productOptions": {
            "$ref": "#/components/schemas/productOptions"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "productOptionsCategories": {
        "type": "array",
        "description": "Product options categories",
        "example": [
          {
            "id": "102",
            "name": "Our ingredients",
            "shortDescription": "What do you put on your pizza?",
            "position": 1,
            "maxSelection": 10,
            "minSelection": null,
            "maxSameOptionSelection": 2,
            "selectionLabel": "Max. 10",
            "productOptions": [
              {
                "id": "233",
                "name": "Cheddar",
                "shortDescription": "Add cheddar to your pizza",
                "position": 1,
                "isAvailable": true,
                "price": 0.75
              }
            ]
          }
        ],
        "items": {
          "$ref": "#/components/schemas/ProductOptionsCategory"
        }
      },
      "Product": {
        "type": "object",
        "description": "Product data",
        "example": {
          "id": "843",
          "name": "Neapolitan Pizza",
          "image": "https://example.com/assets/images/placeholder_image.jpg",
          "price": 11.5,
          "public": true,
          "featured": false,
          "shortDescription": "Tomatoes, cheese, oil, and garlic",
          "description": "It was our first pizza ...",
          "parentName": null,
          "isAvailable": true,
          "tags": [
            null
          ],
          "productOptionsCategories": [
            {
              "id": "102",
              "name": "Our ingredients",
              "shortDescription": "What do you put on your pizza?",
              "position": 1,
              "maxSelection": 10,
              "minSelection": null,
              "maxSameOptionSelection": 2,
              "selectionLabel": "Max. 10",
              "productOptions": [
                {
                  "id": "233",
                  "name": "Cheddar",
                  "shortDescription": "Add cheddar to your pizza",
                  "position": 1,
                  "isAvailable": true,
                  "price": 0.75
                }
              ]
            }
          ],
          "urlKey": "product-name",
          "productVariants": [
            {
              "id": "843",
              "name": "XXL size",
              "image": "https://example.com/assets/images/placeholder_image.jpg",
              "price": 14,
              "public": true,
              "featured": false,
              "shortDescription": "Tomatoes, cheese, oil, and garlic",
              "description": "It was our first pizza ...",
              "parentName": null,
              "isAvailable": true,
              "tags": [
                null
              ],
              "productOptionsCategories": [
                {
                  "id": "102",
                  "name": "Our ingredients",
                  "shortDescription": "What do you put on your pizza?",
                  "position": 1,
                  "maxSelection": 10,
                  "minSelection": null,
                  "maxSameOptionSelection": 2,
                  "selectionLabel": "Max. 10",
                  "productOptions": [
                    {
                      "id": "233",
                      "name": "Cheddar",
                      "shortDescription": "Add cheddar to your pizza",
                      "position": 1,
                      "isAvailable": true,
                      "price": 0.75
                    }
                  ]
                }
              ],
              "urlKey": "product-name"
            }
          ]
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Product identifier",
            "example": 0
          },
          "externalId": {
            "type": "string",
            "description": "Custom identifier",
            "example": "string"
          },
          "name": {
            "type": "string",
            "description": "Product name",
            "example": "string"
          },
          "image": {
            "type": "string",
            "description": "Product image url",
            "example": "string"
          },
          "price": {
            "type": "number",
            "format": "float",
            "description": "Product price",
            "example": 0
          },
          "public": {
            "type": "boolean",
            "description": "Returns true if the product is public and can be displayed for consumers",
            "example": true
          },
          "featured": {
            "type": "boolean",
            "description": "Returns true if the product is featured",
            "example": true
          },
          "shortDescription": {
            "type": "string",
            "description": "Product short description",
            "example": "string"
          },
          "description": {
            "type": "string",
            "description": "Product description",
            "example": "string"
          },
          "parentName": {
            "type": "string",
            "description": "Parent product name, used in product variants",
            "example": "string"
          },
          "isAvailable": {
            "type": "boolean",
            "description": "Returns true if the product can be purchased",
            "example": true
          },
          "tags": {
            "$ref": "#/components/schemas/tags"
          },
          "productOptionsCategories": {
            "$ref": "#/components/schemas/productOptionsCategories"
          },
          "urlKey": {
            "type": "string",
            "description": "Encoded name for url",
            "example": "string"
          },
          "productVariants": {
            "$ref": "#/components/schemas/productVariants"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "productVariants": {
        "type": "array",
        "description": "Product variants",
        "example": [
          {
            "id": "843",
            "name": "XXL size",
            "image": "https://example.com/assets/images/placeholder_image.jpg",
            "price": 14,
            "public": true,
            "featured": false,
            "shortDescription": "Tomatoes, cheese, oil, and garlic",
            "description": "It was our first pizza ...",
            "parentName": null,
            "isAvailable": true,
            "tags": [
              null
            ],
            "productOptionsCategories": [
              {
                "id": "102",
                "name": "Our ingredients",
                "shortDescription": "What do you put on your pizza?",
                "position": 1,
                "maxSelection": 10,
                "minSelection": null,
                "maxSameOptionSelection": 2,
                "selectionLabel": "Max. 10",
                "productOptions": [
                  {
                    "id": "233",
                    "name": "Cheddar",
                    "shortDescription": "Add cheddar to your pizza",
                    "position": 1,
                    "isAvailable": true,
                    "price": 0.75
                  }
                ]
              }
            ],
            "urlKey": "product-name"
          }
        ],
        "items": {
          "$ref": "#/components/schemas/Product"
        }
      },
      "products": {
        "type": "array",
        "description": "Menu section products",
        "example": [
          {
            "id": "843",
            "name": "Neapolitan Pizza",
            "image": "https://example.com/assets/images/placeholder_image.jpg",
            "price": 11.5,
            "public": true,
            "featured": false,
            "shortDescription": "Tomatoes, cheese, oil, and garlic",
            "description": "It was our first pizza ...",
            "parentName": null,
            "isAvailable": true,
            "tags": [
              null
            ],
            "productOptionsCategories": [
              {
                "id": "102",
                "name": "Our ingredients",
                "shortDescription": "What do you put on your pizza?",
                "position": 1,
                "maxSelection": 10,
                "minSelection": null,
                "maxSameOptionSelection": 2,
                "selectionLabel": "Max. 10",
                "productOptions": [
                  {
                    "id": "233",
                    "name": "Cheddar",
                    "shortDescription": "Add cheddar to your pizza",
                    "position": 1,
                    "isAvailable": true,
                    "price": 0.75
                  }
                ]
              }
            ],
            "urlKey": "product-name",
            "productVariants": [
              {
                "id": "843",
                "name": "XXL size",
                "image": "https://example.com/assets/images/placeholder_image.jpg",
                "price": 14,
                "public": true,
                "featured": false,
                "shortDescription": "Tomatoes, cheese, oil, and garlic",
                "description": "It was our first pizza ...",
                "parentName": null,
                "isAvailable": true,
                "tags": [
                  null
                ],
                "productOptionsCategories": [
                  {
                    "id": "102",
                    "name": "Our ingredients",
                    "shortDescription": "What do you put on your pizza?",
                    "position": 1,
                    "maxSelection": 10,
                    "minSelection": null,
                    "maxSameOptionSelection": 2,
                    "selectionLabel": "Max. 10",
                    "productOptions": [
                      {
                        "id": "233",
                        "name": "Cheddar",
                        "shortDescription": "Add cheddar to your pizza",
                        "position": 1,
                        "isAvailable": true,
                        "price": 0.75
                      }
                    ]
                  }
                ],
                "urlKey": "product-name"
              }
            ]
          }
        ],
        "items": {
          "$ref": "#/components/schemas/Product"
        }
      },
      "MenuSection": {
        "type": "object",
        "description": "Menu section information",
        "example": {
          "id": "298",
          "name": "Gluten free",
          "shortDescription": "Gluten free pizzas",
          "position": 1,
          "minSelection": 0,
          "maxSelection": 0,
          "showProductImages": true,
          "selectionLabel": "One required",
          "products": [
            {
              "id": "843",
              "name": "Neapolitan Pizza",
              "image": "https://example.com/assets/images/placeholder_image.jpg",
              "price": 11.5,
              "public": true,
              "featured": false,
              "shortDescription": "Tomatoes, cheese, oil, and garlic",
              "description": "It was our first pizza ...",
              "parentName": null,
              "isAvailable": true,
              "tags": [
                null
              ],
              "productOptionsCategories": [
                {
                  "id": "102",
                  "name": "Our ingredients",
                  "shortDescription": "What do you put on your pizza?",
                  "position": 1,
                  "maxSelection": 10,
                  "minSelection": null,
                  "maxSameOptionSelection": 2,
                  "selectionLabel": "Max. 10",
                  "productOptions": [
                    {
                      "id": "233",
                      "name": "Cheddar",
                      "shortDescription": "Add cheddar to your pizza",
                      "position": 1,
                      "isAvailable": true,
                      "price": 0.75
                    }
                  ]
                }
              ],
              "urlKey": "product-name",
              "productVariants": [
                {
                  "id": "843",
                  "name": "XXL size",
                  "image": "https://example.com/assets/images/placeholder_image.jpg",
                  "price": 14,
                  "public": true,
                  "featured": false,
                  "shortDescription": "Tomatoes, cheese, oil, and garlic",
                  "description": "It was our first pizza ...",
                  "parentName": null,
                  "isAvailable": true,
                  "tags": [
                    null
                  ],
                  "productOptionsCategories": [
                    {
                      "id": "102",
                      "name": "Our ingredients",
                      "shortDescription": "What do you put on your pizza?",
                      "position": 1,
                      "maxSelection": 10,
                      "minSelection": null,
                      "maxSameOptionSelection": 2,
                      "selectionLabel": "Max. 10",
                      "productOptions": [
                        {
                          "id": "233",
                          "name": "Cheddar",
                          "shortDescription": "Add cheddar to your pizza",
                          "position": 1,
                          "isAvailable": true,
                          "price": 0.75
                        }
                      ]
                    }
                  ],
                  "urlKey": "product-name"
                }
              ]
            }
          ]
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Menu section identifier",
            "example": 0
          },
          "externalId": {
            "type": "string",
            "description": "Custom identifier",
            "example": "string"
          },
          "name": {
            "type": "string",
            "description": "Menu section name",
            "example": "string"
          },
          "shortDescription": {
            "type": "string",
            "description": "Menu section short description. Used in checkout.",
            "example": "string"
          },
          "position": {
            "type": "integer",
            "format": "int32",
            "description": "Menu section position",
            "example": 0
          },
          "minSelection": {
            "type": "integer",
            "format": "int32",
            "description": "Required minimum of products selected by consumer. Only apply to setmenu menus",
            "example": 0
          },
          "maxSelection": {
            "type": "integer",
            "format": "int32",
            "description": "Maximum of products that can be selected by consumer. Only apply to setmenu menus",
            "example": 0
          },
          "showProductImages": {
            "type": "boolean",
            "description": "Indicates if product images has to be shown",
            "example": true
          },
          "selectionLabel": {
            "type": "string",
            "description": "Text describing the minimum and maximum number of products can be selected by the consumer in this section. Only apply to setmenu menus",
            "example": "string"
          },
          "products": {
            "$ref": "#/components/schemas/products"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "menuSections": {
        "type": "array",
        "description": "Menu sections containing products",
        "example": [
          {
            "id": "298",
            "name": "Gluten free",
            "shortDescription": "Gluten free pizzas",
            "position": 1,
            "minSelection": 0,
            "maxSelection": 0,
            "showProductImages": true,
            "selectionLabel": "One required",
            "products": [
              {
                "id": "843",
                "name": "Neapolitan Pizza",
                "image": "https://example.com/assets/images/placeholder_image.jpg",
                "price": 11.5,
                "public": true,
                "featured": false,
                "shortDescription": "Tomatoes, cheese, oil, and garlic",
                "description": "It was our first pizza ...",
                "parentName": null,
                "isAvailable": true,
                "tags": [
                  null
                ],
                "productOptionsCategories": [
                  {
                    "id": "102",
                    "name": "Our ingredients",
                    "shortDescription": "What do you put on your pizza?",
                    "position": 1,
                    "maxSelection": 10,
                    "minSelection": null,
                    "maxSameOptionSelection": 2,
                    "selectionLabel": "Max. 10",
                    "productOptions": [
                      {
                        "id": "233",
                        "name": "Cheddar",
                        "shortDescription": "Add cheddar to your pizza",
                        "position": 1,
                        "isAvailable": true,
                        "price": 0.75
                      }
                    ]
                  }
                ],
                "urlKey": "product-name",
                "productVariants": [
                  {
                    "id": "843",
                    "name": "XXL size",
                    "image": "https://example.com/assets/images/placeholder_image.jpg",
                    "price": 14,
                    "public": true,
                    "featured": false,
                    "shortDescription": "Tomatoes, cheese, oil, and garlic",
                    "description": "It was our first pizza ...",
                    "parentName": null,
                    "isAvailable": true,
                    "tags": [
                      null
                    ],
                    "productOptionsCategories": [
                      {
                        "id": "102",
                        "name": "Our ingredients",
                        "shortDescription": "What do you put on your pizza?",
                        "position": 1,
                        "maxSelection": 10,
                        "minSelection": null,
                        "maxSameOptionSelection": 2,
                        "selectionLabel": "Max. 10",
                        "productOptions": [
                          {
                            "id": "233",
                            "name": "Cheddar",
                            "shortDescription": "Add cheddar to your pizza",
                            "position": 1,
                            "isAvailable": true,
                            "price": 0.75
                          }
                        ]
                      }
                    ],
                    "urlKey": "product-name"
                  }
                ]
              }
            ]
          }
        ],
        "items": {
          "$ref": "#/components/schemas/MenuSection"
        }
      },
      "Menu": {
        "type": "object",
        "description": "",
        "example": {
          "id": 10674,
          "externalId": null,
          "name": "Nuestra carta",
          "price": null,
          "type": "menu",
          "shortDescription": "Nuestra carta de pizzas",
          "position": 0,
          "availableFrom": "2020-07-23T00:00:00+0000",
          "availableTo": null,
          "menuSections": [
            {
              "id": 8398,
              "externalId": null,
              "name": "Recomendaciones del cheff",
              "shortDescription": null,
              "image": null,
              "position": 0,
              "showProductImages": true,
              "maxSelection": 0,
              "minSelection": 0,
              "selectionLabel": "",
              "products": [
                {
                  "id": 109837,
                  "externalId": null,
                  "urlKey": "109837-pizza-4-quesos",
                  "name": "Pizza 4 quesos",
                  "shortDescription": "",
                  "description": "",
                  "image": "https://example.com/d770d57632_4e01533575_85091551975570baked-cheese-cherry-tomato-1552635.png",
                  "price": 11.95,
                  "minOrderPreparationMinutes": 0,
                  "minMinutesOrderInAdvance": 0,
                  "tags": [],
                  "parentName": null,
                  "isAvailable": true,
                  "productVariants": [],
                  "productOptionsCategories": [
                    {
                      "id": 13327,
                      "externalId": null,
                      "name": "¿Quieres añadir algo?",
                      "shortDescription": null,
                      "position": 3,
                      "maxSelection": null,
                      "maxSameOptionSelection": null,
                      "minSelection": null,
                      "selectionLabel": "",
                      "productOptions": [
                        {
                          "id": 234816,
                          "externalId": null,
                          "name": "Bacon",
                          "shortDescription": null,
                          "position": 1,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234817,
                          "externalId": null,
                          "name": "Jamón Serrano",
                          "shortDescription": null,
                          "position": 2,
                          "price": 1.5,
                          "isAvailable": true
                        },
                        {
                          "id": 234818,
                          "externalId": null,
                          "name": "Champiñones",
                          "shortDescription": null,
                          "position": 3,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234819,
                          "externalId": null,
                          "name": "Huevo duro",
                          "shortDescription": null,
                          "position": 4,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234820,
                          "externalId": null,
                          "name": "Cebolla",
                          "shortDescription": null,
                          "position": 5,
                          "price": 0.5,
                          "isAvailable": true
                        }
                      ]
                    }
                  ],
                  "public": true,
                  "featured": false
                },
                {
                  "id": 109838,
                  "externalId": null,
                  "urlKey": "109838-pizza-de-la-huerta",
                  "name": "Pizza de la huerta",
                  "shortDescription": "Con verduras de nuestro huerto",
                  "description": "",
                  "image": "https://example.com/9119985658_cf48234047_79231551975571cheese-cooking-crispy-263041.png",
                  "price": 11,
                  "minOrderPreparationMinutes": 0,
                  "minMinutesOrderInAdvance": 0,
                  "tags": [],
                  "parentName": null,
                  "isAvailable": true,
                  "productVariants": [],
                  "productOptionsCategories": [
                    {
                      "id": 13327,
                      "externalId": null,
                      "name": "¿Quieres añadir algo?",
                      "shortDescription": null,
                      "position": 3,
                      "maxSelection": null,
                      "maxSameOptionSelection": null,
                      "minSelection": null,
                      "selectionLabel": "",
                      "productOptions": [
                        {
                          "id": 234816,
                          "externalId": null,
                          "name": "Bacon",
                          "shortDescription": null,
                          "position": 1,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234817,
                          "externalId": null,
                          "name": "Jamón Serrano",
                          "shortDescription": null,
                          "position": 2,
                          "price": 1.5,
                          "isAvailable": true
                        },
                        {
                          "id": 234818,
                          "externalId": null,
                          "name": "Champiñones",
                          "shortDescription": null,
                          "position": 3,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234819,
                          "externalId": null,
                          "name": "Huevo duro",
                          "shortDescription": null,
                          "position": 4,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234820,
                          "externalId": null,
                          "name": "Cebolla",
                          "shortDescription": null,
                          "position": 5,
                          "price": 0.5,
                          "isAvailable": true
                        }
                      ]
                    }
                  ],
                  "public": true,
                  "featured": false
                }
              ]
            },
            {
              "id": 8399,
              "externalId": null,
              "name": "Las clásicas",
              "shortDescription": null,
              "image": null,
              "position": 1,
              "showProductImages": true,
              "maxSelection": 0,
              "minSelection": 0,
              "selectionLabel": "",
              "products": [
                {
                  "id": 109839,
                  "externalId": null,
                  "urlKey": "109839-pizza-4-estaciones",
                  "name": "Pizza 4 estaciones",
                  "shortDescription": "",
                  "description": "",
                  "image": "https://example.com/9119987668_cf48237359_28351551975571cheese-cooking-cuisine-845812.png",
                  "price": 12.95,
                  "minOrderPreparationMinutes": 0,
                  "minMinutesOrderInAdvance": 0,
                  "tags": [],
                  "parentName": null,
                  "isAvailable": true,
                  "productVariants": [],
                  "productOptionsCategories": [
                    {
                      "id": 13327,
                      "externalId": null,
                      "name": "¿Quieres añadir algo?",
                      "shortDescription": null,
                      "position": 3,
                      "maxSelection": null,
                      "maxSameOptionSelection": null,
                      "minSelection": null,
                      "selectionLabel": "",
                      "productOptions": [
                        {
                          "id": 234816,
                          "externalId": null,
                          "name": "Bacon",
                          "shortDescription": null,
                          "position": 1,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234817,
                          "externalId": null,
                          "name": "Jamón Serrano",
                          "shortDescription": null,
                          "position": 2,
                          "price": 1.5,
                          "isAvailable": true
                        },
                        {
                          "id": 234818,
                          "externalId": null,
                          "name": "Champiñones",
                          "shortDescription": null,
                          "position": 3,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234819,
                          "externalId": null,
                          "name": "Huevo duro",
                          "shortDescription": null,
                          "position": 4,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234820,
                          "externalId": null,
                          "name": "Cebolla",
                          "shortDescription": null,
                          "position": 5,
                          "price": 0.5,
                          "isAvailable": true
                        }
                      ]
                    }
                  ],
                  "public": true,
                  "featured": false
                },
                {
                  "id": 109840,
                  "externalId": null,
                  "urlKey": "109840-pizza-barbacoa",
                  "name": "Pizza Barbacoa",
                  "shortDescription": "",
                  "description": "",
                  "image": "https://example.com/d770d55550_2176741739_77361551975572cheese-crust-delicious-532779.png",
                  "price": 12.5,
                  "minOrderPreparationMinutes": 0,
                  "minMinutesOrderInAdvance": 0,
                  "tags": [],
                  "parentName": null,
                  "isAvailable": true,
                  "productVariants": [],
                  "productOptionsCategories": [
                    {
                      "id": 13327,
                      "externalId": null,
                      "name": "¿Quieres añadir algo?",
                      "shortDescription": null,
                      "position": 3,
                      "maxSelection": null,
                      "maxSameOptionSelection": null,
                      "minSelection": null,
                      "selectionLabel": "",
                      "productOptions": [
                        {
                          "id": 234816,
                          "externalId": null,
                          "name": "Bacon",
                          "shortDescription": null,
                          "position": 1,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234817,
                          "externalId": null,
                          "name": "Jamón Serrano",
                          "shortDescription": null,
                          "position": 2,
                          "price": 1.5,
                          "isAvailable": true
                        },
                        {
                          "id": 234818,
                          "externalId": null,
                          "name": "Champiñones",
                          "shortDescription": null,
                          "position": 3,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234819,
                          "externalId": null,
                          "name": "Huevo duro",
                          "shortDescription": null,
                          "position": 4,
                          "price": 1,
                          "isAvailable": true
                        },
                        {
                          "id": 234820,
                          "externalId": null,
                          "name": "Cebolla",
                          "shortDescription": null,
                          "position": 5,
                          "price": 0.5,
                          "isAvailable": true
                        }
                      ]
                    }
                  ],
                  "public": true,
                  "featured": false
                }
              ]
            },
            {
              "id": 8400,
              "externalId": null,
              "name": "Bebidas",
              "shortDescription": null,
              "image": null,
              "position": 2,
              "showProductImages": false,
              "maxSelection": 0,
              "minSelection": 0,
              "selectionLabel": "",
              "products": [
                {
                  "id": 109841,
                  "externalId": null,
                  "urlKey": "109841-agua-05l",
                  "name": "Agua 0.5L",
                  "shortDescription": null,
                  "description": null,
                  "image": null,
                  "price": 1.5,
                  "minOrderPreparationMinutes": 0,
                  "minMinutesOrderInAdvance": 0,
                  "tags": [],
                  "parentName": null,
                  "isAvailable": true,
                  "productVariants": [],
                  "productOptionsCategories": [],
                  "public": true,
                  "featured": false
                },
                {
                  "id": 109842,
                  "externalId": null,
                  "urlKey": "109842-cerveza-33cl",
                  "name": "Cerveza 33cl",
                  "shortDescription": null,
                  "description": null,
                  "image": null,
                  "price": 2,
                  "minOrderPreparationMinutes": 0,
                  "minMinutesOrderInAdvance": 0,
                  "tags": [],
                  "parentName": null,
                  "isAvailable": true,
                  "productVariants": [],
                  "productOptionsCategories": [],
                  "public": true,
                  "featured": false
                },
                {
                  "id": 109843,
                  "externalId": null,
                  "urlKey": "109843-refresco-limon",
                  "name": "Refresco limón",
                  "shortDescription": null,
                  "description": null,
                  "image": null,
                  "price": 2,
                  "minOrderPreparationMinutes": 0,
                  "minMinutesOrderInAdvance": 0,
                  "tags": [],
                  "parentName": null,
                  "isAvailable": true,
                  "productVariants": [],
                  "productOptionsCategories": [],
                  "public": true,
                  "featured": false
                }
              ]
            }
          ],
          "allowedOrderTypes": [
            "collection",
            "delivery",
            "insitu",
            "inside"
          ],
          "scheduleLabel": "de 11h a 16h y de 20h a 23.30h",
          "schedule": {
            "id": 1193,
            "ranges": [
              {
                "startTime": "19:00",
                "endTime": "23:30",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 1,
                  "name": "Lunes"
                },
                "endDay": {
                  "id": 1,
                  "name": "Lunes"
                }
              },
              {
                "startTime": "11:00",
                "endTime": "16:00",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 2,
                  "name": "Martes"
                },
                "endDay": {
                  "id": 2,
                  "name": "Martes"
                }
              },
              {
                "startTime": "20:00",
                "endTime": "23:30",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 2,
                  "name": "Martes"
                },
                "endDay": {
                  "id": 2,
                  "name": "Martes"
                }
              },
              {
                "startTime": "11:00",
                "endTime": "16:00",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 3,
                  "name": "Miércoles"
                },
                "endDay": {
                  "id": 3,
                  "name": "Miércoles"
                }
              },
              {
                "startTime": "20:00",
                "endTime": "23:30",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 3,
                  "name": "Miércoles"
                },
                "endDay": {
                  "id": 3,
                  "name": "Miércoles"
                }
              },
              {
                "startTime": "11:00",
                "endTime": "16:00",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 4,
                  "name": "Jueves"
                },
                "endDay": {
                  "id": 4,
                  "name": "Jueves"
                }
              },
              {
                "startTime": "20:00",
                "endTime": "23:30",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 4,
                  "name": "Jueves"
                },
                "endDay": {
                  "id": 4,
                  "name": "Jueves"
                }
              },
              {
                "startTime": "11:00",
                "endTime": "16:00",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 5,
                  "name": "Viernes"
                },
                "endDay": {
                  "id": 5,
                  "name": "Viernes"
                }
              },
              {
                "startTime": "20:00",
                "endTime": "23:30",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 5,
                  "name": "Viernes"
                },
                "endDay": {
                  "id": 5,
                  "name": "Viernes"
                }
              },
              {
                "startTime": "11:00",
                "endTime": "17:00",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 6,
                  "name": "Sábado"
                },
                "endDay": {
                  "id": 6,
                  "name": "Sábado"
                }
              },
              {
                "startTime": "20:00",
                "endTime": "23:30",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 6,
                  "name": "Sábado"
                },
                "endDay": {
                  "id": 6,
                  "name": "Sábado"
                }
              },
              {
                "startTime": "12:00",
                "endTime": "17:00",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 7,
                  "name": "Domingo"
                },
                "endDay": {
                  "id": 7,
                  "name": "Domingo"
                }
              },
              {
                "startTime": "20:00",
                "endTime": "23:30",
                "timezone": "Europe/Madrid",
                "startDay": {
                  "id": 7,
                  "name": "Domingo"
                },
                "endDay": {
                  "id": 7,
                  "name": "Domingo"
                }
              }
            ]
          },
          "urlKey": "10674-nuestra-carta",
          "hasSelection": true,
          "selectionAvailable": true,
          "selectionExpired": false,
          "selectionUpcoming": false
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Menu identifier",
            "example": 0
          },
          "name": {
            "type": "string",
            "description": "Menu name",
            "example": "string"
          },
          "type": {
            "type": "string",
            "description": "Menu type code",
            "enum": [
              "menu",
              "setmenu"
            ],
            "example": "menu"
          },
          "position": {
            "type": "integer",
            "format": "int32",
            "description": "Menu position",
            "example": 0
          },
          "allowedOrderTypes": {
            "$ref": "#/components/schemas/allowedOrderTypes"
          },
          "availableFrom": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "description": "Menu available from time",
            "example": "string"
          },
          "availableTo": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "description": "Menu selection expiration time. If this value is null, menu selection doesn't expires",
            "example": "string"
          },
          "hasSelection": {
            "type": "boolean",
            "description": "Returns true if the menu has a product selection",
            "example": true
          },
          "selectionAvailable": {
            "type": "boolean",
            "description": "Returns true if the product selection is expired",
            "example": true
          },
          "selectionUpcoming": {
            "type": "boolean",
            "description": "Returns true if the product selection is not available yet",
            "example": true
          },
          "price": {
            "type": "number",
            "format": "float",
            "description": "Menu price",
            "example": 0
          },
          "shortDescription": {
            "type": "string",
            "description": "Menu description",
            "example": "string"
          },
          "menuSections": {
            "$ref": "#/components/schemas/menuSections"
          },
          "urlKey": {
            "type": "string",
            "description": "Encoded name for url",
            "example": "string"
          },
          "schedule": {
            "$ref": "#/components/schemas/Schedule"
          },
          "scheduleLabel": {
            "type": "string",
            "description": "Text describing menu schedule for given date",
            "example": "string"
          }
        },
        "required": [
          "id",
          "name",
          "availableFrom",
          "availableTo",
          "hasSelection",
          "selectionAvailable",
          "selectionUpcoming"
        ]
      },
      "MenuCollection": {
        "type": "array",
        "description": "Collection of menus",
        "example": [
          {
            "id": 543,
            "name": "Pizzas",
            "type": "menu",
            "position": 1,
            "allowedOrderTypes": [
              null
            ],
            "availableFrom": "2017-02-12T21:30:00+0000",
            "availableTo": "2017-02-12T21:30:00+0000",
            "hasSelection": true,
            "selectionAvailable": false,
            "selectionUpcoming": false,
            "price": null,
            "shortDescription": "Our best pizzas",
            "menuSections": [
              {
                "id": "298",
                "name": "Gluten free",
                "shortDescription": "Gluten free pizzas",
                "position": 1,
                "minSelection": 0,
                "maxSelection": 0,
                "showProductImages": true,
                "selectionLabel": "One required",
                "products": [
                  {
                    "id": "843",
                    "name": "Neapolitan Pizza",
                    "image": "https://example.com/assets/images/placeholder_image.jpg",
                    "price": 11.5,
                    "public": true,
                    "featured": false,
                    "shortDescription": "Tomatoes, cheese, oil, and garlic",
                    "description": "It was our first pizza ...",
                    "parentName": null,
                    "isAvailable": true,
                    "tags": [
                      null
                    ],
                    "productOptionsCategories": [
                      {
                        "id": "102",
                        "name": "Our ingredients",
                        "shortDescription": "What do you put on your pizza?",
                        "position": 1,
                        "maxSelection": 10,
                        "minSelection": null,
                        "maxSameOptionSelection": 2,
                        "selectionLabel": "Max. 10",
                        "productOptions": [
                          {
                            "id": "233",
                            "name": "Cheddar",
                            "shortDescription": "Add cheddar to your pizza",
                            "position": 1,
                            "isAvailable": true,
                            "price": 0.75
                          }
                        ]
                      }
                    ],
                    "urlKey": "product-name",
                    "productVariants": [
                      {
                        "id": "843",
                        "name": "XXL size",
                        "image": "https://example.com/assets/images/placeholder_image.jpg",
                        "price": 14,
                        "public": true,
                        "featured": false,
                        "shortDescription": "Tomatoes, cheese, oil, and garlic",
                        "description": "It was our first pizza ...",
                        "parentName": null,
                        "isAvailable": true,
                        "tags": [
                          null
                        ],
                        "productOptionsCategories": [
                          {
                            "id": "102",
                            "name": "Our ingredients",
                            "shortDescription": "What do you put on your pizza?",
                            "position": 1,
                            "maxSelection": 10,
                            "minSelection": null,
                            "maxSameOptionSelection": 2,
                            "selectionLabel": "Max. 10",
                            "productOptions": [
                              {
                                "id": "233",
                                "name": "Cheddar",
                                "shortDescription": "Add cheddar to your pizza",
                                "position": 1,
                                "isAvailable": true,
                                "price": 0.75
                              }
                            ]
                          }
                        ],
                        "urlKey": "product-name"
                      }
                    ]
                  }
                ]
              }
            ],
            "urlKey": "menu-name",
            "schedule": {
              "id": 2113,
              "ranges": [
                {
                  "startTime": "06:00:00",
                  "endTime": "18:00:00",
                  "timezone": "Europe/Madrid",
                  "startDay": {
                    "id": 1,
                    "name": "Lunes"
                  },
                  "endDay": {
                    "id": 1,
                    "name": "Lunes"
                  }
                }
              ]
            },
            "scheduleLabel": "All days from 09:00h to 22:00h"
          }
        ],
        "items": {
          "$ref": "#/components/schemas/Menu"
        }
      },
      "Menus": {
        "type": "array",
        "description": null,
        "example": [
          {
            "id": 543,
            "name": "Pizzas",
            "type": "menu",
            "position": 1,
            "allowedOrderTypes": [
              null
            ],
            "availableFrom": "2017-02-12T21:30:00+0000",
            "availableTo": "2017-02-12T21:30:00+0000",
            "hasSelection": true,
            "selectionAvailable": false,
            "selectionUpcoming": false,
            "price": null,
            "shortDescription": "Our best pizzas",
            "menuSections": [
              {
                "id": "298",
                "name": "Gluten free",
                "shortDescription": "Gluten free pizzas",
                "position": 1,
                "minSelection": 0,
                "maxSelection": 0,
                "showProductImages": true,
                "selectionLabel": "One required",
                "products": [
                  {
                    "id": "843",
                    "name": "Neapolitan Pizza",
                    "image": "https://example.com/assets/images/placeholder_image.jpg",
                    "price": 11.5,
                    "public": true,
                    "featured": false,
                    "shortDescription": "Tomatoes, cheese, oil, and garlic",
                    "description": "It was our first pizza ...",
                    "parentName": null,
                    "isAvailable": true,
                    "tags": [
                      null
                    ],
                    "productOptionsCategories": [
                      {
                        "id": "102",
                        "name": "Our ingredients",
                        "shortDescription": "What do you put on your pizza?",
                        "position": 1,
                        "maxSelection": 10,
                        "minSelection": null,
                        "maxSameOptionSelection": 2,
                        "selectionLabel": "Max. 10",
                        "productOptions": [
                          {
                            "id": "233",
                            "name": "Cheddar",
                            "shortDescription": "Add cheddar to your pizza",
                            "position": 1,
                            "isAvailable": true,
                            "price": 0.75
                          }
                        ]
                      }
                    ],
                    "urlKey": "product-name",
                    "productVariants": [
                      {
                        "id": "843",
                        "name": "XXL size",
                        "image": "https://example.com/assets/images/placeholder_image.jpg",
                        "price": 14,
                        "public": true,
                        "featured": false,
                        "shortDescription": "Tomatoes, cheese, oil, and garlic",
                        "description": "It was our first pizza ...",
                        "parentName": null,
                        "isAvailable": true,
                        "tags": [
                          null
                        ],
                        "productOptionsCategories": [
                          {
                            "id": "102",
                            "name": "Our ingredients",
                            "shortDescription": "What do you put on your pizza?",
                            "position": 1,
                            "maxSelection": 10,
                            "minSelection": null,
                            "maxSameOptionSelection": 2,
                            "selectionLabel": "Max. 10",
                            "productOptions": [
                              {
                                "id": "233",
                                "name": "Cheddar",
                                "shortDescription": "Add cheddar to your pizza",
                                "position": 1,
                                "isAvailable": true,
                                "price": 0.75
                              }
                            ]
                          }
                        ],
                        "urlKey": "product-name"
                      }
                    ]
                  }
                ]
              }
            ],
            "urlKey": "menu-name",
            "schedule": {
              "id": 2113,
              "ranges": [
                {
                  "startTime": "06:00:00",
                  "endTime": "18:00:00",
                  "timezone": "Europe/Madrid",
                  "startDay": {
                    "id": 1,
                    "name": "Lunes"
                  },
                  "endDay": {
                    "id": 1,
                    "name": "Lunes"
                  }
                }
              ]
            },
            "scheduleLabel": "All days from 09:00h to 22:00h",
            "deliveryAvailability": {
              "checkoutAllowed": true,
              "orderTypeAllowed": true,
              "availabilityLabel": "DISPONIBLE hoy 15/02",
              "availableRangesLabel": "Hoy de 08 a 22",
              "availableRanges": [
                {
                  "startTime": "2018-02-15T08:00:00+0000",
                  "endTime": "2018-02-15T22:00:00+0000"
                }
              ]
            },
            "collectionAvailability": {
              "checkoutAllowed": true,
              "orderTypeAllowed": true,
              "availabilityLabel": "DISPONIBLE hoy 15/02",
              "availableRangesLabel": "Hoy de 08 a 22",
              "availableRanges": [
                {
                  "startTime": "2018-02-15T08:00:00+0000",
                  "endTime": "2018-02-15T22:00:00+0000"
                }
              ]
            },
            "insituAvailability": {
              "checkoutAllowed": true,
              "orderTypeAllowed": true,
              "availabilityLabel": "DISPONIBLE hoy 15/02",
              "availableRangesLabel": "Hoy de 08 a 22",
              "availableRanges": [
                {
                  "startTime": "2018-02-15T08:00:00+0000",
                  "endTime": "2018-02-15T22:00:00+0000"
                }
              ]
            }
          }
        ],
        "items": {
          "$ref": "#/components/schemas/Menu"
        }
      },
      "SellingPointException": {
        "type": "object",
        "description": "",
        "example": {
          "id": 872,
          "startsAt": "2017-10-14T22:00:00+0000",
          "expiresAt": "2017-10-15T21:59:00+0000"
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Selling point exception identifier",
            "example": 0
          },
          "startsAt": {
            "type": "string",
            "format": "date-time",
            "description": "Exception start time",
            "example": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "Exception end time",
            "example": "string"
          }
        },
        "required": [
          "id",
          "startsAt",
          "expiresAt"
        ]
      },
      "SellingPointExceptionCollection": {
        "type": "array",
        "description": "Restaurant closing exceptions",
        "example": [
          {
            "id": 872,
            "startsAt": "2017-10-14T22:00:00+0000",
            "expiresAt": "2017-10-15T21:59:00+0000"
          }
        ],
        "items": {
          "$ref": "#/components/schemas/SellingPointException"
        }
      },
      "OrderRaw": {
        "type": "object",
        "description": "Remember that in this API we won't validate the order / reservation elements because the responsibility of taking the order resides on your side",
        "example": {
          "marketOrderId": "1406545518",
          "code": "LBJ8ZUJR",
          "productsAmount": 67,
          "deliveryAmount": 1,
          "discountsAmount": 0,
          "totalAmount": 68,
          "executionTime": "2020-07-23 14:07:04",
          "comment": "Consumer order notes",
          "currency": "EUR",
          "consumer": {
            "email": "consumer@example.com",
            "name": "Fulanito",
            "lastname": "Doe",
            "phone": "+34600000000",
            "billingName": null,
            "billingAddress": null,
            "billingVatNumber": null
          },
          "type": "delivery",
          "sellingPoint": {
            "oqId": 3961
          },
          "payments": [
            {
              "amount": 68,
              "tipAmount": 0,
              "methodCode": "EXTERNAL_PAYMENT"
            }
          ],
          "orderLines": [
            {
              "type": "PRODUCT",
              "totalAmount": 36,
              "unitAdditionalAmount": 1,
              "unitAmount": 11,
              "quantity": 3,
              "label": "Pizza de la huerta",
              "comment": null,
              "childrenOrderLines": [
                {
                  "type": "PRODUCT_OPTION",
                  "totalAmount": 1,
                  "unitAdditionalAmount": 0,
                  "unitFinalAmount": 1,
                  "unitAmount": 1,
                  "quantity": 1,
                  "label": "Bacon",
                  "comment": null,
                  "childrenOrderLines": [],
                  "baseAmount": 0.91,
                  "vatAmount": 0.09,
                  "vatValue": 10,
                  "productOption": {
                    "oqId": 234816
                  }
                }
              ],
              "baseAmount": 32.73,
              "vatAmount": 3.27,
              "vatValue": 10,
              "product": {
                "oqId": 109838
              }
            },
            {
              "type": "PRODUCT",
              "totalAmount": 27,
              "unitAdditionalAmount": 1,
              "unitFinalAmount": 13.5,
              "unitAmount": 12.5,
              "quantity": 2,
              "label": "Pizza Barbacoa",
              "comment": null,
              "childrenOrderLines": [
                {
                  "type": "PRODUCT_OPTION",
                  "totalAmount": 1,
                  "unitAdditionalAmount": 0,
                  "unitFinalAmount": 1,
                  "unitAmount": 1,
                  "quantity": 1,
                  "label": "Bacon",
                  "comment": null,
                  "childrenOrderLines": [],
                  "baseAmount": 0.91,
                  "vatAmount": 0.09,
                  "vatValue": 10,
                  "productOption": {
                    "oqId": 234816
                  }
                }
              ],
              "baseAmount": 24.55,
              "vatAmount": 2.45,
              "vatValue": 10,
              "product": {
                "oqId": 109840
              }
            },
            {
              "type": "PRODUCT",
              "totalAmount": 4,
              "unitAdditionalAmount": 0,
              "unitFinalAmount": 2,
              "unitAmount": 2,
              "quantity": 2,
              "label": "Cerveza 33cl",
              "comment": "Comment 1",
              "childrenOrderLines": [],
              "baseAmount": 3.64,
              "vatAmount": 0.36,
              "vatValue": 10,
              "product": {
                "oqId": 109842
              }
            },
            {
              "type": "DELIVERY",
              "totalAmount": 1,
              "unitAmount": 1,
              "quantity": 1,
              "label": "Delivery cost",
              "comment": null,
              "childrenOrderLines": [],
              "baseAmount": 0.83,
              "vatAmount": 0.17,
              "vatValue": 21,
              "distance": 0
            }
          ],
          "delivery": {
            "deliveryAddress": {
              "streetAndNumber": "Carrer de la Tecnologia, 17",
              "details": "Piso 2 - Puerta 3",
              "city": "Viladecans",
              "province": "Barcelona",
              "postalCode": "08840",
              "latitude": "41.31359311686318",
              "longitude": "2.0311733479297978",
              "forceCreation": true
            }
          }
        },
        "properties": {
          "marketOrderId": {
            "type": "string",
            "example": "1406545518"
          },
          "code": {
            "type": "string",
            "example": "LBJ8ZUJR"
          },
          "productsAmount": {
            "type": "integer",
            "example": 67
          },
          "deliveryAmount": {
            "type": "integer",
            "example": 1
          },
          "discountsAmount": {
            "type": "integer",
            "example": 0
          },
          "totalAmount": {
            "type": "integer",
            "example": 68
          },
          "executionTime": {
            "type": "string",
            "example": "2020-07-23 14:07:04"
          },
          "comment": {
            "type": "string",
            "example": "Consumer order notes"
          },
          "currency": {
            "type": "string",
            "example": "EUR"
          },
          "consumer": {
            "type": "object",
            "properties": {
              "email": {
                "type": "string",
                "example": "consumer@example.com"
              },
              "name": {
                "type": "string",
                "example": "Fulanito"
              },
              "lastname": {
                "type": "string",
                "example": "Doe"
              },
              "phone": {
                "type": "string",
                "example": "+34600000000"
              },
              "billingName": {
                "type": "string",
                "example": null
              },
              "billingAddress": {
                "type": "string",
                "example": null
              },
              "billingVatNumber": {
                "type": "string",
                "example": null
              }
            }
          },
          "type": {
            "type": "string",
            "example": "delivery"
          },
          "sellingPoint": {
            "type": "object",
            "properties": {
              "oqId": {
                "oneOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "string",
                    "minLength": 1
                  }
                ],
                "example": 3961
              }
            }
          },
          "payments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "integer",
                  "example": 68
                },
                "tipAmount": {
                  "type": "integer",
                  "example": 0
                },
                "methodCode": {
                  "type": "string",
                  "example": "EXTERNAL_PAYMENT"
                }
              }
            }
          },
          "orderLines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "example": "PRODUCT"
                },
                "totalAmount": {
                  "type": "integer",
                  "example": 36
                },
                "unitAdditionalAmount": {
                  "type": "integer",
                  "example": 1
                },
                "unitAmount": {
                  "type": "integer",
                  "example": 11
                },
                "quantity": {
                  "type": "integer",
                  "example": 3
                },
                "label": {
                  "type": "string",
                  "example": "Pizza de la huerta"
                },
                "comment": {
                  "type": "string",
                  "example": null
                },
                "childrenOrderLines": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "PRODUCT_OPTION"
                      },
                      "totalAmount": {
                        "type": "integer",
                        "example": 1
                      },
                      "unitAdditionalAmount": {
                        "type": "integer",
                        "example": 0
                      },
                      "unitFinalAmount": {
                        "type": "integer",
                        "example": 1
                      },
                      "unitAmount": {
                        "type": "integer",
                        "example": 1
                      },
                      "quantity": {
                        "type": "integer",
                        "example": 1
                      },
                      "label": {
                        "type": "string",
                        "example": "Bacon"
                      },
                      "comment": {
                        "type": "string",
                        "example": null
                      },
                      "childrenOrderLines": {
                        "type": "object",
                        "properties": []
                      },
                      "baseAmount": {
                        "type": "number",
                        "example": 0.91
                      },
                      "vatAmount": {
                        "type": "number",
                        "example": 0.09
                      },
                      "vatValue": {
                        "type": "integer",
                        "example": 10
                      },
                      "productOption": {
                        "type": "object",
                        "properties": {
                          "oqId": {
                            "oneOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "string",
                                "minLength": 1
                              }
                            ],
                            "example": 234816
                          }
                        }
                      }
                    }
                  }
                },
                "baseAmount": {
                  "type": "number",
                  "example": 32.73
                },
                "vatAmount": {
                  "type": "number",
                  "example": 3.27
                },
                "vatValue": {
                  "type": "integer",
                  "example": 10
                },
                "product": {
                  "type": "object",
                  "properties": {
                    "oqId": {
                      "oneOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "string",
                          "minLength": 1
                        }
                      ],
                      "example": 109838
                    }
                  }
                }
              }
            }
          },
          "delivery": {
            "type": "object",
            "properties": {
              "deliveryAddress": {
                "type": "object",
                "properties": {
                  "streetAndNumber": {
                    "type": "string",
                    "example": "Carrer de la Tecnologia, 17"
                  },
                  "details": {
                    "type": "string",
                    "example": "Piso 2 - Puerta 3"
                  },
                  "city": {
                    "type": "string",
                    "example": "Viladecans"
                  },
                  "province": {
                    "type": "string",
                    "example": "Barcelona"
                  },
                  "postalCode": {
                    "type": "string",
                    "example": "08840"
                  },
                  "latitude": {
                    "type": "string",
                    "example": "41.31359311686318"
                  },
                  "longitude": {
                    "type": "string",
                    "example": "2.0311733479297978"
                  },
                  "forceCreation": {
                    "type": "boolean",
                    "example": true
                  }
                }
              }
            }
          }
        }
      },
      "Consumer": {
        "type": "object",
        "description": "",
        "example": {
          "id": 1003,
          "email": "john@example.com",
          "name": "John",
          "lastname": "Doe",
          "image": "https://example.com/assets/images/placeholder_image.jpg",
          "phone": "+34600000000",
          "marketClientId": "MMMM-MMMM-MMMM"
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Consumer identifier",
            "example": 0
          },
          "email": {
            "type": "string",
            "description": "Consumer email",
            "example": "string"
          },
          "name": {
            "type": "string",
            "description": "Consumer name",
            "example": "string"
          },
          "lastname": {
            "type": "string",
            "description": "Consumer last name",
            "example": "string"
          },
          "image": {
            "type": "string",
            "description": "Consumer profile image url",
            "example": "string"
          },
          "phone": {
            "type": "string",
            "description": "In international format. Ex. +34600000000",
            "example": "string"
          },
          "marketClientId": {
            "type": "string",
            "description": "Market client identifier",
            "example": "string"
          }
        },
        "required": [
          "id",
          "email",
          "name",
          "phone"
        ]
      },
      "OrderStatus": {
        "type": "object",
        "description": "Current order status",
        "example": {
          "code": "waiting_sp_validation",
          "name": "Waiting selling point validation",
          "color": "#f7981d",
          "isFinalStatus": false,
          "globalStatusCode": "processing"
        },
        "properties": {
          "code": {
            "type": "string",
            "description": "Status identifier code",
            "enum": [
              "waiting_sp_validation",
              "accepted",
              "preparation",
              "ready",
              "delivering",
              "delivered",
              "incident",
              "cancelled",
              "finished",
              "reservation_accepted",
              "cancelled_by_sp",
              "cancelled_by_client",
              "cancelled_by_driver",
              "cancelled_by_team",
              "payment_authorisation_failed"
            ],
            "example": "waiting_sp_validation"
          },
          "name": {
            "type": "string",
            "description": "Status name",
            "example": "string"
          },
          "color": {
            "type": "string",
            "description": "HEX color code for the status",
            "example": "string"
          },
          "isFinalStatus": {
            "type": "boolean",
            "description": "Return if status is final status and doesn't require interaction",
            "example": true
          },
          "globalStatusCode": {
            "type": "string",
            "description": "Order global status identifier code",
            "example": "string"
          }
        },
        "required": [
          "code",
          "name",
          "color"
        ]
      },
      "Payment": {
        "type": "object",
        "description": "Payment",
        "example": {
          "id": 5922,
          "amount": 29.9,
          "paymentMethodName": "Credit card",
          "prepaid": true
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Order payment identifier",
            "example": 0
          },
          "amount": {
            "type": "number",
            "format": "float",
            "description": "Payment amount",
            "example": 0
          },
          "paymentMethodName": {
            "type": "string",
            "description": "Payment method name",
            "example": "string"
          },
          "prepaid": {
            "type": "boolean",
            "description": "True if the payment has already been paid",
            "example": true
          }
        },
        "required": [
          "id",
          "amount",
          "paymentMethodName"
        ]
      },
      "payments": {
        "type": "array",
        "description": "Order payments",
        "example": [
          {
            "id": 5922,
            "amount": 29.9,
            "paymentMethodName": "Credit card",
            "prepaid": true
          }
        ],
        "items": {
          "$ref": "#/components/schemas/Payment"
        }
      },
      "Discount": {
        "type": "object",
        "description": "Only for orderLine type DISCOUNT",
        "example": {
          "id": "233"
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Discount identifier",
            "example": 0
          }
        },
        "required": [
          "id"
        ]
      },
      "Coupon": {
        "type": "object",
        "description": "Only for orderLine type DISCOUNT",
        "example": {
          "code": "first10"
        },
        "properties": {
          "code": {
            "type": "string",
            "description": "Coupon code",
            "example": "string"
          }
        },
        "required": [
          "code"
        ]
      },
      "OrderLine": {
        "type": "object",
        "description": "",
        "example": {
          "totalAmount": 29.9,
          "unitPrice": 14.95,
          "quantity": 2,
          "comment": "Order line comment",
          "label": "Pizza margherita",
          "type": "PRODUCT",
          "distance": null,
          "product": {
            "id": "843"
          },
          "menu": {
            "id": 543
          },
          "productOption": {
            "id": "233"
          },
          "discount": {
            "id": "233"
          },
          "coupon": {
            "code": "first10"
          },
          "childrenOrderLines": [
            null
          ]
        },
        "properties": {
          "totalAmount": {
            "type": "number",
            "format": "float",
            "description": "Order line total amount VAT included",
            "example": 0
          },
          "unitPrice": {
            "type": "number",
            "format": "float",
            "description": "Order line total amount VAT included",
            "example": 0
          },
          "quantity": {
            "type": "integer",
            "format": "int64",
            "description": "Order line quantity",
            "example": 0
          },
          "comment": {
            "type": "string",
            "description": "Order line comment",
            "example": "string"
          },
          "label": {
            "type": "string",
            "description": "Order line label",
            "example": "string"
          },
          "type": {
            "type": "string",
            "description": "Type code",
            "enum": [
              "PRODUCT",
              "MENU",
              "PRODUCT_OPTION",
              "DISCOUNT",
              "DELIVERY",
              "CUSTOM",
              "POS_ITEM"
            ],
            "example": "PRODUCT"
          },
          "distance": {
            "type": "number",
            "format": "float",
            "description": "Only used in delivery order lines",
            "example": 0
          },
          "product": {
            "$ref": "#/components/schemas/Product"
          },
          "menu": {
            "$ref": "#/components/schemas/Menu"
          },
          "productOption": {
            "$ref": "#/components/schemas/ProductOption"
          },
          "discount": {
            "$ref": "#/components/schemas/Discount"
          },
          "coupon": {
            "$ref": "#/components/schemas/Coupon"
          },
          "childrenOrderLines": {
            "$ref": "#/components/schemas/OrderLine"
          },
          "baseAmount": {
            "type": "number",
            "format": "float",
            "description": "Total order line amount VAT excluded",
            "example": 0
          },
          "vatAmount": {
            "type": "number",
            "format": "float",
            "description": "Total order line VAT amount",
            "example": 0
          },
          "vatValue": {
            "type": "number",
            "format": "float",
            "description": "Applied order line VAT value",
            "example": 0
          }
        },
        "required": [
          "totalAmount",
          "unitPrice",
          "quantity",
          "label",
          "type",
          "baseAmount",
          "vatAmount",
          "vatValue"
        ]
      },
      "orderLines": {
        "type": "array",
        "description": "Order items",
        "example": [
          {
            "totalAmount": 29.9,
            "unitPrice": 14.95,
            "quantity": 2,
            "comment": "Order line comment",
            "label": "Pizza margherita",
            "type": "PRODUCT",
            "distance": null,
            "product": {
              "id": "843"
            },
            "menu": {
              "id": 543
            },
            "productOption": {
              "id": "233"
            },
            "discount": {
              "id": "233"
            },
            "coupon": {
              "code": "first10"
            },
            "childrenOrderLines": [
              null
            ]
          }
        ],
        "items": {
          "$ref": "#/components/schemas/OrderLine"
        }
      },
      "Delivery_address": {
        "type": "object",
        "description": "Only for delivery orders",
        "example": {
          "id": 1003,
          "street": "C/ Example, 23",
          "details": "Canada building",
          "city": "City name",
          "province": "Province name",
          "postalCode": "12345",
          "latitude": 41.308166,
          "longitude": 2.019725,
          "googlePlaceId": "xxxxxxxxxxxx",
          "placeName": "C/ Example, 23, City name"
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Address identifier",
            "example": 0
          },
          "street": {
            "type": "string",
            "description": "Address street with number",
            "example": "string"
          },
          "details": {
            "type": "string",
            "description": "Extra address information",
            "example": "string"
          },
          "city": {
            "type": "string",
            "description": "Address city name",
            "example": "string"
          },
          "province": {
            "type": "string",
            "description": "Address province name",
            "example": "string"
          },
          "postalCode": {
            "type": "string",
            "description": "Address postal code",
            "example": "string"
          },
          "latitude": {
            "type": "number",
            "format": "float",
            "description": "Address latitude",
            "example": 0
          },
          "longitude": {
            "type": "number",
            "format": "float",
            "description": "Address longitude",
            "example": 0
          },
          "googlePlaceId": {
            "type": "string",
            "description": "Google place identifier",
            "example": "string"
          },
          "placeName": {
            "type": "string",
            "description": "Place name",
            "example": "string"
          }
        },
        "required": [
          "id",
          "street"
        ]
      },
      "Status": {
        "type": "object",
        "description": "Current delivery status",
        "example": {
          "code": "PICKING",
          "name": "Picking",
          "color": "blue",
          "isFinalStatus": false
        },
        "properties": {
          "code": {
            "type": "string",
            "description": "Delivery status identifier code",
            "enum": [
              "WAITING_DRIVER_ACCEPTANCE",
              "PICKING",
              "WAITING_SELLING_POINT_ACCEPTANCE",
              "WAITING_SELLING_POINT_PREPARATION",
              "DELIVERING",
              "WAITING_CUSTOMER",
              "DELIVERED",
              "CANCELLED",
              "INCIDENT",
              "ACCEPTED_BY_DRIVER"
            ],
            "example": "WAITING_DRIVER_ACCEPTANCE"
          },
          "name": {
            "type": "string",
            "description": "Delivery status name",
            "example": "string"
          },
          "color": {
            "type": "string",
            "description": "HEX color code for the status",
            "example": "string"
          },
          "isFinalStatus": {
            "type": "boolean",
            "description": "Return if is the last possible status",
            "example": true
          }
        },
        "required": [
          "code",
          "name",
          "color"
        ]
      },
      "TransportType": {
        "type": "object",
        "description": "",
        "example": {
          "code": "SCOOTER",
          "name": "Scooter"
        },
        "properties": {
          "code": {
            "type": "string",
            "description": "Transport type identifier code",
            "enum": [
              "BIKE",
              "SCOOTER",
              "MOTORBIKE",
              "CAR",
              "VAN",
              "WALKING"
            ],
            "example": "BIKE"
          },
          "name": {
            "type": "string",
            "description": "Transport type name",
            "example": "string"
          }
        },
        "required": [
          "code",
          "name"
        ]
      },
      "Geolocation": {
        "type": "object",
        "description": "Driver last geolocation",
        "example": {
          "latitude": 41.308166,
          "longitude": 2.019725,
          "createdAt": "2018-03-015T12:15:00+0000"
        },
        "properties": {
          "latitude": {
            "type": "number",
            "format": "float",
            "description": "Geolocation latitude",
            "example": 0
          },
          "longitude": {
            "type": "number",
            "format": "float",
            "description": "Geolocation longitude",
            "example": 0
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Geolocation creation time",
            "example": "string"
          }
        },
        "required": [
          "latitude",
          "longitude",
          "createdAt"
        ]
      },
      "Driver": {
        "type": "object",
        "description": "Delivery driver",
        "example": {
          "id": 1003,
          "email": "john@example.com",
          "name": "John",
          "lastname": "Doe",
          "image": "https://example.com/assets/images/placeholder_image.jpg",
          "phone": "+34600000000",
          "transport": {
            "code": "SCOOTER",
            "name": "Scooter"
          },
          "lastGeolocation": {
            "latitude": 41.308166,
            "longitude": 2.019725,
            "createdAt": "2018-03-015T12:15:00+0000"
          }
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Driver identifier",
            "example": 0
          },
          "email": {
            "type": "string",
            "description": "Driver email",
            "example": "string"
          },
          "name": {
            "type": "string",
            "description": "Driver name",
            "example": "string"
          },
          "lastname": {
            "type": "string",
            "description": "Driver last name",
            "example": "string"
          },
          "image": {
            "type": "string",
            "description": "Driver image url",
            "example": "string"
          },
          "phone": {
            "type": "string",
            "description": "In international format. Ex. +34600000000",
            "example": "string"
          },
          "transport": {
            "$ref": "#/components/schemas/TransportType"
          },
          "lastGeolocation": {
            "$ref": "#/components/schemas/Geolocation"
          }
        },
        "required": [
          "id",
          "email",
          "name",
          "lastname",
          "phone",
          "transport"
        ]
      },
      "Delivery": {
        "type": "object",
        "description": "Order delivery",
        "example": {
          "id": 1003,
          "deliveryAccountName": "DeliveryCompanyName",
          "deliveryAccountPhone": "600000001",
          "pickupAddress": {
            "id": 1003,
            "street": "C/ Example, 23",
            "details": "Canada building",
            "city": "City name",
            "province": "Province name",
            "postalCode": "12345",
            "latitude": 41.308166,
            "longitude": 2.019725,
            "googlePlaceId": "xxxxxxxxxxxx",
            "placeName": "C/ Example, 23, City name"
          },
          "deliveryAddress": {
            "id": 1003,
            "street": "C/ Example, 23",
            "details": "Canada building",
            "city": "City name",
            "province": "Province name",
            "postalCode": "12345",
            "latitude": 41.308166,
            "longitude": 2.019725,
            "googlePlaceId": "xxxxxxxxxxxx",
            "placeName": "C/ Example, 23, City name"
          },
          "pickupAgreedAt": "2017-02-09T12:00:00+0000",
          "pickupConfirmedAt": "2017-02-09T12:00:00+0000",
          "deliveryAgreedAt": "2017-02-09T12:15:00+0000",
          "deliveryConfirmedAt": "2017-02-09T12:15:00+0000",
          "deliveryInstructions": null,
          "linearDistance": "1.56",
          "realDistance": "1.97",
          "estimatedDeliveryDuration": "15",
          "status": {
            "code": "PICKING",
            "name": "Picking",
            "color": "blue",
            "isFinalStatus": false
          },
          "destinationContactEmail": "jane@example.com",
          "destinationContactName": "Jane",
          "destinationContactPhone": "600000000",
          "route": "c_c{FmniKrBcBnAkA@QCMMg@_BbBoEzEEyD?GCQIKMAKB{DsDiBmBq@_A?EAKCICCtDqFtB}ChCwDPPxCrCj@h@",
          "driver": {
            "id": 1003,
            "email": "john@example.com",
            "name": "John",
            "lastname": "Doe",
            "image": "https://example.com/assets/images/placeholder_image.jpg",
            "phone": "+34600000000",
            "transport": {
              "code": "SCOOTER",
              "name": "Scooter"
            },
            "lastGeolocation": {
              "latitude": 41.308166,
              "longitude": 2.019725,
              "createdAt": "2018-03-015T12:15:00+0000"
            }
          }
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Delivery identifier",
            "example": 0
          },
          "deliveryAccountName": {
            "type": "string",
            "description": "Delivery company name",
            "example": "string"
          },
          "deliveryAccountPhone": {
            "type": "string",
            "description": "Delivery company contact phone",
            "example": "string"
          },
          "pickupAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "deliveryAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "pickupAgreedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Pickup agreed time",
            "example": "string"
          },
          "pickupConfirmedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Confirmed pickup time",
            "example": "string"
          },
          "deliveryAgreedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Delivery agreed time",
            "example": "string"
          },
          "deliveryConfirmedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Confirmed delivery time",
            "example": "string"
          },
          "deliveryInstructions": {
            "type": "string",
            "description": "Driver instructions",
            "example": "string"
          },
          "linearDistance": {
            "type": "number",
            "format": "float",
            "description": "Linear distance between pickup and delivery points",
            "example": 0
          },
          "realDistance": {
            "type": "number",
            "format": "float",
            "description": "Real distance between pickup and delivery points",
            "example": 0
          },
          "estimatedDeliveryDuration": {
            "type": "number",
            "format": "float",
            "description": "Estimated delivery duration in minutes",
            "example": 0
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "destinationContactEmail": {
            "type": "string",
            "description": "Destination contact email",
            "example": "string"
          },
          "destinationContactName": {
            "type": "string",
            "description": "Destination contact name",
            "example": "string"
          },
          "destinationContactPhone": {
            "type": "string",
            "description": "Destination contact phone number",
            "example": "string"
          },
          "route": {
            "type": "string",
            "description": "Polyline describing driver route",
            "example": "string"
          },
          "driver": {
            "$ref": "#/components/schemas/Driver"
          }
        },
        "required": [
          "id",
          "pickupAddress",
          "deliveryAddress",
          "pickupAgreedAt",
          "pickupConfirmedAt",
          "deliveryAgreedAt",
          "deliveryConfirmedAt",
          "linearDistance",
          "estimatedDeliveryDuration",
          "status"
        ]
      },
      "deliveries": {
        "type": "array",
        "description": "Order deliveries",
        "example": [
          {
            "id": 1003,
            "deliveryAccountName": "DeliveryCompanyName",
            "deliveryAccountPhone": "600000001",
            "pickupAddress": {
              "id": 1003,
              "street": "C/ Example, 23",
              "details": "Canada building",
              "city": "City name",
              "province": "Province name",
              "postalCode": "12345",
              "latitude": 41.308166,
              "longitude": 2.019725,
              "googlePlaceId": "xxxxxxxxxxxx",
              "placeName": "C/ Example, 23, City name"
            },
            "deliveryAddress": {
              "id": 1003,
              "street": "C/ Example, 23",
              "details": "Canada building",
              "city": "City name",
              "province": "Province name",
              "postalCode": "12345",
              "latitude": 41.308166,
              "longitude": 2.019725,
              "googlePlaceId": "xxxxxxxxxxxx",
              "placeName": "C/ Example, 23, City name"
            },
            "pickupAgreedAt": "2017-02-09T12:00:00+0000",
            "pickupConfirmedAt": "2017-02-09T12:00:00+0000",
            "deliveryAgreedAt": "2017-02-09T12:15:00+0000",
            "deliveryConfirmedAt": "2017-02-09T12:15:00+0000",
            "deliveryInstructions": null,
            "linearDistance": "1.56",
            "realDistance": "1.97",
            "estimatedDeliveryDuration": "15",
            "status": {
              "code": "PICKING",
              "name": "Picking",
              "color": "blue",
              "isFinalStatus": false
            },
            "destinationContactEmail": "jane@example.com",
            "destinationContactName": "Jane",
            "destinationContactPhone": "600000000",
            "route": "c_c{FmniKrBcBnAkA@QCMMg@_BbBoEzEEyD?GCQIKMAKB{DsDiBmBq@_A?EAKCICCtDqFtB}ChCwDPPxCrCj@h@",
            "driver": {
              "id": 1003,
              "email": "john@example.com",
              "name": "John",
              "lastname": "Doe",
              "image": "https://example.com/assets/images/placeholder_image.jpg",
              "phone": "+34600000000",
              "transport": {
                "code": "SCOOTER",
                "name": "Scooter"
              },
              "lastGeolocation": {
                "latitude": 41.308166,
                "longitude": 2.019725,
                "createdAt": "2018-03-015T12:15:00+0000"
              }
            }
          }
        ],
        "items": {
          "$ref": "#/components/schemas/Delivery"
        }
      },
      "Order": {
        "type": "object",
        "description": "Order",
        "example": {
          "id": 418774,
          "orderGroupId": null,
          "totalAmount": 68,
          "executionTimeLabel": "hoy 23/07 a las 09:06h",
          "preparationTimeLabel": "hoy 23/07 a las 08:56h",
          "comment": "This is the order comment!",
          "cancellationComment": null,
          "consumer": {
            "id": 18899,
            "name": "Client_73626",
            "lastname": "Lastname_73626",
            "email": null,
            "phone": "+34600000000",
            "image": null,
            "notificationsChannel": "1f4cac2743f504bb2a10cdff9bc2c365",
            "chatToken": null,
            "marketClientId": null
          },
          "status": {
            "code": "waiting_sp_validation",
            "name": "Esperando validación del negocio",
            "color": "#f7981d",
            "isFinalStatus": false,
            "globalStatusCode": "processing"
          },
          "type": "delivery",
          "sellingPoint": {
            "id": 3961,
            "name": "SuperPizza",
            "address": {
              "id": 16187,
              "street": "Carrer de la Tecnologia, 17",
              "details": "",
              "city": "Viladecans",
              "province": "Barcelona",
              "postalCode": "08840",
              "latitude": 41.31372,
              "longitude": 2.031222,
              "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
              "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
              "autoGeolocated": true
            },
            "phone": "+34900000000",
            "email": "superpizza@example.com",
            "logo": "https://example.com/e4cd836538_f79efe5783_82291551976531iconImagesqd2mt.png",
            "mainImage": "https://example.com/d770d57632_4e01533575_85091551975570baked-cheese-cherry-tomato-1552635.png",
            "mainImageLarge": "https://example.com/1551975570_bab77d7d5bbcec5e64cd3c1ac22c56ee.png",
            "listImage": "https://example.com/d770d57632_4e01533575_85091551975570baked-cheese-cherry-tomato-1552635.png",
            "listImageLarge": "https://example.com/1551975570_bab77d7d5bbcec5e64cd3c1ac22c56ee.png",
            "type": "Pizzería",
            "urlKey": "superpizza-viladecans",
            "timezone": "Europe/Madrid"
          },
          "payments": [
            {
              "id": 54712,
              "amount": 68,
              "paymentMethodName": "Efectivo",
              "prepaid": false
            }
          ],
          "orderLines": [
            {
              "type": "PRODUCT",
              "totalAmount": 36,
              "unitPrice": 12,
              "quantity": 3,
              "label": "Pizza de la huerta",
              "comment": null,
              "childrenOrderLines": [
                {
                  "type": "PRODUCT_OPTION",
                  "totalAmount": 1,
                  "unitPrice": 1,
                  "quantity": 1,
                  "label": "Bacon",
                  "comment": null,
                  "childrenOrderLines": [],
                  "baseAmount": 0.91,
                  "vatAmount": 0.09,
                  "vatValue": 10,
                  "productOption": {
                    "id": 234816,
                    "externalId": null
                  }
                }
              ],
              "baseAmount": 32.73,
              "vatAmount": 3.27,
              "vatValue": 10,
              "product": {
                "id": 109838,
                "externalId": null
              }
            },
            {
              "type": "PRODUCT",
              "totalAmount": 27,
              "unitPrice": 13.5,
              "quantity": 2,
              "label": "Pizza Barbacoa",
              "comment": null,
              "childrenOrderLines": [
                {
                  "type": "PRODUCT_OPTION",
                  "totalAmount": 1,
                  "unitPrice": 1,
                  "quantity": 1,
                  "label": "Bacon",
                  "comment": null,
                  "childrenOrderLines": [],
                  "baseAmount": 0.91,
                  "vatAmount": 0.09,
                  "vatValue": 10,
                  "productOption": {
                    "id": 234816,
                    "externalId": null
                  }
                }
              ],
              "baseAmount": 24.55,
              "vatAmount": 2.45,
              "vatValue": 10,
              "product": {
                "id": 109840,
                "externalId": null
              }
            },
            {
              "type": "PRODUCT",
              "totalAmount": 4,
              "unitPrice": 2,
              "quantity": 2,
              "label": "Cerveza 33cl",
              "comment": "Comment 1",
              "childrenOrderLines": [],
              "baseAmount": 3.64,
              "vatAmount": 0.36,
              "vatValue": 10,
              "product": {
                "id": 109842,
                "externalId": null
              }
            },
            {
              "type": "DELIVERY",
              "totalAmount": 1,
              "unitPrice": 1,
              "quantity": 1,
              "label": "Delivery cost",
              "comment": null,
              "childrenOrderLines": [],
              "baseAmount": 0.83,
              "vatAmount": 0.17,
              "vatValue": 21,
              "distance": 0
            }
          ],
          "isCancellable": true,
          "isAcceptable": true,
          "baseAmount": 61.75,
          "vatAmount": 6.25,
          "currency": {
            "isoCode": "EUR",
            "symbol": "€",
            "displayPattern": "{{ amount }}€"
          },
          "posOrderId": null,
          "marketOrderId": "73626",
          "marketOrderCode": "RNYLUD",
          "executionTime": "2020-07-23T07:06:52+0000",
          "deliveryAmount": 1,
          "deliveryAddress": {
            "id": 16188,
            "street": "Carrer de la Tecnologia, 17",
            "details": null,
            "city": "Viladecans",
            "province": "Barcelona",
            "postalCode": "08840",
            "latitude": 41.31372,
            "longitude": 2.031222,
            "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
            "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
            "autoGeolocated": true
          },
          "deliveries": [
            {
              "id": 283003,
              "status": {
                "code": "WAITING_SELLING_POINT_ACCEPTANCE",
                "name": "Esperando aceptación punto de venta",
                "color": "#f7981d",
                "isFinalStatus": false
              },
              "driver": null,
              "deliveryAccountName": null,
              "deliveryAccountPhone": null,
              "pickupAddress": {
                "id": 16187,
                "street": "Carrer de la Tecnologia, 17",
                "details": "",
                "city": "Viladecans",
                "province": "Barcelona",
                "postalCode": "08840",
                "latitude": 41.31372,
                "longitude": 2.031222,
                "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
                "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
                "autoGeolocated": true
              },
              "pickupAgreedAt": "2020-07-23T06:56:52+0000",
              "pickupConfirmedAt": "2020-07-23T06:56:52+0000",
              "deliveryAddress": {
                "id": 16188,
                "street": "Carrer de la Tecnologia, 17",
                "details": null,
                "city": "Viladecans",
                "province": "Barcelona",
                "postalCode": "08840",
                "latitude": 41.31372,
                "longitude": 2.031222,
                "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
                "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
                "autoGeolocated": true
              },
              "deliveryAgreedAt": "2020-07-23T07:06:52+0000",
              "deliveryConfirmedAt": "2020-07-23T07:06:52+0000",
              "deliveryInstructions": null,
              "forSenderInstructions": null,
              "linearDistance": 0,
              "realDistance": null,
              "route": null,
              "estimatedDeliveryDuration": 0,
              "destinationContactEmail": null,
              "destinationContactName": "Client_73626 · Lastname_73626",
              "destinationContactPhone": "600000000",
              "trackingUrl": "https://example.com/tracking/example"
            }
          ]
        },
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Order identifier",
            "example": 0
          },
          "totalAmount": {
            "type": "number",
            "format": "float",
            "description": "Total order amount VAT included",
            "example": 0
          },
          "executionTimeLabel": {
            "type": "string",
            "description": "Short text representing order execution time",
            "example": "string"
          },
          "executionTime": {
            "type": "string",
            "description": "Order execution time",
            "example": "string"
          },
          "comment": {
            "type": "string",
            "description": "Consumer order comment",
            "example": "string"
          },
          "cancellationComment": {
            "type": "string",
            "description": "Only if order is cancelled",
            "example": "string"
          },
          "consumer": {
            "$ref": "#/components/schemas/Consumer"
          },
          "status": {
            "$ref": "#/components/schemas/OrderStatus"
          },
          "type": {
            "type": "string",
            "description": "Order type code. More info in 'Understanding order types' section.",
            "enum": [
              "delivery",
              "collection",
              "insitu",
              "reservation",
              "inside"
            ],
            "example": "delivery"
          },
          "sellingPoint": {
            "$ref": "#/components/schemas/SellingPoint"
          },
          "payments": {
            "$ref": "#/components/schemas/payments"
          },
          "orderLines": {
            "$ref": "#/components/schemas/orderLines"
          },
          "deliveryAmount": {
            "type": "number",
            "format": "float",
            "description": "Delivery amount. Only for delivery orders.",
            "example": 0
          },
          "deliveryAddress": {
            "$ref": "#/components/schemas/Delivery_address"
          },
          "deliveries": {
            "$ref": "#/components/schemas/deliveries"
          },
          "dinersNumber": {
            "type": "integer",
            "format": "int64",
            "description": "Number of diners. Only for reservations, insitu and inside orders.",
            "example": 0
          },
          "isCancellable": {
            "type": "boolean",
            "description": "Returns true if order can be cancelled",
            "example": true
          },
          "posOrderId": {
            "type": "string",
            "description": "POS order identifier",
            "example": "string"
          },
          "marketOrderId": {
            "type": "string",
            "description": "Market order identifier",
            "example": "string"
          },
          "marketOrderCode": {
            "type": "string",
            "description": "Market order code",
            "example": "string"
          }
        },
        "required": [
          "id",
          "totalAmount",
          "executionTimeLabel",
          "executionTime",
          "consumer",
          "status",
          "type",
          "sellingPoint",
          "payments",
          "orderLines"
        ]
      },
      "ServiceZonesCollection": {
        "type": "object",
        "description": "List of restaurant service zones and tables",
        "example": [
          {
            "code": "TZ",
            "name": "Terraza",
            "serviceLocations": [
              {
                "code": "TZ1",
                "name": "Mesa 1"
              },
              {
                "code": "TZ2",
                "name": "Mesa 2"
              },
              {
                "code": "TZ3",
                "name": "Mesa 3"
              },
              {
                "code": "TZ4",
                "name": "Mesa 4"
              },
              {
                "code": "TZ5",
                "name": "Mesa 5"
              },
              {
                "code": "TZ6",
                "name": "Mesa 6"
              },
              {
                "code": "TZ7",
                "name": "Mesa 7"
              },
              {
                "code": "TZ8",
                "name": "Mesa 8"
              },
              {
                "code": "TZ9",
                "name": "Mesa 9"
              },
              {
                "code": "TZ10",
                "name": "Mesa 10"
              },
              {
                "code": "TZ11",
                "name": "Mesa 11"
              },
              {
                "code": "TZ12",
                "name": "Mesa 12"
              },
              {
                "code": "TZ13",
                "name": "Mesa 13"
              },
              {
                "code": "TZ14",
                "name": "Mesa 14"
              },
              {
                "code": "TZ15",
                "name": "Mesa 15"
              },
              {
                "code": "TZ16",
                "name": "Mesa 16"
              },
              {
                "code": "TZ17",
                "name": "Mesa 17"
              },
              {
                "code": "TZ18",
                "name": "Mesa 18"
              },
              {
                "code": "TZ19",
                "name": "Mesa 19"
              },
              {
                "code": "TZ20",
                "name": "Mesa 20"
              }
            ]
          },
          {
            "code": "BAR",
            "name": "Bar",
            "serviceLocations": [
              {
                "code": "BAR1",
                "name": "Mesa 1"
              },
              {
                "code": "BAR2",
                "name": "Mesa 2"
              },
              {
                "code": "BAR3",
                "name": "Mesa 3"
              },
              {
                "code": "BAR4",
                "name": "Mesa 4"
              },
              {
                "code": "BAR5",
                "name": "Mesa 5"
              }
            ]
          }
        ],
        "properties": [
          {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "example": "TZ"
              },
              "name": {
                "type": "string",
                "example": "Terraza"
              },
              "serviceLocations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "example": "TZ1"
                    },
                    "name": {
                      "type": "string",
                      "example": "Mesa 1"
                    }
                  }
                }
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "example": "BAR"
              },
              "name": {
                "type": "string",
                "example": "Bar"
              },
              "serviceLocations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "example": "BAR1"
                    },
                    "name": {
                      "type": "string",
                      "example": "Mesa 1"
                    }
                  }
                }
              }
            }
          }
        ]
      },
      "ServiceLocationLiveData": {
        "type": "object",
        "description": "Service location live data",
        "example": {
          "id": 4482,
          "code": "TERZ1",
          "name": "Mesa 1",
          "serviceZone": {
            "code": "TERZ",
            "name": "Terraza"
          },
          "currentOrderGroup": {
            "id": 888353,
            "orderTypeCode": "inside",
            "openCheckouts": [],
            "closedCheckouts": [
              {
                "id": 21847529,
                "inProgress": false,
                "userName": "John D.",
                "totalAmount": 12,
                "lastUpdateAt": "2022-03-17T10:32:18+0000",
                "orderId": 21847529,
                "marketOrderId": null,
                "marketOrderCode": "21847529",
                "items": [
                  {
                    "name": "Pizza de la huerta",
                    "quantity": 1,
                    "comment": "",
                    "unitPrice": 11,
                    "unitAdditionalPrice": 1,
                    "unitFinalPrice": 12,
                    "totalPrice": 12,
                    "items": [
                      {
                        "name": "Champiñones",
                        "quantity": 1,
                        "comment": null,
                        "unitPrice": 1,
                        "unitAdditionalPrice": 0,
                        "unitFinalPrice": 1,
                        "totalPrice": 1,
                        "items": []
                      }
                    ]
                  }
                ]
              }
            ],
            "payments": [],
            "amounts": {
              "ordersAmount": 12,
              "paymentsAmount": 0,
              "pendingPaymentsAmount": 12
            }
          }
        },
        "properties": {
          "id": {
            "type": "integer",
            "example": 4482
          },
          "code": {
            "type": "string",
            "example": "TERZ1"
          },
          "name": {
            "type": "string",
            "example": "Mesa 1"
          },
          "serviceZone": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "example": "TERZ"
              },
              "name": {
                "type": "string",
                "example": "Terraza"
              }
            }
          },
          "currentOrderGroup": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "example": 888353
              },
              "orderTypeCode": {
                "type": "string",
                "example": "inside"
              },
              "openCheckouts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "closedCheckouts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 21847529
                    },
                    "inProgress": {
                      "type": "boolean",
                      "example": false
                    },
                    "userName": {
                      "type": "string",
                      "example": "John D."
                    },
                    "totalAmount": {
                      "type": "number",
                      "example": 12
                    },
                    "lastUpdateAt": {
                      "type": "string",
                      "example": "2022-03-17T10:32:18+0000"
                    },
                    "orderId": {
                      "type": "integer",
                      "example": 21847529
                    },
                    "marketOrderId": {
                      "type": "string",
                      "example": null
                    },
                    "marketOrderCode": {
                      "type": "string",
                      "example": "21847529"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "Pizza de la huerta"
                          },
                          "quantity": {
                            "type": "integer",
                            "example": 1
                          },
                          "comment": {
                            "type": "string",
                            "example": ""
                          },
                          "unitPrice": {
                            "type": "number",
                            "example": 11
                          },
                          "unitAdditionalPrice": {
                            "type": "number",
                            "example": 1
                          },
                          "unitFinalPrice": {
                            "type": "number",
                            "example": 12
                          },
                          "totalPrice": {
                            "type": "number",
                            "example": 12
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "Champiñones"
                                },
                                "quantity": {
                                  "type": "integer",
                                  "example": 1
                                },
                                "comment": {
                                  "type": "string",
                                  "example": null
                                },
                                "unitPrice": {
                                  "type": "number",
                                  "example": 1
                                },
                                "unitAdditionalPrice": {
                                  "type": "number",
                                  "example": 0
                                },
                                "unitFinalPrice": {
                                  "type": "number",
                                  "example": 1
                                },
                                "totalPrice": {
                                  "type": "number",
                                  "example": 1
                                },
                                "items": {
                                  "type": "object",
                                  "properties": []
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "payments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "amounts": {
                "type": "object",
                "properties": {
                  "ordersAmount": {
                    "type": "number",
                    "example": 12
                  },
                  "paymentsAmount": {
                    "type": "number",
                    "example": 0
                  },
                  "pendingPaymentsAmount": {
                    "type": "number",
                    "example": 12
                  }
                }
              }
            }
          }
        }
      },
      "PaymentInputData": {
        "type": "object",
        "description": "Payment input data",
        "example": {
          "marketPaymentId": "YOUR-PAYMENT-REFERENCE",
          "amount": 13.85,
          "tipAmount": 0.85,
          "consumer": {
            "name": "John",
            "lastname": "Doe",
            "email": "john.doe@example.com",
            "phone": "+34600000000"
          }
        },
        "properties": {
          "marketPaymentId": {
            "type": "string",
            "example": "YOUR-PAYMENT-REFERENCE"
          },
          "amount": {
            "type": "number",
            "example": 13.85
          },
          "tipAmount": {
            "type": "number",
            "example": 0.85
          },
          "consumer": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "example": "John"
              },
              "lastname": {
                "type": "string",
                "example": "Doe"
              },
              "email": {
                "type": "string",
                "example": "john.doe@example.com"
              },
              "phone": {
                "type": "string",
                "example": "+34600000000"
              }
            }
          }
        }
      },
      "PaymentCreatedData": {
        "type": "object",
        "description": "Payment created data",
        "example": {
          "payment": {
            "id": 47315,
            "amount": 0.16,
            "debtAmount": 0.16,
            "tipAmount": 0,
            "paymentMethodName": "External platforms",
            "prepaid": true,
            "methodCode": "EXTERNAL_PAYMENT",
            "userName": "John Doe",
            "paidAt": "2022-03-17T07:16:38+0000"
          },
          "orderGroup": {
            "id": 368646,
            "orderTypeCode": "inside",
            "openCheckouts": [],
            "closedCheckouts": [
              {
                "id": 363524,
                "inProgress": false,
                "userName": "fadsfdsf f.",
                "totalAmount": 8.4,
                "lastUpdateAt": "2022-03-17T05:16:18+0000",
                "orderId": 363524,
                "marketOrderId": null,
                "marketOrderCode": "363524",
                "items": [
                  {
                    "name": "Burger La Mia",
                    "quantity": 1,
                    "comment": "",
                    "unitPrice": 7.9,
                    "unitAdditionalPrice": 0.5,
                    "unitFinalPrice": 8.4,
                    "totalPrice": 8.4,
                    "items": [
                      {
                        "name": "Pan classic",
                        "quantity": 1,
                        "comment": null,
                        "unitPrice": 0.5,
                        "unitAdditionalPrice": 0,
                        "unitFinalPrice": 0.5,
                        "totalPrice": 0.5,
                        "items": []
                      },
                      {
                        "name": "Pollo Crispy",
                        "quantity": 1,
                        "comment": null,
                        "unitPrice": 0,
                        "unitAdditionalPrice": 0,
                        "unitFinalPrice": 0,
                        "totalPrice": 0,
                        "items": []
                      }
                    ]
                  }
                ]
              },
              {
                "id": 363541,
                "inProgress": false,
                "userName": "fadsfdsf f.",
                "totalAmount": 66.5,
                "lastUpdateAt": "2022-03-17T05:27:17+0000",
                "orderId": 363541,
                "marketOrderId": null,
                "marketOrderCode": "363541",
                "items": [
                  {
                    "name": "Burger La Mia",
                    "quantity": 7,
                    "comment": "",
                    "unitPrice": 7.9,
                    "unitAdditionalPrice": 1.6,
                    "unitFinalPrice": 9.5,
                    "totalPrice": 66.5,
                    "items": [
                      {
                        "name": "Pan brioche",
                        "quantity": 1,
                        "comment": null,
                        "unitPrice": 0.7,
                        "unitAdditionalPrice": 0,
                        "unitFinalPrice": 0.7,
                        "totalPrice": 0.7,
                        "items": []
                      },
                      {
                        "name": "Pollo Crispy",
                        "quantity": 1,
                        "comment": null,
                        "unitPrice": 0,
                        "unitAdditionalPrice": 0,
                        "unitFinalPrice": 0,
                        "totalPrice": 0,
                        "items": []
                      },
                      {
                        "name": "Salsa Bacon",
                        "quantity": 1,
                        "comment": null,
                        "unitPrice": 0.9,
                        "unitAdditionalPrice": 0,
                        "unitFinalPrice": 0.9,
                        "totalPrice": 0.9,
                        "items": []
                      }
                    ]
                  }
                ]
              }
            ],
            "payments": [
              {
                "id": 47291,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:17:52+0000"
              },
              {
                "id": 47292,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:20:49+0000"
              },
              {
                "id": 47293,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:21:11+0000"
              },
              {
                "id": 47294,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:21:39+0000"
              },
              {
                "id": 47295,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:21:48+0000"
              },
              {
                "id": 47296,
                "amount": 0.3,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:22:21+0000"
              },
              {
                "id": 47297,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:24:23+0000"
              },
              {
                "id": 47298,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:26:07+0000"
              },
              {
                "id": 47299,
                "amount": 1.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:26:21+0000"
              },
              {
                "id": 47301,
                "amount": 2.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:27:58+0000"
              },
              {
                "id": 47302,
                "amount": 6.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:28:13+0000"
              },
              {
                "id": 47303,
                "amount": 6.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:32:59+0000"
              },
              {
                "id": 47304,
                "amount": 6.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:33:24+0000"
              },
              {
                "id": 47305,
                "amount": 6.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:44:27+0000"
              },
              {
                "id": 47306,
                "amount": 6.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "Demo User",
                "paidAt": "2022-03-17T05:47:54+0000"
              },
              {
                "id": 47307,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "Demo User",
                "paidAt": "2022-03-17T05:49:17+0000"
              },
              {
                "id": 47308,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:56:03+0000"
              },
              {
                "id": 47309,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:05:29+0000"
              },
              {
                "id": 47310,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:05:42+0000"
              },
              {
                "id": 47311,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:09:06+0000"
              },
              {
                "id": 47312,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:11:30+0000"
              },
              {
                "id": 47313,
                "amount": 0.15,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:16:02+0000"
              },
              {
                "id": 47314,
                "amount": 0.15,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:16:38+0000"
              },
              {
                "id": 47291,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:17:52+0000"
              },
              {
                "id": 47292,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:20:49+0000"
              },
              {
                "id": 47293,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:21:11+0000"
              },
              {
                "id": 47294,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:21:39+0000"
              },
              {
                "id": 47295,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:21:48+0000"
              },
              {
                "id": 47296,
                "amount": 0.3,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:22:21+0000"
              },
              {
                "id": 47297,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:24:23+0000"
              },
              {
                "id": 47298,
                "amount": 1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:26:07+0000"
              },
              {
                "id": 47299,
                "amount": 1.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:26:21+0000"
              },
              {
                "id": 47301,
                "amount": 2.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:27:58+0000"
              },
              {
                "id": 47302,
                "amount": 6.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:28:13+0000"
              },
              {
                "id": 47303,
                "amount": 6.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:32:59+0000"
              },
              {
                "id": 47304,
                "amount": 6.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:33:24+0000"
              },
              {
                "id": 47305,
                "amount": 6.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:44:27+0000"
              },
              {
                "id": 47306,
                "amount": 6.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "Demo User",
                "paidAt": "2022-03-17T05:47:54+0000"
              },
              {
                "id": 47307,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "Demo User",
                "paidAt": "2022-03-17T05:49:17+0000"
              },
              {
                "id": 47308,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T05:56:03+0000"
              },
              {
                "id": 47309,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:05:29+0000"
              },
              {
                "id": 47310,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:05:42+0000"
              },
              {
                "id": 47311,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:09:06+0000"
              },
              {
                "id": 47312,
                "amount": 0.1,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:11:30+0000"
              },
              {
                "id": 47313,
                "amount": 0.15,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:16:02+0000"
              },
              {
                "id": 47314,
                "amount": 0.15,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T06:16:38+0000"
              },
              {
                "id": 47315,
                "amount": 0.16,
                "paymentMethodName": "External platforms",
                "prepaid": true,
                "methodCode": "EXTERNAL_PAYMENT",
                "userName": "John Doe",
                "paidAt": "2022-03-17T07:16:38+0000"
              }
            ],
            "amounts": {
              "ordersAmount": 74.9,
              "paymentsAmount": 42.06,
              "pendingPaymentsAmount": 32.84
            }
          }
        },
        "properties": {
          "payment": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "example": 47315
              },
              "amount": {
                "type": "number",
                "example": 0.16
              },
              "debtAmount": {
                "type": "number",
                "example": 0.16
              },
              "tipAmount": {
                "type": "integer",
                "example": 0
              },
              "paymentMethodName": {
                "type": "string",
                "example": "External platforms"
              },
              "prepaid": {
                "type": "boolean",
                "example": true
              },
              "methodCode": {
                "type": "string",
                "example": "EXTERNAL_PAYMENT"
              },
              "userName": {
                "type": "string",
                "example": "John Doe"
              },
              "paidAt": {
                "type": "string",
                "example": "2022-03-17T07:16:38+0000"
              }
            }
          },
          "orderGroup": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "example": 368646
              },
              "orderTypeCode": {
                "type": "string",
                "example": "inside"
              },
              "openCheckouts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "closedCheckouts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 363524
                    },
                    "inProgress": {
                      "type": "boolean",
                      "example": false
                    },
                    "userName": {
                      "type": "string",
                      "example": "fadsfdsf f."
                    },
                    "totalAmount": {
                      "type": "number",
                      "example": 8.4
                    },
                    "lastUpdateAt": {
                      "type": "string",
                      "example": "2022-03-17T05:16:18+0000"
                    },
                    "orderId": {
                      "type": "integer",
                      "example": 363524
                    },
                    "marketOrderId": {
                      "type": "string",
                      "example": null
                    },
                    "marketOrderCode": {
                      "type": "string",
                      "example": "363524"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "Burger La Mia"
                          },
                          "quantity": {
                            "type": "integer",
                            "example": 1
                          },
                          "comment": {
                            "type": "string",
                            "example": ""
                          },
                          "unitPrice": {
                            "type": "number",
                            "example": 7.9
                          },
                          "unitAdditionalPrice": {
                            "type": "number",
                            "example": 0.5
                          },
                          "unitFinalPrice": {
                            "type": "number",
                            "example": 8.4
                          },
                          "totalPrice": {
                            "type": "number",
                            "example": 8.4
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "Pan classic"
                                },
                                "quantity": {
                                  "type": "integer",
                                  "example": 1
                                },
                                "comment": {
                                  "type": "string",
                                  "example": null
                                },
                                "unitPrice": {
                                  "type": "number",
                                  "example": 0.5
                                },
                                "unitAdditionalPrice": {
                                  "type": "number",
                                  "example": 0
                                },
                                "unitFinalPrice": {
                                  "type": "number",
                                  "example": 0.5
                                },
                                "totalPrice": {
                                  "type": "number",
                                  "example": 0.5
                                },
                                "items": {
                                  "type": "object",
                                  "properties": []
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "payments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 47291
                    },
                    "amount": {
                      "type": "number",
                      "example": 1
                    },
                    "paymentMethodName": {
                      "type": "string",
                      "example": "External platforms"
                    },
                    "prepaid": {
                      "type": "boolean",
                      "example": true
                    },
                    "methodCode": {
                      "type": "string",
                      "example": "EXTERNAL_PAYMENT"
                    },
                    "userName": {
                      "type": "string",
                      "example": "John Doe"
                    },
                    "paidAt": {
                      "type": "string",
                      "example": "2022-03-17T05:17:52+0000"
                    }
                  }
                }
              },
              "amounts": {
                "type": "object",
                "properties": {
                  "ordersAmount": {
                    "type": "number",
                    "example": 74.9
                  },
                  "paymentsAmount": {
                    "type": "number",
                    "example": 42.06
                  },
                  "pendingPaymentsAmount": {
                    "type": "number",
                    "example": 32.84
                  }
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ServerAccessToken": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-server-access-token",
        "description": "Server access token issued from the developer panel."
      },
      "UserAccessToken": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-user-access-token",
        "description": "User access token issued from the developer panel."
      }
    }
  },
  "security": [
    {
      "ServerAccessToken": [],
      "UserAccessToken": []
    }
  ],
  "x-tagGroups": [
    {
      "name": "Market Platform",
      "tags": [
        "SellingPoint",
        "Order",
        "Table service specific"
      ]
    }
  ],
  "webhooks": {
    "newOrderStatusPlatformWebhook": {
      "post": {
        "summary": "Order status changed WebHook",
        "description": "Always a new order status is created, the system will send the order object to this endpoint.<br>The event code is <b>order_status_changed</b>\n\nThis is an outgoing webhook sent by OpenQloud.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Order"
              },
              "example": {
                "id": 418774,
                "orderGroupId": null,
                "totalAmount": 68,
                "executionTimeLabel": "hoy 23/07 a las 09:06h",
                "preparationTimeLabel": "hoy 23/07 a las 08:56h",
                "comment": "This is the order comment!",
                "cancellationComment": null,
                "consumer": {
                  "id": 18899,
                  "name": "Client_73626",
                  "lastname": "Lastname_73626",
                  "email": null,
                  "phone": "+34600000000",
                  "image": null,
                  "notificationsChannel": "1f4cac2743f504bb2a10cdff9bc2c365",
                  "chatToken": null,
                  "marketClientId": null
                },
                "status": {
                  "code": "waiting_sp_validation",
                  "name": "Esperando validación del negocio",
                  "color": "#f7981d",
                  "isFinalStatus": false,
                  "globalStatusCode": "processing"
                },
                "type": "delivery",
                "sellingPoint": {
                  "id": 3961,
                  "name": "SuperPizza",
                  "address": {
                    "id": 16187,
                    "street": "Carrer de la Tecnologia, 17",
                    "details": "",
                    "city": "Viladecans",
                    "province": "Barcelona",
                    "postalCode": "08840",
                    "latitude": 41.31372,
                    "longitude": 2.031222,
                    "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
                    "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
                    "autoGeolocated": true
                  },
                  "phone": "+34900000000",
                  "email": "superpizza@example.com",
                  "logo": "https://example.com/e4cd836538_f79efe5783_82291551976531iconImagesqd2mt.png",
                  "mainImage": "https://example.com/d770d57632_4e01533575_85091551975570baked-cheese-cherry-tomato-1552635.png",
                  "mainImageLarge": "https://example.com/1551975570_bab77d7d5bbcec5e64cd3c1ac22c56ee.png",
                  "listImage": "https://example.com/d770d57632_4e01533575_85091551975570baked-cheese-cherry-tomato-1552635.png",
                  "listImageLarge": "https://example.com/1551975570_bab77d7d5bbcec5e64cd3c1ac22c56ee.png",
                  "type": "Pizzería",
                  "urlKey": "superpizza-viladecans",
                  "timezone": "Europe/Madrid"
                },
                "payments": [
                  {
                    "id": 54712,
                    "amount": 68,
                    "paymentMethodName": "Efectivo",
                    "prepaid": false
                  }
                ],
                "orderLines": [
                  {
                    "type": "PRODUCT",
                    "totalAmount": 36,
                    "unitPrice": 12,
                    "quantity": 3,
                    "label": "Pizza de la huerta",
                    "comment": null,
                    "childrenOrderLines": [
                      {
                        "type": "PRODUCT_OPTION",
                        "totalAmount": 1,
                        "unitPrice": 1,
                        "quantity": 1,
                        "label": "Bacon",
                        "comment": null,
                        "childrenOrderLines": [],
                        "baseAmount": 0.91,
                        "vatAmount": 0.09,
                        "vatValue": 10,
                        "productOption": {
                          "id": 234816,
                          "externalId": null
                        }
                      }
                    ],
                    "baseAmount": 32.73,
                    "vatAmount": 3.27,
                    "vatValue": 10,
                    "product": {
                      "id": 109838,
                      "externalId": null
                    }
                  },
                  {
                    "type": "PRODUCT",
                    "totalAmount": 27,
                    "unitPrice": 13.5,
                    "quantity": 2,
                    "label": "Pizza Barbacoa",
                    "comment": null,
                    "childrenOrderLines": [
                      {
                        "type": "PRODUCT_OPTION",
                        "totalAmount": 1,
                        "unitPrice": 1,
                        "quantity": 1,
                        "label": "Bacon",
                        "comment": null,
                        "childrenOrderLines": [],
                        "baseAmount": 0.91,
                        "vatAmount": 0.09,
                        "vatValue": 10,
                        "productOption": {
                          "id": 234816,
                          "externalId": null
                        }
                      }
                    ],
                    "baseAmount": 24.55,
                    "vatAmount": 2.45,
                    "vatValue": 10,
                    "product": {
                      "id": 109840,
                      "externalId": null
                    }
                  },
                  {
                    "type": "PRODUCT",
                    "totalAmount": 4,
                    "unitPrice": 2,
                    "quantity": 2,
                    "label": "Cerveza 33cl",
                    "comment": "Comment 1",
                    "childrenOrderLines": [],
                    "baseAmount": 3.64,
                    "vatAmount": 0.36,
                    "vatValue": 10,
                    "product": {
                      "id": 109842,
                      "externalId": null
                    }
                  },
                  {
                    "type": "DELIVERY",
                    "totalAmount": 1,
                    "unitPrice": 1,
                    "quantity": 1,
                    "label": "Delivery cost",
                    "comment": null,
                    "childrenOrderLines": [],
                    "baseAmount": 0.83,
                    "vatAmount": 0.17,
                    "vatValue": 21,
                    "distance": 0
                  }
                ],
                "isCancellable": true,
                "isAcceptable": true,
                "baseAmount": 61.75,
                "vatAmount": 6.25,
                "currency": {
                  "isoCode": "EUR",
                  "symbol": "€",
                  "displayPattern": "{{ amount }}€"
                },
                "posOrderId": null,
                "marketOrderId": "73626",
                "marketOrderCode": "RNYLUD",
                "executionTime": "2020-07-23T07:06:52+0000",
                "deliveryAmount": 1,
                "deliveryAddress": {
                  "id": 16188,
                  "street": "Carrer de la Tecnologia, 17",
                  "details": null,
                  "city": "Viladecans",
                  "province": "Barcelona",
                  "postalCode": "08840",
                  "latitude": 41.31372,
                  "longitude": 2.031222,
                  "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
                  "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
                  "autoGeolocated": true
                },
                "deliveries": [
                  {
                    "id": 283003,
                    "status": {
                      "code": "WAITING_SELLING_POINT_ACCEPTANCE",
                      "name": "Esperando aceptación punto de venta",
                      "color": "#f7981d",
                      "isFinalStatus": false
                    },
                    "driver": null,
                    "deliveryAccountName": null,
                    "deliveryAccountPhone": null,
                    "pickupAddress": {
                      "id": 16187,
                      "street": "Carrer de la Tecnologia, 17",
                      "details": "",
                      "city": "Viladecans",
                      "province": "Barcelona",
                      "postalCode": "08840",
                      "latitude": 41.31372,
                      "longitude": 2.031222,
                      "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
                      "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
                      "autoGeolocated": true
                    },
                    "pickupAgreedAt": "2020-07-23T06:56:52+0000",
                    "pickupConfirmedAt": "2020-07-23T06:56:52+0000",
                    "deliveryAddress": {
                      "id": 16188,
                      "street": "Carrer de la Tecnologia, 17",
                      "details": null,
                      "city": "Viladecans",
                      "province": "Barcelona",
                      "postalCode": "08840",
                      "latitude": 41.31372,
                      "longitude": 2.031222,
                      "googlePlaceId": "ChIJRQPl5lmcpBIRXpga-ZW5xvY",
                      "placeName": "Carrer de la Tecnologia, 17, 08840 Viladecans, Barcelona, España",
                      "autoGeolocated": true
                    },
                    "deliveryAgreedAt": "2020-07-23T07:06:52+0000",
                    "deliveryConfirmedAt": "2020-07-23T07:06:52+0000",
                    "deliveryInstructions": null,
                    "forSenderInstructions": null,
                    "linearDistance": 0,
                    "realDistance": null,
                    "route": null,
                    "estimatedDeliveryDuration": 0,
                    "destinationContactEmail": null,
                    "destinationContactName": "Client_73626 · Lastname_73626",
                    "destinationContactPhone": "600000000",
                    "trackingUrl": "https://example.com/tracking/example"
                  }
                ]
              }
            }
          }
        },
        "x-webhook": true,
        "tags": [
          "Order"
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request"
          }
        }
      }
    },
    "updateMenuCollectionPlatformWebhook": {
      "post": {
        "summary": "Menu collection updated WebHook",
        "description": "Always a menu is updated, the system will send all the selling point menus to this endpoint.<br>The event code is <b>menu_collection_updated</b>\n\nThis is an outgoing webhook sent by OpenQloud.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MenuCollection"
              },
              "example": [
                {
                  "id": 543,
                  "name": "Pizzas",
                  "type": "menu",
                  "position": 1,
                  "allowedOrderTypes": [
                    null
                  ],
                  "availableFrom": "2017-02-12T21:30:00+0000",
                  "availableTo": "2017-02-12T21:30:00+0000",
                  "hasSelection": true,
                  "selectionAvailable": false,
                  "selectionUpcoming": false,
                  "price": null,
                  "shortDescription": "Our best pizzas",
                  "menuSections": [
                    {
                      "id": "298",
                      "name": "Gluten free",
                      "shortDescription": "Gluten free pizzas",
                      "position": 1,
                      "minSelection": 0,
                      "maxSelection": 0,
                      "showProductImages": true,
                      "selectionLabel": "One required",
                      "products": [
                        {
                          "id": "843",
                          "name": "Neapolitan Pizza",
                          "image": "https://example.com/assets/images/placeholder_image.jpg",
                          "price": 11.5,
                          "public": true,
                          "featured": false,
                          "shortDescription": "Tomatoes, cheese, oil, and garlic",
                          "description": "It was our first pizza ...",
                          "parentName": null,
                          "isAvailable": true,
                          "tags": [
                            null
                          ],
                          "productOptionsCategories": [
                            {
                              "id": "102",
                              "name": "Our ingredients",
                              "shortDescription": "What do you put on your pizza?",
                              "position": 1,
                              "maxSelection": 10,
                              "minSelection": null,
                              "maxSameOptionSelection": 2,
                              "selectionLabel": "Max. 10",
                              "productOptions": [
                                {
                                  "id": "233",
                                  "name": "Cheddar",
                                  "shortDescription": "Add cheddar to your pizza",
                                  "position": 1,
                                  "isAvailable": true,
                                  "price": 0.75
                                }
                              ]
                            }
                          ],
                          "urlKey": "product-name",
                          "productVariants": [
                            {
                              "id": "843",
                              "name": "XXL size",
                              "image": "https://example.com/assets/images/placeholder_image.jpg",
                              "price": 14,
                              "public": true,
                              "featured": false,
                              "shortDescription": "Tomatoes, cheese, oil, and garlic",
                              "description": "It was our first pizza ...",
                              "parentName": null,
                              "isAvailable": true,
                              "tags": [
                                null
                              ],
                              "productOptionsCategories": [
                                {
                                  "id": "102",
                                  "name": "Our ingredients",
                                  "shortDescription": "What do you put on your pizza?",
                                  "position": 1,
                                  "maxSelection": 10,
                                  "minSelection": null,
                                  "maxSameOptionSelection": 2,
                                  "selectionLabel": "Max. 10",
                                  "productOptions": [
                                    {
                                      "id": "233",
                                      "name": "Cheddar",
                                      "shortDescription": "Add cheddar to your pizza",
                                      "position": 1,
                                      "isAvailable": true,
                                      "price": 0.75
                                    }
                                  ]
                                }
                              ],
                              "urlKey": "product-name"
                            }
                          ]
                        }
                      ]
                    }
                  ],
                  "urlKey": "menu-name",
                  "schedule": {
                    "id": 2113,
                    "ranges": [
                      {
                        "startTime": "06:00:00",
                        "endTime": "18:00:00",
                        "timezone": "Europe/Madrid",
                        "startDay": {
                          "id": 1,
                          "name": "Lunes"
                        },
                        "endDay": {
                          "id": 1,
                          "name": "Lunes"
                        }
                      }
                    ]
                  },
                  "scheduleLabel": "All days from 09:00h to 22:00h"
                }
              ]
            }
          }
        },
        "x-webhook": true,
        "tags": [
          "SellingPoint"
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request"
          }
        }
      }
    },
    "itemsAvailabilityUpdatedWebhook": {
      "post": {
        "summary": "Items availability updated WebHook",
        "description": "Always a product or product option availability is updated, the system will send all the affected items to this endpoint.<br>The event code is <b>items_availability_updated</b>\n\nThis is an outgoing webhook sent by OpenQloud.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "x-webhook": true,
        "tags": [
          "SellingPoint"
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request"
          }
        }
      }
    }
  }
}
