{
  "openapi": "3.1.0",
  "info": {
    "title": "ticket.bg API",
    "description": "Public API v2 for the ticket.bg apps and website. Success bodies are `{\"data\": …}`; errors use real HTTP statuses with `{\"error\": {\"code\", \"message\", \"fields\"?}}`.",
    "license": {
      "name": "Proprietary"
    },
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "/v2"
    }
  ],
  "paths": {
    "/admin/captures/{name}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "admin"
        ],
        "summary": "The newest recorded requests under a capture name (e.g. `fibank-return`).",
        "operationId": "list_captures",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "description": "Capture name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "At most this many, newest first (1-200, default 50).",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0
            }
          },
          {
            "name": "X-Admin-Token",
            "in": "header",
            "description": "`ADMIN_API_TOKEN`",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_Captured"
                }
              }
            }
          },
          "401": {
            "description": "admin_token_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "admin_token_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/admin/captures/{name}/{id}/replay": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "admin"
        ],
        "summary": "Sends a recorded request again: same method, body, `Content-Type` and `User-Agent`, and the original\ncaller's address in `X-Forwarded-For`.",
        "operationId": "replay_capture",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "description": "Capture name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "Entry id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Admin-Token",
            "in": "header",
            "description": "`ADMIN_API_TOKEN`",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplayBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_ReplayAnswer"
                }
              }
            }
          },
          "400": {
            "description": "invalid_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "admin_token_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "admin_token_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "capture_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured, replay_target_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/admin/orders/{orderId}/bank-transfer/extend": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "Admin's «Extend +1 business day»: the deadline moves to the next business day after the current\ndeadline's date, at the release hour, under the same caps (start − margin, sale end), at most\n`bank_transfer_max_extensions` times; the seat holds follow.",
        "operationId": "extend",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "description": "`orders.id`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "X-Admin-Token",
            "in": "header",
            "description": "`ADMIN_API_TOKEN`",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtendBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_TransferExtended"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "admin_token_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "admin_token_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "not_awaiting_transfer, extension_limit, bank_transfer_too_late (the caps leave no room)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/admin/orders/{orderId}/bank-transfer/received": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "The money for a bank-transfer order has arrived: the payment is registered the one way that sells\nseats (`settle::register_payment`: re-checked under lock, sold, the code counted, state 4, or 8 when\na seat went meanwhile). The payment row keeps the operator and the statement date; `paid_dt` is\nthe statement date at noon. A repeat on a received order changes nothing. With `revive`, a transfer\nthat arrived after the order was cancelled at its deadline: the seats are re-checked under the\nsale lock, another buyer's live hold counting as taken, so it is sold (state 4, failure_reason\ncleared) or recorded as a conflict (state 8) for a refund.",
        "operationId": "received",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "description": "`orders.id`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "X-Admin-Token",
            "in": "header",
            "description": "`ADMIN_API_TOKEN`",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferReceivedBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_TransferReceived"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (`paidDate`: invalid, in_future, before_order; `adminUserId`: invalid), invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "admin_token_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "admin_token_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "not_bank_transfer, not_awaiting_transfer, not_revivable (with `revive`), in_progress, wallet_issue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/admin/orders/{orderId}/fibank-status": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "Asks FiBank how one FiBank payment of the order stands (admin's \"Check Status\"; v1\n`checkFiBankPaymentStatus`). Read-only: nothing is recorded or settled.",
        "operationId": "fibank_status",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "description": "`orders.id`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "X-Admin-Token",
            "in": "header",
            "description": "`ADMIN_API_TOKEN`",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FiBankStatusBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_FiBankStatus"
                }
              }
            }
          },
          "400": {
            "description": "invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "admin_token_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "admin_token_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "card_payment_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured, card_payments_not_configured, payment_provider_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/admin/orders/{orderId}/refunds": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "Refunds a card payment of the order, in full or in part (admin's refund button). Several partial\nrefunds are allowed up to what the payment charged, less its successful and pending refunds; a\nrefund in full sets the order to state 10 with `refunded_at` (tickets stay valid, seats stay sold)\nand the payment's row to status 1. A FiBank payment is refunded through FiBank (command `k`), a\nRevolut one through Revolut (asynchronous: `pending` until Revolut's refund order completes, learnt\nfrom its webhook or v2's sweep), a Stripe one through Stripe.",
        "operationId": "refund_order",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "description": "`orders.id`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "X-Admin-Token",
            "in": "header",
            "description": "`ADMIN_API_TOKEN`",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "`status` is `success`, `pending` (the provider has not finished, or did not answer: check its portal) or `failed` (`message` is the provider's answer)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_RefundView"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed, refund_amount_invalid, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "admin_token_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "admin_token_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found, card_payment_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "refund_exceeds_remaining, refund_already_completed, refund_cannot_validate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured, card_payments_not_configured, payment_provider_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/agent/holds": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "agents"
        ],
        "summary": "Holds seats for a person to pay on ticket.bg. `201` with the hold and its handoff link\n(`status: requires_escalation`, `reason: handoff`); `200` with `reason: quota` and the date's page\nwhen agents already hold their share of the date (nothing is held). The agent never pays.",
        "operationId": "create_hold",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A retry with the same key gets the first answer (24 h, per agent)",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          {
            "name": "X-Agent-Client",
            "in": "header",
            "description": "The agent's client name, e.g. `Claude`",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          {
            "name": "Signature-Agent",
            "in": "header",
            "description": "Web Bot Auth; recorded, not verified yet",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HoldRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Nothing held: `reason: quota`, `continueUrl` = the date's page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Hold"
                }
              }
            }
          },
          "201": {
            "description": "Held",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Hold"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed, agent_hold_too_large (over 10 tickets), category_not_offered, ga_ladder_max_per_order, invalid_body, invalid_idempotency_key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "event_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "seats_unavailable (with `locked`), event_not_on_sale, idempotency_in_progress",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeatsUnavailable"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: too many live holds from this address or agent (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "agent_holds_not_configured: this host cannot hand holds to the website yet (HANDOFF_REDEEM_KEY unset)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/agent/holds/{holdId}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "agents"
        ],
        "summary": "The hold as it stands: `requires_escalation` while held (with a fresh handoff link until the\nperson has opened one), `completed` once paid, `expired`, or `cancelled`.",
        "operationId": "get_hold",
        "parameters": [
          {
            "name": "holdId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Hold"
                }
              }
            }
          },
          "404": {
            "description": "hold_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "agents"
        ],
        "summary": "Cancels a hold: its seats go back on sale at once. Idempotent.",
        "operationId": "cancel_hold",
        "parameters": [
          {
            "name": "holdId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`status: cancelled`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Hold"
                }
              }
            }
          },
          "404": {
            "description": "hold_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open (already paid)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/app-config": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "system"
        ],
        "summary": "The minimum app versions and the optional features switched on. Call it at launch; it is\nalways served, even to a build that is too old.",
        "operationId": "app_config",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_AppConfig"
                }
              }
            }
          }
        }
      }
    },
    "/artists": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "Artists with a show on sale, in Bulgarian alphabetical order, each with those shows.",
        "operationId": "list_artists",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "description": "City slug: only shows with a date in that city. `all` or absent = every city; an unknown slug\nis rejected with `400 unknown_city`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "`artist` or `performer` (`artists`/`performers` are accepted too). Absent = every type.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_ArtistList"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language, unknown_city, unsupported_type, invalid_query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/artists/{slug}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "An artist or performer, with the shows on sale they appear in.",
        "operationId": "artist_page",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "`artists.slug`",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Handoff-Key",
            "in": "header",
            "description": "The website server's key: also serves an inactive one (`private, no-store`)",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_PerformerPage"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid (a website key that is wrong)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "artist_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/auth/logout": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Ends this session (the token stops working everywhere, v1 included).",
        "operationId": "sign_out",
        "responses": {
          "204": {
            "description": "Signed out"
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/auth/otp": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Sends a one-time sign-in code by e-mail or SMS.",
        "operationId": "request_code",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_CodeSent"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "account_not_found (phone sign-in only)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "sms_unavailable (v2's hourly text ceiling reached; sign in by e-mail)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/auth/otp/verify": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Exchanges a code for a session.",
        "operationId": "verify_code",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_SignedIn"
                }
              }
            }
          },
          "400": {
            "description": "otp_invalid (fields.attemptsLeft), otp_expired, otp_attempts_exceeded, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/bands/{slug}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "A band, with the shows on sale it appears in.",
        "operationId": "band_page",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "`bands.slug`",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Handoff-Key",
            "in": "header",
            "description": "The website server's key: also serves an inactive one (`private, no-store`)",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_PerformerPage"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid (a website key that is wrong)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "band_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/brand-api/dates": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "brand-api"
        ],
        "summary": "The brand's dates, soonest first: from today on unless `from` says otherwise (at most 1000).",
        "operationId": "list_dates",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "First day, `YYYY-MM-DD` (Sofia), inclusive; default today.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Last day, `YYYY-MM-DD`, inclusive; default none.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "`Bearer tbk_…`, the brand's API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_BrandApiDate"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (`from`, `to`), invalid_query, unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "brand_key_invalid: no key or an unknown one",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed: the caller's address is not on the brand's whitelist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: 2,000 calls per brand per clock hour",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/brand-api/dates/{id}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "brand-api"
        ],
        "summary": "One date: places on the map and per channel, ticket.bg's sales by channel and price group,\ncancellations, unpaid reservations, free places and the waiting list.",
        "operationId": "date_report",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The date (`id` from the list)",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "`Bearer tbk_…`, the brand's API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_BrandDateReport"
                }
              }
            }
          },
          "400": {
            "description": "invalid_path, unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "brand_key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "date_not_found: not one of this brand's dates",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/brand-api/dates/{id}/timeline": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "brand-api"
        ],
        "summary": "Tickets sold and turnover per day or hour: online, cash desk and widgets (not invitations), by\nwhen the order was paid (a cash-desk reservation paid later counts on its payment day), else\nplaced. Today's tickets as they stand now: a later cancellation removes a ticket from its period.",
        "operationId": "date_timeline",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The date",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "interval",
            "in": "query",
            "description": "`day` (default) or `hour`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "in": "query",
            "description": "Only periods from this moment on: `YYYY-MM-DD`, `YYYY-MM-DDTHH:MM` (Sofia) or RFC 3339.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "`Bearer tbk_…`, the brand's API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_BrandTimeline"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (`interval`, `since`), invalid_path, invalid_query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "brand_key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "date_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/brand-api/vouchers": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "brand-api"
        ],
        "summary": "The gift vouchers of the brand's bundles: how many were bought, their value, what is left on\nthem, and the brand's dates they paid for. A voucher's «Жест от нас» order (made after its last\nday: a percent, not its balance) is not spending.",
        "operationId": "vouchers",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "`Bearer tbk_…`, the brand's API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One entry per bundle the brand is in; empty when none",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_BrandVouchers"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "brand_key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/brands/waitlist": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "catalog"
        ],
        "summary": "Leaves an e-mail to hear when one of these organisers has a date on sale. The same answer for a\nfirst sign-up and a repeat, which renews it (a new `createdAt`, not yet notified).",
        "operationId": "join_brands",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrandWaitlistRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "`private, no-store`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_WaitlistJoined"
                }
              }
            }
          },
          "400": {
            "description": "invalid_email, invalid_brands (none, more than 100, or one that does not exist), invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "origin_not_allowed (a browser page outside the website)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured: the table is not in this database yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/calendar": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "A city's (or every city's) dates in a day range, with their status, the count per category and\nthe next day with something on.",
        "operationId": "calendar",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "description": "City slug from `GET /menu`; `all` or absent = every city.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "First day, `YYYY-MM-DD`, inclusive (Sofia time).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Last day, `YYYY-MM-DD`, inclusive; at most 62 days after `from`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cat",
            "in": "query",
            "description": "Category slug from `GET /menu`; limits `dates` and `nextDate`, not `counts`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`public, max-age=30`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Calendar"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (from, to), unknown_city, invalid_query, unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "category_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/categories/{slug}/shows": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "Productions of one category (or `all-events`), grouped by city.",
        "operationId": "category_shows",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "Category slug from `GET /menu`, or `all-events`",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "description": "City slug (from `GET /menu`); `all` or absent: every city.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "brand",
            "in": "query",
            "description": "Organiser (`brands.id`).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_CategoryListing"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language, unknown_city",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "category_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/checker/min-version": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "system"
        ],
        "summary": "The oldest gate-checker builds (ArtSoftChecker on Android, TicketCheck on iOS) still allowed. The\ncheckers call it at launch, before sign-in, and block themselves when they are older; v2 refuses\nnothing. Separate from `/app-config`, whose minimum is the customer app's. Checkers send no\n`X-Platform`, so the customer app's `426 app_update_required` never reaches them.",
        "operationId": "checker_min_version",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_MinVersion"
                }
              }
            }
          }
        }
      }
    },
    "/client-errors": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "website"
        ],
        "summary": "Records an error the website's error page caught. v1 `system/registerError`.",
        "operationId": "client_error",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClientError"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Recorded (an empty report is ignored)"
          },
          "400": {
            "description": "invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/contact": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "website"
        ],
        "summary": "Leaves a message for the ticket.bg team (the admin \"messages from website\" list).",
        "operationId": "contact",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_MessageReceived"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (fields.email, fields.phone, fields.message), invalid_body, unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/discount-codes/{code}/events": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "website"
        ],
        "summary": "The dates on sale that a discount code is limited to (its date restriction), soonest first.\nFor the website's server (`X-Handoff-Key`).",
        "operationId": "code_events",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "description": "The discount code, as the buyer enters it",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Handoff-Key",
            "in": "header",
            "description": "`HANDOFF_REDEEM_KEY`, from the website's server environment",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`private, no-store`; the same empty list for an unknown, inactive or date-less code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_CodeEvents"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "key_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured (no key on this host)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/discount-codes/{code}/sent": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "website"
        ],
        "summary": "Marks a code as handed out to a visitor (`discount_codes.sent_at = NOW()`), once: only the call\nthat marks it gets `marked: true`. For the website's server (`X-Handoff-Key`).",
        "operationId": "mark_sent",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "description": "The discount code",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Handoff-Key",
            "in": "header",
            "description": "`HANDOFF_REDEEM_KEY`, from the website's server environment",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`private, no-store`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_DiscountCodeSent"
                }
              }
            }
          },
          "401": {
            "description": "key_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured (no key on this host, or no `discount_codes.sent_at` yet)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/events/search": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "Dates on sale matching a text, a day range and a city, soonest first. Prices include the service\nfee; `placesLeft` / `soldOut` / `isOnSale` are read now.",
        "operationId": "search_dates",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Text: a show, performer, venue or city name, Cyrillic or Latin. Absent = every date.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "First day, `YYYY-MM-DD`, inclusive (Sofia time).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Last day, `YYYY-MM-DD`, inclusive.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "description": "City slug from `GET /menu`; `all` or absent = every city.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "At most this many dates, 1–50 (default 20).",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_DateSearchResults"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (from, to), unknown_city, unsupported_language, invalid_query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/events/{id}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "One date for the booking screen: prices, state, venue, producer.",
        "operationId": "event",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "`offerings_events.id`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_EventDetail"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "event_not_found: unknown, unconfirmed or cancelled; `fields.showSlug` when the date exists",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "410": {
            "description": "event_ended, with `fields.showSlug` (the production's slug)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/events/{id}/availability": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "catalog"
        ],
        "summary": "Checks whether seats or GA places can be booked right now.",
        "operationId": "availability",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Date id (`offerings_events.id`)",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AvailabilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Availability"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "event_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/events/{id}/best-seats": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "catalog"
        ],
        "summary": "The best free seats of a date for `count` people (1–10), read now: blocks of adjacent numbered\nseats (best first, at most 5) and general-admission areas with room. A heuristic from section,\nrow and seat number (see `scoreBasis`). Prices include the service fee. Nothing is held: create\nthe order with the returned `seatId`s.",
        "operationId": "best_seats_route",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Date id (`offerings_events.id`)",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BestSeatsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_BestSeats"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (count, categories), invalid_body, unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "event_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "event_not_on_sale",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/events/{id}/merchandise": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "Merchandise that can be added to an order for this date.",
        "operationId": "event_merchandise",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Date id (`offerings_events.id`)",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_MerchItem"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "event_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/events/{id}/seatmap": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "Seats, GA areas and prices of one date, for the booking screen.",
        "operationId": "seatmap",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Date id (`offerings_events.id`)",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_SeatMap"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "event_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/events/{id}/waitlist": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "catalog"
        ],
        "summary": "Leaves a contact for a date with `waitlist: true`. The same answer for a first sign-up and a\nrepeat, which updates the phone and name.",
        "operationId": "join",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "`offerings_events.id`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WaitlistRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "`private, no-store`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_WaitlistJoined"
                }
              }
            }
          },
          "400": {
            "description": "invalid_email, invalid_phone, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "origin_not_allowed (a browser page outside the website)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "waitlist_closed: the date no longer qualifies",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/feeds/google-products.xml": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "feeds"
        ],
        "summary": "The Google Merchant Center product feed: v1's RSS 2.0 document (`g:` namespace), byte for byte.\nThe same productions and prices as `GET /feeds/products`.",
        "operationId": "google_products",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Feed language (`bg`, `en`), default `bg`. `Accept-Language` is not consulted: crawlers and\nserver-side fetches send their own. An unknown code is a `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "RSS 2.0 with the Google `g:` namespace, as v1 `generic/googleProducts`",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/feeds/llms": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "feeds"
        ],
        "summary": "The productions and pages the website's `llms.txt` links to.",
        "operationId": "llms",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Feed language (`bg`, `en`), default `bg`. `Accept-Language` is not consulted: crawlers and\nserver-side fetches send their own. An unknown code is a `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_LlmsData"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/feeds/productions": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "feeds"
        ],
        "summary": "Productions with a price range across all their dates (Meta production catalogue).",
        "operationId": "productions",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Feed language (`bg`, `en`), default `bg`. `Accept-Language` is not consulted: crawlers and\nserver-side fetches send their own. An unknown code is a `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_ProductionFeedItem"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/feeds/products": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "feeds"
        ],
        "summary": "Productions with a price, one item each (Meta and Google catalogues).",
        "operationId": "products",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Feed language (`bg`, `en`), default `bg`. `Accept-Language` is not consulted. An unknown code\nis a `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "Category slug (e.g. `theater-performances`); absent or `all-events`: every category.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_ProductFeedItem"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "category_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/feeds/sitemap": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "feeds"
        ],
        "summary": "Every page for the website's `sitemap.xml`, in order: performers with a production on sale,\nproductions on sale (by their next date), category pages whose category lists something, and the\nCMS pages marked for the sitemap.",
        "operationId": "sitemap",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Feed language (`bg`, `en`), default `bg`. `Accept-Language` is not consulted: crawlers and\nserver-side fetches send their own. An unknown code is a `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_SitemapEntry"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/handoff/redeem": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "website"
        ],
        "summary": "For the website's server only: exchanges a handoff token for the order and moves its seat holds\nto the person's browser, so the v1 checkout (`setUpNewOrder` with `forceOrderKey`) sees them as\nthe browser's own. Single use.",
        "operationId": "redeem_handoff",
        "parameters": [
          {
            "name": "X-Handoff-Key",
            "in": "header",
            "description": "`HANDOFF_REDEEM_KEY`, from the website's server environment",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RedeemRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Redeemed"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (clientCode), invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "key_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "410": {
            "description": "handoff_expired: used, expired, unknown, or the seats are no longer held",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "system"
        ],
        "summary": "Readiness: MySQL and Redis both answer. The deploy script gates the rollout on this.",
        "operationId": "ready",
        "responses": {
          "200": {
            "description": "Ready",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          },
          "503": {
            "description": "A dependency is down",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          }
        }
      }
    },
    "/health/live": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "system"
        ],
        "summary": "Liveness: the process is up. No dependency is touched.",
        "operationId": "live",
        "responses": {
          "200": {
            "description": "Process is alive"
          }
        }
      }
    },
    "/home": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "What is on sale: slider, ranked productions and one section per category. With a session, also\nthe productions recommended for the user (`recommended`), which then lead every section.",
        "operationId": "home",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "description": "City slug (from `GET /menu`). Online dates are listed in every city. `all` or absent: no filter.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public (`max-age=30`) when signed out; `private, no-store` with a session. A bad token is treated as signed out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Home"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language, unknown_city",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/languages": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "system"
        ],
        "summary": "Languages the API and the apps can be used in.",
        "operationId": "languages",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_Language"
                }
              }
            }
          }
        }
      }
    },
    "/me": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "account"
        ],
        "summary": "The signed-in user.",
        "operationId": "me",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Me"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "patch": {
        "tags": [
          "account"
        ],
        "summary": "Changes the user's name.",
        "operationId": "update_me",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Me"
                }
              }
            }
          },
          "400": {
            "description": "invalid_body, validation_failed (fields.names: blank)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/cards": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "account"
        ],
        "summary": "The buyer's saved cards for FiBank OneClick: usable and not expired, the default first, then the\nmost recently used. Empty when there are none.",
        "operationId": "list_cards",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_SavedCard"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/cards/{cardIndex}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "delete": {
        "tags": [
          "account"
        ],
        "summary": "Forgets a saved card: it is deleted at FiBank, then marked deleted, and the newest remaining card\nbecomes the default.",
        "operationId": "delete_card",
        "parameters": [
          {
            "name": "cardIndex",
            "in": "path",
            "description": "`cardIndex` from `GET /me/cards`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "card_not_found (not this user's, or already deleted)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "card_payments_not_configured, payment_provider_unavailable (v1 or FiBank did not delete it; nothing changed)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/deletion": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Sends the code that confirms deleting the signed-in account.",
        "operationId": "request_deletion",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_DeletionCodeSent"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "wallet_not_empty (money in the wallet or a withdrawal waiting), staff_account, contact_required (neither e-mail nor phone)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "sms_unavailable (a code by SMS only: v2's hourly text ceiling reached)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/deletion/confirm": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Deletes the signed-in account with the code from `POST /me/deletion`. Every session ends.",
        "operationId": "confirm_deletion",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeletionConfirm"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Deleted: the token no longer works"
          },
          "400": {
            "description": "otp_invalid (fields.attemptsLeft), otp_expired, otp_attempts_exceeded, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "wallet_not_empty, staff_account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/orders": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "account"
        ],
        "summary": "The signed-in customer's orders, newest first (at most 200, or `limit`).",
        "operationId": "list_orders",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "How many of the newest orders, 1 to 200 (default 200).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_Order"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language, validation_failed (`limit` outside 1-200)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/orders/{orderKey}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "account"
        ],
        "summary": "One of the signed-in customer's orders, by its key.",
        "operationId": "get_order",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "description": "`orders.order_key`",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Order"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/orders/{orderKey}/cancel": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Cancels a delivered order: its remaining value goes to the wallet and its seats back on sale.\nv1 `accounting/cancelOrder`.",
        "operationId": "cancel_order",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "description": "`orders.order_key`",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Cancellation"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found (also another account's order)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_cancellable, discounted_order, currency_not_refundable, order_has_vouchers, cancel_window_closed, cosale_unavailable, order_has_used_tickets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/phone": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Sends a confirmation code by SMS to a new phone number.",
        "operationId": "change_phone",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhoneChange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_PhoneCodeSent"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (fields.countryCode, fields.phone: not a real or not a mobile number), phone_country_not_supported (texts not sent there: use e-mail), invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "phone_in_use, phone_unchanged",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (5 per hour per account, 10 per hour per address)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "sms_unavailable (v2's hourly text ceiling reached; e-mail works)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/phone/verify": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Confirms the new phone number with the SMS code.",
        "operationId": "confirm_phone",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhoneConfirm"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Me"
                }
              }
            }
          },
          "400": {
            "description": "otp_invalid, otp_expired, otp_attempts_exceeded, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "phone_in_use",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/tickets/{ticketId}/cancel": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Cancels one ticket of a delivered order: its price goes to the wallet and its place back on sale;\nthe last live ticket closes the order. v1 `accounting/cancelTicket`.",
        "operationId": "cancel_ticket",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "description": "`ticket.id`, from `GET /me/orders`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Cancellation"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "ticket_not_found (also another account's ticket)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "ticket_already_cancelled, order_not_cancellable, discounted_order, currency_not_refundable, cancel_window_closed, cosale_unavailable, ticket_used",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/tickets/{ticketId}/gate-code": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "account"
        ],
        "summary": "The ticket's gate code, to render as a QR / Code128 in the app (the checkers scan it as on the PDF).",
        "operationId": "gate_code",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "description": "`ticket.id`, from `GET /me/orders`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_GateCode"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "ticket_not_found (also another account's ticket), gate_code_not_ready",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/tickets/{ticketId}/pdf": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "account"
        ],
        "summary": "The ticket's PDF, for tickets issued while admin still made them. Newer tickets have none\n(`404 ticket_pdf_not_ready`): open the order's or the ticket's `pageUrl`.",
        "operationId": "ticket_pdf",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "description": "`ticket.id`, from `GET /me/orders`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The PDF (`Content-Disposition: attachment`)",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "format": "int32",
                    "minimum": 0
                  }
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "ticket_not_found (also another account's ticket), ticket_pdf_not_ready (the ticket has no PDF: open its `pageUrl`)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "tickets_host_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/tickets/{ticketId}/share": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Shares one of the user's tickets with a phone number: the recipient gets a link to add it to\ntheir phone's wallet. Limited to 5 shares per order and 20 per sender in 24 hours.",
        "operationId": "share_ticket",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "description": "Ticket id from the user's orders",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_ShareCreated"
                }
              }
            }
          },
          "400": {
            "description": "invalid_body, invalid_phone",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "ticket_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "ticket_not_shareable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/tickets/{ticketId}/wallet-pass": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "account"
        ],
        "summary": "The ticket's Apple Wallet pass (`.pkpass`) or Google Wallet save link, generated now. Offer it\nwhen `GET /wallet-passes/tickets/{ticketId}` says the platform is available.",
        "operationId": "wallet_pass",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "description": "`ticket.id`, from `GET /me/orders`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "provider",
            "in": "query",
            "description": "`google` or `apple`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`provider=google`: the save link; `provider=apple`: the signed pass (`Content-Disposition: attachment`)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_GoogleWalletLink"
                }
              },
              "application/vnd.apple.pkpass": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "format": "int32",
                    "minimum": 0
                  }
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (`provider`), unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "ticket_not_found (also another account's ticket)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "wallet_pass_not_available, `fields.reason`: ticket_not_eligible, wallet_disabled, event_not_enabled",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "wallet_passes_not_configured",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/wallet": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "account"
        ],
        "summary": "The wallet balance and its ledger, newest first.",
        "operationId": "wallet",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Page size, 1–200 (default 50).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "before",
            "in": "query",
            "description": "Cursor: only transactions with an id below this one (the previous page's `nextBefore`).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Wallet"
                }
              }
            }
          },
          "400": {
            "description": "invalid_query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/wallet/transactions/{id}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "account"
        ],
        "summary": "One of the user's own transactions, with its withdrawal request if it is one.",
        "operationId": "transaction",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Transaction id from `GET /me/wallet`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_TransactionDetails"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "transaction_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/wallet/withdrawals": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Withdraws money from the wallet to a bank account. The amount leaves the wallet at once and a\n6-digit code is e-mailed to the user; confirm with `POST /me/wallet/withdrawals/{id}/confirm`\nwithin 30 minutes, or the request is cancelled and the amount returned. Limited to 5 per hour.",
        "operationId": "request_withdrawal",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WithdrawalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_WithdrawalCreated"
                }
              }
            }
          },
          "400": {
            "description": "invalid_body, invalid_iban (fields.iban; other invalid fields too), validation_failed, unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "wallet_insufficient, email_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/me/wallet/withdrawals/{id}/confirm": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "account"
        ],
        "summary": "Confirms a withdrawal with the e-mailed code; it then waits for an operator to pay it out.\nOnly the user's newest request, while new and less than 30 minutes old; 5 tries per request.",
        "operationId": "confirm_withdrawal",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "`withdrawal.id` from `POST /me/wallet/withdrawals`",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Withdrawal"
                }
              }
            }
          },
          "400": {
            "description": "invalid_body, validation_failed, otp_invalid (fields.attemptsLeft), otp_attempts_exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "account_deleted, account_blocked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "withdrawal_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "withdrawal_not_pending (already confirmed, paid or rejected), withdrawal_superseded (a newer request exists)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "410": {
            "description": "withdrawal_expired (older than 30 minutes; the amount returns to the wallet)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/menu": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "Categories and cities with something on sale, for the app's navigation.",
        "operationId": "menu",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Menu"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/newsletter/one-click/{token}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "website"
        ],
        "summary": "The same URL opened in a browser (a mail client without one-click). A GET must not unsubscribe\n(RFC 8058 §3.1, link scanners), so it sends the reader to the website's unsubscribe page, which\nthe `List-Unsubscribe` link opened before it moved here.",
        "operationId": "one_click_page",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "base64 of the e-mail address, percent-encoded",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "303": {
            "description": "To `{website}/user/unsubscribe/{token}`"
          },
          "400": {
            "description": "invalid_path: the token is not base64 of an e-mail address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "website"
        ],
        "summary": "The one-click unsubscribe of RFC 8058, the `List-Unsubscribe` URL of admin's marketing mails.\nGmail, Yahoo and Apple Mail POST `List-Unsubscribe=One-Click` here from their own servers; the body\nis not read. The same writes as `POST /newsletter/unsubscribe`, and the same empty `200` whether or\nnot the address is known.",
        "operationId": "one_click_unsubscribe",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "base64 of the e-mail address (as admin writes it in the mail), percent-encoded",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Unsubscribed, or the address is not known. Empty body."
          },
          "400": {
            "description": "invalid_path: the token is not base64 of an e-mail address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/newsletter/subscribe": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "website"
        ],
        "summary": "Puts an e-mail address on the newsletter list.",
        "operationId": "subscribe",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewsletterRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Subscribed, or already on the list",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Subscribed"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (fields.email), invalid_body, unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/newsletter/unsubscribe": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "website"
        ],
        "summary": "Takes an address off the newsletter list and stops marketing mail to the account that has it.\nThis is what the `/user/unsubscribe/{base64(email)}` link in sent mails calls. Like v1 it needs no\nsign-in and answers the same whether or not the address is known.",
        "operationId": "unsubscribe",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewsletterRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Unsubscribed"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (fields.email), invalid_body, unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/order-results/{ref}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "orders"
        ],
        "summary": "The order behind a result link (`resultRef`, from `GET /orders/{key}`, the settle answers or the\nbank-transfer confirmation), read-only and masked. Poll it at most every 2-3 s while `status` is\n`paid`: the tickets are being made (`ticketsReady` / `ticketsDelivered` follow).",
        "operationId": "order_result",
        "parameters": [
          {
            "name": "ref",
            "in": "path",
            "description": "The order's `resultRef`",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "The buyer's session: adds `orderKey` and the full e-mail",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_OrderResult"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found (unknown or forged ref)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured (no ORDER_PAGE_SECRET on this host)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "orders"
        ],
        "summary": "Creates an order and holds its seats.",
        "operationId": "create_order",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional: a retry with the same key (per clientUuid, 24 h) gets the first answer instead of a second order",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewOrder"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_CreatedOrder"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed, invalid_body, invalid_phone, category_not_offered, ga_ladder_max_per_order, voucher_not_available, merchandise_not_available, group_link_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_invalid (only when a Bearer token is sent)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "event_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "seats_unavailable (with `locked`), event_not_on_sale, cosale_unavailable, merchandise_sold_out, idempotency_in_progress",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeatsUnavailable"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "orders"
        ],
        "summary": "The order with its current price (stored as the amount to charge), or as charged once closed.\nWith `readOnly=true`, the order as stored, whatever its state.",
        "operationId": "get_order",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "readOnly",
            "in": "query",
            "description": "`true`: the order exactly as stored, in any state. Nothing is priced, locked or written (no\nsnapshot, no attribution, no `orders.client_id`), and attribution parameters are ignored; an\nopen order shows its last snapshot with no payment methods. For a result page read by a server\n(the checkout itself reads without it).",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "utm_source",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_medium",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_campaign",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_content",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "utm_term",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fbp",
            "in": "query",
            "description": "Meta's browser id (the `_fbp` cookie; a partner widget sends the partner page's).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fbc",
            "in": "query",
            "description": "Meta's click id (the `_fbc` cookie).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ga",
            "in": "query",
            "description": "Google Analytics' client id (the `_ga` cookie).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceUrl",
            "in": "query",
            "description": "The page the purchase started on (v1 `eventSourceURL`); the first one sent is kept.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageTitle",
            "in": "query",
            "description": "That page's title; the first one sent is kept.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mcid",
            "in": "query",
            "description": "The mail campaign the buyer came from (the link's `mcid`).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mcrid",
            "in": "query",
            "description": "The campaign recipient (the link's `mcrid`); below 1 is ignored.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "affiliateId",
            "in": "query",
            "description": "The partner widget's affiliate (`data-aid`), stored on the order; below 1 is ignored.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "trackingConsent",
            "in": "query",
            "description": "The website's cookie banner: `true` (accepted, or never answered), `false` (refused). Stored on\nthe order, the latest one sent wins; admin's server-side Meta / GA4 Purchase skips a refusal.\nNot sent, or any other value: the stored one is kept.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_OrderView"
                }
              }
            }
          },
          "400": {
            "description": "ga_ladder_max_per_order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_invalid (a bad token; no token is fine)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "seats_unavailable, event_not_on_sale, category_not_offered, share_price_missing (a split share with a seat admin left unpriced; every payment start answers it too)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeatsUnavailable"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "orders"
        ],
        "summary": "Gives up an order that is not paid yet: its seat holds are released and the seats go back on\nsale at once, and a card payment started on it is cancelled so a forgotten payment sheet cannot\ncharge it (the order itself stays, as v1 leaves an abandoned draft). Idempotent: a second call\nanswers 204 too.",
        "description": "By `status`: `draft`, `readyToPay`, `paymentStarted` (a split-payment share) and `paymentFailed` are\nreleased (`204`); `awaitingConfirmation`, `paid`, `ticketsReady`, `ticketsDelivered`,\n`paymentConflict`, `cancelled`, `rejected` and `cancelledByClient` answer `409 order_not_open`.",
        "operationId": "delete_order",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Released: draft, readyToPay, paymentStarted, paymentFailed"
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open: awaitingConfirmation, paid or later, conflict, cancelled, rejected",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/bank-transfer": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "orders"
        ],
        "summary": "Confirms paying the order by bank transfer: the order waits for the money until `expiresAt` with\nits seats held, and the instructions are e-mailed to the order's address. Offered only when\n`GET /orders/{orderKey}` lists `bank_transfer`; set the customer first. Admin records the money\n(the tickets then go out as usual); unpaid, the order is cancelled at `expiresAt`.",
        "operationId": "confirm",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_BankTransferInstructions"
                }
              }
            }
          },
          "202": {
            "description": "A guest's prize order: only after the link mailed to its e-mail is clicked (within 60 minutes)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_AwaitingConfirmation"
                }
              }
            }
          },
          "401": {
            "description": "session_invalid (a bad token; no token is fine)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open, seats_unavailable (with `locked`), event_not_on_sale, customer_required, nothing_to_charge, bank_transfer_not_allowed (a gift voucher, a co-sale date, the method off for this show), bank_transfer_split_order, bank_transfer_wallet, bank_transfer_too_many_seats, bank_transfer_disabled, bank_transfer_too_close, bank_transfer_capacity, bank_transfer_held_cap, bank_transfer_identity_limit, bank_transfer_too_late, discount_code_used_up (another order already used or is paying with the code), discount_code_no_longer_valid (the code stopped applying: expired, switched off, basket below its minimum; the order's discountError says why)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "bank_transfer_unavailable (no account details configured)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/bank-transfer/cancel": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "orders"
        ],
        "summary": "The buyer gives up the awaited bank transfer to pay another way («Платете по друг начин», owner\n2026-12-02): the same order, unchanged, becomes payable again with every method. Its seats stay\nheld until the transfer's deadline (no new 15-minute timer), its prices and code stay as confirmed\n(`booking::quote`), and a transfer confirmed again keeps the first deadline. The awaited payment is\nmarked `expired` as admin's cron does at the deadline, so a transfer that still arrives is not\n\"received\" automatically (`409 not_bank_transfer` / `not_awaiting_transfer` to the operator): it\nis returned by bank. Answers the order (`readyToPay`, `holdsExpireAt` = the old deadline).",
        "operationId": "cancel",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_OrderView"
                }
              }
            }
          },
          "401": {
            "description": "session_invalid (a bad token; no token is fine)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "not_awaiting_transfer (not a bank transfer waiting for its money, or its deadline has passed), seats_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/card-payment": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "orders"
        ],
        "summary": "Starts paying the order by card through Stripe, or hands out the payment already started for the\nsame amount. The order is switched to the card method if it had another. Confirm it with Stripe's\nSDK, then call `…/card-payment/sync`.",
        "operationId": "start_card_payment",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_CardPayment"
                }
              }
            }
          },
          "400": {
            "description": "payment_method_not_offered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_invalid (a bad token; no token is fine)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open, seats_unavailable, customer_required, nothing_to_charge, card_amount_too_small, card_payment_in_progress, discount_code_used_up, discount_code_no_longer_valid, gift_send_at_passed (the gift's scheduled send has passed: choose another time)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "card_payments_not_configured, payment_provider_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/card-payment/sync": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "orders"
        ],
        "summary": "Asks the provider how the order's card payment went and records it (the webhook does the same on\nits own). Returns the order: `paid` once settled, `paymentFailed` after a declined card (start\nagain), `paymentConflict` when the money cannot buy the order and the box office refunds it.",
        "operationId": "sync_card_payment",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_OrderView"
                }
              }
            }
          },
          "401": {
            "description": "session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found, card_payment_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "seats_unavailable (an open order whose seats are gone)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "card_payments_not_configured, payment_provider_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/cash-desk": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "orders"
        ],
        "summary": "Reserves the order for payment at the box office: it waits until `expiresAt` (24 hours) with its\nseats held, then is cancelled if unpaid. Offered only when `GET /orders/{orderKey}` lists\n`cash_desk_office` with `available: true`; the method is chosen here (no\n`PUT …/payment-method` needed). The order must be `draft` or `readyToPay`: after a failed card\npayment, choose the method again (`PUT /orders/{orderKey}/payment-method`) first. Show the answer\nas the receipt; nothing is e-mailed (as v1).",
        "operationId": "confirm",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_CashDeskHold"
                }
              }
            }
          },
          "202": {
            "description": "A guest's prize order: only after the link mailed to its e-mail is clicked (within 60 minutes)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_AwaitingConfirmation"
                }
              }
            }
          },
          "400": {
            "description": "ga_ladder_max_per_order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_invalid (a bad token; no token is fine)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open (already confirmed, paid, cancelled), order_cannot_be_confirmed (paymentStarted, paymentFailed: choose the method again first), cash_desk_not_offered (switched off, disabled for this show, gift vouchers, or a code or the wallet pays it all), cash_desk_not_available_for_event (a co-sale date), cash_desk_currently_closed (outside the desk's working hours), seats_unavailable (with `locked`), event_not_on_sale, category_not_offered, discount_code_used_up (another order already used or is paying with the code), discount_code_no_longer_valid (the code stopped applying: expired, switched off, basket below its minimum; the order's discountError says why)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/customer": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "put": {
        "tags": [
          "orders"
        ],
        "summary": "Sets the buyer's contact details (the tickets are sent to `email`).",
        "operationId": "set_customer",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_OrderView"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open, seats_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/discount": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "put": {
        "tags": [
          "orders"
        ],
        "summary": "Applies a discount or gift-voucher code (the quote then shows the discount, or `discountError`).",
        "operationId": "set_discount",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiscountRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_OrderView"
                }
              }
            }
          },
          "400": {
            "description": "invalid_code, code_not_for_this_show, code_not_for_this_date, code_already_used_for_this_show, code_too_many_items, code_too_few_items, code_audience_restricted, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open, prize_order_discount_locked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (20 failed codes per 2 hours)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "orders"
        ],
        "summary": "Removes the discount code (v1 writes `''`).",
        "operationId": "clear_discount",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_OrderView"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open, prize_order_discount_locked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/fibank-payment": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "orders"
        ],
        "summary": "Starts paying the order on FiBank's card page, or hands out the page already opened for it (for 10\nminutes). The order is switched to `fiBank` if it had another method. Open `paymentUrl` in the\nsystem browser sheet; FiBank's page also offers Apple Pay and Google Pay. FiBank returns the buyer\nto the website, which settles the order: poll `GET /orders/{orderKey}` until its `status` is no\nlonger `readyToPay` (`paid`/`ticketsReady`/`ticketsDelivered`, `awaitingConfirmation` while the\nbank confirms, `paymentFailed` to start again).",
        "operationId": "start_fibank_payment",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/FiBankStart"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_FiBankPayment"
                }
              }
            }
          },
          "202": {
            "description": "A guest's prize order with further seats: the card page opens only after the link mailed to its e-mail is clicked (within 60 minutes)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_AwaitingConfirmation"
                }
              }
            }
          },
          "400": {
            "description": "payment_method_not_offered, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_invalid (a bad token; no token is fine), session_required (OneClick)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found, card_not_found (OneClick: not this user's saved card)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open, seats_unavailable, customer_required, nothing_to_charge, payment_pending (the bank is still confirming a page of this order), order_changed (changed while FiBank registered the page: try again), card_not_available (the order is no longer the signed-in client's), promo_prize_limit, discount_code_used_up (another order already used or is paying with the code), discount_code_no_longer_valid (the code stopped applying: expired, switched off, basket below its minimum; the order's discountError says why), gift_send_at_passed (the gift's scheduled send has passed: choose another time)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "410": {
            "description": "confirm_expired",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "card_payments_not_configured, payment_provider_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/handoff": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "orders"
        ],
        "summary": "A single-use link that opens this order in the website's checkout (`/checkout/handoff?h=…`),\nvalid for at most 15 minutes and never longer than the seats are held. The link carries no order\nkey.",
        "operationId": "order_handoff",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Handoff"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open, hold_expired",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/invoicing": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "put": {
        "tags": [
          "orders"
        ],
        "summary": "Saves the invoice details of an order (optional for every payment method): an open one, one that\nwaits for its payment (bank transfer, cash desk: state 3) or a paid one (4, 6, 7; the website asks\nafter the payment, owner 2026-12-02). Admin's «Invoice requests» lists paid orders with details;\nonce an operator has processed the request (`processed_at`) the details are fixed (`409\ninvoice_processed`): the invoice went out with them. Bad input is `400 validation_failed` with\nv1's codes as `fields` values: `company_name_required`, `company_name_too_long`, `eik_invalid`,\n`vat_invalid`, `address_required`, `address_too_long`, `mol_too_long`. Returns the order, whose\n`invoice` now holds them (a closed order as stored).",
        "operationId": "set_invoicing",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoicingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_OrderView"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (v1's codes per field), invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open (cancelled, rejected, refunded…), invoice_processed, seats_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/merchandise": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "put": {
        "tags": [
          "orders"
        ],
        "summary": "Replaces the order's merchandise — v1 `setOrderMerchandise` (Sales.php:3000-3139): only while\nthe order is in state 0, 1 or 5 and has tickets; the same checks as `POST /orders` (item sold with\nthe date, value of that property and item, stock incl. state 7 — v1 checked none of the latter).",
        "operationId": "set_merchandise",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MerchandiseUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_OrderView"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed, merchandise_not_available, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open, order_changes_locked (a split-payment share), order_has_no_tickets, merchandise_sold_out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/pay": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "orders"
        ],
        "summary": "Pays the order without a card, re-pricing it in the same transaction so that what is charged is\nwhat the quote shows, then settles it (`registerPayment`):\n- `wallet`: the signed-in buyer's balance covers the whole total — v1 `walletPayNow`\n  (Sales.php:3584-3705).\n- `voucher`: the order's gift-voucher or promo code covers the whole total — v1 `voucherPayNow`\n  (3713-3794). No sign-in needed, as in v1; the order keeps the gateway it had (v1 never set one).\n- `cashier`: box-office staff take the money at the desk — v1 `cashierPayNow` (3307-3385). Only an\n  active seller is offered `cashier`; the order is switched to it (as the website did with\n  `setPaymentGateway` first), so the seller's sales total and `cash_desk_id` are recorded. As in\n  v1, a balance in the seller's own wallet is applied to the order and debited from it.",
        "operationId": "pay",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PayRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Paid; `status` is `paid`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_OrderView"
                }
              }
            }
          },
          "202": {
            "description": "A guest's prize order: not paid yet, it waits up to 60 minutes for the link mailed to its e-mail (asked again, the mail goes again, at most every 2 minutes)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_AwaitingConfirmation"
                }
              }
            }
          },
          "400": {
            "description": "payment_method_not_offered, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required, session_invalid (wallet, cashier)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "payment_conflict (with `conflicts`), seats_unavailable, wallet_insufficient, voucher_insufficient, order_not_open, discount_code_used_up (another order already used or is paying with the code), discount_code_no_longer_valid (the code stopped applying: expired, switched off, basket below its minimum; the order's discountError says why), customer_required, promo_prize_limit (a prize order whose address already got a prize), gift_send_at_passed (the gift's scheduled send has passed: choose another time)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentConflict"
                }
              }
            }
          },
          "410": {
            "description": "confirm_expired (a guest's prize order was not confirmed in time)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/payment-method": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "put": {
        "tags": [
          "orders"
        ],
        "summary": "Chooses how the order will be paid (v1 state 1). The payment itself is the next step.",
        "operationId": "set_payment_method",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentMethodRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_OrderView"
                }
              }
            }
          },
          "400": {
            "description": "payment_method_not_offered, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open, seats_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/prize-email-check": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "orders"
        ],
        "summary": "For a prize order's e-mail or phone field as it loses focus: whether it may take this prize. Only\nan open prize order answers; the customer save and every payment start refuse the same way.",
        "operationId": "prize_email_check",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailCheck"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_PromoDone"
                }
              }
            }
          },
          "400": {
            "description": "invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found (also: not an open prize order)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "promo_prize_limit (this e-mail or phone already got a prize)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/revolut-payment": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "orders"
        ],
        "summary": "Starts paying the order with Revolut Pay (Revolut's hosted page: Revolut Pay, cards, Apple Pay and\nGoogle Pay), or hands out the page made for it in the last 10 minutes while it is unpaid and for the\norder's total. The order is switched to `revolut` if it had another method; with\n`{\"method\": \"apple_google_pay\"}` to that method instead (its own row in admin; the website pays\nwith `token` in Revolut's in-page payment request, the result comes the same way). The website redirects to\n`checkoutUrl`; an app opens it in the system in-app browser (`SFSafariViewController` /\n`ASWebAuthenticationSession`, a Custom Tab), never a web view. Revolut redirects the buyer to the\nwebsite's `/payment/revolut?ref=…` only after a successful payment. For the result, send `ref` to\n`POST /payments/revolut/settle` (the website's return page; an app when its browser closes).",
        "operationId": "start_revolut_payment",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/RevolutStart"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_RevolutPayment"
                }
              }
            }
          },
          "202": {
            "description": "A guest's prize order with further seats: the page opens only after the link mailed to its e-mail is clicked (within 60 minutes)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_AwaitingConfirmation"
                }
              }
            }
          },
          "400": {
            "description": "payment_method_not_offered, invalid_body, validation_failed (`method`)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_invalid (a bad token; no token is fine)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "order_not_open, seats_unavailable, customer_required, nothing_to_charge, payment_pending (a Revolut payment of this order is being processed), order_changed (changed while Revolut made the page: try again), promo_prize_limit, discount_code_used_up, discount_code_no_longer_valid, gift_send_at_passed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "410": {
            "description": "confirm_expired",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "card_payments_not_configured, payment_provider_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{orderKey}/shares": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "orders"
        ],
        "summary": "The split-payment shares of an order and whether each is paid yet.",
        "operationId": "order_shares",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "description": "The buyer's (parent) order key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_PaymentShares"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/pages/{slug}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "A CMS page (about us, terms, privacy, FAQ, …) in one language.",
        "operationId": "page",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "Page slug, e.g. `about-us`, `faq`",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Handoff-Key",
            "in": "header",
            "description": "The website server's key: also serves an inactive page (`private, no-store`)",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Page"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid (a website key that is wrong)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "page_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/payments/fibank/return": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "FiBank's return (the buyer's browser posts `trans_id`): recorded, then answered by the website's\n`/payment/fibank` route, whose redirect is passed back.",
        "operationId": "fibank_return",
        "requestBody": {
          "description": "FiBank's form: `trans_id`",
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "307": {
            "description": "The website's redirect to `/payment/success` or `/payment/failure`"
          },
          "503": {
            "description": "website_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/payments/fibank/settle": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "Settles a FiBank payment when the buyer comes back from FiBank's page (the website's\n`/payment/fibank` route calls it; v1 `paymentFiBankRegisterPayment`). Public, like v1's: it asks\nFiBank (command `c`) only about a transaction v2 made that has no recorded outcome yet, so an\nunknown or already settled `transId` is answered from the database, and an order is settled at\nmost once. The answer is v1's `data`: `state` 0 paid, 10 the bank has not finished (nothing is\nsold yet; the order is settled when FiBank confirms), 2 declined, 1 not registered.",
        "operationId": "settle_fibank",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Handoff-Key",
            "in": "header",
            "description": "The website's server: adds `order.orderKey` on the first call per return, within 30 minutes of the payment page",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FiBankSettleBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_FiBankSettled"
                }
              }
            }
          },
          "400": {
            "description": "invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid (a wrong X-Handoff-Key; none is fine)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "card_payments_not_configured, payment_provider_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/payments/revolut/settle": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "The result of an order's Revolut payment, by the `ref` of `POST /orders/{orderKey}/revolut-payment`\n(the website's `/payment/revolut?ref=…` route; an app when its in-app browser returns or is closed).\nPublic and idempotent: Revolut is asked only while a page of the order has no recorded outcome, and\nthe order is settled at most once. The answer is FiBank settle's v1 `data`: `state` 0 paid, 10 not\nfinal yet (nothing sold; settled when Revolut confirms: ask again or show \"tickets by e-mail\"), 2\ndeclined, 1 unknown `ref`.",
        "operationId": "settle_revolut",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Handoff-Key",
            "in": "header",
            "description": "The website's server: adds `order.orderKey` on the first call per return, within 30 minutes of the payment page",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevolutSettleBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_FiBankSettled"
                }
              }
            }
          },
          "400": {
            "description": "invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid (a wrong X-Handoff-Key; none is fine)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "card_payments_not_configured",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/payments/revolut/webhook": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "Revolut's webhook (`ORDER_COMPLETED`, `ORDER_FAILED`, `ORDER_CANCELLED`, `ORDER_PAYMENT_DECLINED`,\n`ORDER_PAYMENT_FAILED`; register it with `ticket-rapi revolut-webhook <url>`, whose signing secret is\n`REVOLUT_WEBHOOK_SECRET`). Checked by `Revolut-Signature` over `v1.{Revolut-Request-Timestamp}.{body}`;\nthe body only names the order: v2 reads it from Revolut again before settling anything. Recorded\nunder the capture `revolut-webhook`.",
        "operationId": "revolut_webhook",
        "parameters": [
          {
            "name": "Revolut-Signature",
            "in": "header",
            "description": "v1=…[,v1=…]",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Revolut-Request-Timestamp",
            "in": "header",
            "description": "Unix milliseconds",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevolutWebhookEvent"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookAck"
                }
              }
            }
          },
          "400": {
            "description": "signature_invalid, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "card_payments_not_configured, not_configured (no webhook secret), payment_provider_unavailable (Revolut retries)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/payments/stripe/webhook": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "payments"
        ],
        "summary": "Stripe's webhook (`payment_intent.*`, `charge.refunded`, `charge.refund.updated`, `refund.*`).\nRegister `https://{host}/v2/payments/stripe/webhook` in the Stripe dashboard with those events;\nits signing secret is `STRIPE_WEBHOOK_SECRET`. Only the signature is trusted, never the body's\nfigures: the intent is read from Stripe again.",
        "operationId": "stripe_webhook",
        "parameters": [
          {
            "name": "Stripe-Signature",
            "in": "header",
            "description": "t=…,v1=…",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "A Stripe event",
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookAck"
                }
              }
            }
          },
          "400": {
            "description": "signature_invalid, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "card_payments_not_configured, payment_provider_unavailable (Stripe retries)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/promo": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "promo"
        ],
        "summary": "Everything the page shows for this visitor.",
        "operationId": "status",
        "parameters": [
          {
            "name": "ot",
            "in": "query",
            "description": "\"Ела с мен\": the friend's code.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ev",
            "in": "query",
            "description": "\"Ела с мен\": the date the link is for.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`private, no-store`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_PromoStatus"
                }
              }
            }
          },
          "401": {
            "description": "session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/promo/claim": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "promo"
        ],
        "summary": "What the seat page shows for the requester's own prize: the date and the deadlines.",
        "operationId": "claim_details",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`private, no-store`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_ClaimDetails"
                }
              }
            }
          },
          "401": {
            "description": "auth, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "expired",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "\"Вземи билетите\": reserves the requester's win for 30 minutes.",
        "operationId": "claim_prize",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`private, no-store`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Claimed"
                }
              }
            }
          },
          "401": {
            "description": "auth, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "expired, sold_out, already_claimed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/promo/claim/seats": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "The requester's seats become an order whose first two are free, finished with the normal checkout.",
        "operationId": "choose_seats",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChooseSeatsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "`private, no-store`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_ChosenSeats"
                }
              }
            }
          },
          "400": {
            "description": "promo_seats_invalid, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "auth, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "expired, already_claimed, promo_seats_taken, promo_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/promo/confirm": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "The double opt-in: the link from the mail, for the website's server. `guestToken` comes back only\nwhen the request carries no `X-Promo-Guest`: a session the browser already has is never replaced.\nA link for an address another player has moves the raffle chances to that player; the session\nthat entered the raffle then plays as that player, with the same `X-Promo-Guest`.",
        "description": "A guest's prize order link (`o…`, owner 2026-11-11) answers `prizeOrder`: the free order is paid\nhere and its tickets go out; with further seats, `payByCard` says to open the card page now. A\nsecond click answers the same; too late is `410 confirm_expired` (the order is cancelled).",
        "operationId": "confirm",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The link is used up",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_ConfirmAnswer"
                }
              }
            }
          },
          "400": {
            "description": "promo_token_invalid, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "key_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "a prize order that could not be paid: seats_unavailable, payment_conflict, promo_prize_limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "410": {
            "description": "confirm_expired",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/promo/consents": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "A guest entering with an e-mail, marketing, the reminder. Each consent is logged with its\ntext's version, the time, the screen and the address.",
        "operationId": "consents",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "`private, no-store`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_ConsentAnswer"
                }
              }
            }
          },
          "400": {
            "description": "invalid_email, disposable_email, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "auth, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "email_taken",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured: the text's page has no published version",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/promo/raffle": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "Today's lost spin becomes one chance in Monday's draw.",
        "operationId": "enter_raffle",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RaffleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "`private, no-store`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_RaffleEntry"
                }
              }
            }
          },
          "400": {
            "description": "invalid_email, disposable_email, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "auth, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "promo_no_entry, promo_closed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/promo/spin": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "Today's one spin. The server alone decides the result.",
        "operationId": "spin",
        "parameters": [
          {
            "name": "ot",
            "in": "query",
            "description": "\"Ела с мен\": the friend's code.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ev",
            "in": "query",
            "description": "\"Ела с мен\": the date the link is for.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`private, no-store`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_SpinResult"
                }
              }
            }
          },
          "401": {
            "description": "auth, session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "no_spins, promo_closed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: the daily cap, or a guest address that has won today",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/promo/stats": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "promo"
        ],
        "summary": "The live totals: spins and prizes won (cached about 5 seconds).",
        "operationId": "stats",
        "responses": {
          "200": {
            "description": "`public, max-age=4`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_PromoStats"
                }
              }
            }
          }
        }
      }
    },
    "/promo/unsubscribe": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "One click from any of the game's mails: no marketing and no reminder.",
        "operationId": "unsubscribe",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_PromoDone"
                }
              }
            }
          },
          "400": {
            "description": "promo_token_invalid, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/search": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "Performers and shows on sale whose name matches `q`.",
        "operationId": "search",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Text to look for. Absent or empty = everything on sale (the \"trending\" set).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum items per list, 1–100 (default 50).",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_SearchResults"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language, invalid_query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/short-links/{code}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "website"
        ],
        "summary": "Resolves a short link to its path on the website, and counts the click.",
        "operationId": "resolve",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "description": "The short code, `[a-z0-9-]{3,32}` (case-insensitive)",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "`0`: resolve without counting the click (crawlers, link previews). Anything else counts.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "`no-store`: every call counts a click, unless `count=0`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_ShortLink"
                }
              }
            }
          },
          "404": {
            "description": "short_link_not_found (unknown, inactive or malformed)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/short-texts/missing": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "website"
        ],
        "summary": "Looks up a short text (a CMS snippet by key) missing from the build-time dictionary, creating\nit for every language with the key as its content when nobody has yet. v1 `system/short_text`.",
        "operationId": "missing_short_text",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MissingShortText"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_DictionaryEntry"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed, invalid_body, unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "409": {
            "description": "key_is_translation: the key exists in the translations; nothing is created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: creating new keys (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/shows": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "The coming shows of the given organisers (or of all), nearest first.",
        "operationId": "shows",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "brand",
            "in": "query",
            "description": "Organisers (`brands.id`), comma-separated, e.g. a voucher's `allowedBrands`; absent or empty:\nevery organiser.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "12,40"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "How many shows, default 8; clamped to 1–100 with `brand`, 1–24 without.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_ListedShow"
                }
              }
            }
          },
          "400": {
            "description": "invalid_query (a brand that is not a positive number, more than 100 brands), unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/shows/{slug}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "One production by its slug, with its upcoming dates.",
        "operationId": "show",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "`offerings.slug`",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Show"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "show_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/shows/{slug}/also-bought": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "Three other shows this show's buyers also bought (each with a date on sale), or an empty list.",
        "operationId": "also_bought",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "The show's slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Exactly 3 cards, or none",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_ShowCard"
                }
              }
            }
          },
          "404": {
            "description": "show_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/system/release-seats": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "system"
        ],
        "summary": "Releases a client's seat holds (ticket_ws only).",
        "operationId": "release_seats",
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "description": "The shared secret, when it cannot be sent as the `X-Release-Seats-Key` header.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Release-Seats-Key",
            "in": "header",
            "description": "The shared secret",
            "required": false,
            "schema": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseSeatsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_SeatsReleased"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed, invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "key_required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "key_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "not_configured",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/tickets/check": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "catalog"
        ],
        "summary": "Checks one ticket by its printed number or gate code: status, date and place, nothing personal.\nNeeds a reCAPTCHA v2 token; 10 attempts per client per clock hour.",
        "operationId": "check_ticket",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckTicketRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_TicketCheck"
                }
              }
            }
          },
          "400": {
            "description": "invalid_code, invalid_body, captcha_invalid (missing, expired, reused or another host's), unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "origin_not_allowed (a browser page outside the website)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "ticket_not_found (one answer for every miss)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "ticket_check_paused (too many misses this hour; see Retry-After), captcha_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/tracking/facebook": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "website"
        ],
        "summary": "Queues a browser event for Meta's Conversions API. Sent on every tracked page view, so it reads\nnothing from the database. The admin side delivers the event and enriches it.",
        "operationId": "track_facebook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FacebookEvent"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_EventQueued"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed (fields.eventName, fields.pixelIDs), invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "503": {
            "description": "tracking_unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/tracking/mail-click": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "website"
        ],
        "summary": "Records the first click of a campaign mail's link. The website calls it when a page opens with\n`?mcrid=`; the answer is the same for any id.",
        "operationId": "mail_click",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailClick"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Accepted"
          },
          "400": {
            "description": "invalid_body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/tracking/mail-open/{token}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "website"
        ],
        "summary": "The open-tracking pixel of campaign mails. Always answers the 1×1 GIF, whatever the token; a\nvalidly signed token records the recipient's first open.",
        "operationId": "mail_open",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "The token admin signs, optionally ending in `.gif`",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "1×1 transparent GIF",
            "content": {
              "image/gif": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "format": "int32",
                    "minimum": 0
                  }
                }
              }
            }
          }
        }
      }
    },
    "/translations": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "system"
        ],
        "summary": "The UI dictionary for one language. Send `If-None-Match` with the last ETag to get `304` until\nthe revision changes.",
        "operationId": "translations",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "\"{revision}.{shape}-{lang}\""
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Translations"
                }
              }
            }
          },
          "304": {
            "description": "Unchanged since the ETag sent in If-None-Match"
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/translations/missing": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "website"
        ],
        "summary": "Looks up a website string missing from the build-time dictionary, creating the key for every\nlanguage when nobody has yet. v1 `system/translation`.",
        "operationId": "missing_translation",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MissingTranslation"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_DictionaryEntry"
                }
              }
            }
          },
          "400": {
            "description": "validation_failed, invalid_body, unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited: creating new keys (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/voucher-bundles": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "Gift-voucher bundles on sale.",
        "operationId": "bundles",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_VoucherBundleSummary"
                }
              }
            }
          }
        }
      }
    },
    "/voucher-bundles/{slug}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "One bundle: its vouchers, terms, organisers and the shows it can be used for.",
        "operationId": "bundle",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "Bundle slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_VoucherBundle"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "voucher_bundle_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/voucher-bundles/{slug}/recent": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "catalog"
        ],
        "summary": "The latest paid vouchers of a bundle, newest first (at most 100), for the voucher page's\n«Последни подаръци». Public data only, cached for a minute.",
        "operationId": "recent_gifts",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "Bundle slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_Vec_RecentGift"
                }
              }
            }
          },
          "404": {
            "description": "voucher_bundle_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/voucher-codes/check": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "post": {
        "tags": [
          "catalog"
        ],
        "summary": "Checks a gift-voucher code: its status, balance and where it was used. Limited to 5 attempts per\nhour per client; every attempt counts.",
        "operationId": "check_code",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckVoucherRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_VoucherCheck"
                }
              }
            }
          },
          "400": {
            "description": "invalid_voucher_code, invalid_body, unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "403": {
            "description": "origin_not_allowed (a browser page outside the website)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "voucher_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (see Retry-After)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        }
      }
    },
    "/wallet-passes/orders/{orderKey}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "orders"
        ],
        "summary": "Whether an order's tickets can be added to Apple / Google Wallet.",
        "operationId": "order_passes",
        "parameters": [
          {
            "name": "orderKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_WalletPassOrder"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_invalid (a bad token; no token is fine)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "order_not_found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "bearer": []
          }
        ]
      }
    },
    "/wallet-passes/tickets/{ticketId}": {
      "parameters": [
        {
          "name": "X-Platform",
          "in": "header",
          "description": "The calling client. Send it on every request; an unknown value is rejected with `400 unsupported_platform`.",
          "required": false,
          "schema": {
            "$ref": "#/components/schemas/Platform"
          }
        },
        {
          "name": "X-App-Version",
          "in": "header",
          "description": "The client's own version, e.g. `1.4.0`. Up to 32 characters of letters, digits and `. - + _`; anything else is rejected with `400 invalid_app_version`.",
          "required": false,
          "schema": {
            "type": "string",
            "maxLength": 32
          }
        }
      ],
      "get": {
        "tags": [
          "orders"
        ],
        "summary": "Whether one ticket can be added to Apple / Google Wallet. Send a session or the order key.",
        "operationId": "ticket_pass",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "orderKey",
            "in": "query",
            "description": "The ticket's order key, instead of a session.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language (`bg`, `en`). Defaults to the first active language in `Accept-Language`,\nthen `bg`. An unknown code is rejected with `400 unsupported_language`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data_WalletPassTicketDetail"
                }
              }
            }
          },
          "400": {
            "description": "unsupported_language",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "401": {
            "description": "session_required (neither a session nor `orderKey`), session_invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          },
          "404": {
            "description": "ticket_not_found (also when the credentials do not reach it)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ApiBrand": {
        "type": "object",
        "description": "The key's brand (the legal entity that sells the date).",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "`brands.id`.",
            "minimum": 0
          },
          "name": {
            "type": "string"
          }
        }
      },
      "AppConfig": {
        "type": "object",
        "required": [
          "minVersion",
          "features"
        ],
        "properties": {
          "features": {
            "$ref": "#/components/schemas/Features"
          },
          "minVersion": {
            "$ref": "#/components/schemas/MinVersion",
            "description": "Older builds get `426 app_update_required` on every call but this one."
          }
        }
      },
      "Area": {
        "type": "object",
        "required": [
          "seatId",
          "key",
          "priceGroupId",
          "available"
        ],
        "properties": {
          "available": {
            "type": "integer",
            "format": "int64"
          },
          "key": {
            "type": "string"
          },
          "priceGroupId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "section": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ArtistList": {
        "type": "object",
        "required": [
          "artists"
        ],
        "properties": {
          "artists": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArtistWithShows"
            }
          },
          "city": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/City",
                "description": "The `?city=` filter, when one was applied."
              }
            ]
          },
          "type": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ArtistType",
                "description": "The `?type=` filter, when one was applied."
              }
            ]
          }
        }
      },
      "ArtistType": {
        "type": "string",
        "description": "`artists.type`.",
        "enum": [
          "artist",
          "performer",
          "other"
        ]
      },
      "ArtistWithShows": {
        "type": "object",
        "required": [
          "id",
          "name",
          "images",
          "shows"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "name": {
            "type": "string"
          },
          "shows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShowCard"
            },
            "description": "Productions on sale with this artist, earliest date first."
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "Path segment for `GET /artists/{slug}`."
          },
          "type": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ArtistType"
              }
            ]
          }
        }
      },
      "Attribute": {
        "type": "object",
        "required": [
          "key",
          "type",
          "value"
        ],
        "properties": {
          "group": {
            "type": [
              "string",
              "null"
            ],
            "description": "The attribute definition's key (`attributes.attr_key`)."
          },
          "key": {
            "type": "string",
            "description": "`products_attributes.attribute_key`, e.g. `genre`, `length`, `age_above`."
          },
          "type": {
            "type": "integer",
            "format": "int64",
            "description": "`attributes.type` bitmask (16 select, 64 number range, 512 free text, …).",
            "minimum": 0
          },
          "value": {
            "type": "string"
          }
        }
      },
      "Availability": {
        "type": "object",
        "required": [
          "available",
          "locked"
        ],
        "properties": {
          "available": {
            "type": "boolean",
            "description": "Every item can be booked now."
          },
          "locked": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LockedLine"
            }
          }
        }
      },
      "AvailabilityItem": {
        "type": "object",
        "required": [
          "seatId"
        ],
        "properties": {
          "count": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Places wanted; a numbered seat has one.",
            "minimum": 0
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          }
        }
      },
      "AvailabilityRequest": {
        "type": "object",
        "required": [
          "clientUuid",
          "items"
        ],
        "properties": {
          "clientUuid": {
            "type": "string",
            "description": "The client UUID the seats would be held for (its own holds do not block it)."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvailabilityItem"
            }
          }
        }
      },
      "AwaitingConfirmation": {
        "type": "object",
        "required": [
          "awaitingConfirmation",
          "confirmUntil",
          "emailMasked"
        ],
        "properties": {
          "awaitingConfirmation": {
            "type": "boolean",
            "description": "Always true: the order waits for the click in the mail."
          },
          "confirmUntil": {
            "type": "string",
            "format": "date-time"
          },
          "emailMasked": {
            "type": "string",
            "description": "Where the link went, masked: `iva…@abv.bg`."
          }
        }
      },
      "Band": {
        "type": "object",
        "required": [
          "id",
          "name",
          "images"
        ],
        "properties": {
          "facebook": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "instagram": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "tiktok": {
            "type": [
              "string",
              "null"
            ]
          },
          "webPage": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "BankTransferInstructions": {
        "type": "object",
        "description": "What the buyer needs to pay. The same is e-mailed to the order's address.",
        "required": [
          "orderNumber",
          "reference",
          "amount",
          "beneficiary",
          "iban",
          "bank",
          "swift",
          "expiresAt"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "bank": {
            "type": "string"
          },
          "beneficiary": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "Pay by then: an unpaid order is cancelled afterwards and its seats return to sale."
          },
          "iban": {
            "type": "string"
          },
          "orderNumber": {
            "type": "integer",
            "format": "int64",
            "description": "The order number.",
            "minimum": 0
          },
          "postPurchaseInfo": {
            "type": [
              "string",
              "null"
            ],
            "description": "The gateway's note for the buyer (translated), if admin set one."
          },
          "reference": {
            "type": "string",
            "description": "The payment reference to write on the transfer: the order number, never the order key."
          },
          "resultRef": {
            "type": [
              "string",
              "null"
            ],
            "description": "The order's lasting result-page code (`GET /order-results/{ref}`); null on a host without\n`ORDER_PAGE_SECRET`."
          },
          "swift": {
            "type": "string"
          }
        }
      },
      "BestSeats": {
        "type": "object",
        "required": [
          "eventId",
          "count",
          "blocks",
          "gaAreas"
        ],
        "properties": {
          "blocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SeatBlock"
            },
            "description": "Numbered seats, best first, at most 5."
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "gaAreas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GaOption"
            },
            "description": "General-admission areas with room for `count`, best first."
          }
        }
      },
      "BestSeatsRequest": {
        "type": "object",
        "required": [
          "count"
        ],
        "properties": {
          "accessible": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Include wheelchair and other accessible places (Cavea halls; skipped by default, as on the\nwebsite)."
          },
          "categories": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "One category per ticket (`a` adult, `c` child, `s` student, `d` disabled, `r` retiree), as many\nas `count`. Default: all adult."
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "description": "How many seats, 1–10.",
            "minimum": 0
          },
          "maxPricePerSeat": {
            "type": [
              "string",
              "null"
            ],
            "description": "The most one seat may cost, service fee included, e.g. `\"40.00\"`.",
            "example": "40.00"
          }
        }
      },
      "BlockSeat": {
        "type": "object",
        "required": [
          "seatId"
        ],
        "properties": {
          "row": {
            "type": [
              "string",
              "null"
            ]
          },
          "seat": {
            "type": [
              "string",
              "null"
            ]
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "description": "What an order line names (`POST /orders` → `tickets[].seatId`).",
            "minimum": 0
          }
        }
      },
      "BookingPage": {
        "type": "object",
        "description": "The `book-seats` page texts with this date's placeholders filled in.",
        "required": [
          "title",
          "h1Title",
          "metaDescription",
          "content"
        ],
        "properties": {
          "content": {
            "type": "string",
            "description": "HTML."
          },
          "h1Title": {
            "type": "string"
          },
          "headImageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "metaDescription": {
            "type": "string"
          },
          "ogImageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          }
        }
      },
      "BrandApiDate": {
        "type": "object",
        "description": "One date of the brand.",
        "required": [
          "id",
          "showId",
          "title",
          "venue",
          "brand",
          "status"
        ],
        "properties": {
          "brand": {
            "$ref": "#/components/schemas/ApiBrand"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "The date (`offerings_events.id`): `GET /brand-api/dates/{id}`.",
            "minimum": 0
          },
          "showId": {
            "type": "integer",
            "format": "int32",
            "description": "The show (`offerings.id`); its dates share it.",
            "minimum": 0
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/BrandDateStatus"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The show's page on ticket.bg."
          },
          "venue": {
            "type": "string",
            "description": "The hall."
          }
        }
      },
      "BrandBucket": {
        "type": "object",
        "description": "One period's sales.",
        "required": [
          "start",
          "tickets",
          "turnover"
        ],
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time",
            "description": "The period's first moment (Sofia)."
          },
          "tickets": {
            "type": "integer",
            "format": "int64"
          },
          "turnover": {
            "$ref": "#/components/schemas/Money"
          }
        }
      },
      "BrandCancelled": {
        "type": "object",
        "description": "Tickets cancelled after the sale (refunded to the card or the buyer's ticket.bg wallet, or\nexchanged) and what they had been sold for.",
        "required": [
          "tickets",
          "amount"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "tickets": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "BrandChannelPlaces": {
        "type": "object",
        "description": "Places allocated to each sales channel. Eventim and Grabo sell from their allocation on their own\nsystems; ticket.bg does not know their sales.",
        "required": [
          "website",
          "eventim",
          "grabo",
          "cashDesk",
          "invitations",
          "other"
        ],
        "properties": {
          "cashDesk": {
            "type": "integer",
            "format": "int64",
            "description": "ticket.bg's cash desk allocation."
          },
          "eventim": {
            "type": "integer",
            "format": "int64"
          },
          "grabo": {
            "type": "integer",
            "format": "int64"
          },
          "invitations": {
            "type": "integer",
            "format": "int64"
          },
          "other": {
            "type": "integer",
            "format": "int64",
            "description": "Any other partner."
          },
          "website": {
            "type": "integer",
            "format": "int64",
            "description": "ticket.bg's website and apps."
          }
        }
      },
      "BrandDateReport": {
        "type": "object",
        "description": "One date's places and ticket.bg sales.",
        "required": [
          "date",
          "capacity",
          "places",
          "sales",
          "cancelled",
          "unpaidPlaces",
          "freeOnWebsite",
          "priceGroups",
          "waitlist"
        ],
        "properties": {
          "cancelled": {
            "$ref": "#/components/schemas/BrandCancelled"
          },
          "capacity": {
            "type": "integer",
            "format": "int64",
            "description": "Places on the hall's map for this date: numbered seats plus general-admission places."
          },
          "date": {
            "$ref": "#/components/schemas/BrandApiDate"
          },
          "freeOnWebsite": {
            "type": "integer",
            "format": "int64",
            "description": "Places ticket.bg can still sell on the website now."
          },
          "places": {
            "$ref": "#/components/schemas/BrandChannelPlaces",
            "description": "Places allocated to each channel."
          },
          "priceGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrandPriceGroup"
            }
          },
          "sales": {
            "$ref": "#/components/schemas/BrandSales"
          },
          "unpaidPlaces": {
            "type": "integer",
            "format": "int64",
            "description": "Places reserved and not paid yet (bank transfer, pay at the cash desk)."
          },
          "waitlist": {
            "$ref": "#/components/schemas/BrandWaitlist"
          }
        }
      },
      "BrandDateStatus": {
        "type": "string",
        "enum": [
          "onSale",
          "stopped",
          "cancelled",
          "past"
        ]
      },
      "BrandInterval": {
        "type": "string",
        "enum": [
          "day",
          "hour"
        ]
      },
      "BrandPriceGroup": {
        "type": "object",
        "description": "One price group of the date.",
        "required": [
          "id",
          "name",
          "places",
          "sales",
          "freeOnWebsite"
        ],
        "properties": {
          "freeOnWebsite": {
            "type": "integer",
            "format": "int64",
            "description": "Places ticket.bg can still sell on the website now."
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "`offerings_price_groups.id`.",
            "minimum": 0
          },
          "name": {
            "type": "string"
          },
          "places": {
            "$ref": "#/components/schemas/BrandChannelPlaces"
          },
          "price": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money",
                "description": "The full-price ticket now (the current phase or quantity step), VAT included."
              }
            ]
          },
          "sales": {
            "$ref": "#/components/schemas/BrandSales"
          }
        }
      },
      "BrandRef": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "BrandSales": {
        "type": "object",
        "description": "ticket.bg's sales of one date (or one price group) by channel.",
        "required": [
          "online",
          "cashDesk",
          "widgets",
          "invitations",
          "total"
        ],
        "properties": {
          "cashDesk": {
            "$ref": "#/components/schemas/BrandSalesLine",
            "description": "Sold or paid at a ticket.bg cash desk."
          },
          "invitations": {
            "$ref": "#/components/schemas/BrandSalesLine",
            "description": "Free invitations: tickets only, turnover and fee 0."
          },
          "online": {
            "$ref": "#/components/schemas/BrandSalesLine",
            "description": "The website and the apps."
          },
          "total": {
            "$ref": "#/components/schemas/BrandSalesLine",
            "description": "`online` + `cashDesk` + `widgets`; invitations are not in it."
          },
          "widgets": {
            "$ref": "#/components/schemas/BrandSalesLine",
            "description": "Sold through a partner's ticket.bg widget."
          }
        }
      },
      "BrandSalesLine": {
        "type": "object",
        "description": "Tickets of live (not cancelled) paid orders and what they brought in, VAT included.",
        "required": [
          "tickets",
          "turnover",
          "serviceFee"
        ],
        "properties": {
          "serviceFee": {
            "$ref": "#/components/schemas/Money",
            "description": "ticket.bg's service fee on those tickets, separate from `turnover`."
          },
          "tickets": {
            "type": "integer",
            "format": "int64"
          },
          "turnover": {
            "$ref": "#/components/schemas/Money",
            "description": "Ticket prices less promo-code discounts (gift vouchers and wallet money count as paid)."
          }
        }
      },
      "BrandTimeline": {
        "type": "object",
        "required": [
          "interval",
          "buckets"
        ],
        "properties": {
          "buckets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrandBucket"
            },
            "description": "Periods with sales, oldest first."
          },
          "interval": {
            "$ref": "#/components/schemas/BrandInterval"
          }
        }
      },
      "BrandVoucherAmount": {
        "type": "object",
        "required": [
          "amount"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money"
          }
        }
      },
      "BrandVoucherBundle": {
        "type": "object",
        "description": "A gift-voucher bundle the brand is in; its vouchers pay for the dates of all its brands.",
        "required": [
          "id",
          "name",
          "brands"
        ],
        "properties": {
          "brands": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiBrand"
            }
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "`voucher_bundles.id`.",
            "minimum": 0
          },
          "name": {
            "type": "string"
          }
        }
      },
      "BrandVoucherDate": {
        "type": "object",
        "description": "Voucher money spent on one of the brand's dates.",
        "required": [
          "dateId",
          "title",
          "tickets",
          "amount"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money",
            "description": "The vouchers' part of those tickets' prices."
          },
          "dateId": {
            "type": "integer",
            "format": "int64",
            "description": "The date: `GET /brand-api/dates/{id}`.",
            "minimum": 0
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "tickets": {
            "type": "integer",
            "format": "int64",
            "description": "Live tickets of paid orders that a voucher of the bundle paid for, in full or in part."
          },
          "title": {
            "type": "string"
          }
        }
      },
      "BrandVouchers": {
        "type": "object",
        "description": "One bundle: the totals are the bundle's (the same for each of its brands), the dates the caller's.",
        "required": [
          "bundle",
          "sold",
          "spent",
          "unspent",
          "spentOnDates"
        ],
        "properties": {
          "bundle": {
            "$ref": "#/components/schemas/BrandVoucherBundle"
          },
          "sold": {
            "$ref": "#/components/schemas/BrandVouchersSold"
          },
          "spent": {
            "$ref": "#/components/schemas/BrandVoucherAmount",
            "description": "Value used so far: `sold` less `unspent`, on the dates of every brand of the bundle."
          },
          "spentOnDates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrandVoucherDate"
            },
            "description": "The caller's dates the vouchers were spent on, soonest first."
          },
          "unspent": {
            "$ref": "#/components/schemas/BrandVoucherAmount",
            "description": "Value still on the vouchers, expired ones included."
          }
        }
      },
      "BrandVouchersSold": {
        "type": "object",
        "required": [
          "vouchers",
          "amount"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money",
            "description": "Their value."
          },
          "vouchers": {
            "type": "integer",
            "format": "int64",
            "description": "Vouchers bought on ticket.bg (paid orders)."
          }
        }
      },
      "BrandWaitlist": {
        "type": "object",
        "description": "The waiting list, as in admin's mail to its staff: a count only, never who.",
        "required": [
          "waiting",
          "otherChannelsPlaces",
          "websiteLeft"
        ],
        "properties": {
          "otherChannelsPlaces": {
            "type": "integer",
            "format": "int64",
            "description": "Places allocated to Eventim and Grabo: they could be moved to ticket.bg (their sales are unknown)."
          },
          "soldOutSince": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the website sold out with people waiting; `null` when it is not sold out."
          },
          "waiting": {
            "type": "integer",
            "format": "int64",
            "description": "People waiting for a place who have not bought one since."
          },
          "websiteLeft": {
            "type": "integer",
            "format": "int64",
            "description": "The website's allocation not yet sold."
          }
        }
      },
      "BrandWaitlistRequest": {
        "type": "object",
        "required": [
          "email",
          "brandIds"
        ],
        "properties": {
          "brandIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            },
            "description": "The organisers (`brands.id`), e.g. a gift voucher's `allowedBrands`.",
            "example": [
              12,
              40
            ]
          },
          "email": {
            "type": "string"
          },
          "lang": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language of the notice."
          },
          "marketingConsent": {
            "type": "boolean",
            "description": "Wants other offers from ticket.bg: the address becomes a normal client."
          }
        }
      },
      "BundleImages": {
        "type": "object",
        "description": "Bundle artwork on the CDN (`voucher_bundles/`); each is `null` when not uploaded.",
        "properties": {
          "checkout": {
            "type": [
              "string",
              "null"
            ]
          },
          "head": {
            "type": [
              "string",
              "null"
            ]
          },
          "headMobile": {
            "type": [
              "string",
              "null"
            ]
          },
          "mail": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "BundleRef": {
        "type": "object",
        "required": [
          "id",
          "name",
          "slug"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        }
      },
      "Calendar": {
        "type": "object",
        "required": [
          "dates",
          "counts"
        ],
        "properties": {
          "counts": {
            "type": "object",
            "description": "Per category slug: dates in the range still to come and not cancelled. Ignores `cat`.",
            "additionalProperties": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "dates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CalendarDate"
            },
            "description": "The range's dates, earliest first; those that have passed included."
          },
          "nextDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The first day after `to` with a date to come, in the same city (or every city) and `cat`."
          }
        }
      },
      "CalendarDate": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DateHit"
          },
          {
            "type": "object",
            "required": [
              "images",
              "status"
            ],
            "properties": {
              "images": {
                "$ref": "#/components/schemas/ImageSet"
              },
              "status": {
                "$ref": "#/components/schemas/CalendarStatus"
              }
            }
          }
        ]
      },
      "CalendarStatus": {
        "type": "string",
        "enum": [
          "on_sale",
          "sold_out",
          "cancelled",
          "postponed"
        ]
      },
      "Cancellation": {
        "type": "object",
        "description": "The answer to a cancellation.",
        "required": [
          "refunded",
          "walletBalance"
        ],
        "properties": {
          "order": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Order",
                "description": "The order afterwards, as `GET /me/orders/{orderKey}` shows it (`null` if it is no longer\nlisted)."
              }
            ]
          },
          "refunded": {
            "$ref": "#/components/schemas/Money",
            "description": "Credited to the wallet, in the order's currency."
          },
          "walletBalance": {
            "$ref": "#/components/schemas/Money",
            "description": "The wallet balance after the credit, in the site currency."
          }
        }
      },
      "Captured": {
        "type": "object",
        "description": "One recorded request.",
        "required": [
          "id",
          "at",
          "method",
          "path",
          "ip",
          "headers",
          "body",
          "bodyBase64",
          "bodySize",
          "truncated"
        ],
        "properties": {
          "at": {
            "type": "string",
            "format": "date-time"
          },
          "body": {
            "type": "string",
            "description": "The body as text, or base64 when it is not UTF-8 (`bodyBase64`)."
          },
          "bodyBase64": {
            "type": "boolean"
          },
          "bodySize": {
            "type": "integer",
            "description": "The body's full size in bytes.",
            "minimum": 0
          },
          "headers": {
            "type": "object",
            "description": "Lower-case names; credentials are left out.",
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "id": {
            "type": "string"
          },
          "ip": {
            "type": "string",
            "description": "The caller's address (`ClientIp`, trusted-proxy aware)."
          },
          "method": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "query": {
            "type": [
              "string",
              "null"
            ]
          },
          "truncated": {
            "type": "boolean",
            "description": "Only the first 16 KiB were kept."
          }
        }
      },
      "CardPayment": {
        "type": "object",
        "description": "What the app or the website needs to take the card with the provider's SDK.",
        "required": [
          "provider",
          "publishableKey",
          "clientSecret",
          "paymentIntentId",
          "amount"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money",
            "description": "What the card is charged: the order's total."
          },
          "clientSecret": {
            "type": "string",
            "description": "The intent's client secret for the SDK. Treat it like the order key: never log or share it."
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Until then the same intent is handed out again; after, a new one is made."
          },
          "paymentIntentId": {
            "type": "string"
          },
          "provider": {
            "type": "string",
            "description": "`stripe`: PaymentSheet on iOS and Android, the Payment Element (Stripe.js) on the web."
          },
          "publishableKey": {
            "type": "string"
          }
        }
      },
      "CashDeskHold": {
        "type": "object",
        "description": "What the buyer needs to pay at the box office.",
        "required": [
          "orderNumber",
          "amount",
          "expiresAt",
          "paymentWindowMinutes"
        ],
        "properties": {
          "address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the desk is, as admin wrote it."
          },
          "amount": {
            "$ref": "#/components/schemas/Money",
            "description": "What to pay at the desk."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "Pay by then: an unpaid order is cancelled afterwards and its seats return to sale."
          },
          "mapUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "A map link to the desk."
          },
          "orderNumber": {
            "type": "integer",
            "format": "int64",
            "description": "The order number (`orders.id`).",
            "minimum": 0
          },
          "paymentWindowMinutes": {
            "type": "integer",
            "format": "int32",
            "description": "How long the order is held, in minutes (`payment_window`; 1440 = 24 hours).",
            "minimum": 0
          },
          "postPurchaseInfo": {
            "type": [
              "string",
              "null"
            ],
            "description": "Admin's note for the buyer (e.g. the desk's opening hours), as stored: v1 does not translate it."
          },
          "resultRef": {
            "type": [
              "string",
              "null"
            ],
            "description": "The order's lasting result-page code (`GET /order-results/{ref}`); null on a host without\n`ORDER_PAGE_SECRET`."
          }
        }
      },
      "CategoryListing": {
        "type": "object",
        "required": [
          "groups"
        ],
        "properties": {
          "brandId": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "minimum": 0
          },
          "category": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CategoryRef",
                "description": "`null` for `all-events`."
              }
            ]
          },
          "city": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/City"
              }
            ]
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingGroup"
            }
          }
        }
      },
      "CategoryMoney": {
        "type": "object",
        "description": "Prices of one group per ticket category; `null` = not offered.",
        "properties": {
          "adult": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "child": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "disabled": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "retiree": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "student": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          }
        }
      },
      "CategoryRef": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "CheckTicketRequest": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "captcha": {
            "type": [
              "string",
              "null"
            ],
            "description": "The reCAPTCHA v2 checkbox token (`g-recaptcha-response`). Each token works once."
          },
          "code": {
            "type": "string",
            "description": "The 16-digit ticket number («Билет номер», leading zeros optional) or the 24-digit gate code\nfrom the QR / barcode; spaces and dashes are ignored.",
            "example": "0000000000150596"
          }
        }
      },
      "CheckVoucherRequest": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "The code as the customer typed it; case, spaces and dashes are ignored.",
            "example": "ABCD-1234"
          }
        }
      },
      "CheckedTicket": {
        "type": "object",
        "description": "The place, with the same names as a ticket of `GET /me/orders`.",
        "required": [
          "section",
          "isGeneralAdmission",
          "category"
        ],
        "properties": {
          "category": {
            "$ref": "#/components/schemas/TicketCategory"
          },
          "isGeneralAdmission": {
            "type": "boolean"
          },
          "row": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "minimum": 0
          },
          "seat": {
            "type": [
              "string",
              "null"
            ]
          },
          "section": {
            "type": "string",
            "description": "The sector, or the zone of a standing ticket."
          }
        }
      },
      "ChooseSeatsRequest": {
        "type": "object",
        "required": [
          "seatIds",
          "clientCode"
        ],
        "properties": {
          "clientCode": {
            "type": "string",
            "description": "As in `POST /orders`: the browser's seat-locker id, or one UUID per app install."
          },
          "seatIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            },
            "description": "At least two seats from `GET /events/{id}/seatmap`, in the order picked: the first two are free."
          }
        }
      },
      "ChosenSeats": {
        "type": "object",
        "required": [
          "orderKey",
          "holdUntil"
        ],
        "properties": {
          "holdUntil": {
            "type": "string",
            "format": "date-time"
          },
          "orderKey": {
            "type": "string",
            "description": "The order to finish with the normal checkout: 0.00 for two seats, further seats at their price."
          }
        }
      },
      "City": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Translated country name; absent when there is no translation."
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "name": {
            "type": "string",
            "description": "Translated, else the stored name."
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ClaimDetails": {
        "type": "object",
        "required": [
          "state",
          "claimBy"
        ],
        "properties": {
          "claimBy": {
            "type": "string",
            "format": "date-time"
          },
          "event": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PromoEvent"
              }
            ]
          },
          "holdUntil": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "orderKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "While the seats are chosen and the order not paid: the way back to its checkout."
          },
          "state": {
            "type": "string",
            "description": "`won`, `claimed`, `seats_chosen` or `returned`."
          }
        }
      },
      "Claimed": {
        "type": "object",
        "required": [
          "seatUrl",
          "holdUntil",
          "eventId"
        ],
        "properties": {
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "holdUntil": {
            "type": "string",
            "format": "date-time"
          },
          "inviteCode": {
            "type": [
              "string",
              "null"
            ],
            "description": "\"Ела с мен\": the link is `?ot={inviteCode}&ev={eventId}`."
          },
          "seatUrl": {
            "type": "string"
          }
        }
      },
      "ClientError": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string"
          }
        }
      },
      "CodeEvents": {
        "type": "object",
        "required": [
          "dates"
        ],
        "properties": {
          "dates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DateHit"
            },
            "description": "The code's dates on sale now, soonest first; empty for an unknown, inactive or date-less code."
          }
        }
      },
      "CodeRequest": {
        "type": "object",
        "properties": {
          "countryCode": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country prefix for `phone`, default `+359`."
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Sign in by e-mail (an account is created for a new address). Exactly one of `email`/`phone`."
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Sign in by phone (only an existing account), local or international form."
          }
        }
      },
      "CodeSent": {
        "type": "object",
        "required": [
          "challengeId",
          "channel",
          "destination",
          "expiresInSeconds",
          "isNewAccount"
        ],
        "properties": {
          "challengeId": {
            "type": "string",
            "description": "Send it back with the code to `POST /auth/otp/verify`."
          },
          "channel": {
            "type": "string",
            "description": "`email` or `sms`."
          },
          "destination": {
            "type": "string",
            "description": "Where the code went, masked."
          },
          "expiresInSeconds": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "isNewAccount": {
            "type": "boolean",
            "description": "The e-mail had no account; one was just created."
          }
        }
      },
      "ConfirmAnswer": {
        "type": "object",
        "properties": {
          "guestToken": {
            "type": [
              "string",
              "null"
            ],
            "description": "A new guest's token, for the website's httpOnly cookie."
          },
          "prizeOrder": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PrizeOrderConfirmed",
                "description": "The link was a guest's prize order's."
              }
            ]
          }
        }
      },
      "ConfirmRequest": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "The 6-digit code from the e-mail.",
            "example": "482913"
          }
        }
      },
      "ConsentAnswer": {
        "type": "object",
        "properties": {
          "guestToken": {
            "type": [
              "string",
              "null"
            ],
            "description": "A new guest's token, for the website's httpOnly cookie."
          }
        }
      },
      "ConsentRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "A guest entering (website only)."
          },
          "marketing": {
            "type": "boolean"
          },
          "reminder": {
            "type": "boolean",
            "description": "Remind me tomorrow (PRD M10)."
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "description": "The screen it came from."
          }
        }
      },
      "ContactRequest": {
        "type": "object",
        "required": [
          "email",
          "message"
        ],
        "properties": {
          "email": {
            "type": "string",
            "description": "Where to reply."
          },
          "message": {
            "type": "string",
            "description": "More than 10 bytes once trimmed. The first 500 characters are kept."
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional; only digits and `+` are kept."
          }
        }
      },
      "CreatedOrder": {
        "type": "object",
        "required": [
          "orderKey",
          "numSeats",
          "tickets",
          "state",
          "group"
        ],
        "properties": {
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the buyer's own seat holds lapse (15 min; split-payment lines are held 50 min). `null`\nwithout tickets."
          },
          "group": {
            "type": "boolean",
            "description": "A group order (made with the group booking link's `groupToken`)."
          },
          "numSeats": {
            "type": "integer",
            "format": "int32",
            "description": "Tickets this buyer pays for (split-payment lines are not counted, as in v1).",
            "minimum": 0
          },
          "orderKey": {
            "type": "string",
            "description": "The order's bearer key: keep it, every later checkout call uses it."
          },
          "state": {
            "type": "string",
            "description": "Always `draft`: the order is priced by `GET /orders/{orderKey}`."
          },
          "tickets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreatedTicket"
            }
          }
        }
      },
      "CreatedTicket": {
        "type": "object",
        "required": [
          "seatId",
          "count",
          "categories",
          "splitPayment"
        ],
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "splitPayment": {
            "type": "boolean"
          }
        }
      },
      "Crew": {
        "type": "object",
        "required": [
          "friends",
          "winners"
        ],
        "properties": {
          "friends": {
            "type": "integer",
            "format": "int64"
          },
          "winners": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "Customer": {
        "type": "object",
        "required": [
          "email",
          "names"
        ],
        "properties": {
          "email": {
            "type": "string"
          },
          "names": {
            "type": "string"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "recipientEmail": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "CustomerUpdate": {
        "type": "object",
        "required": [
          "email",
          "names"
        ],
        "properties": {
          "email": {
            "type": "string"
          },
          "names": {
            "type": "string"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "recipientEmail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Gift vouchers: who receives the codes."
          }
        }
      },
      "Data_AppConfig": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "minVersion",
              "features"
            ],
            "properties": {
              "features": {
                "$ref": "#/components/schemas/Features"
              },
              "minVersion": {
                "$ref": "#/components/schemas/MinVersion",
                "description": "Older builds get `426 app_update_required` on every call but this one."
              }
            }
          }
        }
      },
      "Data_ArtistList": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "artists"
            ],
            "properties": {
              "artists": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ArtistWithShows"
                }
              },
              "city": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/City",
                    "description": "The `?city=` filter, when one was applied."
                  }
                ]
              },
              "type": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/ArtistType",
                    "description": "The `?type=` filter, when one was applied."
                  }
                ]
              }
            }
          }
        }
      },
      "Data_Availability": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "available",
              "locked"
            ],
            "properties": {
              "available": {
                "type": "boolean",
                "description": "Every item can be booked now."
              },
              "locked": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LockedLine"
                }
              }
            }
          }
        }
      },
      "Data_AwaitingConfirmation": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "awaitingConfirmation",
              "confirmUntil",
              "emailMasked"
            ],
            "properties": {
              "awaitingConfirmation": {
                "type": "boolean",
                "description": "Always true: the order waits for the click in the mail."
              },
              "confirmUntil": {
                "type": "string",
                "format": "date-time"
              },
              "emailMasked": {
                "type": "string",
                "description": "Where the link went, masked: `iva…@abv.bg`."
              }
            }
          }
        }
      },
      "Data_BankTransferInstructions": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "What the buyer needs to pay. The same is e-mailed to the order's address.",
            "required": [
              "orderNumber",
              "reference",
              "amount",
              "beneficiary",
              "iban",
              "bank",
              "swift",
              "expiresAt"
            ],
            "properties": {
              "amount": {
                "$ref": "#/components/schemas/Money"
              },
              "bank": {
                "type": "string"
              },
              "beneficiary": {
                "type": "string"
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "description": "Pay by then: an unpaid order is cancelled afterwards and its seats return to sale."
              },
              "iban": {
                "type": "string"
              },
              "orderNumber": {
                "type": "integer",
                "format": "int64",
                "description": "The order number.",
                "minimum": 0
              },
              "postPurchaseInfo": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The gateway's note for the buyer (translated), if admin set one."
              },
              "reference": {
                "type": "string",
                "description": "The payment reference to write on the transfer: the order number, never the order key."
              },
              "resultRef": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The order's lasting result-page code (`GET /order-results/{ref}`); null on a host without\n`ORDER_PAGE_SECRET`."
              },
              "swift": {
                "type": "string"
              }
            }
          }
        }
      },
      "Data_BestSeats": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "eventId",
              "count",
              "blocks",
              "gaAreas"
            ],
            "properties": {
              "blocks": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SeatBlock"
                },
                "description": "Numbered seats, best first, at most 5."
              },
              "count": {
                "type": "integer",
                "format": "int32",
                "minimum": 0
              },
              "eventId": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "gaAreas": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GaOption"
                },
                "description": "General-admission areas with room for `count`, best first."
              }
            }
          }
        }
      },
      "Data_BrandDateReport": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "One date's places and ticket.bg sales.",
            "required": [
              "date",
              "capacity",
              "places",
              "sales",
              "cancelled",
              "unpaidPlaces",
              "freeOnWebsite",
              "priceGroups",
              "waitlist"
            ],
            "properties": {
              "cancelled": {
                "$ref": "#/components/schemas/BrandCancelled"
              },
              "capacity": {
                "type": "integer",
                "format": "int64",
                "description": "Places on the hall's map for this date: numbered seats plus general-admission places."
              },
              "date": {
                "$ref": "#/components/schemas/BrandApiDate"
              },
              "freeOnWebsite": {
                "type": "integer",
                "format": "int64",
                "description": "Places ticket.bg can still sell on the website now."
              },
              "places": {
                "$ref": "#/components/schemas/BrandChannelPlaces",
                "description": "Places allocated to each channel."
              },
              "priceGroups": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/BrandPriceGroup"
                }
              },
              "sales": {
                "$ref": "#/components/schemas/BrandSales"
              },
              "unpaidPlaces": {
                "type": "integer",
                "format": "int64",
                "description": "Places reserved and not paid yet (bank transfer, pay at the cash desk)."
              },
              "waitlist": {
                "$ref": "#/components/schemas/BrandWaitlist"
              }
            }
          }
        }
      },
      "Data_BrandTimeline": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "interval",
              "buckets"
            ],
            "properties": {
              "buckets": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/BrandBucket"
                },
                "description": "Periods with sales, oldest first."
              },
              "interval": {
                "$ref": "#/components/schemas/BrandInterval"
              }
            }
          }
        }
      },
      "Data_Calendar": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "dates",
              "counts"
            ],
            "properties": {
              "counts": {
                "type": "object",
                "description": "Per category slug: dates in the range still to come and not cancelled. Ignores `cat`.",
                "additionalProperties": {
                  "type": "integer",
                  "format": "int64",
                  "minimum": 0
                },
                "propertyNames": {
                  "type": "string"
                }
              },
              "dates": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CalendarDate"
                },
                "description": "The range's dates, earliest first; those that have passed included."
              },
              "nextDate": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "The first day after `to` with a date to come, in the same city (or every city) and `cat`."
              }
            }
          }
        }
      },
      "Data_Cancellation": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "The answer to a cancellation.",
            "required": [
              "refunded",
              "walletBalance"
            ],
            "properties": {
              "order": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/Order",
                    "description": "The order afterwards, as `GET /me/orders/{orderKey}` shows it (`null` if it is no longer\nlisted)."
                  }
                ]
              },
              "refunded": {
                "$ref": "#/components/schemas/Money",
                "description": "Credited to the wallet, in the order's currency."
              },
              "walletBalance": {
                "$ref": "#/components/schemas/Money",
                "description": "The wallet balance after the credit, in the site currency."
              }
            }
          }
        }
      },
      "Data_CardPayment": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "What the app or the website needs to take the card with the provider's SDK.",
            "required": [
              "provider",
              "publishableKey",
              "clientSecret",
              "paymentIntentId",
              "amount"
            ],
            "properties": {
              "amount": {
                "$ref": "#/components/schemas/Money",
                "description": "What the card is charged: the order's total."
              },
              "clientSecret": {
                "type": "string",
                "description": "The intent's client secret for the SDK. Treat it like the order key: never log or share it."
              },
              "expiresAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "Until then the same intent is handed out again; after, a new one is made."
              },
              "paymentIntentId": {
                "type": "string"
              },
              "provider": {
                "type": "string",
                "description": "`stripe`: PaymentSheet on iOS and Android, the Payment Element (Stripe.js) on the web."
              },
              "publishableKey": {
                "type": "string"
              }
            }
          }
        }
      },
      "Data_CashDeskHold": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "What the buyer needs to pay at the box office.",
            "required": [
              "orderNumber",
              "amount",
              "expiresAt",
              "paymentWindowMinutes"
            ],
            "properties": {
              "address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where the desk is, as admin wrote it."
              },
              "amount": {
                "$ref": "#/components/schemas/Money",
                "description": "What to pay at the desk."
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "description": "Pay by then: an unpaid order is cancelled afterwards and its seats return to sale."
              },
              "mapUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "A map link to the desk."
              },
              "orderNumber": {
                "type": "integer",
                "format": "int64",
                "description": "The order number (`orders.id`).",
                "minimum": 0
              },
              "paymentWindowMinutes": {
                "type": "integer",
                "format": "int32",
                "description": "How long the order is held, in minutes (`payment_window`; 1440 = 24 hours).",
                "minimum": 0
              },
              "postPurchaseInfo": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Admin's note for the buyer (e.g. the desk's opening hours), as stored: v1 does not translate it."
              },
              "resultRef": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The order's lasting result-page code (`GET /order-results/{ref}`); null on a host without\n`ORDER_PAGE_SECRET`."
              }
            }
          }
        }
      },
      "Data_CategoryListing": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "groups"
            ],
            "properties": {
              "brandId": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int32",
                "minimum": 0
              },
              "category": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CategoryRef",
                    "description": "`null` for `all-events`."
                  }
                ]
              },
              "city": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/City"
                  }
                ]
              },
              "groups": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ListingGroup"
                }
              }
            }
          }
        }
      },
      "Data_ChosenSeats": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "orderKey",
              "holdUntil"
            ],
            "properties": {
              "holdUntil": {
                "type": "string",
                "format": "date-time"
              },
              "orderKey": {
                "type": "string",
                "description": "The order to finish with the normal checkout: 0.00 for two seats, further seats at their price."
              }
            }
          }
        }
      },
      "Data_ClaimDetails": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "state",
              "claimBy"
            ],
            "properties": {
              "claimBy": {
                "type": "string",
                "format": "date-time"
              },
              "event": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PromoEvent"
                  }
                ]
              },
              "holdUntil": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "orderKey": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "While the seats are chosen and the order not paid: the way back to its checkout."
              },
              "state": {
                "type": "string",
                "description": "`won`, `claimed`, `seats_chosen` or `returned`."
              }
            }
          }
        }
      },
      "Data_Claimed": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "seatUrl",
              "holdUntil",
              "eventId"
            ],
            "properties": {
              "eventId": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "holdUntil": {
                "type": "string",
                "format": "date-time"
              },
              "inviteCode": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "\"Ела с мен\": the link is `?ot={inviteCode}&ev={eventId}`."
              },
              "seatUrl": {
                "type": "string"
              }
            }
          }
        }
      },
      "Data_CodeEvents": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "dates"
            ],
            "properties": {
              "dates": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DateHit"
                },
                "description": "The code's dates on sale now, soonest first; empty for an unknown, inactive or date-less code."
              }
            }
          }
        }
      },
      "Data_CodeSent": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "challengeId",
              "channel",
              "destination",
              "expiresInSeconds",
              "isNewAccount"
            ],
            "properties": {
              "challengeId": {
                "type": "string",
                "description": "Send it back with the code to `POST /auth/otp/verify`."
              },
              "channel": {
                "type": "string",
                "description": "`email` or `sms`."
              },
              "destination": {
                "type": "string",
                "description": "Where the code went, masked."
              },
              "expiresInSeconds": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "isNewAccount": {
                "type": "boolean",
                "description": "The e-mail had no account; one was just created."
              }
            }
          }
        }
      },
      "Data_ConfirmAnswer": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "guestToken": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "A new guest's token, for the website's httpOnly cookie."
              },
              "prizeOrder": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PrizeOrderConfirmed",
                    "description": "The link was a guest's prize order's."
                  }
                ]
              }
            }
          }
        }
      },
      "Data_ConsentAnswer": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "guestToken": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "A new guest's token, for the website's httpOnly cookie."
              }
            }
          }
        }
      },
      "Data_CreatedOrder": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "orderKey",
              "numSeats",
              "tickets",
              "state",
              "group"
            ],
            "properties": {
              "expiresAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the buyer's own seat holds lapse (15 min; split-payment lines are held 50 min). `null`\nwithout tickets."
              },
              "group": {
                "type": "boolean",
                "description": "A group order (made with the group booking link's `groupToken`)."
              },
              "numSeats": {
                "type": "integer",
                "format": "int32",
                "description": "Tickets this buyer pays for (split-payment lines are not counted, as in v1).",
                "minimum": 0
              },
              "orderKey": {
                "type": "string",
                "description": "The order's bearer key: keep it, every later checkout call uses it."
              },
              "state": {
                "type": "string",
                "description": "Always `draft`: the order is priced by `GET /orders/{orderKey}`."
              },
              "tickets": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CreatedTicket"
                }
              }
            }
          }
        }
      },
      "Data_DateSearchResults": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "query",
              "dates"
            ],
            "properties": {
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The city slug filtered on."
              },
              "dates": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DateHit"
                }
              },
              "from": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "query": {
                "type": "string",
                "description": "The text as matched (trimmed); empty when none was given."
              },
              "to": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              }
            }
          }
        }
      },
      "Data_DeletionCodeSent": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "challengeId",
              "channel",
              "destination",
              "expiresInSeconds"
            ],
            "properties": {
              "challengeId": {
                "type": "string",
                "description": "Send it back with the code to `POST /me/deletion/confirm`."
              },
              "channel": {
                "type": "string",
                "description": "`email`, or `sms` for an account without an e-mail."
              },
              "destination": {
                "type": "string",
                "description": "Masked, e.g. `u***@example.com`."
              },
              "expiresInSeconds": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              }
            }
          }
        }
      },
      "Data_DictionaryEntry": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "key",
              "value"
            ],
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {
                "type": "string",
                "description": "The text in the requested language; for a key created just now, the source text (or the key)."
              }
            }
          }
        }
      },
      "Data_DiscountCodeSent": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "marked"
            ],
            "properties": {
              "marked": {
                "type": "boolean",
                "description": "This call marked the code as handed out. `false`: it was already marked, or the code is\nunknown or inactive; hand out another."
              }
            }
          }
        }
      },
      "Data_EventDetail": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "A date with its prices, for the booking screen.",
            "required": [
              "id",
              "show",
              "state",
              "venue",
              "serviceFee",
              "taxPercent",
              "priceGroups",
              "withheldCategories",
              "descriptions",
              "artists",
              "bands",
              "images"
            ],
            "properties": {
              "artists": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Performer"
                }
              },
              "bands": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Band"
                }
              },
              "category": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CategoryRef"
                  }
                ]
              },
              "city": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/City"
                  }
                ]
              },
              "descriptions": {
                "type": "object",
                "description": "By `sub_group` (`main`, `producer`, `partner`, …).",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Description"
                },
                "propertyNames": {
                  "type": "string"
                }
              },
              "endsAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "facebookPixelId": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The producer's Meta pixel id, for client-side conversion tracking."
              },
              "id": {
                "type": "integer",
                "format": "int64",
                "description": "`offerings_events.id`.",
                "minimum": 0
              },
              "images": {
                "$ref": "#/components/schemas/ImageSet",
                "description": "The date's own photos, else the production's, per orientation."
              },
              "page": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/BookingPage"
                  }
                ]
              },
              "priceGroups": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PriceGroup"
                }
              },
              "producer": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/Producer"
                  }
                ]
              },
              "saleEndsAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "saleStartsAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "serviceFee": {
                "$ref": "#/components/schemas/Money",
                "description": "Per-ticket service fee added at checkout."
              },
              "show": {
                "$ref": "#/components/schemas/ShowRef"
              },
              "startsAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "state": {
                "$ref": "#/components/schemas/DateState"
              },
              "taxPercent": {
                "type": "string",
                "description": "`products.tax_percent`.",
                "example": "0.00"
              },
              "venue": {
                "$ref": "#/components/schemas/Venue"
              },
              "withheldCategories": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WithheldCategory"
                }
              }
            }
          }
        }
      },
      "Data_EventQueued": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "queued"
            ],
            "properties": {
              "queued": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "Data_FiBankPayment": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "FiBank's payment page for the order. Treat `paymentUrl` like the order key: never log or share it.",
            "required": [
              "provider",
              "paymentUrl",
              "amount"
            ],
            "properties": {
              "amount": {
                "$ref": "#/components/schemas/Money",
                "description": "What the card is charged: the order's total."
              },
              "expiresAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "Until then the same page is handed out again; after, a new one is made."
              },
              "paymentUrl": {
                "type": "string",
                "description": "Open it in the system browser sheet (`SFSafariViewController` on iOS, a Custom Tab on Android),\nnot a web view: FiBank's page offers Apple Pay and Google Pay there. FiBank then returns the\nbuyer to the website, which settles the order; poll `GET /orders/{orderKey}` meanwhile."
              },
              "provider": {
                "type": "string",
                "description": "`fiBank`."
              }
            }
          }
        }
      },
      "Data_FiBankSettled": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "The answer the website's `/payment/fibank` route reads (v1's `data`, FIBANK.md §1.3): `state` 0\npaid, 10 waiting for the bank, 2 declined, 1 not registered; the route redirects to\n`/payment/success` for 0 and 10, else `/payment/failure`.",
            "required": [
              "state",
              "message",
              "extra"
            ],
            "properties": {
              "extra": {
                "type": "string",
                "description": "The decline reason (FiBank's code, translated) for 2 and 10."
              },
              "message": {
                "type": "string"
              },
              "order": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/FiBankSettledOrder",
                    "description": "The order, when the transaction is known: what the website's result page reads."
                  }
                ]
              },
              "state": {
                "type": "integer",
                "format": "int32",
                "description": "0 paid, 10 the bank has not finished (pending), 2 declined, 1 not registered (see `message`).",
                "minimum": 0
              }
            }
          }
        }
      },
      "Data_FiBankStatus": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "FiBank's view of a payment (admin's \"Check Status\").",
            "required": [
              "orderId",
              "paymentIntentId",
              "orderState",
              "state",
              "result"
            ],
            "properties": {
              "approvalCode": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cardNumber": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "FiBank's mask, e.g. `437851******2074`."
              },
              "orderId": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "orderState": {
                "type": "integer",
                "format": "int32",
                "description": "`orders.state` now (unchanged by the check).",
                "minimum": 0
              },
              "paymentIntentId": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "result": {
                "type": "string",
                "description": "FiBank's `RESULT`, e.g. `OK`, `FAILED`."
              },
              "resultCode": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "resultText": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The code's meaning (v1's table, English)."
              },
              "rrn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "state": {
                "type": "integer",
                "format": "int32",
                "description": "0 paid, 1 declined (`TIMEOUT` included), 2 not final yet (`PENDING`, `CREATED`).",
                "minimum": 0
              },
              "threeDSecure": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        }
      },
      "Data_GateCode": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "What the gate checker scans for this ticket.",
            "required": [
              "ticketId",
              "value",
              "formats",
              "qrErrorCorrection"
            ],
            "properties": {
              "formats": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The symbologies the PDF prints it in; render either. `qr` and `code128`."
              },
              "qrErrorCorrection": {
                "type": "string",
                "description": "The PDF's QR error-correction level.",
                "example": "H"
              },
              "ticketId": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "value": {
                "type": "string",
                "description": "`00{serial}00`: exactly what the ticket PDF prints. A credential: keep it out of logs,\nanalytics and crash reports.",
                "example": "00184092800"
              }
            }
          }
        }
      },
      "Data_GoogleWalletLink": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "Google's \"Add to Google Wallet\" link.",
            "required": [
              "saveUrl"
            ],
            "properties": {
              "saveUrl": {
                "type": "string",
                "description": "`https://pay.google.com/gp/v/save/{jwt}`: open it (or hand it to the Google Wallet API)."
              }
            }
          }
        }
      },
      "Data_Handoff": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "A handoff link for an order.",
            "required": [
              "url",
              "expiresAt"
            ],
            "properties": {
              "expiresAt": {
                "type": "string",
                "format": "date-time"
              },
              "url": {
                "type": "string",
                "description": "`{website}/checkout/handoff?h={token}&e={showSlug}`: single use; carries no order key."
              }
            }
          }
        }
      },
      "Data_Hold": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "eventId",
              "status",
              "seats",
              "handedOff",
              "message"
            ],
            "properties": {
              "continueUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where the person continues: the handoff link (single use, ≤ 15 minutes), or the date's page."
              },
              "eventId": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "expiresAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the hold ends; the person must pay before then."
              },
              "handedOff": {
                "type": "boolean",
                "description": "The person has opened the link: the seats now belong to their browser's checkout."
              },
              "holdId": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Opaque id for `GET` / `DELETE /agent/holds/{holdId}`; `null` when nothing was held."
              },
              "message": {
                "type": "string",
                "description": "A sentence the agent can show as is."
              },
              "reason": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/HoldReason"
                  }
                ]
              },
              "seats": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/HeldSeat"
                }
              },
              "status": {
                "$ref": "#/components/schemas/HoldStatus"
              },
              "total": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/Money",
                    "description": "What the person pays, fees included (the checkout's own price)."
                  }
                ]
              }
            }
          }
        }
      },
      "Data_Home": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "slider",
              "top",
              "sections",
              "recommended"
            ],
            "properties": {
              "city": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/City",
                    "description": "The filter that was applied, if any."
                  }
                ]
              },
              "recommended": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ShowCard"
                },
                "description": "Signed in: up to 10 productions recommended for the user (\"Препоръчани за теб\"), which the\nsections then list first. Empty when signed out or when there is nothing to recommend."
              },
              "sections": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/HomeSection"
                }
              },
              "slider": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ShowCard"
                }
              },
              "top": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TopCard"
                },
                "description": "Editorially ranked productions (`hp_top_priority`), by rank; empty when none is ranked."
              }
            }
          }
        }
      },
      "Data_LlmsData": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "shows",
              "pages"
            ],
            "properties": {
              "pages": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LlmsPage"
                },
                "description": "CMS pages marked for the sitemap, category pages excluded."
              },
              "shows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LlmsShow"
                },
                "description": "Productions on sale, by their next date."
              }
            }
          }
        }
      },
      "Data_Me": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "id",
              "names",
              "cityId",
              "countryId",
              "roles"
            ],
            "properties": {
              "cityId": {
                "type": "integer",
                "format": "int32",
                "minimum": 0
              },
              "countryId": {
                "type": "integer",
                "format": "int32",
                "minimum": 0
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "names": {
                "type": "string"
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "roles": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Staff roles in v1's fixed order (`admin`, `super_admin`, `product_admin`, `partner`,\n`producer`, `cashier`, `checker`); `[]` for a customer."
              },
              "updatedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the phone was last set (`users.updated_on`, written by v1's and v2's phone change);\n`null` when never. v1 sent it as unix seconds (`updated_on`); the website hides \"change\nphone\" for 24 h after it (v1 and v2 do not enforce that)."
              }
            }
          }
        }
      },
      "Data_Menu": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "categories",
              "cities"
            ],
            "properties": {
              "categories": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MenuCategory"
                }
              },
              "cities": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MenuCity"
                }
              }
            }
          }
        }
      },
      "Data_MessageReceived": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "received"
            ],
            "properties": {
              "received": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "Data_MinVersion": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "Dotted version strings (`1.0.3`), compared number by number (`1.0.10` is newer than `1.0.9`).",
            "properties": {
              "android": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "ios": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "`null`: no minimum."
              }
            }
          }
        }
      },
      "Data_Order": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "key",
              "state",
              "status",
              "isOwner",
              "canCancel",
              "currency",
              "subTotal",
              "serviceFee",
              "gatewayFee",
              "discount",
              "total",
              "tickets",
              "vouchers",
              "voucherCodes",
              "merchandise",
              "needsRefresh"
            ],
            "properties": {
              "canCancel": {
                "type": "boolean",
                "description": "`POST /me/orders/{orderKey}/cancel` would accept it: delivered, owned, every date postponed and\nmore than 48 h away (v1's rule), paid in the site's currency without a discount code or gift\nvouchers, and no ticket used at the entrance yet."
              },
              "createdAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "currency": {
                "type": "string",
                "description": "ISO 4217 code the order was placed in."
              },
              "discount": {
                "$ref": "#/components/schemas/Money"
              },
              "discountKind": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/DiscountKind",
                    "description": "What `discount` is, as in the checkout's `discount.kind`: `wallet` (paid from the account\nbalance; `total` is then only the rest, by card) or `promo` (a discount or gift-voucher code).\nNull without a discount, or for an old discount that names no code."
                  }
                ]
              },
              "event": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OrderEvent"
                  }
                ]
              },
              "gatewayFee": {
                "$ref": "#/components/schemas/Money"
              },
              "gift": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OrderGift",
                    "description": "The gift vouchers' card the buyer chose (`POST /orders` `gift`), on the account's own orders\nonly: the wish is the buyer's private text. Null without one (every older order) and on\n`isOwner: false` orders."
                  }
                ]
              },
              "isOwner": {
                "type": "boolean",
                "description": "The order was placed by this account (`client_id`); other visible orders only share its\ne-mail or phone, and cannot be cancelled or shared from it."
              },
              "key": {
                "type": "string",
                "description": "The order key (`orders.order_key`)."
              },
              "merchandise": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/OrderMerchandise"
                }
              },
              "needsRefresh": {
                "type": "boolean",
                "description": "A ticket is not issued yet, or its page link is not ready yet; ask again later."
              },
              "pageUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The online page of the order's tickets (admin's ticket page; the buyer's data, prices and every\nticket), on the account's own orders (`isOwner`) only. Absolute, with `?l=` in the request's\nlanguage. Null while not ready, on orders without tickets, and on `isOwner: false` orders, whose\ntickets carry their own `pageUrl`."
              },
              "serviceFee": {
                "$ref": "#/components/schemas/Money"
              },
              "state": {
                "type": "integer",
                "format": "int32",
                "description": "`orders.state`.",
                "minimum": 0
              },
              "status": {
                "$ref": "#/components/schemas/OrderStatus"
              },
              "subTotal": {
                "$ref": "#/components/schemas/Money"
              },
              "tickets": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/OrderTicket"
                }
              },
              "total": {
                "$ref": "#/components/schemas/Money"
              },
              "voucherCodes": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VoucherCode"
                }
              },
              "voucherRecipientEmail": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Who receives the gift vouchers, when the buyer named someone."
              },
              "vouchers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/OrderVoucher"
                }
              }
            }
          }
        }
      },
      "Data_OrderResult": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "An order as its result page shows it to whoever holds the link: `OrderView`'s field names and\nnesting, with what the link must not give away masked or empty (one reader serves both).",
            "required": [
              "orderNumber",
              "state",
              "status",
              "tickets",
              "vouchers",
              "merchandise",
              "numSeats",
              "subTotal",
              "serviceFee",
              "total",
              "customer",
              "invoiceSaved"
            ],
            "properties": {
              "bankTransfer": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/BankTransferInstructions",
                    "description": "While the order waits for its bank transfer: what to pay, where and by when."
                  }
                ]
              },
              "createdAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "customer": {
                "$ref": "#/components/schemas/Customer",
                "description": "Unless `orderKey` is present: `email` and `recipientEmail` masked (`v***@gmail.com`), `names`\nempty, `phone` null."
              },
              "discount": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/Discount",
                    "description": "The code shows only its last 4 characters (`••••7KQ2`), unless `orderKey` is present."
                  }
                ]
              },
              "event": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OrderViewEvent"
                  }
                ]
              },
              "gatewayFee": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/Money"
                  }
                ]
              },
              "gift": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OrderGift",
                    "description": "A gift voucher order's card: `design` and `sendAt`; `to` and `from` only with `orderKey`;\n`message` and `recipientPhone` always null here."
                  }
                ]
              },
              "invoiceSaved": {
                "type": "boolean",
                "description": "Whether invoice details are saved on the order (the details themselves: `GET /orders/{key}`)."
              },
              "merchandise": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MerchandiseLine"
                }
              },
              "numSeats": {
                "type": "integer",
                "format": "int32",
                "minimum": 0
              },
              "orderKey": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Only for the order's own buyer, signed in (`orders.client_id` = the session's user; a\ncashier's sale is the cashier's): the key, then `GET /orders/{key}` and every key route. Null\nfor everyone else."
              },
              "orderNumber": {
                "type": "integer",
                "format": "int64",
                "description": "The order number (`orders.id`).",
                "minimum": 0
              },
              "paidAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When it was paid (its newest successful payment); null until then, and for a free order."
              },
              "paymentMethod": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The method chosen (`fiBank`, `revolut`, `bank_transfer`, `cashier`, `wallet`, …)."
              },
              "resultRef": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "serviceFee": {
                "$ref": "#/components/schemas/Money"
              },
              "state": {
                "type": "integer",
                "format": "int32",
                "minimum": 0
              },
              "status": {
                "$ref": "#/components/schemas/OrderStatus"
              },
              "subTotal": {
                "$ref": "#/components/schemas/Money"
              },
              "tickets": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TicketLine"
                }
              },
              "total": {
                "$ref": "#/components/schemas/Money"
              },
              "vouchers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VoucherLine"
                }
              }
            }
          }
        }
      },
      "Data_OrderView": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "An order as the checkout shows it.",
            "required": [
              "orderKey",
              "orderNumber",
              "state",
              "status",
              "canChange",
              "tickets",
              "vouchers",
              "merchandise",
              "numSeats",
              "subTotal",
              "serviceFee",
              "total",
              "priceChanged",
              "priceRequote",
              "paymentMethods",
              "customer",
              "group"
            ],
            "properties": {
              "bankTransfer": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/BankTransferInstructions",
                    "description": "While the order waits for its bank transfer (`awaitingConfirmation`, `paymentMethod`\n`bank_transfer`): what to pay, where and by when, as the confirmation answered and mailed it."
                  }
                ]
              },
              "bankTransferDeadline": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "An open order: the deadline a bank transfer confirmed now would get (`bank_transfer` is in\n`paymentMethods`). An order waiting for its transfer: the deadline it waits until."
              },
              "bankTransferUnavailable": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why `bank_transfer` is not in `paymentMethods` although the method is active: `split_order`,\n`wallet`, `too_many_seats`, `disabled` (this date), `too_close` (the event is too soon),\n`capacity`, `held_cap`, `identity_limit` (an open transfer of this buyer on the date),\n`too_late`. Informational; v1 `bankTransferUnavailable`."
              },
              "canChange": {
                "type": "boolean",
                "description": "The key may still change the order's lines: open (states 0, 1, 2, 5) and not a split-payment\nshare. A share's tickets and add-ons are fixed (`409 order_changes_locked`); its payer still\nsets the customer, may apply a code, and pays."
              },
              "createdAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "customer": {
                "$ref": "#/components/schemas/Customer"
              },
              "discount": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/Discount"
                  }
                ]
              },
              "discountError": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/DiscountError"
                  }
                ]
              },
              "event": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OrderViewEvent"
                  }
                ]
              },
              "gatewayFee": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/Money"
                  }
                ]
              },
              "gift": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/OrderGift",
                    "description": "The gift vouchers' card (`POST /orders` `gift`), or null."
                  }
                ]
              },
              "group": {
                "type": "boolean",
                "description": "Made through the group booking link (`POST /orders` with `groupToken`): seats held 30\nminutes, no split payers, more business days to pay by bank transfer."
              },
              "holdsExpireAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When this buyer's seat holds run out (null once they have; v1 never extends them)."
              },
              "invoice": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/Invoice",
                    "description": "The invoice details saved on the order (`PUT /orders/{key}/invoicing`), or null."
                  }
                ]
              },
              "merchandise": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MerchandiseLine"
                }
              },
              "numSeats": {
                "type": "integer",
                "format": "int32",
                "minimum": 0
              },
              "orderKey": {
                "type": "string"
              },
              "orderNumber": {
                "type": "integer",
                "format": "int64",
                "description": "The order number (`orders.id`): what the buyer is shown, and a bank transfer's reference.",
                "minimum": 0
              },
              "paidAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When it was paid (its newest successful payment); null until then, and for a free order."
              },
              "paymentMethod": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "paymentMethods": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PaymentMethod"
                }
              },
              "priceChanged": {
                "type": "boolean",
                "description": "A GA ladder stepped since the last quote: these lines now cost more (or less)."
              },
              "priceRequote": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Requote"
                }
              },
              "resultRef": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The order's lasting result-page code: the website's `/payment/success?o={resultRef}` reads\nthe masked view with it (`GET /order-results/{ref}`). Never the key. Null on a host without\n`ORDER_PAGE_SECRET`."
              },
              "serviceFee": {
                "$ref": "#/components/schemas/Money"
              },
              "state": {
                "type": "integer",
                "format": "int32",
                "minimum": 0
              },
              "status": {
                "$ref": "#/components/schemas/OrderStatus"
              },
              "subTotal": {
                "$ref": "#/components/schemas/Money"
              },
              "tickets": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TicketLine"
                }
              },
              "ticketsPageUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Admin's online tickets page of the whole order, once the tickets are issued (`ticketsReady` /\n`ticketsDelivered`) and admin has written the page's token; null before (poll while `status` is\n`paid`). It opens the tickets, so only the key holder gets it, never the result-code view."
              },
              "total": {
                "$ref": "#/components/schemas/Money"
              },
              "vouchers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VoucherLine"
                }
              },
              "walletBalance": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/Money",
                    "description": "The signed-in buyer's wallet balance."
                  }
                ]
              }
            }
          }
        }
      },
      "Data_Page": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "id",
              "slug",
              "name",
              "updatedAt"
            ],
            "properties": {
              "content": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PageContent",
                    "description": "The page text in the requested language; `null` when it has none."
                  }
                ]
              },
              "faq": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "$ref": "#/components/schemas/FaqItem"
                },
                "description": "Questions and answers; present on the `faq` page only."
              },
              "headImage": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "type": "integer",
                "format": "int32",
                "minimum": 0
              },
              "name": {
                "type": "string",
                "description": "Internal page name (not translated)."
              },
              "ogImage": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "slug": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        }
      },
      "Data_PaymentShares": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "split",
              "shares"
            ],
            "properties": {
              "expiresAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "The earliest expiry among `shares`."
              },
              "shares": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PaymentShare"
                },
                "description": "Newest first."
              },
              "split": {
                "type": "boolean",
                "description": "The order has split-payment lines: its shares appear once the order is delivered."
              }
            }
          }
        }
      },
      "Data_PerformerPage": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "kind",
              "id",
              "name",
              "images",
              "gallery",
              "links",
              "shows"
            ],
            "properties": {
              "biography": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/RichText",
                    "description": "In the request language; absent when none is stored for it."
                  }
                ]
              },
              "gallery": {
                "$ref": "#/components/schemas/ImageSet",
                "description": "The gallery photos alone (`artists` / `bands` group: the wide 1920×1005 uploads), the\ntop-priority one per orientation with every size, widest first. `images` prefers the profile\nphoto (`artist_photo` / `band_photo`, often a 500×500 square) and uses the gallery only where\nthat has no orientation, so use this for a page-wide hero. Orientations without one are `[]`."
              },
              "id": {
                "type": "integer",
                "format": "int32",
                "minimum": 0
              },
              "images": {
                "$ref": "#/components/schemas/ImageSet"
              },
              "kind": {
                "$ref": "#/components/schemas/PerformerKind"
              },
              "links": {
                "$ref": "#/components/schemas/PerformerLinks"
              },
              "name": {
                "type": "string"
              },
              "shortDescription": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/RichText"
                  }
                ]
              },
              "shows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ShowCard"
                },
                "description": "Productions on sale with this performer, earliest date first."
              },
              "slug": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/ArtistType",
                    "description": "`artists.type`; always absent for a band."
                  }
                ]
              }
            }
          }
        }
      },
      "Data_PhoneCodeSent": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "challengeId",
              "destination",
              "expiresInSeconds"
            ],
            "properties": {
              "challengeId": {
                "type": "string",
                "description": "Send it back with the code to `POST /me/phone/verify`."
              },
              "destination": {
                "type": "string"
              },
              "expiresInSeconds": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              }
            }
          }
        }
      },
      "Data_PromoDone": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "ok"
            ],
            "properties": {
              "ok": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "Data_PromoStats": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "spins",
              "wins"
            ],
            "properties": {
              "spins": {
                "type": "integer",
                "format": "int64"
              },
              "wins": {
                "type": "integer",
                "format": "int64",
                "description": "Prizes really given: those whose order was bought (owner, 2026-11-11; it counted every win,\nreturned, re-won and revoked ones too, about twice the truth). The free tickets are twice this."
              }
            }
          }
        }
      },
      "Data_PromoStatus": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "active",
              "raffleOnly",
              "identified",
              "confirmed",
              "canSpin",
              "subscribed",
              "reminderOptIn",
              "claimed",
              "seatsChosen",
              "orderUnpaid",
              "holdExpired",
              "confirmExpired",
              "emailConfirmed",
              "raffle",
              "ref",
              "events"
            ],
            "properties": {
              "active": {
                "type": "boolean",
                "description": "A promotion is running."
              },
              "canSpin": {
                "type": "boolean"
              },
              "claimed": {
                "type": "boolean"
              },
              "confirmExpired": {
                "type": "boolean",
                "description": "That link was not clicked in time: the order was cancelled and the prize went back."
              },
              "confirmUntil": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "A guest's prize order waits for the link mailed to its e-mail until then (owner, 2026-11-11)."
              },
              "confirmed": {
                "type": "boolean"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "emailConfirmed": {
                "type": "boolean",
                "description": "The prize order's e-mail is confirmed (the link was clicked); always true for a signed-in\nplayer. Not the raffle's `confirmed`."
              },
              "events": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PromoEvent"
                },
                "description": "The dates that can be won, and the player's own win."
              },
              "holdExpired": {
                "type": "boolean",
                "description": "The last win's seats were not chosen in time."
              },
              "holdUntil": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "identified": {
                "type": "boolean"
              },
              "orderUnpaid": {
                "type": "boolean",
                "description": "The seats are chosen, the order is not paid, and the hold is still running: `GET /promo/claim`\ngives the way back to it."
              },
              "raffle": {
                "$ref": "#/components/schemas/RaffleStatus"
              },
              "raffleOnly": {
                "type": "boolean",
                "description": "Today's prizes are gone: only the raffle is left (PRD M2)."
              },
              "ref": {
                "$ref": "#/components/schemas/Referral"
              },
              "reminderOptIn": {
                "type": "boolean"
              },
              "seatUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "seatsChosen": {
                "type": "boolean"
              },
              "subscribed": {
                "type": "boolean"
              },
              "win": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PromoWin"
                  }
                ]
              }
            }
          }
        }
      },
      "Data_RaffleEntry": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "chances",
              "confirmationSent"
            ],
            "properties": {
              "chances": {
                "type": "integer",
                "format": "int64"
              },
              "confirmationSent": {
                "type": "boolean",
                "description": "A confirmation mail is out for the address; false when this player has already confirmed."
              }
            }
          }
        }
      },
      "Data_Redeemed": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "What the website's server gets for a handoff token.",
            "required": [
              "orderKey",
              "eventId",
              "items"
            ],
            "properties": {
              "eventId": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "expiresAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RedeemedItem"
                }
              },
              "orderKey": {
                "type": "string"
              },
              "showSlug": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "`offerings.slug`; the website builds its `/book-event` and `/checkout` paths from it."
              },
              "startsAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            }
          }
        }
      },
      "Data_RefundView": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "One refund (`payment_refunds`).",
            "required": [
              "id",
              "orderId",
              "paymentIntentId",
              "status",
              "amount",
              "remaining"
            ],
            "properties": {
              "amount": {
                "$ref": "#/components/schemas/Money"
              },
              "id": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "orderId": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "paymentIntentId": {
                "type": "integer",
                "format": "int64",
                "description": "`payment_intents.id` of the refunded payment.",
                "minimum": 0
              },
              "refundTransactionId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "remaining": {
                "$ref": "#/components/schemas/Money",
                "description": "What can still be refunded from this payment (pending refunds counted as done)."
              },
              "status": {
                "type": "string",
                "description": "`pending`, `success`, `failed` or `cancelled`."
              }
            }
          }
        }
      },
      "Data_ReplayAnswer": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "What the replay target answered.",
            "required": [
              "url",
              "status",
              "body"
            ],
            "properties": {
              "body": {
                "type": "string",
                "description": "The first 16 KiB of the answer, as text."
              },
              "contentType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": "integer",
                "format": "int32",
                "minimum": 0
              },
              "url": {
                "type": "string"
              }
            }
          }
        }
      },
      "Data_RevolutPayment": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "Revolut's page for the order.",
            "required": [
              "checkoutUrl",
              "ref"
            ],
            "properties": {
              "checkoutUrl": {
                "type": "string",
                "description": "Revolut's hosted page. The website redirects to it; an app opens it in the system in-app\nbrowser (`SFSafariViewController` / `ASWebAuthenticationSession`, a Custom Tab), never a web\nview. Treat it like the order key: never log or share it."
              },
              "ref": {
                "type": "string",
                "description": "Opaque: send it to `POST /payments/revolut/settle` for the result. Never parse it."
              },
              "token": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Revolut's public token of the same order, for its in-page payment request (Apple Pay / Google\nPay through `RevolutCheckout(token)` with the merchant's public key, website 2026-12-02). The\nresult comes the same way: settle with `ref`, the webhook, the sweep. Like `checkoutUrl`, it can\npay the order: never log or share it. Null if Revolut sent none."
              }
            }
          }
        }
      },
      "Data_SearchResults": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "query",
              "performers",
              "shows"
            ],
            "properties": {
              "performers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PerformerHit"
                }
              },
              "query": {
                "type": "string",
                "description": "The query as matched (trimmed); empty for the full set."
              },
              "shows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ShowCard"
                }
              }
            }
          }
        }
      },
      "Data_SeatMap": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "event",
              "priceGroups",
              "seats",
              "areas",
              "withheldCategories",
              "info"
            ],
            "properties": {
              "areas": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Area"
                },
                "description": "General-admission areas with places left."
              },
              "event": {
                "$ref": "#/components/schemas/SeatMapEvent"
              },
              "info": {
                "$ref": "#/components/schemas/SeatMapInfo"
              },
              "priceGroups": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SeatMapPriceGroup"
                }
              },
              "renderer": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/SeatMapRenderer",
                    "description": "What draws the interactive map; `null`: no interactive map for this date (show the lists)."
                  }
                ]
              },
              "seats": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Seat"
                },
                "description": "Numbered seats with at least one place free."
              },
              "withheldCategories": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WithheldCategory"
                }
              }
            }
          }
        }
      },
      "Data_SeatsReleased": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "released"
            ],
            "properties": {
              "released": {
                "type": "integer",
                "format": "int64",
                "description": "Holds removed.",
                "minimum": 0
              }
            }
          }
        }
      },
      "Data_ShareCreated": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "token",
              "shareUrl",
              "recipientPhone"
            ],
            "properties": {
              "recipientPhone": {
                "type": "string",
                "description": "E.164, as stored."
              },
              "shareUrl": {
                "type": "string",
                "description": "The page the recipient opens to add the ticket to Apple / Google Wallet."
              },
              "token": {
                "type": "string",
                "description": "32 hex characters; the share page's id."
              }
            }
          }
        }
      },
      "Data_ShortLink": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "target"
            ],
            "properties": {
              "target": {
                "type": "string",
                "description": "A path on the website, with its query and fragment as stored (`/book-event/…?…#city--date`),\nor an absolute `https://` address on a subdomain of the site's domain. Redirect to it as is."
              }
            }
          }
        }
      },
      "Data_Show": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "description": "A production with its upcoming dates.",
            "required": [
              "id",
              "name",
              "seo",
              "descriptions",
              "attributes",
              "artists",
              "bands",
              "images",
              "dates"
            ],
            "properties": {
              "artists": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Performer"
                }
              },
              "attributes": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attribute"
                }
              },
              "bands": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Band"
                }
              },
              "category": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CategoryRef"
                  }
                ]
              },
              "dates": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ShowDate"
                },
                "description": "Upcoming dates still on sale or about to be; empty when none."
              },
              "descriptions": {
                "type": "object",
                "description": "By `sub_group` (`main`, `producer`, `partner`, …).",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Description"
                },
                "propertyNames": {
                  "type": "string"
                }
              },
              "facebookPixelId": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The producer's Meta pixel id, for client-side conversion tracking."
              },
              "id": {
                "type": "integer",
                "format": "int32",
                "description": "`offerings.id`.",
                "minimum": 0
              },
              "images": {
                "$ref": "#/components/schemas/ImageSet"
              },
              "name": {
                "type": "string"
              },
              "producerId": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int32",
                "description": "`brands.id` of the producer.",
                "minimum": 0
              },
              "seo": {
                "$ref": "#/components/schemas/Seo"
              },
              "shortDescription": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "slug": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        }
      },
      "Data_SignedIn": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "token",
              "expiresAt",
              "user"
            ],
            "properties": {
              "expiresAt": {
                "type": "string",
                "format": "date-time"
              },
              "token": {
                "type": "string",
                "description": "Send as `Authorization: Bearer {token}`. Valid on the website and v1 too."
              },
              "user": {
                "$ref": "#/components/schemas/Me"
              }
            }
          }
        }
      },
      "Data_SpinResult": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "win"
            ],
            "properties": {
              "claimBy": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "A win not taken by then returns to the pool."
              },
              "event": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/DateHit",
                    "description": "The date won."
                  }
                ]
              },
              "guestToken": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "A guest's first spin: the token for the website's httpOnly cookie."
              },
              "inviteSoldOut": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The friend's date could not be played, by its title: \"Билетите за „X“ свършиха…\" (PRD M8)."
              },
              "win": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "Data_Subscribed": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "subscribed"
            ],
            "properties": {
              "subscribed": {
                "type": "boolean",
                "description": "Always `true`; the answer does not say whether the address was already on the list."
              }
            }
          }
        }
      },
      "Data_TicketCheck": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "status",
              "event",
              "ticket"
            ],
            "properties": {
              "event": {
                "$ref": "#/components/schemas/OrderEvent"
              },
              "scannedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the ticket was let in; `null` unless `status` is `used`."
              },
              "status": {
                "$ref": "#/components/schemas/TicketStatus"
              },
              "ticket": {
                "$ref": "#/components/schemas/CheckedTicket"
              }
            }
          }
        }
      },
      "Data_TransactionDetails": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "transaction"
            ],
            "properties": {
              "transaction": {
                "$ref": "#/components/schemas/WalletTransaction"
              },
              "withdrawal": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/Withdrawal",
                    "description": "The bank withdrawal this transaction pays out, if it is one."
                  }
                ]
              }
            }
          }
        }
      },
      "Data_TransferExtended": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "orderId",
              "expiresAt",
              "extensions"
            ],
            "properties": {
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "description": "The new deadline."
              },
              "extensions": {
                "type": "integer",
                "format": "int64",
                "description": "Extensions so far (at most `bank_transfer_max_extensions`)."
              },
              "orderId": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              }
            }
          }
        }
      },
      "Data_TransferReceived": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "orderId",
              "state",
              "outcome",
              "conflicts"
            ],
            "properties": {
              "conflicts": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SeatConflict"
                }
              },
              "orderId": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "outcome": {
                "type": "string",
                "description": "`received`, `revived`, `seat_conflict` or `already_received`."
              },
              "paidDate": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "state": {
                "type": "integer",
                "format": "int32",
                "description": "`orders.state` now: 4 paid, 8 a seat was gone (refund by bank or agree other seats), or the\nstate of an order received before.",
                "minimum": 0
              }
            }
          }
        }
      },
      "Data_Translations": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "lang",
              "revision",
              "items",
              "htmlKeys"
            ],
            "properties": {
              "htmlKeys": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The keys of `items` whose value is a short text (CMS snippet, may contain HTML): render these\nas HTML and every other value as plain text. Sorted."
              },
              "items": {
                "type": "object",
                "description": "UI key → text. Website short texts (HTML allowed) override dictionary keys of the same name.",
                "additionalProperties": {
                  "type": "string"
                },
                "propertyNames": {
                  "type": "string"
                }
              },
              "lang": {
                "type": "string"
              },
              "revision": {
                "type": "integer",
                "format": "int64",
                "description": "`intern_vars.texts_revision`; admin bumps it when texts change. Also the response ETag.",
                "minimum": 0
              }
            }
          }
        }
      },
      "Data_Unsubscribed": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "unsubscribed",
              "message"
            ],
            "properties": {
              "message": {
                "type": "string",
                "description": "v1's confirmation text (`unsubscribe_success`), in the requested language."
              },
              "unsubscribed": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "Data_Vec_BrandApiDate": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One date of the brand.",
              "required": [
                "id",
                "showId",
                "title",
                "venue",
                "brand",
                "status"
              ],
              "properties": {
                "brand": {
                  "$ref": "#/components/schemas/ApiBrand"
                },
                "city": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "id": {
                  "type": "integer",
                  "format": "int64",
                  "description": "The date (`offerings_events.id`): `GET /brand-api/dates/{id}`.",
                  "minimum": 0
                },
                "showId": {
                  "type": "integer",
                  "format": "int32",
                  "description": "The show (`offerings.id`); its dates share it.",
                  "minimum": 0
                },
                "startsAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "status": {
                  "$ref": "#/components/schemas/BrandDateStatus"
                },
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The show's page on ticket.bg."
                },
                "venue": {
                  "type": "string",
                  "description": "The hall."
                }
              }
            }
          }
        }
      },
      "Data_Vec_BrandVouchers": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One bundle: the totals are the bundle's (the same for each of its brands), the dates the caller's.",
              "required": [
                "bundle",
                "sold",
                "spent",
                "unspent",
                "spentOnDates"
              ],
              "properties": {
                "bundle": {
                  "$ref": "#/components/schemas/BrandVoucherBundle"
                },
                "sold": {
                  "$ref": "#/components/schemas/BrandVouchersSold"
                },
                "spent": {
                  "$ref": "#/components/schemas/BrandVoucherAmount",
                  "description": "Value used so far: `sold` less `unspent`, on the dates of every brand of the bundle."
                },
                "spentOnDates": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrandVoucherDate"
                  },
                  "description": "The caller's dates the vouchers were spent on, soonest first."
                },
                "unspent": {
                  "$ref": "#/components/schemas/BrandVoucherAmount",
                  "description": "Value still on the vouchers, expired ones included."
                }
              }
            }
          }
        }
      },
      "Data_Vec_Captured": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One recorded request.",
              "required": [
                "id",
                "at",
                "method",
                "path",
                "ip",
                "headers",
                "body",
                "bodyBase64",
                "bodySize",
                "truncated"
              ],
              "properties": {
                "at": {
                  "type": "string",
                  "format": "date-time"
                },
                "body": {
                  "type": "string",
                  "description": "The body as text, or base64 when it is not UTF-8 (`bodyBase64`)."
                },
                "bodyBase64": {
                  "type": "boolean"
                },
                "bodySize": {
                  "type": "integer",
                  "description": "The body's full size in bytes.",
                  "minimum": 0
                },
                "headers": {
                  "type": "object",
                  "description": "Lower-case names; credentials are left out.",
                  "additionalProperties": {
                    "type": "string"
                  },
                  "propertyNames": {
                    "type": "string"
                  }
                },
                "id": {
                  "type": "string"
                },
                "ip": {
                  "type": "string",
                  "description": "The caller's address (`ClientIp`, trusted-proxy aware)."
                },
                "method": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                },
                "query": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "truncated": {
                  "type": "boolean",
                  "description": "Only the first 16 KiB were kept."
                }
              }
            }
          }
        }
      },
      "Data_Vec_Language": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "code",
                "name",
                "direction"
              ],
              "properties": {
                "code": {
                  "type": "string",
                  "description": "ISO 639-1 code, lower case."
                },
                "direction": {
                  "type": "string",
                  "description": "`ltr` or `rtl`."
                },
                "id": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0
                },
                "name": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Data_Vec_ListedShow": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ShowCard"
                },
                {
                  "type": "object",
                  "required": [
                    "soldOut"
                  ],
                  "properties": {
                    "soldOut": {
                      "type": "boolean",
                      "description": "At least one coming date is sold out and none is on sale or coming soon."
                    }
                  }
                }
              ],
              "description": "A production card with whether all its coming dates are sold out."
            }
          }
        }
      },
      "Data_Vec_MerchItem": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "merchandiseEventId",
                "name",
                "category",
                "price",
                "deliveryType",
                "properties",
                "images"
              ],
              "properties": {
                "category": {
                  "$ref": "#/components/schemas/MerchCategory"
                },
                "deliveryType": {
                  "$ref": "#/components/schemas/DeliveryType"
                },
                "description": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/Description"
                    }
                  ]
                },
                "id": {
                  "type": "integer",
                  "format": "int32",
                  "description": "`merchandise.id`: what an order line names.",
                  "minimum": 0
                },
                "images": {
                  "$ref": "#/components/schemas/ImageSet"
                },
                "lead": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/Description",
                      "description": "Short lead text."
                    }
                  ]
                },
                "merchandiseEventId": {
                  "type": "integer",
                  "format": "int32",
                  "description": "`merchandise_events.id`: this item's link to the date (carries the price and stock).",
                  "minimum": 0
                },
                "name": {
                  "type": "string"
                },
                "price": {
                  "$ref": "#/components/schemas/Money"
                },
                "properties": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchProperty"
                  }
                },
                "sku": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          }
        }
      },
      "Data_Vec_Order": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "key",
                "state",
                "status",
                "isOwner",
                "canCancel",
                "currency",
                "subTotal",
                "serviceFee",
                "gatewayFee",
                "discount",
                "total",
                "tickets",
                "vouchers",
                "voucherCodes",
                "merchandise",
                "needsRefresh"
              ],
              "properties": {
                "canCancel": {
                  "type": "boolean",
                  "description": "`POST /me/orders/{orderKey}/cancel` would accept it: delivered, owned, every date postponed and\nmore than 48 h away (v1's rule), paid in the site's currency without a discount code or gift\nvouchers, and no ticket used at the entrance yet."
                },
                "createdAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "currency": {
                  "type": "string",
                  "description": "ISO 4217 code the order was placed in."
                },
                "discount": {
                  "$ref": "#/components/schemas/Money"
                },
                "discountKind": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/DiscountKind",
                      "description": "What `discount` is, as in the checkout's `discount.kind`: `wallet` (paid from the account\nbalance; `total` is then only the rest, by card) or `promo` (a discount or gift-voucher code).\nNull without a discount, or for an old discount that names no code."
                    }
                  ]
                },
                "event": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/OrderEvent"
                    }
                  ]
                },
                "gatewayFee": {
                  "$ref": "#/components/schemas/Money"
                },
                "gift": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/OrderGift",
                      "description": "The gift vouchers' card the buyer chose (`POST /orders` `gift`), on the account's own orders\nonly: the wish is the buyer's private text. Null without one (every older order) and on\n`isOwner: false` orders."
                    }
                  ]
                },
                "isOwner": {
                  "type": "boolean",
                  "description": "The order was placed by this account (`client_id`); other visible orders only share its\ne-mail or phone, and cannot be cancelled or shared from it."
                },
                "key": {
                  "type": "string",
                  "description": "The order key (`orders.order_key`)."
                },
                "merchandise": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrderMerchandise"
                  }
                },
                "needsRefresh": {
                  "type": "boolean",
                  "description": "A ticket is not issued yet, or its page link is not ready yet; ask again later."
                },
                "pageUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The online page of the order's tickets (admin's ticket page; the buyer's data, prices and every\nticket), on the account's own orders (`isOwner`) only. Absolute, with `?l=` in the request's\nlanguage. Null while not ready, on orders without tickets, and on `isOwner: false` orders, whose\ntickets carry their own `pageUrl`."
                },
                "serviceFee": {
                  "$ref": "#/components/schemas/Money"
                },
                "state": {
                  "type": "integer",
                  "format": "int32",
                  "description": "`orders.state`.",
                  "minimum": 0
                },
                "status": {
                  "$ref": "#/components/schemas/OrderStatus"
                },
                "subTotal": {
                  "$ref": "#/components/schemas/Money"
                },
                "tickets": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrderTicket"
                  }
                },
                "total": {
                  "$ref": "#/components/schemas/Money"
                },
                "voucherCodes": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VoucherCode"
                  }
                },
                "voucherRecipientEmail": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Who receives the gift vouchers, when the buyer named someone."
                },
                "vouchers": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrderVoucher"
                  }
                }
              }
            }
          }
        }
      },
      "Data_Vec_ProductFeedItem": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "A production as one catalogue item, shown with its earliest advertised date.",
              "required": [
                "id",
                "slug",
                "path",
                "name",
                "productId",
                "category",
                "eventId",
                "startsAt",
                "saleEndsAt",
                "venue",
                "prices",
                "updatedAt",
                "images"
              ],
              "properties": {
                "category": {
                  "$ref": "#/components/schemas/CategoryRef"
                },
                "city": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/City"
                    }
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The producer's description as plain text; `null` when there is none in the language."
                },
                "endsAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "eventId": {
                  "type": "integer",
                  "format": "int64",
                  "description": "The date shown: `GET /events/{eventId}`.",
                  "minimum": 0
                },
                "id": {
                  "type": "integer",
                  "format": "int32",
                  "description": "`offerings.id`.",
                  "minimum": 0
                },
                "images": {
                  "$ref": "#/components/schemas/ImageSet"
                },
                "name": {
                  "type": "string"
                },
                "originalImageUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The main photo's original upload (often a `.jpg`/`.png`), absolute: the file v1's\nproductsFeed gave as `photo` and the Google XML sends as `g:image_link`, so ad catalogues\nkeep the same image. `null` when the product has no photo with a generated size."
                },
                "path": {
                  "type": "string",
                  "description": "Website path, `/bilet/{slug}`."
                },
                "prices": {
                  "$ref": "#/components/schemas/FeedPrices"
                },
                "productId": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0
                },
                "saleEndsAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "saleStartsAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "In the future while the date is in pre-sale."
                },
                "slug": {
                  "type": "string",
                  "description": "Path segment for `GET /shows/{slug}`."
                },
                "startsAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Last change of the product."
                },
                "venue": {
                  "$ref": "#/components/schemas/VenueRef"
                }
              }
            }
          }
        }
      },
      "Data_Vec_ProductionFeedItem": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "A production with every advertised date rolled up.",
              "required": [
                "id",
                "slug",
                "path",
                "name",
                "productId",
                "category",
                "priceFrom",
                "priceTo",
                "firstStartsAt",
                "lastStartsAt",
                "saleEndsAt",
                "dateCount",
                "cities",
                "venues",
                "images"
              ],
              "properties": {
                "brand": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/FeedBrand",
                      "description": "The producer (`products.brand_id`)."
                    }
                  ]
                },
                "category": {
                  "$ref": "#/components/schemas/CategoryRef"
                },
                "cities": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/City"
                  },
                  "description": "Distinct cities, in date order."
                },
                "dateCount": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The production's main description as plain text; `null` when there is none in the language."
                },
                "firstStartsAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "id": {
                  "type": "integer",
                  "format": "int32",
                  "description": "`offerings.id`.",
                  "minimum": 0
                },
                "images": {
                  "$ref": "#/components/schemas/ImageSet"
                },
                "lastStartsAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "name": {
                  "type": "string"
                },
                "path": {
                  "type": "string",
                  "description": "Website path, `/bilet/{slug}`."
                },
                "priceFrom": {
                  "$ref": "#/components/schemas/Money",
                  "description": "Lowest and highest effective adult price over every advertised date."
                },
                "priceTo": {
                  "$ref": "#/components/schemas/Money"
                },
                "productId": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0
                },
                "saleEndsAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "The latest sale end."
                },
                "saleStartsAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "The earliest sale start; in the future while every date is in pre-sale."
                },
                "slug": {
                  "type": "string",
                  "description": "Path segment for `GET /shows/{slug}`."
                },
                "venues": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VenueRef"
                  },
                  "description": "Distinct venues, in date order."
                }
              }
            }
          }
        }
      },
      "Data_Vec_RecentGift": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One recently bought voucher of a bundle («Последни подаръци»): no buyer, recipient, code or order.",
              "required": [
                "amount",
                "paidAt"
              ],
              "properties": {
                "amount": {
                  "$ref": "#/components/schemas/Money",
                  "description": "The voucher's face value; its price when it has none (a percentage voucher)."
                },
                "design": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The gift card's design id (`POST /orders` `gift`); null for orders without one."
                },
                "paidAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When it was paid."
                }
              }
            }
          }
        }
      },
      "Data_Vec_SavedCard": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "A saved card of the signed-in buyer (v1 `getStoredCards`, ModulesCore.php:2488): never the number.",
              "required": [
                "cardIndex",
                "cardMask",
                "expiryDisplay",
                "isDefault"
              ],
              "properties": {
                "cardBrand": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "cardIndex": {
                  "type": "integer",
                  "format": "int32",
                  "description": "Send it as `cardIndex` to `POST /orders/{orderKey}/fibank-payment`.",
                  "minimum": 0
                },
                "cardMask": {
                  "type": "string",
                  "description": "`*****` and the last four digits."
                },
                "expiryDisplay": {
                  "type": "string",
                  "description": "`MM/YY`."
                },
                "isDefault": {
                  "type": "boolean"
                },
                "lastUsedAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                }
              }
            }
          }
        }
      },
      "Data_Vec_ShowCard": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "A production in a listing.",
              "required": [
                "id",
                "name",
                "isOnline",
                "dateCount",
                "images"
              ],
              "properties": {
                "category": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/CategoryRef"
                    }
                  ]
                },
                "city": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/City"
                    }
                  ]
                },
                "dateCount": {
                  "type": "integer",
                  "format": "int32",
                  "description": "How many dates of this production the listing holds.",
                  "minimum": 0
                },
                "eventId": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "format": "int64",
                  "description": "The date the card shows: the nearest one on sale with places left, else the nearest to come\n(`GET /events/{eventId}`). `startsAt`, `venue`, `city` and `isOnline` are this date's.",
                  "minimum": 0
                },
                "id": {
                  "type": "integer",
                  "format": "int32",
                  "description": "`offerings.id`.",
                  "minimum": 0
                },
                "images": {
                  "$ref": "#/components/schemas/ImageSet"
                },
                "isOnline": {
                  "type": "boolean",
                  "description": "The date is online / nationwide (`offerings_events.flags & 8`)."
                },
                "name": {
                  "type": "string"
                },
                "priceFrom": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/Money",
                      "description": "The cheapest price of the date the card shows (`eventId`), exactly as `GET /shows/{slug}` gives\nthat date's `priceFrom` (owner, 2026-12-03: a card is one date throughout). Null when that date\nhas no price on sale (sold out, every seat blocked): show no «от» then."
                    }
                  ]
                },
                "priceTo": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/Money",
                      "description": "That date's dearest price (`GET /shows/{slug}` `priceTo`), null as `priceFrom`."
                    }
                  ]
                },
                "slug": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Path segment for `GET /shows/{slug}`."
                },
                "startsAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "venue": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/VenueRef"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "Data_Vec_SitemapEntry": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "path",
                "kind",
                "updatedAt",
                "changeFreq"
              ],
              "properties": {
                "changeFreq": {
                  "type": "string",
                  "description": "`<changefreq>`: `hourly` for shows, `daily` for everything else (v1's values).",
                  "example": "daily"
                },
                "kind": {
                  "$ref": "#/components/schemas/SitemapKind"
                },
                "path": {
                  "type": "string",
                  "description": "Website path in the default locale (`/artist/{slug}`, `/performer/{slug}`, `/bilet/{slug}`,\n`/c/{slug}`, `/info/{slug}`, `/{slug}`); the website adds its origin and the `/en` alternate.",
                  "example": "/bilet/koncert-x"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Last change of the artist, production or page."
                }
              }
            }
          }
        }
      },
      "Data_Vec_VoucherBundleSummary": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "slug",
                "images"
              ],
              "properties": {
                "id": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0
                },
                "images": {
                  "$ref": "#/components/schemas/BundleImages"
                },
                "name": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Data_VoucherBundle": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "id",
              "name",
              "slug",
              "images",
              "prices",
              "brands",
              "shows"
            ],
            "properties": {
              "brands": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/BrandRef"
                },
                "description": "The organisers whose shows the voucher pays for."
              },
              "id": {
                "type": "integer",
                "format": "int32",
                "minimum": 0
              },
              "images": {
                "$ref": "#/components/schemas/BundleImages"
              },
              "name": {
                "type": "string"
              },
              "prices": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VoucherPrice"
                },
                "description": "The vouchers on sale, cheapest first."
              },
              "shows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ShowCard"
                },
                "description": "Shows of those organisers on sale now."
              },
              "slug": {
                "type": "string"
              },
              "terms": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Terms of use, HTML, in the requested language; `null` when none are written."
              }
            }
          }
        }
      },
      "Data_VoucherCheck": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "code",
              "status",
              "allowedBrands",
              "validForAllBrands",
              "remaining",
              "used",
              "usedFor"
            ],
            "properties": {
              "allowedBrands": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/BrandRef"
                },
                "description": "The organisers the voucher pays for; empty = every organiser (`validForAllBrands`)."
              },
              "bundle": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/BundleRef"
                  }
                ]
              },
              "code": {
                "type": "string"
              },
              "expiredGesture": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/ExpiredGesture",
                    "description": "«Жест от нас»: on an expired voucher, the same code still gives this percent off once, until\nthis day inclusive; `null` when there is none, it is over or it was used."
                  }
                ]
              },
              "faceValue": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/Money",
                    "description": "What the voucher was worth when issued."
                  }
                ]
              },
              "purchasedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "remaining": {
                "$ref": "#/components/schemas/Money"
              },
              "status": {
                "$ref": "#/components/schemas/VoucherStatus"
              },
              "used": {
                "$ref": "#/components/schemas/Money",
                "description": "The total of the completed orders that used it."
              },
              "usedFor": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VoucherUse"
                },
                "description": "Completed orders that used the voucher, newest first."
              },
              "validForAllBrands": {
                "type": "boolean"
              },
              "validFrom": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "example": "2026-01-10"
              },
              "validUntil": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Inclusive: the voucher can be used for the whole of this day.",
                "example": "2027-01-10"
              }
            }
          }
        }
      },
      "Data_WaitlistJoined": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "ok"
            ],
            "properties": {
              "ok": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "Data_Wallet": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "balance",
              "transactions"
            ],
            "properties": {
              "balance": {
                "$ref": "#/components/schemas/Money",
                "description": "What checkout can spend (`users.wallet_balance`), in the site currency."
              },
              "nextBefore": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int64",
                "description": "Pass as `before` for the next page; absent on the last page.",
                "minimum": 0
              },
              "transactions": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WalletTransaction"
                },
                "description": "Newest first."
              }
            }
          }
        }
      },
      "Data_WalletPassOrder": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "orderKey",
              "state",
              "walletAvailable",
              "appleAvailable",
              "googleAvailable",
              "eventIds",
              "ticketsCount",
              "tickets",
              "service"
            ],
            "properties": {
              "appleAvailable": {
                "type": "boolean"
              },
              "eventIds": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64",
                  "minimum": 0
                },
                "description": "Distinct dates of the listed tickets, in ticket order."
              },
              "googleAvailable": {
                "type": "boolean"
              },
              "orderKey": {
                "type": "string"
              },
              "service": {
                "$ref": "#/components/schemas/WalletPassService"
              },
              "state": {
                "type": "integer",
                "format": "int32",
                "description": "`orders.state`; tickets are listed for 6 and 7 only.",
                "minimum": 0
              },
              "tickets": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WalletPassTicket"
                },
                "description": "Not cancelled, in id order."
              },
              "ticketsCount": {
                "type": "integer",
                "minimum": 0
              },
              "walletAvailable": {
                "type": "boolean",
                "description": "Some ticket can be added to a wallet (Apple or Google)."
              }
            }
          }
        }
      },
      "Data_WalletPassTicketDetail": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "id",
              "eventId",
              "eventName",
              "venueName",
              "section",
              "category",
              "cancelled",
              "walletAvailable",
              "appleAvailable",
              "googleAvailable",
              "service"
            ],
            "properties": {
              "appleAvailable": {
                "type": "boolean"
              },
              "cancelled": {
                "type": "boolean"
              },
              "category": {
                "$ref": "#/components/schemas/TicketCategory"
              },
              "eventId": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "eventName": {
                "type": "string",
                "description": "`\"\"` when the date no longer exists."
              },
              "eventStarts": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "googleAvailable": {
                "type": "boolean"
              },
              "id": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "row": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "int32",
                "minimum": 0
              },
              "seat": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "section": {
                "type": "string"
              },
              "service": {
                "$ref": "#/components/schemas/WalletPassService"
              },
              "venueName": {
                "type": "string"
              },
              "walletAvailable": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "Data_Withdrawal": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "id",
              "channel",
              "status",
              "amount",
              "createdAt"
            ],
            "properties": {
              "amount": {
                "$ref": "#/components/schemas/Money"
              },
              "bankName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "channel": {
                "type": "string",
                "description": "`bank` or `paypal`."
              },
              "confirmedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              },
              "executedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "ibanMasked": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Only the last four characters, e.g. `•••• 1234`."
              },
              "id": {
                "type": "integer",
                "format": "int64",
                "minimum": 0
              },
              "recipientName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "rejectReason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the operator rejected it."
              },
              "status": {
                "$ref": "#/components/schemas/WithdrawalStatus"
              }
            }
          }
        }
      },
      "Data_WithdrawalCreated": {
        "type": "object",
        "description": "Successful response body.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "withdrawal",
              "transactionId",
              "balance",
              "codeSentTo",
              "expiresAt"
            ],
            "properties": {
              "balance": {
                "$ref": "#/components/schemas/Money",
                "description": "The wallet balance after the amount was taken."
              },
              "codeSentTo": {
                "type": "string",
                "description": "Where the code went, masked."
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "description": "Confirm before this; afterwards the request is cancelled and the amount returned to the\nwallet."
              },
              "transactionId": {
                "type": "integer",
                "format": "int64",
                "description": "The ledger row holding the amount (`GET /me/wallet/transactions/{id}`).",
                "minimum": 0
              },
              "withdrawal": {
                "$ref": "#/components/schemas/Withdrawal",
                "description": "Status `new` until confirmed with the e-mailed code."
              }
            }
          }
        }
      },
      "DateHit": {
        "type": "object",
        "description": "One date on sale.",
        "required": [
          "eventId",
          "showId",
          "name",
          "isOnline",
          "placesLeft",
          "isOnSale",
          "soldOut"
        ],
        "properties": {
          "category": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CategoryRef"
              }
            ]
          },
          "city": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/City"
              }
            ]
          },
          "eventId": {
            "type": "integer",
            "format": "int64",
            "description": "`offerings_events.id`: `GET /events/{id}`, `GET /events/{id}/seatmap`,\n`POST /events/{id}/best-seats`.",
            "minimum": 0
          },
          "isOnSale": {
            "type": "boolean",
            "description": "Confirmed, not cancelled, inside its sale window right now."
          },
          "isOnline": {
            "type": "boolean",
            "description": "The date is online / nationwide."
          },
          "name": {
            "$ref": "#/components/schemas/LocalizedName"
          },
          "placesLeft": {
            "type": "integer",
            "format": "int64",
            "description": "Places free on the website channel right now (numbered seats plus general-admission places)."
          },
          "priceFrom": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money",
                "description": "The date's cheapest price, exactly as `GET /shows/{slug}` gives this date's `priceFrom`: no\nservice fee (it is added at checkout; owner, 2026-12-03, every date card matches the event\npage). Null when the date has no price on sale (sold out, every seat blocked)."
              }
            ]
          },
          "priceTo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money",
                "description": "The date's dearest price, as `GET /shows/{slug}` `priceTo`; null as `priceFrom`."
              }
            ]
          },
          "showId": {
            "type": "integer",
            "format": "int32",
            "description": "`offerings.id`.",
            "minimum": 0
          },
          "showSlug": {
            "type": [
              "string",
              "null"
            ],
            "description": "`GET /shows/{slug}`."
          },
          "showUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The show's page on the website, in the request language."
          },
          "soldOut": {
            "type": "boolean",
            "description": "No place left on the website channel."
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "venue": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/VenueRef",
                "description": "Localised to the request language."
              }
            ]
          }
        }
      },
      "DateSearchResults": {
        "type": "object",
        "required": [
          "query",
          "dates"
        ],
        "properties": {
          "city": {
            "type": [
              "string",
              "null"
            ],
            "description": "The city slug filtered on."
          },
          "dates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DateHit"
            }
          },
          "from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "query": {
            "type": "string",
            "description": "The text as matched (trimmed); empty when none was given."
          },
          "to": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "DateState": {
        "type": "string",
        "description": "Sale state of one date.",
        "enum": [
          "onSale",
          "comingSoon",
          "soldOut",
          "saleEnded"
        ]
      },
      "DeletionCodeSent": {
        "type": "object",
        "required": [
          "challengeId",
          "channel",
          "destination",
          "expiresInSeconds"
        ],
        "properties": {
          "challengeId": {
            "type": "string",
            "description": "Send it back with the code to `POST /me/deletion/confirm`."
          },
          "channel": {
            "type": "string",
            "description": "`email`, or `sms` for an account without an e-mail."
          },
          "destination": {
            "type": "string",
            "description": "Masked, e.g. `u***@example.com`."
          },
          "expiresInSeconds": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          }
        }
      },
      "DeletionConfirm": {
        "type": "object",
        "required": [
          "challengeId",
          "code"
        ],
        "properties": {
          "challengeId": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        }
      },
      "DeliveryType": {
        "type": "string",
        "enum": [
          "physical",
          "digital",
          "onEvent"
        ]
      },
      "Description": {
        "type": "object",
        "description": "An HTML text (CMS descriptions, biographies, notes) with its plain-text rendering.",
        "required": [
          "html",
          "text"
        ],
        "properties": {
          "html": {
            "type": "string"
          },
          "text": {
            "type": "string",
            "description": "The same text without markup, entities decoded, whitespace collapsed."
          }
        }
      },
      "DictionaryEntry": {
        "type": "object",
        "required": [
          "key",
          "value"
        ],
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string",
            "description": "The text in the requested language; for a key created just now, the source text (or the key)."
          }
        }
      },
      "Direction": {
        "type": "string",
        "enum": [
          "credit",
          "debit"
        ]
      },
      "Discount": {
        "type": "object",
        "required": [
          "kind",
          "amount"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "codeAmount": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money",
                "description": "A fixed-amount code (a gift voucher): its whole remaining value, which may exceed `amount`\n(v1's line `-amount ( от codeAmount )`). Null otherwise."
              }
            ]
          },
          "kind": {
            "type": "string",
            "description": "`promo` (a discount or gift-voucher code) or `wallet` (the account balance)."
          },
          "percent": {
            "type": [
              "string",
              "null"
            ],
            "description": "v1's line `P% [ -amount ]`: a percent code's percent, or the share of the total the wallet\ncovers (100 when it covers all). Null for a fixed amount, a seat-price or a free-tickets code.",
            "example": "10.00"
          }
        }
      },
      "DiscountCodeSent": {
        "type": "object",
        "required": [
          "marked"
        ],
        "properties": {
          "marked": {
            "type": "boolean",
            "description": "This call marked the code as handed out. `false`: it was already marked, or the code is\nunknown or inactive; hand out another."
          }
        }
      },
      "DiscountError": {
        "type": "string",
        "enum": [
          "invalidCode",
          "tooManyItems",
          "tooFewItems",
          "audienceRestricted",
          "notForThisShow",
          "notForThisDate",
          "notForThisOrganiser"
        ]
      },
      "DiscountKind": {
        "type": "string",
        "enum": [
          "promo",
          "wallet"
        ]
      },
      "DiscountRequest": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string"
          }
        }
      },
      "EmailCheck": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "Either or both: one prize per e-mail and per phone."
          },
          "phone": {
            "type": "string"
          }
        }
      },
      "ErrorBody": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          }
        }
      },
      "ErrorDetail": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "Stable machine-readable code, e.g. `event_not_found`, `validation_failed`."
          },
          "fields": {
            "type": [
              "object",
              "null"
            ],
            "description": "Per-field validation messages, keyed by request field name.",
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "message": {
            "type": "string"
          }
        }
      },
      "EventDetail": {
        "type": "object",
        "description": "A date with its prices, for the booking screen.",
        "required": [
          "id",
          "show",
          "state",
          "venue",
          "serviceFee",
          "taxPercent",
          "priceGroups",
          "withheldCategories",
          "descriptions",
          "artists",
          "bands",
          "images"
        ],
        "properties": {
          "artists": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Performer"
            }
          },
          "bands": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Band"
            }
          },
          "category": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CategoryRef"
              }
            ]
          },
          "city": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/City"
              }
            ]
          },
          "descriptions": {
            "type": "object",
            "description": "By `sub_group` (`main`, `producer`, `partner`, …).",
            "additionalProperties": {
              "$ref": "#/components/schemas/Description"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "endsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "facebookPixelId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The producer's Meta pixel id, for client-side conversion tracking."
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "`offerings_events.id`.",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet",
            "description": "The date's own photos, else the production's, per orientation."
          },
          "page": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BookingPage"
              }
            ]
          },
          "priceGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriceGroup"
            }
          },
          "producer": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Producer"
              }
            ]
          },
          "saleEndsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "saleStartsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "serviceFee": {
            "$ref": "#/components/schemas/Money",
            "description": "Per-ticket service fee added at checkout."
          },
          "show": {
            "$ref": "#/components/schemas/ShowRef"
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "state": {
            "$ref": "#/components/schemas/DateState"
          },
          "taxPercent": {
            "type": "string",
            "description": "`products.tax_percent`.",
            "example": "0.00"
          },
          "venue": {
            "$ref": "#/components/schemas/Venue"
          },
          "withheldCategories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WithheldCategory"
            }
          }
        }
      },
      "EventQueued": {
        "type": "object",
        "required": [
          "queued"
        ],
        "properties": {
          "queued": {
            "type": "boolean"
          }
        }
      },
      "ExpiredGesture": {
        "type": "object",
        "required": [
          "percent",
          "until"
        ],
        "properties": {
          "percent": {
            "type": "string",
            "example": "10.00"
          },
          "until": {
            "type": "string",
            "format": "date",
            "example": "2026-12-14"
          }
        }
      },
      "ExtendBody": {
        "type": "object",
        "required": [
          "adminUserId"
        ],
        "properties": {
          "adminUserId": {
            "type": "integer",
            "format": "int64",
            "description": "The operator (`users.id`), kept on the payment's note.",
            "minimum": 0
          }
        }
      },
      "FacebookCustomData": {
        "type": "object",
        "description": "`custom_data` of a `FacebookEvent`. Only these keys are queued; texts are cut to the byte\nlengths v1 uses.",
        "properties": {
          "content_category": {
            "type": [
              "string",
              "null"
            ]
          },
          "content_ids": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "content_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "content_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "contents": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object"
            },
            "description": "Items that carry `id`, `quantity` and `item_price` (others are dropped); passed through as sent."
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "num_items": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64"
          },
          "order_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "search_string": {
            "type": [
              "string",
              "null"
            ]
          },
          "value": {
            "type": [
              "number",
              "null"
            ],
            "format": "double"
          }
        }
      },
      "FacebookEvent": {
        "type": "object",
        "description": "One browser event for Meta's Conversions API. It keeps v1's field names (Meta's), so the website's\n`scTrack` only changes the URL. Values are read as loosely as v1 reads them: a number where a\nstring is expected is fine.",
        "required": [
          "eventName",
          "pixelIDs"
        ],
        "properties": {
          "action_source": {
            "type": [
              "string",
              "null"
            ],
            "description": "Default `website`."
          },
          "cuId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legacy flat form of `user_data.external_id`."
          },
          "custom_data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FacebookCustomData"
              }
            ]
          },
          "data": {
            "type": [
              "object",
              "null"
            ],
            "description": "Legacy wrapper: an object here is read as the whole event (System.php:437-439)."
          },
          "eventName": {
            "type": "string",
            "description": "A Meta standard event; any other name is queued as `PageView`.",
            "example": "ViewContent"
          },
          "event_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The deduplication id shared with the browser pixel (first 200 bytes)."
          },
          "event_source_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "event_time": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Unix seconds, default now. Raised to the `fbc` click time and capped at now."
          },
          "fbc": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legacy flat form of `user_data.fbc`."
          },
          "fbp": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legacy flat form of `user_data.fbp`, read when that is absent."
          },
          "pixelIDs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The pixels to deliver to: 4–49 characters each, duplicates dropped, at most 10 kept. At least\none is required."
          },
          "search_string": {
            "type": [
              "string",
              "null"
            ],
            "description": "A search text (first 150 bytes)."
          },
          "userAgent": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legacy flat form of `user_data.client_user_agent`."
          },
          "user_data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FacebookUserData"
              }
            ]
          }
        }
      },
      "FacebookUserData": {
        "type": "object",
        "description": "`user_data` of a `FacebookEvent`. `em`, `ph`, `fn` and `ln` may be raw or SHA-256 hex. They are\nnormalised by Meta's rules (a BG phone `0888…` becomes `359888…`) and hashed here, so raw personal\ndata is never queued.",
        "properties": {
          "client_user_agent": {
            "type": [
              "string",
              "null"
            ]
          },
          "em": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The browser's client UUID (first 150 bytes), queued unhashed."
          },
          "fbc": {
            "type": [
              "string",
              "null"
            ],
            "description": "`fb.{subdomainIndex}.{creationTimeMs}.{fbclid}`. The creation time is pinned to the first one\nseen for the click and never later than now."
          },
          "fbp": {
            "type": [
              "string",
              "null"
            ]
          },
          "fn": {
            "type": [
              "string",
              "null"
            ]
          },
          "ln": {
            "type": [
              "string",
              "null"
            ]
          },
          "ph": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "FaqItem": {
        "type": "object",
        "required": [
          "question",
          "answer"
        ],
        "properties": {
          "answer": {
            "type": "string",
            "description": "HTML."
          },
          "question": {
            "type": "string"
          }
        }
      },
      "Features": {
        "type": "object",
        "required": [
          "cardPayments",
          "walletPasses",
          "seatMaps"
        ],
        "properties": {
          "cardPayments": {
            "type": "boolean",
            "description": "`POST /orders/{key}/card-payment` works: this host has the Stripe keys and the `stripe` gateway."
          },
          "seatMaps": {
            "$ref": "#/components/schemas/SeatMapFeatures",
            "description": "Which seat-map renderers `GET /events/{id}/seatmap` can name in `renderer`."
          },
          "walletPasses": {
            "$ref": "#/components/schemas/WalletPassFeatures",
            "description": "Wallet passes can be generated for this platform's wallet."
          }
        }
      },
      "FeedBrand": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "FeedPrices": {
        "type": "object",
        "description": "The five category prices of the cheapest group. A preferential category is `null` when it is\nnot offered: unpriced, priced 0, or withheld by a preference rule.",
        "required": [
          "adult"
        ],
        "properties": {
          "adult": {
            "$ref": "#/components/schemas/Money"
          },
          "child": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "disabled": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "retiree": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "student": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          }
        }
      },
      "FiBankPayment": {
        "type": "object",
        "description": "FiBank's payment page for the order. Treat `paymentUrl` like the order key: never log or share it.",
        "required": [
          "provider",
          "paymentUrl",
          "amount"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money",
            "description": "What the card is charged: the order's total."
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Until then the same page is handed out again; after, a new one is made."
          },
          "paymentUrl": {
            "type": "string",
            "description": "Open it in the system browser sheet (`SFSafariViewController` on iOS, a Custom Tab on Android),\nnot a web view: FiBank's page offers Apple Pay and Google Pay there. FiBank then returns the\nbuyer to the website, which settles the order; poll `GET /orders/{orderKey}` meanwhile."
          },
          "provider": {
            "type": "string",
            "description": "`fiBank`."
          }
        }
      },
      "FiBankSettleBody": {
        "type": "object",
        "description": "FiBank's return, as the website's `/payment/fibank` route forwards it: `transId` (FiBank's\n`trans_id`) and the buyer's address. v1's names `trans_id` / `client_ip_addr` are accepted too, and\n`env` is ignored: the FiBank server is this host's (`RAPI_ENV`).",
        "properties": {
          "clientIp": {
            "type": "string"
          },
          "transId": {
            "type": "string"
          }
        }
      },
      "FiBankSettled": {
        "type": "object",
        "description": "The answer the website's `/payment/fibank` route reads (v1's `data`, FIBANK.md §1.3): `state` 0\npaid, 10 waiting for the bank, 2 declined, 1 not registered; the route redirects to\n`/payment/success` for 0 and 10, else `/payment/failure`.",
        "required": [
          "state",
          "message",
          "extra"
        ],
        "properties": {
          "extra": {
            "type": "string",
            "description": "The decline reason (FiBank's code, translated) for 2 and 10."
          },
          "message": {
            "type": "string"
          },
          "order": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FiBankSettledOrder",
                "description": "The order, when the transaction is known: what the website's result page reads."
              }
            ]
          },
          "state": {
            "type": "integer",
            "format": "int32",
            "description": "0 paid, 10 the bank has not finished (pending), 2 declined, 1 not registered (see `message`).",
            "minimum": 0
          }
        }
      },
      "FiBankSettledOrder": {
        "type": "object",
        "description": "v1's order fields the website keeps (`lib/paymentResultData.js`), with v1's names and types.",
        "required": [
          "id",
          "created_dt",
          "total",
          "currency"
        ],
        "properties": {
          "created_dt": {
            "type": "string",
            "description": "`YYYY-MM-DD HH:MM:SS`, Sofia time."
          },
          "currency": {
            "type": "string"
          },
          "gateway": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "orderKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "The order key, for the website's server only (`X-Handoff-Key`): the buyer often returns from\nthe bank in another browser than the one that ordered. Only on the first call for this return\n(`transId` / `ref`) and within 30 minutes of the order's newest payment page; otherwise\nabsent (a replayed return URL), and the page falls back to `resultRef` or the tab's key."
          },
          "resultRef": {
            "type": [
              "string",
              "null"
            ],
            "description": "The order's lasting result-page code (`GET /order-results/{ref}`, the website's\n`/payment/success?o=`); absent on a host without `ORDER_PAGE_SECRET`."
          },
          "total": {
            "type": "string",
            "description": "`\"45.00\"`."
          }
        }
      },
      "FiBankStart": {
        "type": "object",
        "description": "FiBank OneClick for a signed-in buyer (optional; no body = a plain card payment).",
        "properties": {
          "cardIndex": {
            "type": "integer",
            "format": "int32",
            "description": "A `cardIndex` from `GET /me/cards`.",
            "minimum": 0
          },
          "oneClick": {
            "type": "boolean",
            "description": "With `cardIndex` above 0: pay with that saved card. With `cardIndex` 0 or absent: pay, and\nFiBank remembers the card for next time. Needs a session."
          }
        }
      },
      "FiBankStatus": {
        "type": "object",
        "description": "FiBank's view of a payment (admin's \"Check Status\").",
        "required": [
          "orderId",
          "paymentIntentId",
          "orderState",
          "state",
          "result"
        ],
        "properties": {
          "approvalCode": {
            "type": [
              "string",
              "null"
            ]
          },
          "cardNumber": {
            "type": [
              "string",
              "null"
            ],
            "description": "FiBank's mask, e.g. `437851******2074`."
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "orderState": {
            "type": "integer",
            "format": "int32",
            "description": "`orders.state` now (unchanged by the check).",
            "minimum": 0
          },
          "paymentIntentId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "result": {
            "type": "string",
            "description": "FiBank's `RESULT`, e.g. `OK`, `FAILED`."
          },
          "resultCode": {
            "type": [
              "string",
              "null"
            ]
          },
          "resultText": {
            "type": [
              "string",
              "null"
            ],
            "description": "The code's meaning (v1's table, English)."
          },
          "rrn": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": "integer",
            "format": "int32",
            "description": "0 paid, 1 declined (`TIMEOUT` included), 2 not final yet (`PENDING`, `CREATED`).",
            "minimum": 0
          },
          "threeDSecure": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "FiBankStatusBody": {
        "type": "object",
        "required": [
          "paymentIntentId"
        ],
        "properties": {
          "paymentIntentId": {
            "type": "integer",
            "format": "int64",
            "description": "`payment_intents.id` of the FiBank payment.",
            "minimum": 0
          }
        }
      },
      "GaOption": {
        "type": "object",
        "required": [
          "seatId",
          "priceGroupId",
          "placesLeft",
          "pricePerSeat",
          "total"
        ],
        "properties": {
          "placesLeft": {
            "type": "integer",
            "format": "int64"
          },
          "priceGroupId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "pricePerSeat": {
            "$ref": "#/components/schemas/Money"
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "description": "The area's id: an order line names it with `count`.",
            "minimum": 0
          },
          "section": {
            "type": [
              "string",
              "null"
            ]
          },
          "total": {
            "$ref": "#/components/schemas/Money"
          }
        }
      },
      "GateCode": {
        "type": "object",
        "description": "What the gate checker scans for this ticket.",
        "required": [
          "ticketId",
          "value",
          "formats",
          "qrErrorCorrection"
        ],
        "properties": {
          "formats": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The symbologies the PDF prints it in; render either. `qr` and `code128`."
          },
          "qrErrorCorrection": {
            "type": "string",
            "description": "The PDF's QR error-correction level.",
            "example": "H"
          },
          "ticketId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "value": {
            "type": "string",
            "description": "`00{serial}00`: exactly what the ticket PDF prints. A credential: keep it out of logs,\nanalytics and crash reports.",
            "example": "00184092800"
          }
        }
      },
      "GiftRequest": {
        "type": "object",
        "description": "The gift card of an order's vouchers (`POST /orders` `gift`).",
        "required": [
          "design"
        ],
        "properties": {
          "design": {
            "type": "string",
            "description": "The card design's id (the website's list, e.g. `birthday`): 1 to 16 of `a-z`, `0-9`, `-`, `_`."
          },
          "from": {
            "type": [
              "string",
              "null"
            ],
            "description": "«От», at most 24 characters."
          },
          "message": {
            "type": [
              "string",
              "null"
            ],
            "description": "The wish, at most 90 characters."
          },
          "recipientPhone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Also send the voucher to this phone (Viber, else SMS). A real mobile number with its country\ncode (or a Bulgarian one), else `400 validation_failed` (`fields[\"gift.recipientPhone\"]`)."
          },
          "sendAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When to send it, ISO-8601 with an offset: from 15 minutes to 12 months ahead\n(`fields[\"gift.sendAt\"]`). Null or absent: at once, after payment."
          },
          "to": {
            "type": [
              "string",
              "null"
            ],
            "description": "«За», at most 24 characters. `to`, `message` and `from` may not contain `<`, `>`, control\ncharacters, U+2028/U+2029, bidi controls or a web address / e-mail domain / IPv4 address\n(`400 validation_failed`, `fields[\"gift.to\"]` …); `&`, quotes and emoji (with U+200D) are fine."
          }
        }
      },
      "GoogleWalletLink": {
        "type": "object",
        "description": "Google's \"Add to Google Wallet\" link.",
        "required": [
          "saveUrl"
        ],
        "properties": {
          "saveUrl": {
            "type": "string",
            "description": "`https://pay.google.com/gp/v/save/{jwt}`: open it (or hand it to the Google Wallet API)."
          }
        }
      },
      "Handoff": {
        "type": "object",
        "description": "A handoff link for an order.",
        "required": [
          "url",
          "expiresAt"
        ],
        "properties": {
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "url": {
            "type": "string",
            "description": "`{website}/checkout/handoff?h={token}&e={showSlug}`: single use; carries no order key."
          }
        }
      },
      "Health": {
        "type": "object",
        "required": [
          "status",
          "version",
          "commit",
          "env",
          "db",
          "redis"
        ],
        "properties": {
          "commit": {
            "type": "string"
          },
          "db": {
            "type": "string"
          },
          "env": {
            "type": "string"
          },
          "redis": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "HeldSeat": {
        "type": "object",
        "required": [
          "seatId",
          "count",
          "categories"
        ],
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "row": {
            "type": [
              "string",
              "null"
            ]
          },
          "seat": {
            "type": [
              "string",
              "null"
            ]
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "section": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Hold": {
        "type": "object",
        "required": [
          "eventId",
          "status",
          "seats",
          "handedOff",
          "message"
        ],
        "properties": {
          "continueUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the person continues: the handoff link (single use, ≤ 15 minutes), or the date's page."
          },
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the hold ends; the person must pay before then."
          },
          "handedOff": {
            "type": "boolean",
            "description": "The person has opened the link: the seats now belong to their browser's checkout."
          },
          "holdId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Opaque id for `GET` / `DELETE /agent/holds/{holdId}`; `null` when nothing was held."
          },
          "message": {
            "type": "string",
            "description": "A sentence the agent can show as is."
          },
          "reason": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HoldReason"
              }
            ]
          },
          "seats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HeldSeat"
            }
          },
          "status": {
            "$ref": "#/components/schemas/HoldStatus"
          },
          "total": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money",
                "description": "What the person pays, fees included (the checkout's own price)."
              }
            ]
          }
        }
      },
      "HoldReason": {
        "type": "string",
        "enum": [
          "handoff",
          "quota"
        ]
      },
      "HoldRequest": {
        "type": "object",
        "required": [
          "eventId",
          "tickets"
        ],
        "properties": {
          "eventId": {
            "type": "integer",
            "format": "int64",
            "description": "The date (`offerings_events.id`).",
            "minimum": 0
          },
          "tickets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HoldTicket"
            },
            "description": "The seats, as `GET /events/{id}/seatmap` or best-seats name them; at most 10 tickets in all."
          }
        }
      },
      "HoldStatus": {
        "type": "string",
        "enum": [
          "requires_escalation",
          "completed",
          "expired",
          "cancelled"
        ]
      },
      "HoldTicket": {
        "type": "object",
        "required": [
          "seatId"
        ],
        "properties": {
          "categories": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "One category letter per ticket (`a` adult, `c` child, `s` student, `d` disabled, `r` retiree)."
          },
          "count": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "1 for a numbered seat, the number of places in a general-admission area. Default 1.",
            "minimum": 0
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          }
        }
      },
      "Home": {
        "type": "object",
        "required": [
          "slider",
          "top",
          "sections",
          "recommended"
        ],
        "properties": {
          "city": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/City",
                "description": "The filter that was applied, if any."
              }
            ]
          },
          "recommended": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShowCard"
            },
            "description": "Signed in: up to 10 productions recommended for the user (\"Препоръчани за теб\"), which the\nsections then list first. Empty when signed out or when there is nothing to recommend."
          },
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HomeSection"
            }
          },
          "slider": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShowCard"
            }
          },
          "top": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TopCard"
            },
            "description": "Editorially ranked productions (`hp_top_priority`), by rank; empty when none is ranked."
          }
        }
      },
      "HomeSection": {
        "type": "object",
        "required": [
          "category",
          "totalCount",
          "shows"
        ],
        "properties": {
          "category": {
            "$ref": "#/components/schemas/CategoryRef"
          },
          "shows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShowCard"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32",
            "description": "Productions of this category on sale (the section shows the first few).",
            "minimum": 0
          }
        }
      },
      "Image": {
        "type": "object",
        "required": [
          "url",
          "width",
          "height"
        ],
        "properties": {
          "height": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "url": {
            "type": "string"
          },
          "width": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          }
        }
      },
      "ImageSet": {
        "type": "object",
        "description": "The chosen photo of each orientation, as every generated size. An orientation with no photo is `[]`.",
        "required": [
          "landscape",
          "portrait",
          "square"
        ],
        "properties": {
          "landscape": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Image"
            }
          },
          "portrait": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Image"
            }
          },
          "square": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Image"
            }
          }
        }
      },
      "Invoice": {
        "type": "object",
        "description": "The invoice details saved on an order (`orders_invoicing`; v1 `GroupOrders::invoiceForOrder`).\n`company_vat` holds the ЕИК and `company_int_vat` the ДДС № (admin's reading).",
        "required": [
          "companyName",
          "eik",
          "vat",
          "address",
          "city",
          "mol"
        ],
        "properties": {
          "address": {
            "type": "string"
          },
          "city": {
            "type": "string",
            "description": "Free text (v1 since 2026-10-25); older rows give their city's name."
          },
          "companyName": {
            "type": "string"
          },
          "eik": {
            "type": "string",
            "description": "ЕИК / БУЛСТАТ, 9 or 13 digits."
          },
          "mol": {
            "type": "string",
            "description": "The responsible person (МОЛ), `\"\"` when none."
          },
          "vat": {
            "type": "string",
            "description": "ДДС № (e.g. `BG123456789`), `\"\"` when none."
          }
        }
      },
      "InvoicingRequest": {
        "type": "object",
        "required": [
          "companyName",
          "eik",
          "address"
        ],
        "properties": {
          "address": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ],
            "description": "Free text, up to 100 characters."
          },
          "companyName": {
            "type": "string"
          },
          "eik": {
            "type": "string",
            "description": "ЕИК / БУЛСТАТ: 9 or 13 digits (spaces are ignored)."
          },
          "mol": {
            "type": [
              "string",
              "null"
            ],
            "description": "The responsible person (МОЛ), optional."
          },
          "vat": {
            "type": [
              "string",
              "null"
            ],
            "description": "ДДС №, e.g. `BG123456789`; optional."
          }
        }
      },
      "Language": {
        "type": "object",
        "required": [
          "id",
          "code",
          "name",
          "direction"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "ISO 639-1 code, lower case."
          },
          "direction": {
            "type": "string",
            "description": "`ltr` or `rtl`."
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "name": {
            "type": "string"
          }
        }
      },
      "ListedShow": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ShowCard"
          },
          {
            "type": "object",
            "required": [
              "soldOut"
            ],
            "properties": {
              "soldOut": {
                "type": "boolean",
                "description": "At least one coming date is sold out and none is on sale or coming soon."
              }
            }
          }
        ],
        "description": "A production card with whether all its coming dates are sold out."
      },
      "ListingGroup": {
        "type": "object",
        "description": "The productions of one category in one city.",
        "required": [
          "shows"
        ],
        "properties": {
          "category": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CategoryRef"
              }
            ]
          },
          "city": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/City"
              }
            ]
          },
          "shows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShowCard"
            }
          }
        }
      },
      "LlmsData": {
        "type": "object",
        "required": [
          "shows",
          "pages"
        ],
        "properties": {
          "pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LlmsPage"
            },
            "description": "CMS pages marked for the sitemap, category pages excluded."
          },
          "shows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LlmsShow"
            },
            "description": "Productions on sale, by their next date."
          }
        }
      },
      "LlmsPage": {
        "type": "object",
        "required": [
          "name",
          "path"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The page's menu name in the language, else its internal name."
          },
          "path": {
            "type": "string",
            "description": "Website path: `/info/{slug}` for text pages, else `/{slug}`."
          }
        }
      },
      "LlmsShow": {
        "type": "object",
        "required": [
          "name",
          "path"
        ],
        "properties": {
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The production's short description as plain text; `null` when it has none."
          },
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string",
            "description": "Website path, `/bilet/{slug}`."
          }
        }
      },
      "LocalizedName": {
        "type": "object",
        "description": "A name in both of the site's languages (each falls back to the other, then to the stored name).",
        "required": [
          "bg",
          "en"
        ],
        "properties": {
          "bg": {
            "type": "string"
          },
          "en": {
            "type": "string"
          }
        }
      },
      "LockReason": {
        "type": "string",
        "description": "Why a cart line cannot be booked.",
        "enum": [
          "unknownSeat",
          "inactive",
          "sold",
          "remote",
          "held",
          "notForSale",
          "notEnoughPlaces"
        ]
      },
      "LockedLine": {
        "type": "object",
        "required": [
          "seatId",
          "count",
          "reason"
        ],
        "properties": {
          "available": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Places still free in a general-admission area."
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "reason": {
            "$ref": "#/components/schemas/LockReason"
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          }
        }
      },
      "MailClick": {
        "type": "object",
        "required": [
          "mcrid"
        ],
        "properties": {
          "mcrid": {
            "type": "string",
            "description": "The `mcrid` query parameter of the campaign link (`mail_campaign_recipients.id`), as a string\nor a number."
          }
        }
      },
      "Me": {
        "type": "object",
        "required": [
          "id",
          "names",
          "cityId",
          "countryId",
          "roles"
        ],
        "properties": {
          "cityId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "countryId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "names": {
            "type": "string"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Staff roles in v1's fixed order (`admin`, `super_admin`, `product_admin`, `partner`,\n`producer`, `cashier`, `checker`); `[]` for a customer."
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the phone was last set (`users.updated_on`, written by v1's and v2's phone change);\n`null` when never. v1 sent it as unix seconds (`updated_on`); the website hides \"change\nphone\" for 24 h after it (v1 and v2 do not enforce that)."
          }
        }
      },
      "MeUpdate": {
        "type": "object",
        "required": [
          "names"
        ],
        "properties": {
          "names": {
            "type": "string",
            "description": "Full name as printed on tickets; up to 240 characters (longer is cut, as in v1). Not blank."
          }
        }
      },
      "Menu": {
        "type": "object",
        "required": [
          "categories",
          "cities"
        ],
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MenuCategory"
            }
          },
          "cities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MenuCity"
            }
          }
        }
      },
      "MenuCategory": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "MenuCity": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "country": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "MerchCategory": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "name": {
            "type": "string"
          }
        }
      },
      "MerchItem": {
        "type": "object",
        "required": [
          "id",
          "merchandiseEventId",
          "name",
          "category",
          "price",
          "deliveryType",
          "properties",
          "images"
        ],
        "properties": {
          "category": {
            "$ref": "#/components/schemas/MerchCategory"
          },
          "deliveryType": {
            "$ref": "#/components/schemas/DeliveryType"
          },
          "description": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Description"
              }
            ]
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "`merchandise.id`: what an order line names.",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "lead": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Description",
                "description": "Short lead text."
              }
            ]
          },
          "merchandiseEventId": {
            "type": "integer",
            "format": "int32",
            "description": "`merchandise_events.id`: this item's link to the date (carries the price and stock).",
            "minimum": 0
          },
          "name": {
            "type": "string"
          },
          "price": {
            "$ref": "#/components/schemas/Money"
          },
          "properties": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchProperty"
            }
          },
          "sku": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "MerchProperty": {
        "type": "object",
        "required": [
          "id",
          "name",
          "type",
          "affectsStock",
          "values"
        ],
        "properties": {
          "affectsStock": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "name": {
            "type": "string",
            "description": "e.g. \"Size\"."
          },
          "type": {
            "type": "string",
            "description": "`select`, `text`, `number` or `boolean`."
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchPropertyValue"
            }
          }
        }
      },
      "MerchPropertyValue": {
        "type": "object",
        "required": [
          "id",
          "value",
          "priceAdjustment",
          "soldOut"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "priceAdjustment": {
            "$ref": "#/components/schemas/Money",
            "description": "Added to the item price when this value is chosen; may be negative."
          },
          "soldOut": {
            "type": "boolean",
            "description": "Out of stock (`flags` bit 1): listed, as in v1, but an order with it is refused with\n`409 merchandise_sold_out`."
          },
          "value": {
            "type": "string"
          }
        }
      },
      "MerchandiseLine": {
        "type": "object",
        "required": [
          "orderItemId",
          "merchandiseId",
          "qty",
          "options",
          "unitPrice",
          "lineTotal"
        ],
        "properties": {
          "lineTotal": {
            "$ref": "#/components/schemas/Money"
          },
          "merchandiseId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchandiseLineOption"
            }
          },
          "orderItemId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "qty": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "unitPrice": {
            "$ref": "#/components/schemas/Money"
          }
        }
      },
      "MerchandiseLineOption": {
        "type": "object",
        "required": [
          "valueId"
        ],
        "properties": {
          "property": {
            "type": [
              "string",
              "null"
            ]
          },
          "propertyId": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "minimum": 0
          },
          "value": {
            "type": [
              "string",
              "null"
            ]
          },
          "valueId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          }
        }
      },
      "MerchandiseOption": {
        "type": "object",
        "required": [
          "propertyId",
          "property",
          "valueId",
          "value"
        ],
        "properties": {
          "property": {
            "type": "string"
          },
          "propertyId": {
            "type": "integer",
            "format": "int32"
          },
          "value": {
            "type": "string"
          },
          "valueId": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "MerchandiseRequest": {
        "type": "object",
        "required": [
          "merchandiseId",
          "qty"
        ],
        "properties": {
          "merchandiseId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "properties": {
            "type": "object",
            "description": "Property id → value id, e.g. `{\"7\": 104}` for size XL.",
            "additionalProperties": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "qty": {
            "type": "integer",
            "format": "int32",
            "description": "1–10.",
            "minimum": 0
          }
        }
      },
      "MerchandiseUpdate": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchandiseRequest"
            },
            "description": "The full list of merchandise lines; an empty list removes them all."
          }
        }
      },
      "MessageReceived": {
        "type": "object",
        "required": [
          "received"
        ],
        "properties": {
          "received": {
            "type": "boolean"
          }
        }
      },
      "MinVersion": {
        "type": "object",
        "description": "Dotted version strings (`1.0.3`), compared number by number (`1.0.10` is newer than `1.0.9`).",
        "properties": {
          "android": {
            "type": [
              "string",
              "null"
            ]
          },
          "ios": {
            "type": [
              "string",
              "null"
            ],
            "description": "`null`: no minimum."
          }
        }
      },
      "MissingShortText": {
        "type": "object",
        "required": [
          "key"
        ],
        "properties": {
          "key": {
            "type": "string"
          }
        }
      },
      "MissingTranslation": {
        "type": "object",
        "required": [
          "key"
        ],
        "properties": {
          "key": {
            "type": "string",
            "description": "The dictionary key: `md5(text)`, or the custom key the page uses."
          },
          "text": {
            "type": "string",
            "description": "The source text; the value of every language when the key is new."
          },
          "texts": {
            "type": "object",
            "description": "Per-language values for a new key, e.g. `{\"bg\": \"От {price}\", \"en\": \"Prices from {price}\"}`.\nA language not listed gets `text`. Ignored when the key exists (translators own it then).",
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            }
          }
        }
      },
      "Money": {
        "type": "object",
        "required": [
          "amount",
          "currency"
        ],
        "properties": {
          "amount": {
            "type": "string",
            "example": "15.00"
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 code.",
            "example": "EUR"
          }
        }
      },
      "NewOrder": {
        "type": "object",
        "required": [
          "clientUuid"
        ],
        "properties": {
          "clientUuid": {
            "type": "string",
            "description": "The buyer's device/session id that owns the seat holds (`orders.client_code`): the website\nsends its seat-locker WebSocket id, an app one UUID per install."
          },
          "eventId": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The date the tickets are for; required with tickets.",
            "minimum": 0
          },
          "gift": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/GiftRequest",
                "description": "The gift vouchers' card: design, texts, the recipient's phone and when to send it. Only with\n`vouchers` (`400 validation_failed`, `fields[\"gift\"]`); the recipient's e-mail stays\n`recipientEmail` of `PUT /orders/{orderKey}/customer` (none: the buyer gets the voucher)."
              }
            ]
          },
          "groupToken": {
            "type": [
              "string",
              "null"
            ],
            "description": "The group booking link's secret: the order becomes a group order (seats held 30 minutes, no\nsplit payers, more days to pay by bank transfer). A wrong one is `400 group_link_invalid`."
          },
          "merchandise": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchandiseRequest"
            },
            "description": "Add-ons for the same date; only together with tickets."
          },
          "tickets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TicketRequest"
            }
          },
          "vouchers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VoucherRequest"
            }
          }
        }
      },
      "NewsletterRequest": {
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "type": "string"
          }
        }
      },
      "OpeningSlot": {
        "type": "object",
        "description": "One opening interval: open from `from` (inclusive) to `to` (exclusive).",
        "required": [
          "from",
          "to"
        ],
        "properties": {
          "from": {
            "type": "string",
            "description": "`HH:MM`, e.g. `16:00`."
          },
          "to": {
            "type": "string",
            "description": "`HH:MM`, e.g. `20:00`."
          }
        }
      },
      "Order": {
        "type": "object",
        "required": [
          "key",
          "state",
          "status",
          "isOwner",
          "canCancel",
          "currency",
          "subTotal",
          "serviceFee",
          "gatewayFee",
          "discount",
          "total",
          "tickets",
          "vouchers",
          "voucherCodes",
          "merchandise",
          "needsRefresh"
        ],
        "properties": {
          "canCancel": {
            "type": "boolean",
            "description": "`POST /me/orders/{orderKey}/cancel` would accept it: delivered, owned, every date postponed and\nmore than 48 h away (v1's rule), paid in the site's currency without a discount code or gift\nvouchers, and no ticket used at the entrance yet."
          },
          "createdAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 code the order was placed in."
          },
          "discount": {
            "$ref": "#/components/schemas/Money"
          },
          "discountKind": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DiscountKind",
                "description": "What `discount` is, as in the checkout's `discount.kind`: `wallet` (paid from the account\nbalance; `total` is then only the rest, by card) or `promo` (a discount or gift-voucher code).\nNull without a discount, or for an old discount that names no code."
              }
            ]
          },
          "event": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrderEvent"
              }
            ]
          },
          "gatewayFee": {
            "$ref": "#/components/schemas/Money"
          },
          "gift": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrderGift",
                "description": "The gift vouchers' card the buyer chose (`POST /orders` `gift`), on the account's own orders\nonly: the wish is the buyer's private text. Null without one (every older order) and on\n`isOwner: false` orders."
              }
            ]
          },
          "isOwner": {
            "type": "boolean",
            "description": "The order was placed by this account (`client_id`); other visible orders only share its\ne-mail or phone, and cannot be cancelled or shared from it."
          },
          "key": {
            "type": "string",
            "description": "The order key (`orders.order_key`)."
          },
          "merchandise": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderMerchandise"
            }
          },
          "needsRefresh": {
            "type": "boolean",
            "description": "A ticket is not issued yet, or its page link is not ready yet; ask again later."
          },
          "pageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The online page of the order's tickets (admin's ticket page; the buyer's data, prices and every\nticket), on the account's own orders (`isOwner`) only. Absolute, with `?l=` in the request's\nlanguage. Null while not ready, on orders without tickets, and on `isOwner: false` orders, whose\ntickets carry their own `pageUrl`."
          },
          "serviceFee": {
            "$ref": "#/components/schemas/Money"
          },
          "state": {
            "type": "integer",
            "format": "int32",
            "description": "`orders.state`.",
            "minimum": 0
          },
          "status": {
            "$ref": "#/components/schemas/OrderStatus"
          },
          "subTotal": {
            "$ref": "#/components/schemas/Money"
          },
          "tickets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderTicket"
            }
          },
          "total": {
            "$ref": "#/components/schemas/Money"
          },
          "voucherCodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VoucherCode"
            }
          },
          "voucherRecipientEmail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who receives the gift vouchers, when the buyer named someone."
          },
          "vouchers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderVoucher"
            }
          }
        }
      },
      "OrderEvent": {
        "type": "object",
        "required": [
          "eventId",
          "showId",
          "showName",
          "isPostponed",
          "images"
        ],
        "properties": {
          "city": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/City"
              }
            ]
          },
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "isPostponed": {
            "type": "boolean"
          },
          "showId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "showName": {
            "type": "string"
          },
          "showSlug": {
            "type": [
              "string",
              "null"
            ],
            "description": "Path segment for `GET /shows/{slug}`."
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "venue": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/VenueRef"
              }
            ]
          }
        }
      },
      "OrderGift": {
        "type": "object",
        "description": "The order's gift card as stored (`GET /orders/{key}` `gift`).",
        "required": [
          "design"
        ],
        "properties": {
          "design": {
            "type": "string"
          },
          "from": {
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "recipientPhone": {
            "type": [
              "string",
              "null"
            ],
            "description": "E.164."
          },
          "sendAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Null: sent at once after payment."
          },
          "to": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "OrderMerchandise": {
        "type": "object",
        "required": [
          "merchandiseId",
          "qty",
          "unitPrice",
          "lineTotal",
          "options"
        ],
        "properties": {
          "lineTotal": {
            "$ref": "#/components/schemas/Money"
          },
          "merchandiseId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchandiseOption"
            }
          },
          "qty": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "unitPrice": {
            "$ref": "#/components/schemas/Money",
            "description": "Unit price including the selected options' adjustments."
          }
        }
      },
      "OrderResult": {
        "type": "object",
        "description": "An order as its result page shows it to whoever holds the link: `OrderView`'s field names and\nnesting, with what the link must not give away masked or empty (one reader serves both).",
        "required": [
          "orderNumber",
          "state",
          "status",
          "tickets",
          "vouchers",
          "merchandise",
          "numSeats",
          "subTotal",
          "serviceFee",
          "total",
          "customer",
          "invoiceSaved"
        ],
        "properties": {
          "bankTransfer": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BankTransferInstructions",
                "description": "While the order waits for its bank transfer: what to pay, where and by when."
              }
            ]
          },
          "createdAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "customer": {
            "$ref": "#/components/schemas/Customer",
            "description": "Unless `orderKey` is present: `email` and `recipientEmail` masked (`v***@gmail.com`), `names`\nempty, `phone` null."
          },
          "discount": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Discount",
                "description": "The code shows only its last 4 characters (`••••7KQ2`), unless `orderKey` is present."
              }
            ]
          },
          "event": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrderViewEvent"
              }
            ]
          },
          "gatewayFee": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "gift": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrderGift",
                "description": "A gift voucher order's card: `design` and `sendAt`; `to` and `from` only with `orderKey`;\n`message` and `recipientPhone` always null here."
              }
            ]
          },
          "invoiceSaved": {
            "type": "boolean",
            "description": "Whether invoice details are saved on the order (the details themselves: `GET /orders/{key}`)."
          },
          "merchandise": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchandiseLine"
            }
          },
          "numSeats": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "orderKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only for the order's own buyer, signed in (`orders.client_id` = the session's user; a\ncashier's sale is the cashier's): the key, then `GET /orders/{key}` and every key route. Null\nfor everyone else."
          },
          "orderNumber": {
            "type": "integer",
            "format": "int64",
            "description": "The order number (`orders.id`).",
            "minimum": 0
          },
          "paidAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was paid (its newest successful payment); null until then, and for a free order."
          },
          "paymentMethod": {
            "type": [
              "string",
              "null"
            ],
            "description": "The method chosen (`fiBank`, `revolut`, `bank_transfer`, `cashier`, `wallet`, …)."
          },
          "resultRef": {
            "type": [
              "string",
              "null"
            ]
          },
          "serviceFee": {
            "$ref": "#/components/schemas/Money"
          },
          "state": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "status": {
            "$ref": "#/components/schemas/OrderStatus"
          },
          "subTotal": {
            "$ref": "#/components/schemas/Money"
          },
          "tickets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TicketLine"
            }
          },
          "total": {
            "$ref": "#/components/schemas/Money"
          },
          "vouchers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VoucherLine"
            }
          }
        }
      },
      "OrderStatus": {
        "type": "string",
        "enum": [
          "draft",
          "readyToPay",
          "paymentStarted",
          "awaitingConfirmation",
          "paid",
          "paymentFailed",
          "ticketsReady",
          "ticketsDelivered",
          "paymentConflict",
          "cancelled",
          "rejected",
          "cancelledByClient",
          "unknown"
        ]
      },
      "OrderTicket": {
        "type": "object",
        "required": [
          "id",
          "eventId",
          "section",
          "isGeneralAdmission",
          "category",
          "price",
          "downloadable"
        ],
        "properties": {
          "category": {
            "$ref": "#/components/schemas/TicketCategory"
          },
          "downloadable": {
            "type": "boolean",
            "description": "The ticket is issued (`ticket_state = 1`): its gate code, wallet pass and page are available.\nIts PDF may not exist (`GET /me/tickets/{id}/pdf` answers `404 ticket_pdf_not_ready` then)."
          },
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "isGeneralAdmission": {
            "type": "boolean"
          },
          "pageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "This ticket's own online page (no prices, no buyer data), on `isOwner: false` orders only; on\nthe account's own orders use the order's `pageUrl`. Absolute, with `?l=` in the request's\nlanguage. Null while not ready."
          },
          "price": {
            "$ref": "#/components/schemas/Money"
          },
          "row": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "minimum": 0
          },
          "seat": {
            "type": [
              "string",
              "null"
            ]
          },
          "section": {
            "type": "string"
          },
          "walletShare": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WalletShare"
              }
            ]
          }
        }
      },
      "OrderView": {
        "type": "object",
        "description": "An order as the checkout shows it.",
        "required": [
          "orderKey",
          "orderNumber",
          "state",
          "status",
          "canChange",
          "tickets",
          "vouchers",
          "merchandise",
          "numSeats",
          "subTotal",
          "serviceFee",
          "total",
          "priceChanged",
          "priceRequote",
          "paymentMethods",
          "customer",
          "group"
        ],
        "properties": {
          "bankTransfer": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BankTransferInstructions",
                "description": "While the order waits for its bank transfer (`awaitingConfirmation`, `paymentMethod`\n`bank_transfer`): what to pay, where and by when, as the confirmation answered and mailed it."
              }
            ]
          },
          "bankTransferDeadline": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "An open order: the deadline a bank transfer confirmed now would get (`bank_transfer` is in\n`paymentMethods`). An order waiting for its transfer: the deadline it waits until."
          },
          "bankTransferUnavailable": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why `bank_transfer` is not in `paymentMethods` although the method is active: `split_order`,\n`wallet`, `too_many_seats`, `disabled` (this date), `too_close` (the event is too soon),\n`capacity`, `held_cap`, `identity_limit` (an open transfer of this buyer on the date),\n`too_late`. Informational; v1 `bankTransferUnavailable`."
          },
          "canChange": {
            "type": "boolean",
            "description": "The key may still change the order's lines: open (states 0, 1, 2, 5) and not a split-payment\nshare. A share's tickets and add-ons are fixed (`409 order_changes_locked`); its payer still\nsets the customer, may apply a code, and pays."
          },
          "createdAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "customer": {
            "$ref": "#/components/schemas/Customer"
          },
          "discount": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Discount"
              }
            ]
          },
          "discountError": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DiscountError"
              }
            ]
          },
          "event": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrderViewEvent"
              }
            ]
          },
          "gatewayFee": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "gift": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrderGift",
                "description": "The gift vouchers' card (`POST /orders` `gift`), or null."
              }
            ]
          },
          "group": {
            "type": "boolean",
            "description": "Made through the group booking link (`POST /orders` with `groupToken`): seats held 30\nminutes, no split payers, more business days to pay by bank transfer."
          },
          "holdsExpireAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When this buyer's seat holds run out (null once they have; v1 never extends them)."
          },
          "invoice": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Invoice",
                "description": "The invoice details saved on the order (`PUT /orders/{key}/invoicing`), or null."
              }
            ]
          },
          "merchandise": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchandiseLine"
            }
          },
          "numSeats": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "orderKey": {
            "type": "string"
          },
          "orderNumber": {
            "type": "integer",
            "format": "int64",
            "description": "The order number (`orders.id`): what the buyer is shown, and a bank transfer's reference.",
            "minimum": 0
          },
          "paidAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was paid (its newest successful payment); null until then, and for a free order."
          },
          "paymentMethod": {
            "type": [
              "string",
              "null"
            ]
          },
          "paymentMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentMethod"
            }
          },
          "priceChanged": {
            "type": "boolean",
            "description": "A GA ladder stepped since the last quote: these lines now cost more (or less)."
          },
          "priceRequote": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Requote"
            }
          },
          "resultRef": {
            "type": [
              "string",
              "null"
            ],
            "description": "The order's lasting result-page code: the website's `/payment/success?o={resultRef}` reads\nthe masked view with it (`GET /order-results/{ref}`). Never the key. Null on a host without\n`ORDER_PAGE_SECRET`."
          },
          "serviceFee": {
            "$ref": "#/components/schemas/Money"
          },
          "state": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "status": {
            "$ref": "#/components/schemas/OrderStatus"
          },
          "subTotal": {
            "$ref": "#/components/schemas/Money"
          },
          "tickets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TicketLine"
            }
          },
          "ticketsPageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Admin's online tickets page of the whole order, once the tickets are issued (`ticketsReady` /\n`ticketsDelivered`) and admin has written the page's token; null before (poll while `status` is\n`paid`). It opens the tickets, so only the key holder gets it, never the result-code view."
          },
          "total": {
            "$ref": "#/components/schemas/Money"
          },
          "vouchers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VoucherLine"
            }
          },
          "walletBalance": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money",
                "description": "The signed-in buyer's wallet balance."
              }
            ]
          }
        }
      },
      "OrderViewEvent": {
        "type": "object",
        "required": [
          "eventId",
          "showId",
          "showName",
          "images"
        ],
        "properties": {
          "city": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/City"
              }
            ]
          },
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "showId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "showName": {
            "type": "string"
          },
          "showSlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "venue": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/VenueRef"
              }
            ]
          }
        }
      },
      "OrderVoucher": {
        "type": "object",
        "required": [
          "bundleId",
          "bundlePriceId",
          "qty",
          "price"
        ],
        "properties": {
          "bundleId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "bundleName": {
            "type": [
              "string",
              "null"
            ]
          },
          "bundlePriceId": {
            "type": "integer",
            "format": "int64",
            "description": "`voucher_bundles_prices.id`."
          },
          "bundleSlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "$ref": "#/components/schemas/Money"
          },
          "qty": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          }
        }
      },
      "Page": {
        "type": "object",
        "required": [
          "id",
          "slug",
          "name",
          "updatedAt"
        ],
        "properties": {
          "content": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PageContent",
                "description": "The page text in the requested language; `null` when it has none."
              }
            ]
          },
          "faq": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/FaqItem"
            },
            "description": "Questions and answers; present on the `faq` page only."
          },
          "headImage": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "name": {
            "type": "string",
            "description": "Internal page name (not translated)."
          },
          "ogImage": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PageContent": {
        "type": "object",
        "required": [
          "menuName",
          "title",
          "h1Title",
          "metaDescription",
          "html"
        ],
        "properties": {
          "h1Title": {
            "type": "string"
          },
          "html": {
            "type": "string",
            "description": "HTML."
          },
          "menuName": {
            "type": "string"
          },
          "metaDescription": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "version": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "minimum": 0
          }
        }
      },
      "PayRequest": {
        "type": "object",
        "required": [
          "method"
        ],
        "properties": {
          "method": {
            "type": "string",
            "description": "`wallet`, `voucher` or `cashier`. A card is paid with `POST /orders/{orderKey}/fibank-payment`\n(`fiBank`), `POST /orders/{orderKey}/revolut-payment` (`revolut`) or\n`POST /orders/{orderKey}/card-payment` (`stripe`)."
          }
        }
      },
      "PaymentConflict": {
        "type": "object",
        "description": "`409 payment_conflict`: the money was taken but a seat was gone; the order is in state 8 and the\nbox office refunds it.",
        "required": [
          "error",
          "conflicts"
        ],
        "properties": {
          "conflicts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SeatConflict"
            }
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          }
        }
      },
      "PaymentMethod": {
        "type": "object",
        "required": [
          "nickname",
          "label",
          "subLabel",
          "channel",
          "available",
          "feePercent"
        ],
        "properties": {
          "address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Offline only: where the desk is, as admin wrote it."
          },
          "available": {
            "type": "boolean",
            "description": "False for an offline method outside its working hours."
          },
          "channel": {
            "type": "string",
            "description": "`online` or `offline` (pay at a cash desk)."
          },
          "feePercent": {
            "type": "string",
            "description": "The gateway's fee, a percentage of the total (0 on every active gateway, 2026-10-18).",
            "example": "0.00"
          },
          "label": {
            "type": "string"
          },
          "mapUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Offline only: a map link to the desk."
          },
          "nickname": {
            "type": "string",
            "description": "`payment_gateways.nickname`; send it to `PUT /orders/{key}/payment-method`."
          },
          "paymentWindowMinutes": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Offline only: minutes the order is held for payment at the desk.",
            "minimum": 0
          },
          "postPurchaseInfo": {
            "type": [
              "string",
              "null"
            ],
            "description": "Offline only: admin's note for the buyer, shown once the order is confirmed."
          },
          "subLabel": {
            "type": "string"
          },
          "workingHours": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WorkingHours",
                "description": "Offline only: when it is open, in Sofia time."
              }
            ]
          }
        }
      },
      "PaymentMethodRequest": {
        "type": "object",
        "required": [
          "method"
        ],
        "properties": {
          "method": {
            "type": "string",
            "description": "A `nickname` from the order's `paymentMethods`."
          }
        }
      },
      "PaymentShare": {
        "type": "object",
        "required": [
          "state",
          "status",
          "expiresAt",
          "eventId",
          "seats"
        ],
        "properties": {
          "event": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PaymentShareEvent",
                "description": "`null` when the date is no longer active and public."
              }
            ]
          },
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "key": {
            "type": [
              "string",
              "null"
            ],
            "description": "The sub-order's key, for the payer's link `/checkout/{eventId}_{key}`; `null` once the share\nis paid or closed."
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "The payer's phone, masked."
          },
          "seats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentShareSeat"
            }
          },
          "state": {
            "type": "integer",
            "format": "int32",
            "description": "`orders.state` of the sub-order.",
            "minimum": 0
          },
          "status": {
            "$ref": "#/components/schemas/PaymentShareStatus"
          }
        }
      },
      "PaymentShareEvent": {
        "type": "object",
        "required": [
          "id",
          "showName",
          "venueName"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "showName": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "venueName": {
            "type": "string"
          }
        }
      },
      "PaymentShareSeat": {
        "type": "object",
        "properties": {
          "row": {
            "type": [
              "string",
              "null"
            ]
          },
          "seat": {
            "type": [
              "string",
              "null"
            ]
          },
          "sector": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "PaymentShareStatus": {
        "type": "string",
        "description": "What the website shows per share: paid (4, 6, 7), failed (5), cancelled (10, 11, 12), otherwise\nwaiting for the payer.",
        "enum": [
          "pending",
          "paid",
          "paymentFailed",
          "cancelled"
        ]
      },
      "PaymentShares": {
        "type": "object",
        "required": [
          "split",
          "shares"
        ],
        "properties": {
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "The earliest expiry among `shares`."
          },
          "shares": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentShare"
            },
            "description": "Newest first."
          },
          "split": {
            "type": "boolean",
            "description": "The order has split-payment lines: its shares appear once the order is delivered."
          }
        }
      },
      "Performer": {
        "type": "object",
        "required": [
          "id",
          "name",
          "type",
          "role",
          "images"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "description": "The attribute that names them: `artists`, or e.g. `guests`."
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": "string",
            "description": "`artist` or `performer`."
          }
        }
      },
      "PerformerHit": {
        "type": "object",
        "required": [
          "kind",
          "id",
          "name",
          "images",
          "showCount"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "kind": {
            "$ref": "#/components/schemas/PerformerKind"
          },
          "name": {
            "type": "string"
          },
          "showCount": {
            "type": "integer",
            "format": "int32",
            "description": "Productions on sale with this performer.",
            "minimum": 0
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "`GET /artists/{slug}` or `GET /bands/{slug}`, by `kind`."
          },
          "type": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ArtistType",
                "description": "`artists.type`; absent for bands."
              }
            ]
          }
        }
      },
      "PerformerKind": {
        "type": "string",
        "description": "The two performer tables.",
        "enum": [
          "artist",
          "band"
        ]
      },
      "PerformerLinks": {
        "type": "object",
        "properties": {
          "facebook": {
            "type": [
              "string",
              "null"
            ]
          },
          "instagram": {
            "type": [
              "string",
              "null"
            ]
          },
          "spotify": {
            "type": [
              "string",
              "null"
            ]
          },
          "tiktok": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "youtube": {
            "type": [
              "string",
              "null"
            ],
            "description": "`you_tube` as stored: admin's form asks for the bare video id (`RQAwGvrbzsY` from\n`https://www.youtube.com/watch?v=RQAwGvrbzsY`), as v1 returned it; nothing checks that, so a\npasted URL comes through as typed."
          }
        }
      },
      "PerformerPage": {
        "type": "object",
        "required": [
          "kind",
          "id",
          "name",
          "images",
          "gallery",
          "links",
          "shows"
        ],
        "properties": {
          "biography": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/RichText",
                "description": "In the request language; absent when none is stored for it."
              }
            ]
          },
          "gallery": {
            "$ref": "#/components/schemas/ImageSet",
            "description": "The gallery photos alone (`artists` / `bands` group: the wide 1920×1005 uploads), the\ntop-priority one per orientation with every size, widest first. `images` prefers the profile\nphoto (`artist_photo` / `band_photo`, often a 500×500 square) and uses the gallery only where\nthat has no orientation, so use this for a page-wide hero. Orientations without one are `[]`."
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "kind": {
            "$ref": "#/components/schemas/PerformerKind"
          },
          "links": {
            "$ref": "#/components/schemas/PerformerLinks"
          },
          "name": {
            "type": "string"
          },
          "shortDescription": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/RichText"
              }
            ]
          },
          "shows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShowCard"
            },
            "description": "Productions on sale with this performer, earliest date first."
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ArtistType",
                "description": "`artists.type`; always absent for a band."
              }
            ]
          }
        }
      },
      "PhoneChange": {
        "type": "object",
        "required": [
          "phone"
        ],
        "properties": {
          "countryCode": {
            "type": [
              "string",
              "null"
            ],
            "description": "`+` and 1-3 digits; default `+359`."
          },
          "phone": {
            "type": "string"
          }
        }
      },
      "PhoneCodeSent": {
        "type": "object",
        "required": [
          "challengeId",
          "destination",
          "expiresInSeconds"
        ],
        "properties": {
          "challengeId": {
            "type": "string",
            "description": "Send it back with the code to `POST /me/phone/verify`."
          },
          "destination": {
            "type": "string"
          },
          "expiresInSeconds": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          }
        }
      },
      "PhoneConfirm": {
        "type": "object",
        "required": [
          "challengeId",
          "code"
        ],
        "properties": {
          "challengeId": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        }
      },
      "Platform": {
        "type": "string",
        "description": "The client platform, as sent in `X-Platform`.",
        "enum": [
          "ios",
          "android",
          "web"
        ]
      },
      "PreferentialCategory": {
        "type": "string",
        "enum": [
          "child",
          "student",
          "disabled",
          "retiree"
        ]
      },
      "PriceGroup": {
        "type": "object",
        "required": [
          "id",
          "label",
          "prices"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "`offerings_price_groups.id`: the zone's stable identity across price phases.",
            "minimum": 0
          },
          "label": {
            "type": "string",
            "description": "Display label of the current phase or ladder step, localised."
          },
          "leftAtPrice": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Tickets left at this price on a GA ladder step; `null` without a ladder or on its last step.",
            "minimum": 0
          },
          "prices": {
            "$ref": "#/components/schemas/CategoryMoney"
          }
        }
      },
      "PrizeOrderConfirmed": {
        "type": "object",
        "required": [
          "payByCard"
        ],
        "properties": {
          "event": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DateHit"
              }
            ]
          },
          "orderKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only while the order still has to be paid (`payByCard`): a forwarded mail does not keep\nhanding out a finished order's key."
          },
          "payByCard": {
            "type": "boolean",
            "description": "Further seats are paid by card: the order is not finished yet, open the card page now\n(`POST /orders/{key}/fibank-payment`). False: the order is finished, the tickets are on their way."
          }
        }
      },
      "Producer": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "`brands.id`.",
            "minimum": 0
          },
          "name": {
            "type": "string"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ProductFeedItem": {
        "type": "object",
        "description": "A production as one catalogue item, shown with its earliest advertised date.",
        "required": [
          "id",
          "slug",
          "path",
          "name",
          "productId",
          "category",
          "eventId",
          "startsAt",
          "saleEndsAt",
          "venue",
          "prices",
          "updatedAt",
          "images"
        ],
        "properties": {
          "category": {
            "$ref": "#/components/schemas/CategoryRef"
          },
          "city": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/City"
              }
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The producer's description as plain text; `null` when there is none in the language."
          },
          "endsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "eventId": {
            "type": "integer",
            "format": "int64",
            "description": "The date shown: `GET /events/{eventId}`.",
            "minimum": 0
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "`offerings.id`.",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "name": {
            "type": "string"
          },
          "originalImageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The main photo's original upload (often a `.jpg`/`.png`), absolute: the file v1's\nproductsFeed gave as `photo` and the Google XML sends as `g:image_link`, so ad catalogues\nkeep the same image. `null` when the product has no photo with a generated size."
          },
          "path": {
            "type": "string",
            "description": "Website path, `/bilet/{slug}`."
          },
          "prices": {
            "$ref": "#/components/schemas/FeedPrices"
          },
          "productId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "saleEndsAt": {
            "type": "string",
            "format": "date-time"
          },
          "saleStartsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "In the future while the date is in pre-sale."
          },
          "slug": {
            "type": "string",
            "description": "Path segment for `GET /shows/{slug}`."
          },
          "startsAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Last change of the product."
          },
          "venue": {
            "$ref": "#/components/schemas/VenueRef"
          }
        }
      },
      "ProductionFeedItem": {
        "type": "object",
        "description": "A production with every advertised date rolled up.",
        "required": [
          "id",
          "slug",
          "path",
          "name",
          "productId",
          "category",
          "priceFrom",
          "priceTo",
          "firstStartsAt",
          "lastStartsAt",
          "saleEndsAt",
          "dateCount",
          "cities",
          "venues",
          "images"
        ],
        "properties": {
          "brand": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FeedBrand",
                "description": "The producer (`products.brand_id`)."
              }
            ]
          },
          "category": {
            "$ref": "#/components/schemas/CategoryRef"
          },
          "cities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/City"
            },
            "description": "Distinct cities, in date order."
          },
          "dateCount": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The production's main description as plain text; `null` when there is none in the language."
          },
          "firstStartsAt": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "`offerings.id`.",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "lastStartsAt": {
            "type": "string",
            "format": "date-time"
          },
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string",
            "description": "Website path, `/bilet/{slug}`."
          },
          "priceFrom": {
            "$ref": "#/components/schemas/Money",
            "description": "Lowest and highest effective adult price over every advertised date."
          },
          "priceTo": {
            "$ref": "#/components/schemas/Money"
          },
          "productId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "saleEndsAt": {
            "type": "string",
            "format": "date-time",
            "description": "The latest sale end."
          },
          "saleStartsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "The earliest sale start; in the future while every date is in pre-sale."
          },
          "slug": {
            "type": "string",
            "description": "Path segment for `GET /shows/{slug}`."
          },
          "venues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VenueRef"
            },
            "description": "Distinct venues, in date order."
          }
        }
      },
      "PromoDone": {
        "type": "object",
        "required": [
          "ok"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          }
        }
      },
      "PromoEvent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DateHit"
          },
          {
            "type": "object",
            "required": [
              "images"
            ],
            "properties": {
              "images": {
                "$ref": "#/components/schemas/ImageSet"
              }
            }
          }
        ]
      },
      "PromoStats": {
        "type": "object",
        "required": [
          "spins",
          "wins"
        ],
        "properties": {
          "spins": {
            "type": "integer",
            "format": "int64"
          },
          "wins": {
            "type": "integer",
            "format": "int64",
            "description": "Prizes really given: those whose order was bought (owner, 2026-11-11; it counted every win,\nreturned, re-won and revoked ones too, about twice the truth). The free tickets are twice this."
          }
        }
      },
      "PromoStatus": {
        "type": "object",
        "required": [
          "active",
          "raffleOnly",
          "identified",
          "confirmed",
          "canSpin",
          "subscribed",
          "reminderOptIn",
          "claimed",
          "seatsChosen",
          "orderUnpaid",
          "holdExpired",
          "confirmExpired",
          "emailConfirmed",
          "raffle",
          "ref",
          "events"
        ],
        "properties": {
          "active": {
            "type": "boolean",
            "description": "A promotion is running."
          },
          "canSpin": {
            "type": "boolean"
          },
          "claimed": {
            "type": "boolean"
          },
          "confirmExpired": {
            "type": "boolean",
            "description": "That link was not clicked in time: the order was cancelled and the prize went back."
          },
          "confirmUntil": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "A guest's prize order waits for the link mailed to its e-mail until then (owner, 2026-11-11)."
          },
          "confirmed": {
            "type": "boolean"
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "emailConfirmed": {
            "type": "boolean",
            "description": "The prize order's e-mail is confirmed (the link was clicked); always true for a signed-in\nplayer. Not the raffle's `confirmed`."
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromoEvent"
            },
            "description": "The dates that can be won, and the player's own win."
          },
          "holdExpired": {
            "type": "boolean",
            "description": "The last win's seats were not chosen in time."
          },
          "holdUntil": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "identified": {
            "type": "boolean"
          },
          "orderUnpaid": {
            "type": "boolean",
            "description": "The seats are chosen, the order is not paid, and the hold is still running: `GET /promo/claim`\ngives the way back to it."
          },
          "raffle": {
            "$ref": "#/components/schemas/RaffleStatus"
          },
          "raffleOnly": {
            "type": "boolean",
            "description": "Today's prizes are gone: only the raffle is left (PRD M2)."
          },
          "ref": {
            "$ref": "#/components/schemas/Referral"
          },
          "reminderOptIn": {
            "type": "boolean"
          },
          "seatUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "seatsChosen": {
            "type": "boolean"
          },
          "subscribed": {
            "type": "boolean"
          },
          "win": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PromoWin"
              }
            ]
          }
        }
      },
      "PromoWin": {
        "type": "object",
        "required": [
          "kind",
          "claimBy"
        ],
        "properties": {
          "claimBy": {
            "type": "string",
            "format": "date-time"
          },
          "event": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DateHit"
              }
            ]
          },
          "kind": {
            "type": "string",
            "description": "`wheel` or `raffle`: how it was won (the website reports `raffle_draw_win` from this, PRD §7)."
          }
        }
      },
      "RaffleEntry": {
        "type": "object",
        "required": [
          "chances",
          "confirmationSent"
        ],
        "properties": {
          "chances": {
            "type": "integer",
            "format": "int64"
          },
          "confirmationSent": {
            "type": "boolean",
            "description": "A confirmation mail is out for the address; false when this player has already confirmed."
          }
        }
      },
      "RaffleRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Editable until confirmed. An address another player has is answered exactly like a free one."
          },
          "marketingConsent": {
            "type": "boolean"
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "RaffleStatus": {
        "type": "object",
        "required": [
          "chances",
          "enteredToday",
          "canEnter",
          "drawAt"
        ],
        "properties": {
          "canEnter": {
            "type": "boolean"
          },
          "chances": {
            "type": "integer",
            "format": "int64"
          },
          "drawAt": {
            "type": "string",
            "format": "date-time"
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "enteredToday": {
            "type": "boolean"
          }
        }
      },
      "Reason": {
        "type": "string",
        "description": "Why money moved (`wallet_transactions.reason_code`).",
        "enum": [
          "generic",
          "eventCancelled",
          "fromOrder",
          "withdrawalBank",
          "orderPayment",
          "other"
        ]
      },
      "RecentGift": {
        "type": "object",
        "description": "One recently bought voucher of a bundle («Последни подаръци»): no buyer, recipient, code or order.",
        "required": [
          "amount",
          "paidAt"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money",
            "description": "The voucher's face value; its price when it has none (a percentage voucher)."
          },
          "design": {
            "type": [
              "string",
              "null"
            ],
            "description": "The gift card's design id (`POST /orders` `gift`); null for orders without one."
          },
          "paidAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was paid."
          }
        }
      },
      "RedeemRequest": {
        "type": "object",
        "required": [
          "token",
          "clientCode"
        ],
        "properties": {
          "clientCode": {
            "type": "string",
            "description": "The browser's client UUID (the website's `clientUUID`): the held seats move to it."
          },
          "token": {
            "type": "string",
            "description": "The `h` of the handoff link."
          }
        }
      },
      "Redeemed": {
        "type": "object",
        "description": "What the website's server gets for a handoff token.",
        "required": [
          "orderKey",
          "eventId",
          "items"
        ],
        "properties": {
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RedeemedItem"
            }
          },
          "orderKey": {
            "type": "string"
          },
          "showSlug": {
            "type": [
              "string",
              "null"
            ],
            "description": "`offerings.slug`; the website builds its `/book-event` and `/checkout` paths from it."
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "RedeemedItem": {
        "type": "object",
        "required": [
          "seatId",
          "count",
          "categories"
        ],
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          }
        }
      },
      "Referral": {
        "type": "object",
        "required": [
          "referredBy",
          "crew"
        ],
        "properties": {
          "code": {
            "type": [
              "string",
              "null"
            ],
            "description": "This player's own \"Ела с мен\" code, once a prize has been taken."
          },
          "crew": {
            "$ref": "#/components/schemas/Crew"
          },
          "inviteEvent": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DateHit",
                "description": "The date the link in the request offers."
              }
            ]
          },
          "inviteSoldOut": {
            "type": [
              "string",
              "null"
            ],
            "description": "The title of the link's date when it can no longer be played (PRD M8)."
          },
          "referredBy": {
            "type": "boolean",
            "description": "The player came through a friend's link."
          }
        }
      },
      "RefundBody": {
        "type": "object",
        "required": [
          "reason"
        ],
        "properties": {
          "amount": {
            "type": [
              "string",
              "null"
            ],
            "description": "In the payment's currency, e.g. `\"10.50\"`. Omitted: what is left of the payment.",
            "example": "10.50"
          },
          "paymentIntentId": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "`payment_intents.id` of the payment to refund; the order's latest card payment otherwise.",
            "minimum": 0
          },
          "processedBy": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The admin user (`users.id`) who refunds.",
            "minimum": 0
          },
          "reason": {
            "type": "string",
            "description": "Why (kept on the refund row)."
          }
        }
      },
      "RefundView": {
        "type": "object",
        "description": "One refund (`payment_refunds`).",
        "required": [
          "id",
          "orderId",
          "paymentIntentId",
          "status",
          "amount",
          "remaining"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "paymentIntentId": {
            "type": "integer",
            "format": "int64",
            "description": "`payment_intents.id` of the refunded payment.",
            "minimum": 0
          },
          "refundTransactionId": {
            "type": [
              "string",
              "null"
            ]
          },
          "remaining": {
            "$ref": "#/components/schemas/Money",
            "description": "What can still be refunded from this payment (pending refunds counted as done)."
          },
          "status": {
            "type": "string",
            "description": "`pending`, `success`, `failed` or `cancelled`."
          }
        }
      },
      "ReleaseSeats": {
        "type": "object",
        "properties": {
          "client": {
            "type": "string",
            "description": "The visitor's client UUID (`seats_bookings.client`)."
          },
          "eventId": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The date (`offerings_events.id`), as a number or a numeric string. Missing, `0` or `\"\"`: every\ndate of the client.",
            "minimum": 0
          },
          "force": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Also drop the client's active standard hold on that date (the visitor went back from checkout\nto the seat map). `true` / `\"1\"` / `\"true\"` / `\"on\"` / `\"yes\"`."
          }
        }
      },
      "ReleaseSeatsRequest": {
        "type": "object",
        "required": [
          "release"
        ],
        "properties": {
          "release": {
            "$ref": "#/components/schemas/ReleaseSeats"
          }
        }
      },
      "RendererScriptType": {
        "type": "string",
        "description": "How to load `scriptUrl`.",
        "enum": [
          "module",
          "classic"
        ]
      },
      "ReplayAnswer": {
        "type": "object",
        "description": "What the replay target answered.",
        "required": [
          "url",
          "status",
          "body"
        ],
        "properties": {
          "body": {
            "type": "string",
            "description": "The first 16 KiB of the answer, as text."
          },
          "contentType": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "url": {
            "type": "string"
          }
        }
      },
      "ReplayBody": {
        "type": "object",
        "properties": {
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where to send it (required): e.g. a dev or local copy of the route that received it."
          }
        }
      },
      "Requote": {
        "type": "object",
        "required": [
          "seatId",
          "old",
          "new"
        ],
        "properties": {
          "new": {
            "$ref": "#/components/schemas/Money"
          },
          "old": {
            "$ref": "#/components/schemas/Money"
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          }
        }
      },
      "RevolutPayment": {
        "type": "object",
        "description": "Revolut's page for the order.",
        "required": [
          "checkoutUrl",
          "ref"
        ],
        "properties": {
          "checkoutUrl": {
            "type": "string",
            "description": "Revolut's hosted page. The website redirects to it; an app opens it in the system in-app\nbrowser (`SFSafariViewController` / `ASWebAuthenticationSession`, a Custom Tab), never a web\nview. Treat it like the order key: never log or share it."
          },
          "ref": {
            "type": "string",
            "description": "Opaque: send it to `POST /payments/revolut/settle` for the result. Never parse it."
          },
          "token": {
            "type": [
              "string",
              "null"
            ],
            "description": "Revolut's public token of the same order, for its in-page payment request (Apple Pay / Google\nPay through `RevolutCheckout(token)` with the merchant's public key, website 2026-12-02). The\nresult comes the same way: settle with `ref`, the webhook, the sweep. Like `checkoutUrl`, it can\npay the order: never log or share it. Null if Revolut sent none."
          }
        }
      },
      "RevolutSettleBody": {
        "type": "object",
        "description": "The website's return route (and an app whose in-app browser closed) sends the `ref` of\n`POST /orders/{key}/revolut-payment`.",
        "properties": {
          "ref": {
            "type": "string"
          }
        }
      },
      "RevolutStart": {
        "type": "object",
        "description": "Which method a Revolut payment is for (optional; no body = Revolut Pay).",
        "properties": {
          "method": {
            "type": [
              "string",
              "null"
            ],
            "description": "`revolut` (default) or `apple_google_pay` (Apple Pay / Google Pay, its own method in admin,\nprocessed by Revolut: pay with the answer's `token`). Must be in the order's `paymentMethods`."
          }
        }
      },
      "RevolutWebhookEvent": {
        "type": "object",
        "description": "Revolut's webhook event: only which order to look at is used.",
        "properties": {
          "event": {
            "type": "string"
          },
          "merchant_order_ext_ref": {
            "type": [
              "string",
              "null"
            ]
          },
          "order_id": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "RichText": {
        "type": "object",
        "description": "Stored HTML and the same text without markup.",
        "required": [
          "html",
          "text"
        ],
        "properties": {
          "html": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      },
      "SavedCard": {
        "type": "object",
        "description": "A saved card of the signed-in buyer (v1 `getStoredCards`, ModulesCore.php:2488): never the number.",
        "required": [
          "cardIndex",
          "cardMask",
          "expiryDisplay",
          "isDefault"
        ],
        "properties": {
          "cardBrand": {
            "type": [
              "string",
              "null"
            ]
          },
          "cardIndex": {
            "type": "integer",
            "format": "int32",
            "description": "Send it as `cardIndex` to `POST /orders/{orderKey}/fibank-payment`.",
            "minimum": 0
          },
          "cardMask": {
            "type": "string",
            "description": "`*****` and the last four digits."
          },
          "expiryDisplay": {
            "type": "string",
            "description": "`MM/YY`."
          },
          "isDefault": {
            "type": "boolean"
          },
          "lastUsedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "SearchResults": {
        "type": "object",
        "required": [
          "query",
          "performers",
          "shows"
        ],
        "properties": {
          "performers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PerformerHit"
            }
          },
          "query": {
            "type": "string",
            "description": "The query as matched (trimmed); empty for the full set."
          },
          "shows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShowCard"
            }
          }
        }
      },
      "Seat": {
        "type": "object",
        "required": [
          "seatId",
          "key",
          "priceGroupId"
        ],
        "properties": {
          "key": {
            "type": "string",
            "description": "The seat-map renderer's id (`composite_key`)."
          },
          "priceGroupId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "row": {
            "type": [
              "string",
              "null"
            ]
          },
          "seat": {
            "type": [
              "string",
              "null"
            ]
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "description": "`sm_id`: what an order line names.",
            "minimum": 0
          },
          "section": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SeatBlock": {
        "type": "object",
        "required": [
          "seats",
          "adjacent",
          "orphansLeft",
          "priceGroupId",
          "pricePerSeat",
          "total",
          "score",
          "scoreBasis"
        ],
        "properties": {
          "adjacent": {
            "type": "boolean",
            "description": "The seats sit next to each other."
          },
          "orphansLeft": {
            "type": "integer",
            "format": "int32",
            "description": "Single free seats this block would leave stranded beside it in its row.",
            "minimum": 0
          },
          "priceGroupId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "pricePerSeat": {
            "$ref": "#/components/schemas/Money",
            "description": "`total / count`, service fee included."
          },
          "row": {
            "type": [
              "string",
              "null"
            ],
            "description": "`null` when the seats are in different rows (`adjacent: false`)."
          },
          "score": {
            "type": "number",
            "format": "double",
            "description": "0–1, higher is better; how it was reached is in `scoreBasis`."
          },
          "scoreBasis": {
            "type": "string"
          },
          "seats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlockSeat"
            }
          },
          "section": {
            "type": [
              "string",
              "null"
            ]
          },
          "total": {
            "$ref": "#/components/schemas/Money",
            "description": "What the checkout would charge for these tickets, service fee included."
          }
        }
      },
      "SeatConflict": {
        "type": "object",
        "description": "A seat that could not be sold at payment time. `orders.note` keeps v1's snake_case form of the\nsame data (`settle::Conflict`).",
        "required": [
          "eventId",
          "seatId",
          "reason"
        ],
        "properties": {
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "left": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64"
          },
          "reason": {
            "type": "string",
            "description": "`ga_capacity`, `seat_remote`, `seat_sold`, `seat_sold_no_owner`, `seat_held` (a revived bank\ntransfer only: another client holds the seat)."
          },
          "scope": {
            "type": [
              "string",
              "null"
            ],
            "description": "GA: which bound refused, `channel` or `pool`."
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "wanted": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "GA: places wanted and left.",
            "minimum": 0
          }
        }
      },
      "SeatMap": {
        "type": "object",
        "required": [
          "event",
          "priceGroups",
          "seats",
          "areas",
          "withheldCategories",
          "info"
        ],
        "properties": {
          "areas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Area"
            },
            "description": "General-admission areas with places left."
          },
          "event": {
            "$ref": "#/components/schemas/SeatMapEvent"
          },
          "info": {
            "$ref": "#/components/schemas/SeatMapInfo"
          },
          "priceGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SeatMapPriceGroup"
            }
          },
          "renderer": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SeatMapRenderer",
                "description": "What draws the interactive map; `null`: no interactive map for this date (show the lists)."
              }
            ]
          },
          "seats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Seat"
            },
            "description": "Numbered seats with at least one place free."
          },
          "withheldCategories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WithheldCategory"
            }
          }
        }
      },
      "SeatMapEvent": {
        "type": "object",
        "required": [
          "id",
          "showId",
          "isOnSale"
        ],
        "properties": {
          "endsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "isOnSale": {
            "type": "boolean",
            "description": "Confirmed, not cancelled, and inside the sale window right now."
          },
          "saleEndsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "saleStartsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "showId": {
            "type": "integer",
            "format": "int32",
            "description": "`offerings.id`.",
            "minimum": 0
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "SeatMapFeatures": {
        "type": "object",
        "required": [
          "seatmapPro",
          "cavea"
        ],
        "properties": {
          "cavea": {
            "type": "boolean"
          },
          "seatmapPro": {
            "type": "boolean"
          }
        }
      },
      "SeatMapInfo": {
        "type": "object",
        "properties": {
          "eventNotes": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Description"
              }
            ]
          },
          "venueNotes": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Description"
              }
            ]
          }
        }
      },
      "SeatMapPriceGroup": {
        "type": "object",
        "description": "The seat map's price group: `GET /events/{id}`'s `PriceGroup` plus the places free in it.",
        "required": [
          "id",
          "label",
          "prices",
          "available"
        ],
        "properties": {
          "available": {
            "type": "integer",
            "format": "int64",
            "description": "Places free in this group."
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "label": {
            "type": "string",
            "description": "Localised display label of today's price (phase or ladder step)."
          },
          "leftAtPrice": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Tickets left at this price on a GA quantity ladder; `null` when the price does not step.",
            "minimum": 0
          },
          "prices": {
            "$ref": "#/components/schemas/CategoryMoney"
          },
          "section": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SeatMapRenderer": {
        "type": "object",
        "description": "The renderer's settings for this date. All public: the renderer runs in the client.",
        "required": [
          "vendor",
          "eventId",
          "publicKey",
          "baseUrl",
          "scriptUrl",
          "scriptType"
        ],
        "properties": {
          "baseUrl": {
            "type": "string",
            "description": "The renderer's `baseUrl` (the vendor's public booking API)."
          },
          "eventId": {
            "type": "string",
            "description": "The vendor's event id (`offerings_events.sm_event_id`): `renderer.loadEvent(eventId)`."
          },
          "publicKey": {
            "type": "string",
            "description": "The renderer's `publicKey`."
          },
          "scriptType": {
            "$ref": "#/components/schemas/RendererScriptType"
          },
          "scriptUrl": {
            "type": "string",
            "description": "The renderer script: SeatMap.Pro's ES module (jsDelivr's bundle of the npm package, the\nwebsite's version) or Cavea's script on its own host."
          },
          "vendor": {
            "$ref": "#/components/schemas/SeatMapVendor"
          }
        }
      },
      "SeatMapVendor": {
        "type": "string",
        "description": "Which booking renderer draws the date's map.",
        "enum": [
          "seatmapPro",
          "cavea"
        ]
      },
      "SeatsReleased": {
        "type": "object",
        "required": [
          "released"
        ],
        "properties": {
          "released": {
            "type": "integer",
            "format": "int64",
            "description": "Holds removed.",
            "minimum": 0
          }
        }
      },
      "SeatsUnavailable": {
        "type": "object",
        "description": "The 409 body when seats are gone: the usual error plus the refused lines.",
        "required": [
          "error",
          "locked"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          },
          "locked": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LockedLine"
            }
          }
        }
      },
      "SellingBrand": {
        "type": "object",
        "required": [
          "id",
          "name",
          "isProducer"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "isProducer": {
            "type": "boolean",
            "description": "The production's own producer sells this date (no delegation)."
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "shortDescription": {
            "type": [
              "string",
              "null"
            ],
            "description": "HTML."
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Seo": {
        "type": "object",
        "properties": {
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "h1": {
            "type": [
              "string",
              "null"
            ]
          },
          "keywords": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ShareCreated": {
        "type": "object",
        "required": [
          "token",
          "shareUrl",
          "recipientPhone"
        ],
        "properties": {
          "recipientPhone": {
            "type": "string",
            "description": "E.164, as stored."
          },
          "shareUrl": {
            "type": "string",
            "description": "The page the recipient opens to add the ticket to Apple / Google Wallet."
          },
          "token": {
            "type": "string",
            "description": "32 hex characters; the share page's id."
          }
        }
      },
      "ShareRequest": {
        "type": "object",
        "required": [
          "recipientPhone"
        ],
        "properties": {
          "message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Accepted for compatibility and not stored (v1 has no column for it); up to 500 chars."
          },
          "recipientPhone": {
            "type": "string",
            "description": "Any common shape: `0888123456`, `+359 888 123 456`, `00420…`; normalised to E.164."
          }
        }
      },
      "ShortLink": {
        "type": "object",
        "required": [
          "target"
        ],
        "properties": {
          "target": {
            "type": "string",
            "description": "A path on the website, with its query and fragment as stored (`/book-event/…?…#city--date`),\nor an absolute `https://` address on a subdomain of the site's domain. Redirect to it as is."
          }
        }
      },
      "Show": {
        "type": "object",
        "description": "A production with its upcoming dates.",
        "required": [
          "id",
          "name",
          "seo",
          "descriptions",
          "attributes",
          "artists",
          "bands",
          "images",
          "dates"
        ],
        "properties": {
          "artists": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Performer"
            }
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attribute"
            }
          },
          "bands": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Band"
            }
          },
          "category": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CategoryRef"
              }
            ]
          },
          "dates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShowDate"
            },
            "description": "Upcoming dates still on sale or about to be; empty when none."
          },
          "descriptions": {
            "type": "object",
            "description": "By `sub_group` (`main`, `producer`, `partner`, …).",
            "additionalProperties": {
              "$ref": "#/components/schemas/Description"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "facebookPixelId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The producer's Meta pixel id, for client-side conversion tracking."
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "`offerings.id`.",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "name": {
            "type": "string"
          },
          "producerId": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "`brands.id` of the producer.",
            "minimum": 0
          },
          "seo": {
            "$ref": "#/components/schemas/Seo"
          },
          "shortDescription": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ShowCard": {
        "type": "object",
        "description": "A production in a listing.",
        "required": [
          "id",
          "name",
          "isOnline",
          "dateCount",
          "images"
        ],
        "properties": {
          "category": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CategoryRef"
              }
            ]
          },
          "city": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/City"
              }
            ]
          },
          "dateCount": {
            "type": "integer",
            "format": "int32",
            "description": "How many dates of this production the listing holds.",
            "minimum": 0
          },
          "eventId": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "The date the card shows: the nearest one on sale with places left, else the nearest to come\n(`GET /events/{eventId}`). `startsAt`, `venue`, `city` and `isOnline` are this date's.",
            "minimum": 0
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "`offerings.id`.",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "isOnline": {
            "type": "boolean",
            "description": "The date is online / nationwide (`offerings_events.flags & 8`)."
          },
          "name": {
            "type": "string"
          },
          "priceFrom": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money",
                "description": "The cheapest price of the date the card shows (`eventId`), exactly as `GET /shows/{slug}` gives\nthat date's `priceFrom` (owner, 2026-12-03: a card is one date throughout). Null when that date\nhas no price on sale (sold out, every seat blocked): show no «от» then."
              }
            ]
          },
          "priceTo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money",
                "description": "That date's dearest price (`GET /shows/{slug}` `priceTo`), null as `priceFrom`."
              }
            ]
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "Path segment for `GET /shows/{slug}`."
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "venue": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/VenueRef"
              }
            ]
          }
        }
      },
      "ShowDate": {
        "type": "object",
        "required": [
          "id",
          "startsAt",
          "state",
          "venue",
          "images",
          "waitlist"
        ],
        "properties": {
          "city": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/City"
              }
            ]
          },
          "endsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "`offerings_events.id`: `GET /events/{id}`.",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet",
            "description": "The date's own photos, else the production's, per orientation."
          },
          "priceFrom": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "priceTo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "saleEndsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "saleStartsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "sellingBrand": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SellingBrand"
              }
            ]
          },
          "startsAt": {
            "type": "string",
            "format": "date-time"
          },
          "state": {
            "$ref": "#/components/schemas/DateState"
          },
          "venue": {
            "$ref": "#/components/schemas/Venue"
          },
          "waitlist": {
            "type": "boolean",
            "description": "Sold out here with seats still at other channels: `POST /events/{id}/waitlist` takes a contact."
          }
        }
      },
      "ShowRef": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "`offerings.id`.",
            "minimum": 0
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "`GET /shows/{slug}`."
          }
        }
      },
      "SignedIn": {
        "type": "object",
        "required": [
          "token",
          "expiresAt",
          "user"
        ],
        "properties": {
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "token": {
            "type": "string",
            "description": "Send as `Authorization: Bearer {token}`. Valid on the website and v1 too."
          },
          "user": {
            "$ref": "#/components/schemas/Me"
          }
        }
      },
      "SitemapEntry": {
        "type": "object",
        "required": [
          "path",
          "kind",
          "updatedAt",
          "changeFreq"
        ],
        "properties": {
          "changeFreq": {
            "type": "string",
            "description": "`<changefreq>`: `hourly` for shows, `daily` for everything else (v1's values).",
            "example": "daily"
          },
          "kind": {
            "$ref": "#/components/schemas/SitemapKind"
          },
          "path": {
            "type": "string",
            "description": "Website path in the default locale (`/artist/{slug}`, `/performer/{slug}`, `/bilet/{slug}`,\n`/c/{slug}`, `/info/{slug}`, `/{slug}`); the website adds its origin and the `/en` alternate.",
            "example": "/bilet/koncert-x"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Last change of the artist, production or page."
          }
        }
      },
      "SitemapKind": {
        "type": "string",
        "enum": [
          "artist",
          "performer",
          "show",
          "category",
          "page"
        ]
      },
      "SpinResult": {
        "type": "object",
        "required": [
          "win"
        ],
        "properties": {
          "claimBy": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "A win not taken by then returns to the pool."
          },
          "event": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DateHit",
                "description": "The date won."
              }
            ]
          },
          "guestToken": {
            "type": [
              "string",
              "null"
            ],
            "description": "A guest's first spin: the token for the website's httpOnly cookie."
          },
          "inviteSoldOut": {
            "type": [
              "string",
              "null"
            ],
            "description": "The friend's date could not be played, by its title: \"Билетите за „X“ свършиха…\" (PRD M8)."
          },
          "win": {
            "type": "boolean"
          }
        }
      },
      "Subscribed": {
        "type": "object",
        "required": [
          "subscribed"
        ],
        "properties": {
          "subscribed": {
            "type": "boolean",
            "description": "Always `true`; the answer does not say whether the address was already on the list."
          }
        }
      },
      "TicketCategory": {
        "type": "string",
        "enum": [
          "adult",
          "child",
          "student",
          "disabled",
          "retiree",
          "unknown"
        ]
      },
      "TicketCheck": {
        "type": "object",
        "required": [
          "status",
          "event",
          "ticket"
        ],
        "properties": {
          "event": {
            "$ref": "#/components/schemas/OrderEvent"
          },
          "scannedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the ticket was let in; `null` unless `status` is `used`."
          },
          "status": {
            "$ref": "#/components/schemas/TicketStatus"
          },
          "ticket": {
            "$ref": "#/components/schemas/CheckedTicket"
          }
        }
      },
      "TicketLine": {
        "type": "object",
        "required": [
          "seatId",
          "isGeneralAdmission",
          "priceGroupId",
          "label",
          "count",
          "categories",
          "unitPrice",
          "paidUnitPrice",
          "lineTotal"
        ],
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "One letter per ticket: `a` adult, `c` child, `s` student, `d` disabled, `r` retiree."
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "isGeneralAdmission": {
            "type": "boolean"
          },
          "label": {
            "type": "string",
            "description": "The price group's label in the request language."
          },
          "lineTotal": {
            "$ref": "#/components/schemas/Money"
          },
          "paidUnitPrice": {
            "$ref": "#/components/schemas/Money",
            "description": "What one ticket of the line costs after a fixed-price code (`discount_codes.seat_price`,\nv1 `items[seat].price`): never more than `unitPrice`; equal to it without such a code. The\ndifference is part of `discount`, as v1 does: `unitPrice` stays the face price."
          },
          "priceGroupId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "row": {
            "type": [
              "string",
              "null"
            ]
          },
          "seat": {
            "type": [
              "string",
              "null"
            ]
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "section": {
            "type": [
              "string",
              "null"
            ]
          },
          "unitPrice": {
            "$ref": "#/components/schemas/Money",
            "description": "The unit price charged (`orders_items.at_price`)."
          }
        }
      },
      "TicketRequest": {
        "type": "object",
        "required": [
          "seatId"
        ],
        "properties": {
          "categories": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "One category per ticket: `a` adult, `c` child, `s` student, `d` disabled, `r` retiree.\nDefault: all adult."
          },
          "count": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Tickets on this line: 1 for a numbered seat, 1–50 for a general-admission area. Default 1.",
            "minimum": 0
          },
          "recipientPhone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Split payment: someone else pays this line (they get an SMS); the seat is held 50 minutes.\nA real number with its country code (or a Bulgarian one), else `400 invalid_phone`."
          },
          "seatId": {
            "type": "integer",
            "format": "int64",
            "description": "The seat (or general-admission area) id from the seat map.",
            "minimum": 0
          }
        }
      },
      "TicketStatus": {
        "type": "string",
        "description": "One status; the first that applies wins, in this order.",
        "enum": [
          "cancelled",
          "void",
          "used",
          "postponed",
          "passed",
          "valid"
        ]
      },
      "TokenRequest": {
        "type": "object",
        "required": [
          "token"
        ],
        "properties": {
          "token": {
            "type": "string"
          }
        }
      },
      "TopCard": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ShowCard"
          },
          {
            "type": "object",
            "required": [
              "rank"
            ],
            "properties": {
              "rank": {
                "type": "integer",
                "format": "int32",
                "description": "`hp_top_priority`, 1 first (v1 sent it as the card's `hp_top_priority`). Ranks can skip\nnumbers, so show this, not the position in the list.",
                "minimum": 0
              }
            }
          }
        ],
        "description": "A `top` card: the show card and its editorial rank."
      },
      "TransactionDetails": {
        "type": "object",
        "required": [
          "transaction"
        ],
        "properties": {
          "transaction": {
            "$ref": "#/components/schemas/WalletTransaction"
          },
          "withdrawal": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Withdrawal",
                "description": "The bank withdrawal this transaction pays out, if it is one."
              }
            ]
          }
        }
      },
      "TransferExtended": {
        "type": "object",
        "required": [
          "orderId",
          "expiresAt",
          "extensions"
        ],
        "properties": {
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "The new deadline."
          },
          "extensions": {
            "type": "integer",
            "format": "int64",
            "description": "Extensions so far (at most `bank_transfer_max_extensions`)."
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          }
        }
      },
      "TransferReceived": {
        "type": "object",
        "required": [
          "orderId",
          "state",
          "outcome",
          "conflicts"
        ],
        "properties": {
          "conflicts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SeatConflict"
            }
          },
          "orderId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "outcome": {
            "type": "string",
            "description": "`received`, `revived`, `seat_conflict` or `already_received`."
          },
          "paidDate": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": "integer",
            "format": "int32",
            "description": "`orders.state` now: 4 paid, 8 a seat was gone (refund by bank or agree other seats), or the\nstate of an order received before.",
            "minimum": 0
          }
        }
      },
      "TransferReceivedBody": {
        "type": "object",
        "required": [
          "paidDate",
          "adminUserId"
        ],
        "properties": {
          "adminUserId": {
            "type": "integer",
            "format": "int64",
            "description": "The operator (`users.id`), kept on the payment.",
            "minimum": 0
          },
          "paidDate": {
            "type": "string",
            "description": "The bank statement's date, `YYYY-MM-DD` (Sofia): not in the future, not before the order."
          },
          "revive": {
            "type": "boolean",
            "description": "Sell an order that admin's `cashDeskOrdersAutoReject` cancelled at its deadline (not in v1):\nonly a `bank_transfer` order in state 10 with the cron's failure_reason, until the end of the\n4th business day after its deadline, none of its dates started. Without it such an order is\n`409 not_awaiting_transfer`; with it, any other order is `409 not_revivable`."
          }
        }
      },
      "Translations": {
        "type": "object",
        "required": [
          "lang",
          "revision",
          "items",
          "htmlKeys"
        ],
        "properties": {
          "htmlKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The keys of `items` whose value is a short text (CMS snippet, may contain HTML): render these\nas HTML and every other value as plain text. Sorted."
          },
          "items": {
            "type": "object",
            "description": "UI key → text. Website short texts (HTML allowed) override dictionary keys of the same name.",
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "lang": {
            "type": "string"
          },
          "revision": {
            "type": "integer",
            "format": "int64",
            "description": "`intern_vars.texts_revision`; admin bumps it when texts change. Also the response ETag.",
            "minimum": 0
          }
        }
      },
      "Unsubscribed": {
        "type": "object",
        "required": [
          "unsubscribed",
          "message"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "v1's confirmation text (`unsubscribe_success`), in the requested language."
          },
          "unsubscribed": {
            "type": "boolean"
          }
        }
      },
      "Venue": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ],
            "format": "double"
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ],
            "format": "double"
          },
          "mapZoom": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Suggested map zoom level.",
            "minimum": 0
          },
          "name": {
            "type": "string",
            "description": "Localised: the venue's translation, else the stored name (transliterated outside BG)."
          }
        }
      },
      "VenueRef": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "name": {
            "type": "string",
            "description": "Localised: the venue's translation, else the stored name (transliterated outside BG)."
          }
        }
      },
      "VerifyRequest": {
        "type": "object",
        "required": [
          "challengeId",
          "code"
        ],
        "properties": {
          "challengeId": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        }
      },
      "VoucherBundle": {
        "type": "object",
        "required": [
          "id",
          "name",
          "slug",
          "images",
          "prices",
          "brands",
          "shows"
        ],
        "properties": {
          "brands": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrandRef"
            },
            "description": "The organisers whose shows the voucher pays for."
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/BundleImages"
          },
          "name": {
            "type": "string"
          },
          "prices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VoucherPrice"
            },
            "description": "The vouchers on sale, cheapest first."
          },
          "shows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShowCard"
            },
            "description": "Shows of those organisers on sale now."
          },
          "slug": {
            "type": "string"
          },
          "terms": {
            "type": [
              "string",
              "null"
            ],
            "description": "Terms of use, HTML, in the requested language; `null` when none are written."
          }
        }
      },
      "VoucherBundleSummary": {
        "type": "object",
        "required": [
          "id",
          "name",
          "slug",
          "images"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/BundleImages"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        }
      },
      "VoucherCheck": {
        "type": "object",
        "required": [
          "code",
          "status",
          "allowedBrands",
          "validForAllBrands",
          "remaining",
          "used",
          "usedFor"
        ],
        "properties": {
          "allowedBrands": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrandRef"
            },
            "description": "The organisers the voucher pays for; empty = every organiser (`validForAllBrands`)."
          },
          "bundle": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BundleRef"
              }
            ]
          },
          "code": {
            "type": "string"
          },
          "expiredGesture": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ExpiredGesture",
                "description": "«Жест от нас»: on an expired voucher, the same code still gives this percent off once, until\nthis day inclusive; `null` when there is none, it is over or it was used."
              }
            ]
          },
          "faceValue": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money",
                "description": "What the voucher was worth when issued."
              }
            ]
          },
          "purchasedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "remaining": {
            "$ref": "#/components/schemas/Money"
          },
          "status": {
            "$ref": "#/components/schemas/VoucherStatus"
          },
          "used": {
            "$ref": "#/components/schemas/Money",
            "description": "The total of the completed orders that used it."
          },
          "usedFor": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VoucherUse"
            },
            "description": "Completed orders that used the voucher, newest first."
          },
          "validForAllBrands": {
            "type": "boolean"
          },
          "validFrom": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "example": "2026-01-10"
          },
          "validUntil": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Inclusive: the voucher can be used for the whole of this day.",
            "example": "2027-01-10"
          }
        }
      },
      "VoucherCode": {
        "type": "object",
        "required": [
          "code",
          "remaining",
          "status",
          "uses",
          "maxUses"
        ],
        "properties": {
          "bundleId": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "minimum": 0
          },
          "bundlePriceId": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "minimum": 0
          },
          "code": {
            "type": "string",
            "description": "The gift code itself, the buyer's to hand on, on the account's own orders (`isOwner`). On an\norder only matched by e-mail or phone it is masked to its last 4 characters (`••••7KQ2`): a\nrecycled number or a shared address must not hand over spendable codes. v1 listed no codes."
          },
          "faceValue": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "maxUses": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "remaining": {
            "$ref": "#/components/schemas/Money"
          },
          "status": {
            "$ref": "#/components/schemas/VoucherStatus"
          },
          "uses": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "validFrom": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "validUntil": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Inclusive."
          }
        }
      },
      "VoucherLine": {
        "type": "object",
        "required": [
          "bundlePriceId",
          "price"
        ],
        "properties": {
          "bundleId": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "minimum": 0
          },
          "bundleName": {
            "type": [
              "string",
              "null"
            ]
          },
          "bundlePriceId": {
            "type": "integer",
            "format": "int64"
          },
          "price": {
            "$ref": "#/components/schemas/Money"
          }
        }
      },
      "VoucherPrice": {
        "type": "object",
        "description": "One voucher of a bundle. `price` is what the buyer pays. The voucher is worth either a fixed\n`faceValue` (equal to `price` by design) or a `discountPercent`; the two are mutually exclusive\n(`voucher_bundles_prices.discount_amount` / `discount_percent`, Contents.php:2940-2944).",
        "required": [
          "id",
          "price"
        ],
        "properties": {
          "discountPercent": {
            "type": [
              "string",
              "null"
            ],
            "example": "10.00"
          },
          "faceValue": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Money"
              }
            ]
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "price": {
            "$ref": "#/components/schemas/Money"
          }
        }
      },
      "VoucherRequest": {
        "type": "object",
        "required": [
          "bundleId",
          "priceId"
        ],
        "properties": {
          "bundleId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          },
          "priceId": {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          }
        }
      },
      "VoucherStatus": {
        "type": "string",
        "enum": [
          "active",
          "expired",
          "fullyUsed",
          "blocked"
        ]
      },
      "VoucherUse": {
        "type": "object",
        "required": [
          "amount"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "event": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/VoucherUseEvent",
                "description": "The date the order was for; `null` when it cannot be resolved."
              }
            ]
          },
          "usedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "VoucherUseEvent": {
        "type": "object",
        "required": [
          "eventId",
          "showName",
          "images"
        ],
        "properties": {
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "images": {
            "$ref": "#/components/schemas/ImageSet"
          },
          "showName": {
            "type": "string"
          },
          "startsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "WaitlistJoined": {
        "type": "object",
        "required": [
          "ok"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          }
        }
      },
      "WaitlistRequest": {
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "type": "string"
          },
          "lang": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language of the notice."
          },
          "marketingConsent": {
            "type": "boolean",
            "description": "Wants other offers from ticket.bg: the address becomes a normal client."
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "With a phone the notice goes by Viber, else by e-mail."
          }
        }
      },
      "Wallet": {
        "type": "object",
        "required": [
          "balance",
          "transactions"
        ],
        "properties": {
          "balance": {
            "$ref": "#/components/schemas/Money",
            "description": "What checkout can spend (`users.wallet_balance`), in the site currency."
          },
          "nextBefore": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Pass as `before` for the next page; absent on the last page.",
            "minimum": 0
          },
          "transactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WalletTransaction"
            },
            "description": "Newest first."
          }
        }
      },
      "WalletPassFeatures": {
        "type": "object",
        "required": [
          "apple",
          "google"
        ],
        "properties": {
          "apple": {
            "type": "boolean"
          },
          "google": {
            "type": "boolean"
          }
        }
      },
      "WalletPassOrder": {
        "type": "object",
        "required": [
          "orderKey",
          "state",
          "walletAvailable",
          "appleAvailable",
          "googleAvailable",
          "eventIds",
          "ticketsCount",
          "tickets",
          "service"
        ],
        "properties": {
          "appleAvailable": {
            "type": "boolean"
          },
          "eventIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            },
            "description": "Distinct dates of the listed tickets, in ticket order."
          },
          "googleAvailable": {
            "type": "boolean"
          },
          "orderKey": {
            "type": "string"
          },
          "service": {
            "$ref": "#/components/schemas/WalletPassService"
          },
          "state": {
            "type": "integer",
            "format": "int32",
            "description": "`orders.state`; tickets are listed for 6 and 7 only.",
            "minimum": 0
          },
          "tickets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WalletPassTicket"
            },
            "description": "Not cancelled, in id order."
          },
          "ticketsCount": {
            "type": "integer",
            "minimum": 0
          },
          "walletAvailable": {
            "type": "boolean",
            "description": "Some ticket can be added to a wallet (Apple or Google)."
          }
        }
      },
      "WalletPassService": {
        "type": "object",
        "description": "Readiness of the pass generator, independent of any ticket (v1 `localServiceMetadata`).",
        "required": [
          "walletServiceEnabled",
          "appleGenerationConfigured",
          "googleGenerationConfigured"
        ],
        "properties": {
          "appleGenerationConfigured": {
            "type": "boolean"
          },
          "googleGenerationConfigured": {
            "type": "boolean"
          },
          "walletServiceEnabled": {
            "type": "boolean"
          }
        }
      },
      "WalletPassTicket": {
        "type": "object",
        "required": [
          "id",
          "eventId",
          "section",
          "category",
          "walletAvailable",
          "appleAvailable",
          "googleAvailable"
        ],
        "properties": {
          "appleAvailable": {
            "type": "boolean"
          },
          "category": {
            "$ref": "#/components/schemas/TicketCategory"
          },
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "googleAvailable": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "`ticket.id`, for `GET /wallet-passes/tickets/{ticketId}`.",
            "minimum": 0
          },
          "row": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "minimum": 0
          },
          "seat": {
            "type": [
              "string",
              "null"
            ]
          },
          "section": {
            "type": "string"
          },
          "walletAvailable": {
            "type": "boolean"
          }
        }
      },
      "WalletPassTicketDetail": {
        "type": "object",
        "required": [
          "id",
          "eventId",
          "eventName",
          "venueName",
          "section",
          "category",
          "cancelled",
          "walletAvailable",
          "appleAvailable",
          "googleAvailable",
          "service"
        ],
        "properties": {
          "appleAvailable": {
            "type": "boolean"
          },
          "cancelled": {
            "type": "boolean"
          },
          "category": {
            "$ref": "#/components/schemas/TicketCategory"
          },
          "eventId": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "eventName": {
            "type": "string",
            "description": "`\"\"` when the date no longer exists."
          },
          "eventStarts": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "googleAvailable": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "row": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "minimum": 0
          },
          "seat": {
            "type": [
              "string",
              "null"
            ]
          },
          "section": {
            "type": "string"
          },
          "service": {
            "$ref": "#/components/schemas/WalletPassService"
          },
          "venueName": {
            "type": "string"
          },
          "walletAvailable": {
            "type": "boolean"
          }
        }
      },
      "WalletShare": {
        "type": "object",
        "required": [
          "recipientPhone",
          "smsStatus"
        ],
        "properties": {
          "recipientPhone": {
            "type": "string"
          },
          "sharedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "smsStatus": {
            "type": "string",
            "description": "`queued`, `sent`, `failed` or `skipped`."
          }
        }
      },
      "WalletTransaction": {
        "type": "object",
        "required": [
          "id",
          "executedAt",
          "direction",
          "reason",
          "amount",
          "counterparty"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money",
            "description": "Signed as stored: debits are negative."
          },
          "counterparty": {
            "type": "string",
            "description": "\"Website\" for the system side, else the other account's name."
          },
          "direction": {
            "$ref": "#/components/schemas/Direction"
          },
          "executedAt": {
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "noteToClient": {
            "type": [
              "string",
              "null"
            ]
          },
          "orderKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "The related order's key, only when that order is the user's own."
          },
          "reason": {
            "$ref": "#/components/schemas/Reason"
          },
          "reasonCode": {
            "type": [
              "string",
              "null"
            ],
            "description": "The stored `reason_code`, for `other`."
          },
          "withdrawalStatus": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WithdrawalStatus",
                "description": "Set when the transaction is a withdrawal."
              }
            ]
          }
        }
      },
      "WebhookAck": {
        "type": "object",
        "required": [
          "received"
        ],
        "properties": {
          "received": {
            "type": "boolean"
          }
        }
      },
      "Withdrawal": {
        "type": "object",
        "required": [
          "id",
          "channel",
          "status",
          "amount",
          "createdAt"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "bankName": {
            "type": [
              "string",
              "null"
            ]
          },
          "channel": {
            "type": "string",
            "description": "`bank` or `paypal`."
          },
          "confirmedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "executedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ibanMasked": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only the last four characters, e.g. `•••• 1234`."
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "recipientName": {
            "type": [
              "string",
              "null"
            ]
          },
          "rejectReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the operator rejected it."
          },
          "status": {
            "$ref": "#/components/schemas/WithdrawalStatus"
          }
        }
      },
      "WithdrawalCreated": {
        "type": "object",
        "required": [
          "withdrawal",
          "transactionId",
          "balance",
          "codeSentTo",
          "expiresAt"
        ],
        "properties": {
          "balance": {
            "$ref": "#/components/schemas/Money",
            "description": "The wallet balance after the amount was taken."
          },
          "codeSentTo": {
            "type": "string",
            "description": "Where the code went, masked."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "Confirm before this; afterwards the request is cancelled and the amount returned to the\nwallet."
          },
          "transactionId": {
            "type": "integer",
            "format": "int64",
            "description": "The ledger row holding the amount (`GET /me/wallet/transactions/{id}`).",
            "minimum": 0
          },
          "withdrawal": {
            "$ref": "#/components/schemas/Withdrawal",
            "description": "Status `new` until confirmed with the e-mailed code."
          }
        }
      },
      "WithdrawalRequest": {
        "type": "object",
        "required": [
          "iban",
          "bankName",
          "recipientName",
          "amount"
        ],
        "properties": {
          "amount": {
            "type": "string",
            "description": "At least 0.10, at most two decimal places, not above the balance. A decimal string; a JSON\nnumber is accepted too.",
            "example": "25.50"
          },
          "bankName": {
            "type": "string",
            "description": "3–200 characters."
          },
          "iban": {
            "type": "string",
            "description": "The account to pay into; spaces are ignored, letters may be lower-case.",
            "example": "BG80 BNBG 9661 1020 3456 78"
          },
          "recipientName": {
            "type": "string",
            "description": "The account holder, 3–240 characters."
          }
        }
      },
      "WithdrawalStatus": {
        "type": "string",
        "description": "`wallet_withdrawal_requests.state`: 0 new, 1 confirmed by the client, 2 money sent, 10 rejected.",
        "enum": [
          "new",
          "confirmed",
          "sent",
          "rejected",
          "unknown"
        ]
      },
      "WithheldCategory": {
        "type": "object",
        "required": [
          "category",
          "reason"
        ],
        "properties": {
          "category": {
            "$ref": "#/components/schemas/PreferentialCategory"
          },
          "reason": {
            "type": "string",
            "description": "Why, as the organiser wrote it; may be empty."
          }
        }
      },
      "WorkingHours": {
        "type": "object",
        "description": "Opening hours per weekday, Europe/Sofia. A day that is missing or has no slot is closed. As stored\nby admin (`payment_gateways.options.working_hours`); slots that are not `{from, to}` strings are\nleft out.",
        "properties": {
          "fri": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/OpeningSlot"
            }
          },
          "mon": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/OpeningSlot"
            }
          },
          "sat": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/OpeningSlot"
            }
          },
          "sun": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/OpeningSlot"
            }
          },
          "thu": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/OpeningSlot"
            }
          },
          "tue": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/OpeningSlot"
            }
          },
          "wed": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/OpeningSlot"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "{userId}_{sessionKey}"
      }
    }
  },
  "tags": [
    {
      "name": "system",
      "description": "Health, languages and the UI dictionary"
    },
    {
      "name": "catalog",
      "description": "Browsing: menu, categories, shows, dates"
    },
    {
      "name": "orders",
      "description": "Booking and checkout of one order, by its key (a bearer credential: keep it out of URLs you share)"
    },
    {
      "name": "account",
      "description": "Sign-in and the signed-in customer (send `Authorization: Bearer {token}`)"
    },
    {
      "name": "website",
      "description": "Called by the website and by mails, not by the apps: newsletter, contact form, Meta and mail-campaign tracking"
    },
    {
      "name": "promo",
      "description": "The promo wheel: the website and the signed-in apps play the same game"
    },
    {
      "name": "feeds",
      "description": "Website feeds: sitemap, product catalogues for ad platforms, llms.txt and the Google Merchant XML"
    },
    {
      "name": "payments",
      "description": "Not for the apps: the card provider's webhook and admin's refunds (`X-Admin-Token`)"
    },
    {
      "name": "brand-api",
      "description": "Read-only numbers about one brand's dates for the brand's own systems: `Authorization: Bearer tbk_…` from a whitelisted address (docs: `/v2/brand-api/docs`)"
    },
    {
      "name": "agents",
      "description": "AI assistants hold seats for a person, who pays on ticket.bg through a handoff link. The MCP server wraps these; agents never pay"
    }
  ]
}