{
 "openapi": "3.0.1",
 "info": {
  "title": "OMS API",
  "version": "2026-10-08",
  "description": "Rdzeń Sellrocket: zamówienia, statusy, płatności, przesyłki, zwroty, połączenia ze sklepami i kurierami, użytkownicy.\n\nAdres bazowy: `https://{instancja}-smerp-api.enterprise.sellrocket.pl` — `{instancja}` to nazwa Twojej instancji Sellrocket, którą otrzymasz przy jej uruchomieniu.\n\nWszystkie żądania wymagają nagłówka `Authorization: Bearer <token>` — zobacz [Uwierzytelnianie](../../start/uwierzytelnianie/).\n\n**Specyfikacja OpenAPI:** [oms.json](../../specs/oms.json) — do importu w Postmanie/Insomnii lub generowania klienta."
 },
 "servers": [
  {
   "url": "https://{instancja}-smerp-api.enterprise.sellrocket.pl",
   "variables": {
    "instancja": {
     "default": "twoja-instancja",
     "description": "Nazwa Twojej instancji Sellrocket"
    }
   }
  }
 ],
 "tags": [
  {
   "name": "Zamówienia"
  },
  {
   "name": "Pozycje zamówienia"
  },
  {
   "name": "Płatności"
  },
  {
   "name": "Przesyłki zamówienia"
  },
  {
   "name": "Załączniki"
  },
  {
   "name": "Operacje na zamówieniach"
  },
  {
   "name": "Statystyki zamówień"
  },
  {
   "name": "Pakowanie zamówień"
  },
  {
   "name": "Statusy"
  },
  {
   "name": "Grupy statusów"
  },
  {
   "name": "Tagi"
  },
  {
   "name": "Przesyłki"
  },
  {
   "name": "Stanowiska pakowania"
  },
  {
   "name": "Szablony kompletacji"
  },
  {
   "name": "Zwroty"
  },
  {
   "name": "Pozycje zwrotu"
  },
  {
   "name": "Przesyłki zwrotne"
  },
  {
   "name": "Statusy zwrotów"
  },
  {
   "name": "Grupy statusów zwrotów"
  },
  {
   "name": "Statusy pozycji zwrotu"
  },
  {
   "name": "Powody zwrotów"
  },
  {
   "name": "Połączenia"
  },
  {
   "name": "Definicje połączeń"
  },
  {
   "name": "Rodzaje połączeń"
  },
  {
   "name": "Kontrahenci"
  },
  {
   "name": "Szablony"
  },
  {
   "name": "Użytkownicy"
  },
  {
   "name": "Uprawnienia"
  },
  {
   "name": "Akcje użytkownika"
  },
  {
   "name": "Zdarzenia użytkownika"
  },
  {
   "name": "Drukarki użytkownika"
  },
  {
   "name": "Tokeny API"
  },
  {
   "name": "Magazyn klucz-wartość"
  },
  {
   "name": "Zadania asynchroniczne"
  }
 ],
 "paths": {
  "/api/v3/ConnectionDefinitions": {
   "get": {
    "tags": [
     "Definicje połączeń"
    ],
    "summary": "Pobierz definicje połączeń",
    "parameters": [
     {
      "name": "kind",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ConnectionDefinitionDto"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-connectiondefinitions",
    "description": "Zwraca definicje dostępnych typów integracji (marketplace, sklepy, kurierzy itp.), opcjonalnie filtrowane po rodzaju."
   }
  },
  "/api/v3/ConnectionDefinitions/{id}": {
   "get": {
    "tags": [
     "Definicje połączeń"
    ],
    "summary": "Pobierz definicję połączenia po ID",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionDefinitionDto"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-connectiondefinitions-id"
   },
   "put": {
    "tags": [
     "Definicje połączeń"
    ],
    "summary": "Utwórz lub zaktualizuj definicję połączenia",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpsertConnectionDefinitionRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "204": {
      "description": "No Content"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-connectiondefinitions-id",
    "description": "Zapisuje definicję połączenia o wskazanym ID. Używane głównie przez panel Sellrocket."
   },
   "delete": {
    "tags": [
     "Definicje połączeń"
    ],
    "summary": "Usuń definicję połączenia",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "delete-connectiondefinitions-id"
   }
  },
  "/api/v3/ConnectionDefinitions/{id}/install": {
   "put": {
    "tags": [
     "Definicje połączeń"
    ],
    "summary": "Zainstaluj integrację z definicji",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-connectiondefinitions-id-install",
    "description": "Instaluje (aktywuje) integrację opisaną daną definicją połączenia. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/ConnectionDefinitions/{id}/uninstall": {
   "put": {
    "tags": [
     "Definicje połączeń"
    ],
    "summary": "Odinstaluj integrację z definicji",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-connectiondefinitions-id-uninstall",
    "description": "Dezaktywuje integrację opisaną daną definicją połączenia. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/ConnectionKinds": {
   "get": {
    "tags": [
     "Rodzaje połączeń"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-connectionkinds",
    "summary": "Pobierz rodzaje połączeń",
    "description": "Zwraca listę rodzajów połączeń (np. sprzedaż, wysyłka), używanych do grupowania definicji."
   }
  },
  "/api/v3/Connections": {
   "get": {
    "tags": [
     "Połączenia"
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfConnectionResponseDTOV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-connections",
    "summary": "Pobierz listę połączeń (stronicowanie)",
    "description": "Zwraca skonfigurowane integracje (konta marketplace, sklepy, kurierzy). Zbliżone do listy integracji w BaseLinker."
   },
   "post": {
    "tags": [
     "Połączenia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ConnectionRequestDTOV2"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "post-connections",
    "summary": "Utwórz połączenie",
    "description": "Dodaje nową integrację na podstawie definicji połączenia. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Connections/{connectionId}/PositionInDefinition": {
   "put": {
    "tags": [
     "Połączenia"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateConnectionPositionInDefinitionRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-connections-connectionid-positionindefinition",
    "summary": "Zmień pozycję połączenia w definicji",
    "description": "Ustala kolejność wyświetlania połączenia w obrębie jego definicji. Używane głównie przez panel Sellrocket."
   }
  },
  "/api/v3/Connections/{id}": {
   "get": {
    "tags": [
     "Połączenia"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionResponseDTOV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-connections-id",
    "summary": "Pobierz połączenie po ID"
   },
   "put": {
    "tags": [
     "Połączenia"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ConnectionRequestDTOV2"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-connections-id",
    "summary": "Zaktualizuj połączenie",
    "description": "Zmienia konfigurację istniejącej integracji. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Połączenia"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "delete-connections-id",
    "summary": "Usuń połączenie"
   }
  },
  "/api/v3/Connections/All": {
   "get": {
    "tags": [
     "Połączenia"
    ],
    "parameters": [
     {
      "name": "ConnectionType",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfConnectionResponseDTOV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-connections-all",
    "summary": "Pobierz wszystkie połączenia danego typu",
    "description": "Zwraca wszystkie połączenia bez stronicowania, opcjonalnie filtrowane po typie połączenia."
   }
  },
  "/api/v3/Connections/AllGrouped": {
   "get": {
    "tags": [
     "Połączenia"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionsGetAllGroupedResponseDTOV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-connections-allgrouped",
    "summary": "Pobierz połączenia pogrupowane wg definicji",
    "description": "Zwraca wszystkie połączenia pogrupowane według definicji/rodzaju. Używane głównie przez panel Sellrocket."
   }
  },
  "/api/v3/Connections/ByIds": {
   "post": {
    "tags": [
     "Połączenia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ConnectionResponseDTOV2"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "post-connections-byids",
    "summary": "Pobierz wiele połączeń po ID",
    "description": "Odczyt (nie tworzy połączeń) – w treści żądania przekazujesz listę identyfikatorów."
   }
  },
  "/api/v3/Connections/CreateShopperConnection": {
   "post": {
    "tags": [
     "Połączenia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateShopperConnectionCommand"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CreateShopperConnectionResponse"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-connections-createshopperconnection",
    "summary": "Utwórz połączenie ze sklepem Shopper",
    "description": "Zakłada integrację ze sklepem na platformie Shopper."
   }
  },
  "/api/v3/Contractors/FromExisting": {
   "get": {
    "tags": [
     "Kontrahenci"
    ],
    "parameters": [
     {
      "name": "searchValue",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ExistingContractorResponse"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-contractors-fromexisting",
    "summary": "Wyszukaj kontrahenta wśród istniejących danych",
    "description": "Podpowiada dane kontrahenta na podstawie wcześniejszych zamówień, np. przy ręcznym wystawianiu zamówienia."
   }
  },
  "/api/v3/Contractors/FromGus": {
   "get": {
    "tags": [
     "Kontrahenci"
    ],
    "parameters": [
     {
      "name": "nip",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ContractorResponse"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-contractors-fromgus",
    "summary": "Pobierz dane firmy z GUS po NIP",
    "description": "Zwraca dane rejestrowe firmy z bazy GUS (REGON) dla podanego numeru NIP."
   }
  },
  "/api/v3/jobs/get/{id}": {
   "get": {
    "tags": [
     "Zadania asynchroniczne"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "get-jobs-get-id",
    "summary": "Pobierz status zadania asynchronicznego",
    "description": "Większość operacji zapisu zwraca zadanie (job) – tym endpointem sprawdzisz, czy zakończyło się sukcesem i odczytasz jego wynik."
   }
  },
  "/api/v3/jobs/list": {
   "get": {
    "tags": [
     "Zadania asynchroniczne"
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/JobStatusEnum"
        }
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/JobDTO"
         }
        }
       }
      }
     }
    },
    "operationId": "get-jobs-list",
    "summary": "Pobierz listę zadań asynchronicznych",
    "description": "Zwraca zadania, opcjonalnie filtrowane po statusie."
   }
  },
  "/api/v3/KeyValueStore/Async/User/{userId}/{key}": {
   "post": {
    "tags": [
     "Magazyn klucz-wartość"
    ],
    "summary": "Dodaj wpis klucz-wartość użytkownika (asynchronicznie)",
    "description": "Asynchroniczny wariant dodania wpisu JSON w magazynie użytkownika.\n\nMetoda umożliwia dodanie nowej wartości klucza dla użytkownika. Wartość klucza może być dowolnym obiektem JSON.",
    "parameters": [
     {
      "name": "userId",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "key",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "description": "Any JSON",
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "additionalProperties": {
         "$ref": "#/components/schemas/JsonNode"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "If operation completed successfully"
     }
    },
    "operationId": "post-keyvaluestore-async-user-userid-key"
   }
  },
  "/api/v3/KeyValueStore/Global/{key}": {
   "get": {
    "tags": [
     "Magazyn klucz-wartość"
    ],
    "summary": "Pobierz globalny wpis klucz-wartość",
    "description": "Zwraca wartość JSON zapisaną pod kluczem na poziomie całej organizacji. Przydatne do przechowywania własnej konfiguracji integracji.\n\nMetoda umożliwia pobranie wartości JSON znajdującej się pod wskazanym kluczem.",
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "If operation completed successfully"
     },
     "404": {
      "description": "If the key not exists"
     }
    },
    "operationId": "get-keyvaluestore-global-key"
   },
   "post": {
    "tags": [
     "Magazyn klucz-wartość"
    ],
    "summary": "Dodaj globalny wpis klucz-wartość",
    "description": "Zapisuje nowy klucz z dowolną wartością JSON na poziomie organizacji.\n\nMetoda umożliwia dodanie nowej wartości klucza dla organizacji. Wartość klucza może być dowolnym obiektem JSON.",
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "description": "Any JSON",
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "additionalProperties": {
         "$ref": "#/components/schemas/JsonNode"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "If operation completed successfully"
     }
    },
    "operationId": "post-keyvaluestore-global-key"
   },
   "put": {
    "tags": [
     "Magazyn klucz-wartość"
    ],
    "summary": "Utwórz lub zaktualizuj globalny wpis klucz-wartość",
    "description": "Metoda umożliwia aktualizację wartości klucza w bazie danych lub utworzenie nowej jeśli nie istnieje.",
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "description": "",
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "additionalProperties": {
         "$ref": "#/components/schemas/JsonNode"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "If operation completed successfully"
     }
    },
    "operationId": "put-keyvaluestore-global-key"
   },
   "delete": {
    "tags": [
     "Magazyn klucz-wartość"
    ],
    "summary": "Usuń globalny wpis klucz-wartość",
    "description": "Metoda umożliwia usunięcie klucza z wartością.",
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "If operation completed successfully"
     },
     "404": {
      "description": "If the key not exists"
     }
    },
    "operationId": "delete-keyvaluestore-global-key"
   }
  },
  "/api/v3/KeyValueStore/User/{userId}": {
   "put": {
    "tags": [
     "Magazyn klucz-wartość"
    ],
    "summary": "Zapisz wszystkie wpisy klucz-wartość użytkownika",
    "description": "Tworzy lub aktualizuje zbiorczo wpisy magazynu klucz-wartość dla wskazanego użytkownika.\n\nMetoda umożliwia aktualizację wartości klucza w bazie danych lub utworzenie nowej jeśli nie istnieje.",
    "parameters": [
     {
      "name": "userId",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "description": "",
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/KeyValueStoreUpdateDTO"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "If operation completed successfully"
     }
    },
    "operationId": "put-keyvaluestore-user-userid"
   }
  },
  "/api/v3/KeyValueStore/User/{userId}/{key}": {
   "get": {
    "tags": [
     "Magazyn klucz-wartość"
    ],
    "summary": "Pobierz wpis klucz-wartość użytkownika",
    "description": "Metoda umożliwia pobranie wartości JSON znajdującej się pod wskazanym kluczem.",
    "parameters": [
     {
      "name": "userId",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "key",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "If operation completed successfully"
     },
     "404": {
      "description": "If the key not exists"
     }
    },
    "operationId": "get-keyvaluestore-user-userid-key"
   },
   "post": {
    "tags": [
     "Magazyn klucz-wartość"
    ],
    "summary": "Dodaj wpis klucz-wartość użytkownika",
    "description": "Zapisuje nowy klucz z dowolną wartością JSON dla wskazanego użytkownika.\n\nMetoda umożliwia dodanie nowej wartości klucza dla użytkownika. Wartość klucza może być dowolnym obiektem JSON.",
    "parameters": [
     {
      "name": "userId",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "key",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "description": "Any JSON",
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "additionalProperties": {
         "$ref": "#/components/schemas/JsonNode"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "If operation completed successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/KeyValueDbEntity"
        }
       }
      }
     }
    },
    "operationId": "post-keyvaluestore-user-userid-key"
   },
   "put": {
    "tags": [
     "Magazyn klucz-wartość"
    ],
    "summary": "Utwórz lub zaktualizuj wpis klucz-wartość użytkownika",
    "description": "Metoda umożliwia aktualizację wartości klucza w bazie danych lub utworzenie nowej jeśli nie istnieje.",
    "parameters": [
     {
      "name": "userId",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "key",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "description": "",
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "additionalProperties": {
         "$ref": "#/components/schemas/JsonNode"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "If operation completed successfully"
     }
    },
    "operationId": "put-keyvaluestore-user-userid-key"
   },
   "delete": {
    "tags": [
     "Magazyn klucz-wartość"
    ],
    "summary": "Usuń wpis klucz-wartość użytkownika",
    "description": "Metoda umożliwia usunięcie klucza z wartością.",
    "parameters": [
     {
      "name": "userId",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "key",
      "in": "path",
      "description": "",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "If operation completed successfully"
     },
     "404": {
      "description": "If the key not exists"
     }
    },
    "operationId": "delete-keyvaluestore-user-userid-key"
   }
  },
  "/api/v5/Orders": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Pobierz listę zamówień (nagłówki)",
    "parameters": [
     {
      "name": "Id",
      "in": "query",
      "description": "Id of the order in SellRocket",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "OrderId",
      "in": "query",
      "description": "Id or ids of the order in SellRocket or in Source platform.<br />\nOne can provide a single order id or multiple order ids separated by comma.<br /><br />\nExamples:<br /> - `204295`<br /> - `204295,101333`<br /> - `204295,1d719a60-ecee-11ee-926c-6ff59449f5d9`",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "OrderStatusIdPriorityFilter",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "OrderStatus",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "SourcePlatformOrderId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ShipmentConnectionDefinitionId",
      "in": "query",
      "description": "Id of a connection definition used for shipments, if set to \"ANY\" it will return orders with all orders with connection definition set\nif set to \"NONE\" it will return orders with no shipments",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "CreatedFrom",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "CreatedTo",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "StatusUpdatedFrom",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "StatusUpdatedTo",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "SourceConnectionId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "SourceConnectionIds",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "AsteriskMarked",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "AsteriskKindId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "RecipientName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientCompanyName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientFirstLastCompanyName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientPhone",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientCity",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientPostCode",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientCountry",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientApartmentNo",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientHouseNo",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientStreet",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientState",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "BuyerUsername",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "BuyerEmail",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "BuyerComments",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/V5BuyerCommentsFilterEnum"
        }
       ]
      }
     },
     {
      "name": "SellerComments",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "DeliveryMethod",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "IsCod",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "PaymentStatus",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/OrderPaymentStatusEnum"
        }
       ]
      }
     },
     {
      "name": "PaymentName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PaymentPlatformId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "Limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "ProductId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ProductName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ProductCode",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ProductEan",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PayerName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PayerCompanyName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PayerRawCompanyTaxId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ShipmentsTrackingNumber",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ElasticFieldValue",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PlatformDateAddedFrom",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "PlatformDateAddedTo",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "PlatformDateConfirmedFrom",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "PlatformDateConfirmedTo",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "PickupPointCode",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointApartmentNo",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointHouseNo",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointStreet",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointCity",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointPostCode",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointState",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointCountryCode",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "SearchOperator",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/OrdersSearchOperatorEnum"
        }
       ]
      }
     },
     {
      "name": "IncludeLineItemsElasticFields",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "AdditionalField1",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "AdditionalField2",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Currency",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfOrderHeaderResponseV5"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders",
    "description": "Zwraca stronicowaną listę nagłówków zamówień według filtrów (status, źródło, daty itp.). Odpowiednik getOrders w BaseLinker."
   },
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateOrderRequestV5"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders",
    "summary": "Utwórz zamówienie",
    "description": "Dodaje nowe zamówienie do OMS. Odpowiednik addOrder w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v5/Orders/{orderId}": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrderResponseV5"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-orderid",
    "summary": "Pobierz zamówienie po ID",
    "description": "Zwraca pełne dane zamówienia o podanym ID w Sellrocket."
   },
   "put": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Zaktualizuj dane zamówienia",
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateOrderRequestV5"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-orders-orderid",
    "description": "Aktualizuje pola zamówienia (bez pozycji i płatności). Odpowiednik setOrderFields w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/{orderId}": {
   "delete": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-orders-orderid",
    "summary": "Usuń zamówienie",
    "description": "Odpowiednik deleteOrders w BaseLinker dla pojedynczego zamówienia."
   }
  },
  "/api/v3/Orders/{orderId}/Attachments/{attachmentId}": {
   "put": {
    "tags": [
     "Załączniki"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "attachmentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateOrderAttachmentRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateOrderAttachmentRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateOrderAttachmentRequest"
         }
        ]
       }
      },
      "application/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateOrderAttachmentRequest"
         }
        ]
       }
      },
      "text/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateOrderAttachmentRequest"
         }
        ]
       }
      },
      "application/*+xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateOrderAttachmentRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrderAttachmentResponse"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-orders-orderid-attachments-attachmentid",
    "summary": "Zaktualizuj załącznik zamówienia",
    "description": "Zmienia metadane załącznika (np. typ, numer faktury)."
   },
   "delete": {
    "tags": [
     "Załączniki"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "attachmentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-orders-orderid-attachments-attachmentid",
    "summary": "Usuń załącznik zamówienia"
   }
  },
  "/api/v3/Orders/{orderId}/Attachments/{filename}": {
   "post": {
    "tags": [
     "Załączniki"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "filename",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Upload-Type",
      "in": "header",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Ksef-Number",
      "in": "header",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Invoice-Number",
      "in": "header",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/octet-stream": {
       "schema": {
        "type": "string",
        "format": "byte"
       }
      },
      "application/json": {
       "schema": {
        "type": "string",
        "format": "byte"
       }
      },
      "text/json": {
       "schema": {
        "type": "string",
        "format": "byte"
       }
      },
      "application/*+json": {
       "schema": {
        "type": "string",
        "format": "byte"
       }
      },
      "application/xml": {
       "schema": {
        "type": "string",
        "format": "byte"
       }
      },
      "text/xml": {
       "schema": {
        "type": "string",
        "format": "byte"
       }
      },
      "application/*+xml": {
       "schema": {
        "type": "string",
        "format": "byte"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-attachments-filename",
    "summary": "Dodaj załącznik do zamówienia",
    "description": "Wgrywa plik (np. fakturę PDF) jako załącznik zamówienia; w nagłówkach można przekazać typ załącznika oraz numer faktury i KSeF."
   }
  },
  "/api/v3/Orders/{orderId}/cancellation": {
   "delete": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Cofnij anulowanie zamówienia",
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-orders-orderid-cancellation",
    "description": "Usuwa znacznik anulowania zamówienia bez zmiany statusu ani pozycji. Operacja idempotentna."
   }
  },
  "/api/v1/Orders/{orderId}/ConfirmPaymentReturn": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ConfirmOrderPaymentReturnRequestV1"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ConfirmOrderPaymentReturnRequestV1"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ConfirmOrderPaymentReturnRequestV1"
         }
        ]
       }
      },
      "application/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ConfirmOrderPaymentReturnRequestV1"
         }
        ]
       }
      },
      "text/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ConfirmOrderPaymentReturnRequestV1"
         }
        ]
       }
      },
      "application/*+xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ConfirmOrderPaymentReturnRequestV1"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "post-orders-orderid-confirmpaymentreturn",
    "summary": "Potwierdź zwrot płatności zamówienia",
    "description": "Rejestruje zwrot środków kupującemu dla zamówienia."
   }
  },
  "/api/v5/Orders/{orderId}/copy": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Skopiuj zamówienie",
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-copy",
    "description": "Tworzy nowe zamówienie z tym samym źródłem, nabywcą i pozycjami, ale z czystym stanem operacyjnym."
   }
  },
  "/api/v3/Orders/{orderId}/events": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/OrderEventDto"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-orderid-events",
    "summary": "Pobierz zdarzenia zamówienia",
    "description": "Zwraca zdarzenia zarejestrowane dla zamówienia. Zbliżone do getJournalList w BaseLinker, ale dla jednego zamówienia."
   }
  },
  "/api/v3/Orders/{orderId}/events/{eventId}": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "eventId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrderEventDto"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-orderid-events-eventid",
    "summary": "Pobierz zdarzenie zamówienia po ID"
   }
  },
  "/api/v3/Orders/{orderId}/history": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     },
     {
      "name": "path",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfOrderHistoryResponseV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-orderid-history",
    "summary": "Pobierz historię zmian zamówienia",
    "description": "Zwraca stronicowaną historię zmian zamówienia, opcjonalnie zawężoną do ścieżki pola."
   }
  },
  "/api/v3/Orders/{orderId}/history/{entryId}": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "entryId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrderHistoryResponseV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-orderid-history-entryid",
    "summary": "Pobierz wpis historii zamówienia po ID"
   }
  },
  "/api/v3/Orders/{orderId}/history/flatten": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfOrderFlattenedHistoryResponseV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-orderid-history-flatten",
    "summary": "Pobierz spłaszczoną historię zmian zamówienia",
    "description": "Historia zmian w formie płaskiej listy zmienionych pól – wygodna do wyświetlania lub audytu."
   }
  },
  "/api/v3/Orders/{orderId}/LineItems": {
   "get": {
    "tags": [
     "Pozycje zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/LineItemResponseV2"
         }
        }
       }
      }
     }
    },
    "operationId": "get-orders-orderid-lineitems",
    "summary": "Pobierz pozycje zamówienia",
    "description": "Zwraca produkty (pozycje) zamówienia."
   },
   "post": {
    "tags": [
     "Pozycje zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/LineItemRequestV2"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-lineitems",
    "summary": "Dodaj pozycję do zamówienia",
    "description": "Odpowiednik addOrderProduct w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "put": {
    "tags": [
     "Pozycje zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateLineItemsRequestV2"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-orders-orderid-lineitems",
    "summary": "Zaktualizuj wiele pozycji zamówienia",
    "description": "Zbiorczo zmienia pozycje zamówienia. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/{orderId}/LineItems/{lineItemId}": {
   "get": {
    "tags": [
     "Pozycje zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "lineItemId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LineItemResponseV2"
        }
       }
      }
     }
    },
    "operationId": "get-orders-orderid-lineitems-lineitemid",
    "summary": "Pobierz pozycję zamówienia po ID"
   },
   "put": {
    "tags": [
     "Pozycje zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "lineItemId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateLineItemRequestV2"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-orders-orderid-lineitems-lineitemid",
    "summary": "Zaktualizuj pozycję zamówienia",
    "description": "Odpowiednik setOrderProductFields w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Pozycje zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "lineItemId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-orders-orderid-lineitems-lineitemid",
    "summary": "Usuń pozycję zamówienia",
    "description": "Odpowiednik deleteOrderProduct w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v1/Orders/{orderId}/LineItems/FromPim": {
   "post": {
    "tags": [
     "Pozycje zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/LineItemFromPimRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-lineitems-frompim",
    "summary": "Dodaj pozycję z katalogu produktów (PIM)",
    "description": "Dodaje do zamówienia produkt z katalogu PIM, uzupełniając jego dane automatycznie."
   }
  },
  "/api/v1/Orders/{orderId}/LineItems/FromPim/Many": {
   "post": {
    "tags": [
     "Pozycje zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/LineItemsFromPimRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-lineitems-frompim-many",
    "summary": "Dodaj wiele pozycji z katalogu produktów (PIM)"
   }
  },
  "/api/v3/Orders/{orderId}/LineItems/Many": {
   "post": {
    "tags": [
     "Pozycje zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/LineItemsRequestV2"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-lineitems-many",
    "summary": "Dodaj wiele pozycji do zamówienia",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v5/Orders/{orderId}/LineItems/ScanSearch": {
   "get": {
    "tags": [
     "Pozycje zamówienia"
    ],
    "summary": "Wyszukaj pozycję po zeskanowanym kodzie (przestarzałe)",
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "mode",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/ScanSearchFilterModeEnum"
        }
       ]
      }
     },
     {
      "name": "rawScan",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "integer",
         "format": "int64"
        }
       }
      }
     },
     "204": {
      "description": "No Content"
     },
     "500": {
      "description": "Server Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-orders-orderid-lineitems-scansearch",
    "description": "Dopasowuje zeskanowany kod (np. EAN) do pozycji zamówienia. Zastąpione nowszą metodą rozpoznawania skanu; utrzymywane tylko dla istniejących integracji."
   }
  },
  "/api/v5/Orders/{orderId}/LineItems/UpdatePickedPacked": {
   "put": {
    "tags": [
     "Pozycje zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/LineItemUpdatePickedPackedRequestV5"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-orders-orderid-lineitems-updatepickedpacked",
    "summary": "Zaktualizuj ilości skompletowane i spakowane",
    "description": "Ustawia stan kompletacji (picking) i pakowania (packing) pozycji zamówienia."
   }
  },
  "/api/v3/Orders/{orderId}/Merge": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/MergeOrdersRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-merge",
    "summary": "Scal zamówienia",
    "description": "Łączy wskazane zamówienia z zamówieniem bazowym. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/{orderId}/PackReserved": {
   "put": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "put-orders-orderid-packreserved",
    "summary": "Zarezerwuj zamówienie do pakowania",
    "description": "Oznacza zamówienie jako pakowane przez bieżącego użytkownika, aby inni nie pracowali na nim równolegle."
   }
  },
  "/api/v3/Orders/{orderId}/Payments": {
   "get": {
    "tags": [
     "Płatności"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "get-orders-orderid-payments",
    "summary": "Pobierz płatności zamówienia",
    "description": "Zbliżone do getOrderPaymentsHistory w BaseLinker."
   },
   "post": {
    "tags": [
     "Płatności"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PaymentRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-payments",
    "summary": "Dodaj płatność do zamówienia",
    "description": "Odpowiednik setOrderPayment w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/{orderId}/Payments/{paymentId}": {
   "get": {
    "tags": [
     "Płatności"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "paymentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "get-orders-orderid-payments-paymentid",
    "summary": "Pobierz płatność zamówienia po ID"
   },
   "put": {
    "tags": [
     "Płatności"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "paymentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdatePaymentRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-orders-orderid-payments-paymentid",
    "summary": "Zaktualizuj płatność zamówienia",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Płatności"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "paymentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-orders-orderid-payments-paymentid",
    "summary": "Usuń płatność zamówienia",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/{orderId}/Payments/MarkAsPaid": {
   "post": {
    "tags": [
     "Płatności"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-payments-markaspaid",
    "summary": "Oznacz zamówienie jako opłacone",
    "description": "Rejestruje pełną wpłatę na kwotę zamówienia."
   }
  },
  "/api/v3/Orders/{orderId}/Payments/SetPayments": {
   "post": {
    "tags": [
     "Płatności"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "X-SR-ForceSilentChanges",
      "in": "header",
      "description": "This header allows for settings collection of payments without raising events",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/PaymentRequest"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-payments-setpayments",
    "summary": "Ustaw płatności zamówienia (nadpisz)",
    "description": "Zastępuje płatności zamówienia przekazaną listą; nagłówek X-SR-ForceSilentChanges pozwala pominąć wyzwalanie automatyzacji."
   }
  },
  "/api/v3/Orders/{orderId}/PickReserved": {
   "put": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "put-orders-orderid-pickreserved",
    "summary": "Zarezerwuj zamówienie do kompletacji",
    "description": "Oznacza zamówienie jako kompletowane (picking) przez bieżącego użytkownika."
   }
  },
  "/api/v5/Orders/{orderId}/processBundles": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SplitBundlesRequestV5"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-processbundles",
    "summary": "Rozbij zestawy w zamówieniu",
    "description": "Zamienia pozycje będące zestawami (bundle) na ich składniki. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/{orderId}/shipment-connections": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ConnectionWithDefinitionResponseDTOV2"
         }
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-orderid-shipment-connections",
    "summary": "Pobierz dostępne połączenia kurierskie dla zamówienia",
    "description": "Zwraca integracje kurierskie, których można użyć do nadania przesyłki dla tego zamówienia."
   }
  },
  "/api/v3/Orders/{orderId}/ShipmentLabels": {
   "get": {
    "tags": [
     "Przesyłki zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "LabelType",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/ShipmentLabelType"
        }
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/zip": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       },
       "application/json": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       }
      }
     }
    },
    "operationId": "get-orders-orderid-shipmentlabels",
    "summary": "Pobierz etykiety przesyłek zamówienia",
    "description": "Zwraca plik etykiet dla przesyłek zamówienia. Zbliżone do getLabel w BaseLinker."
   }
  },
  "/api/v3/Orders/{orderId}/Shipments": {
   "get": {
    "tags": [
     "Przesyłki zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/OrdersShipmentResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "get-orders-orderid-shipments",
    "summary": "Pobierz przesyłki zamówienia",
    "description": "Odpowiednik getOrderPackages w BaseLinker."
   },
   "post": {
    "tags": [
     "Przesyłki zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "X-SR-ForceSilentChanges",
      "in": "header",
      "description": "This header allows for adding shipment without raising events",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ShipmentRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-shipments",
    "summary": "Dodaj przesyłkę do zamówienia",
    "description": "Zapisuje w zamówieniu przesyłkę nadaną poza Sellrocket (np. numer z zewnętrznego WMS). Odpowiednik createPackageManual w BaseLinker. Operacja asynchroniczna — zwraca zadanie. Nie nadaje paczki u kuriera — do nadania użyj automatyzacji z akcją „Utwórz przesyłkę”."
   }
  },
  "/api/v3/Orders/{orderId}/Shipments/{id}": {
   "get": {
    "tags": [
     "Przesyłki zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrdersShipmentResponse"
        }
       }
      }
     }
    },
    "operationId": "get-orders-orderid-shipments-id",
    "summary": "Pobierz przesyłkę zamówienia po ID"
   },
   "put": {
    "tags": [
     "Przesyłki zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateShipmentRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-orders-orderid-shipments-id",
    "summary": "Zaktualizuj przesyłkę zamówienia",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Przesyłki zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "connectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-orders-orderid-shipments-id",
    "summary": "Usuń przesyłkę zamówienia",
    "description": "Odpowiednik deletePackage w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/{orderId}/Shipments/bulk": {
   "post": {
    "tags": [
     "Przesyłki zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/ShipmentRequest"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-shipments-bulk",
    "summary": "Dodaj wiele przesyłek do zamówienia",
    "description": "Zapisuje kilka przesyłek nadanych poza Sellrocket w jednym żądaniu. Operacja asynchroniczna — zwraca zadanie. Nie nadaje paczki u kuriera — do nadania użyj automatyzacji z akcją „Utwórz przesyłkę”."
   },
   "put": {
    "tags": [
     "Przesyłki zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/UpdateShipmentWithIdRequest"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-orders-orderid-shipments-bulk",
    "summary": "Zaktualizuj wiele przesyłek zamówienia",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/{orderId}/Shipments/Labels/newest": {
   "get": {
    "tags": [
     "Przesyłki zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       }
      }
     }
    },
    "operationId": "get-orders-orderid-shipments-labels-newest",
    "summary": "Pobierz najnowszą etykietę przesyłki zamówienia",
    "description": "Zwraca plik ostatnio wygenerowanej etykiety."
   }
  },
  "/api/v3/Orders/{orderId}/Split": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SplitOrderRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-split",
    "summary": "Podziel zamówienie",
    "description": "Wydziela wskazane pozycje do nowego zamówienia. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/{orderId}/SplitAutomatically": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AutoSplitOrderRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-orderid-splitautomatically",
    "summary": "Podziel zamówienie automatycznie",
    "description": "Dzieli zamówienie według reguł (np. dostępności lub magazynu). Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/{orderId}/statusHistory": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfOrderStatusHistoryResponseV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-orderid-statushistory",
    "summary": "Pobierz historię statusów zamówienia",
    "description": "Zwraca stronicowaną listę zmian statusu danego zamówienia."
   }
  },
  "/api/v5/Orders/{platformConnectionId}/{orderId}": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "platformConnectionId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrderResponseV5"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-platformconnectionid-orderid",
    "summary": "Pobierz zamówienie po ID z platformy źródłowej",
    "description": "Wyszukuje zamówienie po ID połączenia i numerze zamówienia w systemie zewnętrznym (np. marketplace)."
   }
  },
  "/api/v5/Orders/batch": {
   "put": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Zaktualizuj dane wielu zamówień",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/BatchUpdateOrderRequestV5"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-orders-batch",
    "description": "Zbiorczy odpowiednik setOrderFields (bez pozycji i płatności). Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/batch-payments": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Zaktualizuj płatności wielu zamówień",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/UpdatePaymentBatchRequestV3"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-batch-payments",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v5/Orders/batch-upsert": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Utwórz lub zaktualizuj wiele zamówień",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/UpsertOrderBatchRequestV5"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-orders-batch-upsert",
    "description": "Upsert wielu zamówień wraz z pozycjami i płatnościami; pole ClientReference pozwala powiązać wyniki z wysłanymi rekordami. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/BatchGetProducts": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BatchGetProductsResponse"
        }
       }
      }
     }
    },
    "operationId": "post-orders-batchgetproducts",
    "summary": "Pobierz produkty z wielu zamówień",
    "description": "Odczyt pozycji dla listy ID zamówień przekazanej w treści żądania."
   }
  },
  "/api/v6/Orders/by-code/{scannedValue}": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "scannedValue",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "additionalFieldName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FindOrderByCodeResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-by-code-scannedvalue",
    "summary": "Znajdź zamówienie po zeskanowanym kodzie",
    "description": "Wyszukuje zamówienie po kodzie kreskowym, numerze lub wartości pola dodatkowego. Używane przy stanowiskach pakowania."
   }
  },
  "/api/v3/Orders/byIds": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "includeShipmentConnections",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "withLineItemEf",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "withOrderEf",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "includePayments",
      "in": "query",
      "schema": {
       "type": "boolean",
       "default": false
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/OrderResponseV2"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-orders-byids",
    "summary": "Pobierz wiele zamówień po ID",
    "description": "Odczyt (nie tworzy zamówień) – lista ID w treści żądania; opcjonalnie z płatnościami, polami dodatkowymi i połączeniami kurierskimi."
   }
  },
  "/api/v3/Orders/byScannedShipmentNumber": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "shipmentNumber",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrderResponseV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-byscannedshipmentnumber",
    "summary": "Znajdź zamówienie po numerze przesyłki",
    "description": "Zwraca zamówienie powiązane z zeskanowanym numerem przesyłki (tracking)."
   }
  },
  "/api/v3/Orders/bySourceOrderIds": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "withLineItemEf",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      },
      "text/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      },
      "application/*+json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      },
      "application/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      },
      "text/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      },
      "application/*+xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/OrderResponseV2"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-orders-bysourceorderids",
    "summary": "Pobierz zamówienia po ID ze źródła",
    "description": "Odczyt zamówień po identyfikatorach z systemów zewnętrznych przekazanych w treści żądania."
   }
  },
  "/api/v6/Orders/code-scan/{scannedValue}": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "scannedValue",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ScanOrderByCodeRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ScanOrderByCodeResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "409": {
      "description": "Conflict",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ScanOrderByCodeResponse"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-orders-code-scan-scannedvalue",
    "summary": "Obsłuż skan kodu dla zamówienia",
    "description": "Przetwarza zeskanowany kod w kontekście procesu kompletacji/pakowania i zwraca wynik dopasowania. Używane głównie przez panel Sellrocket."
   }
  },
  "/api/v3/Orders/DeleteOrders": {
   "delete": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "ids[]",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "type": "integer",
        "format": "int64"
       }
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-orders-deleteorders",
    "summary": "Usuń wiele zamówień",
    "description": "Odpowiednik deleteOrders w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/Download/{orderAttachmentId}": {
   "get": {
    "tags": [
     "Załączniki"
    ],
    "parameters": [
     {
      "name": "orderAttachmentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/octet-stream": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       },
       "application/json": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/octet-stream": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-download-orderattachmentid",
    "summary": "Pobierz plik załącznika zamówienia",
    "description": "Pobiera załącznik jako plik do zapisania."
   }
  },
  "/api/v3/Orders/Download/{orderAttachmentId}/{filename}": {
   "get": {
    "tags": [
     "Załączniki"
    ],
    "parameters": [
     {
      "name": "orderAttachmentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "filename",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/octet-stream": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       },
       "application/json": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/octet-stream": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-download-orderattachmentid-filename",
    "summary": "Pobierz plik załącznika z nazwą pliku",
    "description": "Wariant pobrania z nazwą pliku w ścieżce."
   }
  },
  "/api/v3/Orders/events": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetFilteredOrderEventsRequestV2"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetFilteredOrderEventsRequestV2"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetFilteredOrderEventsRequestV2"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfOrderEventDto"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-orders-events",
    "summary": "Wyszukaj zdarzenia zamówień (filtr)",
    "description": "Zwraca stronicowane zdarzenia wielu zamówień według filtrów. Odpowiednik getJournalList w BaseLinker."
   }
  },
  "/api/v6/Orders/findByAdditionalField": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "AdditionalFieldName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "AdditionalFieldValue",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FindOrderByAdditionalFieldResponse"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-findbyadditionalfield",
    "summary": "Znajdź zamówienie po wartości pola dodatkowego",
    "description": "Wyszukuje zamówienie po nazwie i wartości pola dodatkowego."
   }
  },
  "/api/v5/Orders/Full": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "gte",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "lte",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "status",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "orderId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "idFrom",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "filterEmail",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "filterPhone",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "getUnconfirmedOrders",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "gteConfirmed",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "sortBy",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/SearchSortByEnum"
        }
       ],
       "default": 0
      }
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfOrderResponseV5"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-full",
    "summary": "Pobierz listę zamówień z pełnymi danymi",
    "description": "Zwraca pełne dane zamówień (z pozycjami) z filtrami dat, statusu, e-maila i telefonu. Odpowiednik getOrders oraz getOrdersByEmail/getOrdersByPhone w BaseLinker."
   }
  },
  "/api/v6/Orders/GetOrderState": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "platformOrderId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "sinceLastHours",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GetOrderStateResponse"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-getorderstate",
    "summary": "Sprawdź stan zamówienia z platformy źródłowej",
    "description": "Sprawdza, czy zamówienie z systemu zewnętrznego zostało zaimportowane i w jakim jest stanie w ostatnich godzinach."
   }
  },
  "/api/v3/Orders/history": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetFilteredHistoryRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetFilteredHistoryRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetFilteredHistoryRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfOrderHistoryResponseV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-orders-history",
    "summary": "Wyszukaj historię zmian zamówień (filtr)",
    "description": "Zwraca stronicowaną historię zmian wielu zamówień według filtrów."
   }
  },
  "/api/v3/Orders/history/byIds": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetOrderHistoryByIdsRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetOrderHistoryByIdsRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetOrderHistoryByIdsRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "array",
          "items": {
           "$ref": "#/components/schemas/OrderHistoryResponseV2"
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-orders-history-byids",
    "summary": "Pobierz historię zmian wielu zamówień po ID",
    "description": "Odczyt – lista ID w treści żądania."
   }
  },
  "/api/v3/Orders/ids": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Pobierz listę ID zamówień",
    "parameters": [
     {
      "name": "Id",
      "in": "query",
      "description": "Id of the order in SellRocket",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "OrderId",
      "in": "query",
      "description": "Id or ids of the order in SellRocket or in Source platform.<br />\nOne can provide a single order id or multiple order ids separated by comma.<br /><br />\nExamples:<br /> - `204295`<br /> - `204295,101333`<br /> - `204295,1d719a60-ecee-11ee-926c-6ff59449f5d9`",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "OrderStatusIdPriorityFilter",
      "in": "query",
      "description": "Id of the order status in SellRocket, to be used before all other filters (ignores operator)",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "PlatformDateAddedFromPriorityFilter",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "OrderStatus",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "SourcePlatformOrderId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ShipmentConnectionDefinitionId",
      "in": "query",
      "description": "Id of a connection definition used for shipments, if set to \"ANY\" it will return orders with all orders with connection definition set\nif set to \"NONE\" it will return orders with no shipments",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "CreatedFrom",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "CreatedTo",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "StatusUpdatedFrom",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "StatusUpdatedTo",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "SourceConnectionId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "SourceConnectionIds",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "AsteriskMarked",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "AsteriskKindId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "RecipientFirstName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientLastName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientCompanyName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientFirstLastCompanyName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "BuyerUsername",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "BuyerEmail",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "BuyerComments",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/V3BuyerCommentsFilterEnum"
        }
       ]
      }
     },
     {
      "name": "SellerComments",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientPhone",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientCity",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientPostCode",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientCountry",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientCountries",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientApartmentNo",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientHouseNo",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientStreet",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientState",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "DeliveryMethod",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "IsCod",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "PaymentStatus",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/OrderPaymentStatusEnum"
        }
       ]
      }
     },
     {
      "name": "PaymentName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PaymentPlatformId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "Limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "ProductId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ProductName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ProductCode",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ProductEan",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PayerCompanyName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PayerRawCompanyTaxId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ShipmentsTrackingNumber",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ShipmentsTrackingNumberExact",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ShipmentsTrackingNumberIsContainedIn",
      "in": "query",
      "description": "Filters orders where the order's shipment tracking number is fully contained within the provided value.<br />\nThis works as a **reverse-contains** check: for example, if the tracking number is \"12345\",<br />\nthen a filter value of \"XXX12345YYY\" would match it.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ShipmentsExternalCarrierTrackingNumber",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ShipmentsExternalCarrierTrackingNumberIsContainedIn",
      "in": "query",
      "description": "Filters orders where the order's shipment external carrier\ntracking number is fully contained within the provided value.\nThis works as a **reverse-contains** check: for example, if the tracking number is \"12345\",<br />\nthen a filter value of \"XXX12345YYY\" would match it.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ElasticFieldValue",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PlatformDateAddedFrom",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "PlatformDateAddedTo",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "PlatformDateConfirmedFrom",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "PlatformDateConfirmedTo",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "PickupPointCode",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointName",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointApartmentNo",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointHouseNo",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointStreet",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointCity",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointPostCode",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointState",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "PickupPointCountryCode",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "AttachmentType",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/SearchAttachmentTypeEnum"
        }
       ]
      }
     },
     {
      "name": "InvoiceRequired",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "SearchOperator",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/OrdersSearchOperatorEnum"
        }
       ]
      }
     },
     {
      "name": "OrderBy",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/OrderByPropertyEnum"
        }
       ]
      }
     },
     {
      "name": "OrderByType",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/OrderByTypeEnum"
        }
       ]
      }
     },
     {
      "name": "IncludeLineItemsElasticFields",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "AdditionalFieldsFilters",
      "in": "query",
      "schema": {
       "type": "object",
       "additionalProperties": {
        "type": "string"
       }
      }
     },
     {
      "name": "AdditionalField1",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "AdditionalField2",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Currency",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "TotalToPayGte",
      "in": "query",
      "schema": {
       "type": "number",
       "format": "double"
      }
     },
     {
      "name": "TotalToPayLte",
      "in": "query",
      "schema": {
       "type": "number",
       "format": "double"
      }
     },
     {
      "name": "SynchronizationErrors.HasStatusError",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "SynchronizationErrors.HasInvoiceError",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "SynchronizationErrors.HasShipmentError",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfOrderIdResponseV3"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-ids",
    "description": "Zwraca tylko identyfikatory zamówień spełniających filtry – lżejsza alternatywa listy zamówień do synchronizacji przyrostowej."
   }
  },
  "/api/v1/Orders/OrdersInStatusesCount": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/OrdersInStatusCountResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "get-orders-ordersinstatusescount",
    "summary": "Policz zamówienia w statusach",
    "description": "Zwraca liczbę zamówień w poszczególnych statusach."
   }
  },
  "/api/v4/Orders/OrdersStatusUpdate": {
   "put": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Zmień status wielu zamówień",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/MultipleOrdersStatusUpdateRequestV4"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/JobDTO"
         }
        }
       }
      }
     }
    },
    "operationId": "put-orders-ordersstatusupdate",
    "description": "Ustawia jeden status dla wielu zamówień. Zmiany są wykonywane asynchronicznie, w zadaniach obejmujących po kilkaset zamówień. Odpowiednik setOrderStatuses w BaseLinker."
   }
  },
  "/api/v4/Orders/OrdersStatusUpdateSync": {
   "put": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Zmień status wielu zamówień (jedno zadanie)",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/MultipleOrdersStatusUpdateSyncRequestV4"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-orders-ordersstatusupdatesync",
    "description": "Jak zbiorcza zmiana statusu, ale wszystkie zmiany (do 1000 zamówień) trafiają do jednego zadania — operacja nadal jest asynchroniczna."
   }
  },
  "/api/v2/Orders/Packing": {
   "put": {
    "tags": [
     "Pakowanie zamówień"
    ],
    "summary": "Zaktualizuj stan pakowania zamówień",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PackingStateRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "put-orders-packing",
    "description": "Ustawia stan pakowania jednego lub wielu zamówień i zwraca jego pełny, zaktualizowany stan."
   }
  },
  "/api/v6/Orders/Patch/{orderId}": {
   "put": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Zaktualizuj zamówienie częściowo (z pozycjami)",
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PatchOrderRequestV5"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-orders-patch-orderid",
    "description": "Aktualizuje pola zamówienia oraz dodaje lub podmienia pozycje i płatności (dopasowanie pozycji po ID z platformy). Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v6/Orders/Patch/{platformConnectionId}/{platformOrderId}": {
   "put": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Zaktualizuj częściowo zamówienie po ID z platformy",
    "parameters": [
     {
      "name": "platformConnectionId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "platformOrderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PatchOrderRequestV5"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-orders-patch-platformconnectionid-platformorderid",
    "description": "Jak częściowa aktualizacja, ale zamówienie wskazujesz ID połączenia i numerem zamówienia w systemie zewnętrznym."
   }
  },
  "/api/v3/Orders/Preview/{orderAttachmentId}": {
   "get": {
    "tags": [
     "Załączniki"
    ],
    "parameters": [
     {
      "name": "orderAttachmentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/octet-stream": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       },
       "application/json": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/octet-stream": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-preview-orderattachmentid",
    "summary": "Podejrzyj załącznik zamówienia",
    "description": "Zwraca załącznik do wyświetlenia w przeglądarce (inline)."
   }
  },
  "/api/v3/Orders/Preview/{orderAttachmentId}/{filename}": {
   "get": {
    "tags": [
     "Załączniki"
    ],
    "parameters": [
     {
      "name": "orderAttachmentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "filename",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/octet-stream": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       },
       "application/json": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/octet-stream": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-preview-orderattachmentid-filename",
    "summary": "Podejrzyj załącznik zamówienia z nazwą pliku"
   }
  },
  "/api/v3/Orders/Print": {
   "post": {
    "tags": [
     "Załączniki"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintOrderAttachmentRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintOrderAttachmentRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintOrderAttachmentRequest"
         }
        ]
       }
      },
      "application/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintOrderAttachmentRequest"
         }
        ]
       }
      },
      "text/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintOrderAttachmentRequest"
         }
        ]
       }
      },
      "application/*+xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintOrderAttachmentRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "post-orders-print",
    "summary": "Wydrukuj załączniki zamówienia",
    "description": "Wysyła załączniki zamówień do drukarki skonfigurowanej w Sellrocket."
   }
  },
  "/api/v5/Orders/ScanSearchMultiple": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "ordersIds",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "type": "integer",
        "format": "int64"
       }
      }
     },
     {
      "name": "mode",
      "in": "query",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/ScanSearchFilterModeEnum"
        }
       ]
      }
     },
     {
      "name": "rawScan",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrderLineItemsScanMultipleSearchResponseV5"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-orders-scansearchmultiple",
    "summary": "Wyszukaj pozycje po skanie w wielu zamówieniach",
    "description": "Dopasowuje zeskanowany kod do pozycji w kilku zamówieniach naraz. Używane głównie przez panel Sellrocket."
   }
  },
  "/api/v3/Orders/search": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "summary": "Wyszukaj zamówienia (filtr zaawansowany)",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/OrderSearchFiltersRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/OrderResponseV2"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "post-orders-search",
    "description": "Odczyt – filtry przekazywane w treści żądania."
   }
  },
  "/api/v3/Orders/shipments": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/GetOrdersShipmentsResponseV3"
         }
        }
       }
      }
     }
    },
    "operationId": "post-orders-shipments",
    "summary": "Pobierz przesyłki wielu zamówień",
    "description": "Odczyt – lista ID zamówień w treści żądania."
   }
  },
  "/api/v3/Orders/statuses/byIds": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrdersStatusesResponseV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-orders-statuses-byids",
    "summary": "Pobierz statusy wielu zamówień po ID",
    "description": "Odczyt – lista ID zamówień w treści żądania."
   }
  },
  "/api/v5/Orders/statusHistory": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "gt",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfOrdersStatusHistoryResponseV5"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-statushistory",
    "summary": "Pobierz historię statusów zamówień",
    "description": "Zwraca zmiany statusów zamówień, opcjonalnie od wskazanego momentu – przydatne do synchronizacji przyrostowej."
   }
  },
  "/api/v3/Orders/statusHistory/byIds": {
   "post": {
    "tags": [
     "Zamówienia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "array",
          "items": {
           "$ref": "#/components/schemas/OrderStatusHistoryResponseWithIdV2"
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-orders-statushistory-byids",
    "summary": "Pobierz historię statusów wielu zamówień po ID",
    "description": "Odczyt – lista ID zamówień w treści żądania."
   }
  },
  "/api/v3/Orders/sync/{orderId}/Shipments": {
   "post": {
    "tags": [
     "Przesyłki zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ShipmentRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrdersShipmentResponse"
        }
       }
      }
     }
    },
    "operationId": "post-orders-sync-orderid-shipments",
    "summary": "Dodaj przesyłkę do zamówienia (synchronicznie)",
    "description": "Synchroniczny wariant — zwraca od razu zapisaną przesyłkę. Nie nadaje paczki u kuriera — do nadania użyj automatyzacji z akcją „Utwórz przesyłkę”."
   }
  },
  "/api/v3/Orders/sync/{orderId}/Shipments/bulk": {
   "post": {
    "tags": [
     "Przesyłki zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/ShipmentRequest"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/OrdersShipmentResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "post-orders-sync-orderid-shipments-bulk",
    "summary": "Dodaj wiele przesyłek do zamówienia (synchronicznie)",
    "description": "Synchroniczny wariant zapisu wielu przesyłek nadanych poza Sellrocket. Nie nadaje paczki u kuriera — do nadania użyj automatyzacji z akcją „Utwórz przesyłkę”."
   }
  },
  "/api/v1/Orders/transliterate/{orderId}": {
   "put": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-orders-transliterate-orderid",
    "summary": "Transliteruj dane zamówienia",
    "description": "Zamienia znaki narodowe w danych adresowych zamówienia na znaki łacińskie (np. na potrzeby kurierów zagranicznych). Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Orders/with-elastic-fields/{orderId}": {
   "get": {
    "tags": [
     "Zamówienia"
    ],
    "parameters": [
     {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "includeOrderElasticFields",
      "in": "query",
      "schema": {
       "type": "boolean",
       "default": true
      }
     },
     {
      "name": "includeLineItemElasticFields",
      "in": "query",
      "schema": {
       "type": "boolean",
       "default": true
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrderResponseV2"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-orders-with-elastic-fields-orderid",
    "summary": "Pobierz zamówienie z polami dodatkowymi",
    "description": "Zwraca zamówienie wraz z polami dodatkowymi zamówienia i pozycji."
   }
  },
  "/api/v1/OrdersOperations": {
   "get": {
    "tags": [
     "Operacje na zamówieniach"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "platformOrderId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/OrderOperationDTO"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-ordersoperations",
    "summary": "Pobierz operacje wykonane na zamówieniu",
    "description": "Zwraca operacje synchronizacji z platformą źródłową dla zamówienia wskazanego ID połączenia i numerem zewnętrznym."
   }
  },
  "/api/v4/PackStations": {
   "get": {
    "tags": [
     "Stanowiska pakowania"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PackStationResponse"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-packstations",
    "summary": "Pobierz stanowiska pakowania"
   },
   "post": {
    "tags": [
     "Stanowiska pakowania"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreatePackStationRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "post-packstations",
    "summary": "Utwórz stanowisko pakowania",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v4/PackStations/{id}": {
   "get": {
    "tags": [
     "Stanowiska pakowania"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PackStationResponse"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-packstations-id",
    "summary": "Pobierz stanowisko pakowania po ID"
   },
   "put": {
    "tags": [
     "Stanowiska pakowania"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdatePackStationRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-packstations-id",
    "summary": "Zaktualizuj stanowisko pakowania",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Stanowiska pakowania"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "delete-packstations-id",
    "summary": "Usuń stanowisko pakowania",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v1/PickingPackingTemplates": {
   "get": {
    "tags": [
     "Szablony kompletacji"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PickingPackingTemplateDTO"
         }
        }
       }
      }
     }
    },
    "operationId": "get-pickingpackingtemplates",
    "summary": "Pobierz szablony kompletacji i pakowania",
    "description": "Szablony definiują, które zamówienia trafiają do procesu kompletacji/pakowania."
   },
   "post": {
    "tags": [
     "Szablony kompletacji"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PickingPackingTemplateRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-pickingpackingtemplates",
    "summary": "Utwórz szablon kompletacji i pakowania",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v1/PickingPackingTemplates/{id}": {
   "get": {
    "tags": [
     "Szablony kompletacji"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PickingPackingTemplateDTO"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-pickingpackingtemplates-id",
    "summary": "Pobierz szablon kompletacji po ID"
   },
   "put": {
    "tags": [
     "Szablony kompletacji"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PickingPackingTemplateRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-pickingpackingtemplates-id",
    "summary": "Zaktualizuj szablon kompletacji",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Szablony kompletacji"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "delete-pickingpackingtemplates-id",
    "summary": "Usuń szablon kompletacji",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v1/PickingPackingTemplates/find-orders": {
   "post": {
    "tags": [
     "Szablony kompletacji"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/FindOrdersByTemplateRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FindOrdersByTemplateResponse"
        }
       }
      }
     }
    },
    "operationId": "post-pickingpackingtemplates-find-orders",
    "summary": "Znajdź zamówienia pasujące do szablonu kompletacji",
    "description": "Odczyt – zwraca zamówienia spełniające kryteria szablonu."
   }
  },
  "/api/v1/PickingPackingTemplates/summary": {
   "post": {
    "tags": [
     "Szablony kompletacji"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ExportPickingPackingTemplatesSummaryRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "post-pickingpackingtemplates-summary",
    "summary": "Wygeneruj zestawienie kompletacji",
    "description": "Generuje plik zestawienia (listy zbiorczej produktów) dla wskazanych szablonów."
   }
  },
  "/api/v4/returns": {
   "get": {
    "tags": [
     "Zwroty"
    ],
    "parameters": [
     {
      "name": "Offset",
      "in": "query",
      "description": "Offset (liczba pominiętych wyników)",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "Limit",
      "in": "query",
      "description": "Limit (maksymalna liczba wyników)",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "SearchOperator",
      "in": "query",
      "description": "Operator wyszukiwania (AND/OR)",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/ReturnsSearchOperatorEnum"
        }
       ]
      }
     },
     {
      "name": "ReturnStatusId",
      "in": "query",
      "description": "Zwrot statusu (ID statusu zwrotu)",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "ReturnId",
      "in": "query",
      "description": "ID zwrotu",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "OrderId",
      "in": "query",
      "description": "ID zamówienia pierwotnego",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "CreatedDateFrom",
      "in": "query",
      "description": "Data utworzenia: zakres od",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "CreatedDateTo",
      "in": "query",
      "description": "Data utworzenia: zakres do",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "StatusUpdatedFrom",
      "in": "query",
      "description": "Data w statusie: zakres od",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "StatusUpdatedTo",
      "in": "query",
      "description": "Data w statusie: zakres do",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "RecipientFirstName",
      "in": "query",
      "description": "Imię",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientLastName",
      "in": "query",
      "description": "Nazwisko",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "BuyerEmail",
      "in": "query",
      "description": "Adres e-mail",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "BuyerPhone",
      "in": "query",
      "description": "Numer telefonu kupującego",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "BuyerUsername",
      "in": "query",
      "description": "Nazwa użytkownika kupującego",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientPhone",
      "in": "query",
      "description": "Numer telefonu odbiorcy",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "TotalPriceFrom",
      "in": "query",
      "description": "Łączna cena: zakres od",
      "schema": {
       "type": "number",
       "format": "double"
      }
     },
     {
      "name": "TotalPriceTo",
      "in": "query",
      "description": "Łączna cena: zakres do",
      "schema": {
       "type": "number",
       "format": "double"
      }
     },
     {
      "name": "ReturnType",
      "in": "query",
      "description": "Typ zwrotu, możliwe wartości: \"Any\", \"Full\", \"Partial\"",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/ReturnTypeFilter"
        }
       ]
      }
     },
     {
      "name": "ProductName",
      "in": "query",
      "description": "Nazwa produktu",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ProductSku",
      "in": "query",
      "description": "SKU produktu (code)",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ProductEan",
      "in": "query",
      "description": "EAN produktu",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "SourcePlatformReturnId",
      "in": "query",
      "description": "ID zwrotu platformy źródłowej",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "RecipientCompanyName",
      "in": "query",
      "description": "Nazwa firmy odbiorcy",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ShipmentsTrackingNumberIsContainedIn",
      "in": "query",
      "description": "Numer przesyłki (odwrócony filtr, shipmentNumber musi się zawierać w podanej wartości)",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ShipmentsTrackingNumber",
      "in": "query",
      "description": "Numer przesyłki",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ReturnStatusIdPriorityFilter",
      "in": "query",
      "description": "ID statusu zamówienia, używany jest przed wszystkimi innymi filtrami niezależnie od operatora",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "ReturnIdFrom",
      "in": "query",
      "description": "ID zwrotu: zakres od (włącznie)",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "ReturnIdTo",
      "in": "query",
      "description": "ID zwrotu: zakres do (włącznie)",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "ConnectionId",
      "in": "query",
      "description": "ID połączenia (SourceConnectionId)",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "ConnectionType",
      "in": "query",
      "description": "Typ połączenia (PlatformName)",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "OrderBy",
      "in": "query",
      "description": "Pole sortowania (domyślnie Id)",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/ReturnOrderByProperty"
        }
       ]
      }
     },
     {
      "name": "OrderByType",
      "in": "query",
      "description": "Kierunek sortowania (Ascending/Descending, domyślnie Ascending)",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/OrderByType"
        }
       ]
      }
     },
     {
      "name": "IncludeElasticFields",
      "in": "query",
      "description": "Czy dołączyć pola elastyczne zwrotu (domyślnie false)",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "IncludeLineItemsElasticFields",
      "in": "query",
      "description": "Czy dołączyć pola elastyczne pozycji zwrotu (domyślnie false)",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "AdditionalFieldsFilters",
      "in": "query",
      "description": "Filtry pól elastycznych zwrotu w postaci AdditionalFieldsFilters[nazwa pola]=wartość (wartość pola musi zawierać podany tekst, bez rozróżniania wielkości liter)",
      "schema": {
       "type": "object",
       "additionalProperties": {
        "type": "string"
       }
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfReturnResponse"
        }
       }
      }
     }
    },
    "operationId": "get-returns",
    "summary": "Pobierz listę zwrotów",
    "description": "Stronicowana lista zwrotów z filtrami. Odpowiednik getOrderReturns w BaseLinker."
   },
   "post": {
    "tags": [
     "Zwroty"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateReturnV4Request"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns",
    "summary": "Utwórz zwrot",
    "description": "Odpowiednik addOrderReturn w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/{id}": {
   "get": {
    "tags": [
     "Zwroty"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReturnsReturnResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-returns-id",
    "summary": "Pobierz zwrot po ID"
   },
   "delete": {
    "tags": [
     "Zwroty"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-returns-id",
    "summary": "Usuń zwrot",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v4/returns/{id}": {
   "put": {
    "tags": [
     "Zwroty"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateReturnRequestV4"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-id",
    "summary": "Zaktualizuj zwrot",
    "description": "Odpowiednik setOrderReturnFields w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v4/returns/{returnId}": {
   "get": {
    "tags": [
     "Zwroty"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/V4ReturnResponse"
        }
       }
      }
     }
    },
    "operationId": "get-returns-returnid",
    "summary": "Pobierz zwrot po ID (pełny model)",
    "description": "Zwraca zwrot w rozszerzonym modelu danych."
   }
  },
  "/api/v4/returns/{returnId}/events": {
   "get": {
    "tags": [
     "Zwroty"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/OrderEventDto"
         }
        }
       }
      }
     }
    },
    "operationId": "get-returns-returnid-events",
    "summary": "Pobierz zdarzenia zwrotu"
   }
  },
  "/api/v4/returns/{returnId}/events/{eventId}": {
   "get": {
    "tags": [
     "Zwroty"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "eventId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OrderEventDto"
        }
       }
      }
     }
    },
    "operationId": "get-returns-returnid-events-eventid",
    "summary": "Pobierz zdarzenie zwrotu po ID"
   }
  },
  "/api/v4/returns/{returnId}/history/flatten": {
   "get": {
    "tags": [
     "Zwroty"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfReturnFlattenedHistoryResponse"
        }
       }
      }
     }
    },
    "operationId": "get-returns-returnid-history-flatten",
    "summary": "Pobierz spłaszczoną historię zmian zwrotu"
   }
  },
  "/api/v3/returns/{returnId}/lineItems": {
   "post": {
    "tags": [
     "Pozycje zwrotu"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddReturnLineItemRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-returnid-lineitems",
    "summary": "Dodaj pozycję do zwrotu",
    "description": "Odpowiednik addOrderReturnProduct w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/{returnId}/lineItems/{returnLineItemId}": {
   "put": {
    "tags": [
     "Pozycje zwrotu"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "returnLineItemId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateReturnLineItemRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-returnid-lineitems-returnlineitemid",
    "summary": "Zaktualizuj pozycję zwrotu",
    "description": "Odpowiednik setOrderReturnProductFields w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Pozycje zwrotu"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "returnLineItemId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-returns-returnid-lineitems-returnlineitemid",
    "summary": "Usuń pozycję zwrotu",
    "description": "Odpowiednik deleteOrderReturnProduct w BaseLinker. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/{returnId}/lineItems/FromPim": {
   "post": {
    "tags": [
     "Pozycje zwrotu"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/LineItemFromPimRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-returnid-lineitems-frompim",
    "summary": "Dodaj pozycję zwrotu z katalogu produktów (PIM)"
   }
  },
  "/api/v3/returns/{returnId}/lineItems/FromPim/Many": {
   "post": {
    "tags": [
     "Pozycje zwrotu"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/LineItemsFromPimRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-returnid-lineitems-frompim-many",
    "summary": "Dodaj wiele pozycji zwrotu z katalogu (PIM)"
   }
  },
  "/api/v3/returns/{returnId}/lineItems/many": {
   "post": {
    "tags": [
     "Pozycje zwrotu"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddReturnLineItemsRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-returnid-lineitems-many",
    "summary": "Dodaj wiele pozycji do zwrotu",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/{returnId}/processBundles": {
   "post": {
    "tags": [
     "Zwroty"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ProcessReturnBundlesRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-returnid-processbundles",
    "summary": "Rozbij zestawy w zwrocie",
    "description": "Zamienia pozycje-zestawy zwrotu na ich składniki. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v1/Returns/{returnId}/Shipments": {
   "get": {
    "tags": [
     "Przesyłki zwrotne"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReturnAndOrderShipmentsResponse"
        }
       }
      }
     }
    },
    "operationId": "get-returns-returnid-shipments",
    "summary": "Pobierz przesyłki zwrotu",
    "description": "Zwraca przesyłki zwrotne oraz przesyłki zamówienia powiązanego ze zwrotem."
   },
   "post": {
    "tags": [
     "Przesyłki zwrotne"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "X-SR-ForceSilentChanges",
      "in": "header",
      "description": "This header allows for adding shipment without raising events",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ReturnShipmentRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-returnid-shipments",
    "summary": "Dodaj przesyłkę zwrotną",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych. Zapisuje przesyłkę nadaną poza Sellrocket; nie nadaje paczki u kuriera."
   }
  },
  "/api/v1/Returns/{returnId}/Shipments/{id}": {
   "get": {
    "tags": [
     "Przesyłki zwrotne"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReturnShipmentResponse"
        }
       }
      }
     }
    },
    "operationId": "get-returns-returnid-shipments-id",
    "summary": "Pobierz przesyłkę zwrotną po ID"
   },
   "put": {
    "tags": [
     "Przesyłki zwrotne"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateReturnShipmentRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-returnid-shipments-id",
    "summary": "Zaktualizuj przesyłkę zwrotną",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Przesyłki zwrotne"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "connectionId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-returns-returnid-shipments-id",
    "summary": "Usuń przesyłkę zwrotną",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v1/Returns/{returnId}/Shipments/bulk": {
   "post": {
    "tags": [
     "Przesyłki zwrotne"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/ReturnShipmentRequest"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-returnid-shipments-bulk",
    "summary": "Dodaj wiele przesyłek zwrotnych",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych. Zapisuje przesyłkę nadaną poza Sellrocket; nie nadaje paczki u kuriera."
   },
   "put": {
    "tags": [
     "Przesyłki zwrotne"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/UpdateReturnShipmentWithIdRequest"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-returnid-shipments-bulk",
    "summary": "Zaktualizuj wiele przesyłek zwrotnych",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v1/Returns/{returnId}/Shipments/Labels/newest": {
   "get": {
    "tags": [
     "Przesyłki zwrotne"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       }
      }
     }
    },
    "operationId": "get-returns-returnid-shipments-labels-newest",
    "summary": "Pobierz najnowszą etykietę przesyłki zwrotnej"
   }
  },
  "/api/v4/returns/{returnId}/statusHistory": {
   "get": {
    "tags": [
     "Zwroty"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfReturnStatusHistoryResponse"
        }
       }
      }
     }
    },
    "operationId": "get-returns-returnid-statushistory",
    "summary": "Pobierz historię statusów zwrotu"
   }
  },
  "/api/v3/returns/fromOrder": {
   "post": {
    "tags": [
     "Zwroty"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateReturnFromOrderRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-fromorder",
    "summary": "Utwórz zwrot na podstawie zamówienia",
    "description": "Tworzy zwrot z danymi i pozycjami przeniesionymi z zamówienia. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/GetByOrderId/{id}": {
   "get": {
    "tags": [
     "Zwroty"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ReturnsReturnResponse"
         }
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-returns-getbyorderid-id",
    "summary": "Pobierz zwroty zamówienia",
    "description": "Zwraca zwroty powiązane z zamówieniem o podanym ID."
   }
  },
  "/api/v1/returns/OrdersInStatusesCount": {
   "get": {
    "tags": [
     "Zwroty"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ReturnsInStatusCountResponse"
         }
        }
       }
      }
     }
    },
    "deprecated": true,
    "operationId": "get-returns-ordersinstatusescount",
    "summary": "Policz zwroty w statusach",
    "description": "Zwraca liczbę zwrotów w poszczególnych statusach."
   }
  },
  "/api/v3/returns/positions/statuses": {
   "get": {
    "tags": [
     "Statusy pozycji zwrotu"
    ],
    "summary": "Pobierz statusy pozycji zwrotu",
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "description": "The page index.",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "The maximum number of items per page.",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfReturnsPositionStatusResponse"
        }
       }
      }
     }
    },
    "operationId": "get-returns-positions-statuses",
    "description": "Słownik statusów, jakie mogą przyjmować pojedyncze pozycje zwrotu."
   },
   "post": {
    "tags": [
     "Statusy pozycji zwrotu"
    ],
    "summary": "Utwórz status pozycji zwrotu",
    "requestBody": {
     "description": "The creation request.",
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateReturnsPositionStatusRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-positions-statuses",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/positions/statuses/{id}": {
   "get": {
    "tags": [
     "Statusy pozycji zwrotu"
    ],
    "summary": "Pobierz status pozycji zwrotu po ID",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "description": "The status identifier.",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReturnsPositionStatusResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-returns-positions-statuses-id"
   },
   "put": {
    "tags": [
     "Statusy pozycji zwrotu"
    ],
    "summary": "Zaktualizuj status pozycji zwrotu",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "description": "The status identifier.",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "requestBody": {
     "description": "The update request.",
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateReturnsPositionStatusRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-positions-statuses-id",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Statusy pozycji zwrotu"
    ],
    "summary": "Usuń status pozycji zwrotu",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "description": "The status identifier.",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-returns-positions-statuses-id",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/reasons": {
   "get": {
    "tags": [
     "Powody zwrotów"
    ],
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfReturnsReasonResponse"
        }
       }
      }
     }
    },
    "operationId": "get-returns-reasons",
    "summary": "Pobierz powody zwrotów",
    "description": "Odpowiednik getOrderReturnReasonsList w BaseLinker."
   },
   "post": {
    "tags": [
     "Powody zwrotów"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateReturnsReasonRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-reasons",
    "summary": "Utwórz powód zwrotu",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/reasons/{id}": {
   "get": {
    "tags": [
     "Powody zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReturnsReasonResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-returns-reasons-id",
    "summary": "Pobierz powód zwrotu po ID"
   },
   "put": {
    "tags": [
     "Powody zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateReturnsReasonRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-reasons-id",
    "summary": "Zaktualizuj powód zwrotu",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Powody zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-returns-reasons-id",
    "summary": "Usuń powód zwrotu",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v1/returns/ReturnsInStatusesCount": {
   "get": {
    "tags": [
     "Zwroty"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ReturnsInStatusCountResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "get-returns-returnsinstatusescount",
    "summary": "Policz zwroty w statusach (alternatywna ścieżka)",
    "description": "Działa tak samo jak zliczanie zwrotów w statusach."
   }
  },
  "/api/v3/returns/status-groups": {
   "get": {
    "tags": [
     "Grupy statusów zwrotów"
    ],
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfReturnStatusGroupResponse"
        }
       }
      }
     }
    },
    "operationId": "get-returns-status-groups",
    "summary": "Pobierz grupy statusów zwrotów"
   },
   "post": {
    "tags": [
     "Grupy statusów zwrotów"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateReturnStatusGroupRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-status-groups",
    "summary": "Utwórz grupę statusów zwrotów",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/status-groups/{id}": {
   "get": {
    "tags": [
     "Grupy statusów zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReturnStatusGroupResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-returns-status-groups-id",
    "summary": "Pobierz grupę statusów zwrotów po ID"
   },
   "put": {
    "tags": [
     "Grupy statusów zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateReturnStatusGroupRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-status-groups-id",
    "summary": "Zaktualizuj grupę statusów zwrotów",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Grupy statusów zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-returns-status-groups-id",
    "summary": "Usuń grupę statusów zwrotów",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/status-groups/{id}/Position": {
   "put": {
    "tags": [
     "Grupy statusów zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateReturnStatusGroupPositionRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-status-groups-id-position",
    "summary": "Zmień pozycję grupy statusów zwrotów",
    "description": "Ustala kolejność wyświetlania grupy. Używane głównie przez panel Sellrocket."
   }
  },
  "/api/v3/returns/status/bulk": {
   "put": {
    "tags": [
     "Zwroty"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/BulkMoveReturnsToStatusRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-status-bulk",
    "summary": "Zmień status wielu zwrotów",
    "description": "Przenosi wskazane zwroty do jednego statusu. Odpowiednik setOrderReturnStatuses w BaseLinker."
   }
  },
  "/api/v3/returns/statuses": {
   "get": {
    "tags": [
     "Statusy zwrotów"
    ],
    "parameters": [
     {
      "name": "page",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfReturnStatusResponse"
        }
       }
      }
     }
    },
    "operationId": "get-returns-statuses",
    "summary": "Pobierz statusy zwrotów (stronicowanie)",
    "description": "Odpowiednik getOrderReturnStatusList w BaseLinker."
   },
   "post": {
    "tags": [
     "Statusy zwrotów"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateReturnStatusRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-returns-statuses",
    "summary": "Utwórz status zwrotu",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/statuses/{id}": {
   "get": {
    "tags": [
     "Statusy zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReturnStatusResponse"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-returns-statuses-id",
    "summary": "Pobierz status zwrotu po ID"
   },
   "put": {
    "tags": [
     "Statusy zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateReturnStatusRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-statuses-id",
    "summary": "Zaktualizuj status zwrotu",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   },
   "delete": {
    "tags": [
     "Statusy zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/DeleteReturnStatusRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-returns-statuses-id",
    "summary": "Usuń status zwrotu",
    "description": "Usuwa status; w treści żądania można wskazać status, do którego zostaną przeniesione zwroty. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/returns/statuses/{id}/default": {
   "put": {
    "tags": [
     "Statusy zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-statuses-id-default",
    "summary": "Ustaw status zwrotu jako domyślny",
    "description": "Nowe zwroty będą otrzymywać ten status."
   },
   "delete": {
    "tags": [
     "Statusy zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-returns-statuses-id-default",
    "summary": "Usuń oznaczenie domyślnego statusu zwrotu"
   }
  },
  "/api/v3/returns/statuses/{id}/Position": {
   "put": {
    "tags": [
     "Statusy zwrotów"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateReturnStatusPositionRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-returns-statuses-id-position",
    "summary": "Zmień pozycję statusu zwrotu",
    "description": "Ustala kolejność wyświetlania statusu. Używane głównie przez panel Sellrocket."
   }
  },
  "/api/v3/returns/statuses/all": {
   "get": {
    "tags": [
     "Statusy zwrotów"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ReturnStatusResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "get-returns-statuses-all",
    "summary": "Pobierz wszystkie statusy zwrotów",
    "description": "Zwraca pełną listę statusów zwrotów bez stronicowania."
   }
  },
  "/api/v1/Returns/sync/{returnId}/Shipments": {
   "post": {
    "tags": [
     "Przesyłki zwrotne"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ReturnShipmentRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReturnShipmentResponse"
        }
       }
      }
     }
    },
    "operationId": "post-returns-sync-returnid-shipments",
    "summary": "Dodaj przesyłkę zwrotną (synchronicznie)",
    "description": "Synchroniczny wariant – zwraca od razu utworzoną przesyłkę zamiast zadania. Zapisuje przesyłkę nadaną poza Sellrocket; nie nadaje paczki u kuriera."
   }
  },
  "/api/v1/Returns/sync/{returnId}/Shipments/bulk": {
   "post": {
    "tags": [
     "Przesyłki zwrotne"
    ],
    "parameters": [
     {
      "name": "returnId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/ReturnShipmentRequest"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ReturnShipmentResponse"
         }
        }
       }
      }
     }
    },
    "operationId": "post-returns-sync-returnid-shipments-bulk",
    "summary": "Dodaj wiele przesyłek zwrotnych (synchronicznie)",
    "description": "Zapisuje przesyłkę nadaną poza Sellrocket; nie nadaje paczki u kuriera."
   }
  },
  "/api/v3/Shipments": {
   "get": {
    "tags": [
     "Przesyłki"
    ],
    "parameters": [
     {
      "name": "Id",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "ShipmentId",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "ShipmentStatus",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "OrderId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "ConnectionIds",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     },
     {
      "name": "IsCod",
      "in": "query",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "UpdatedAtFrom",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "UpdatedAtTo",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "CreatedAtFrom",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "CreatedAtTo",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "TrackingNumber",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "CourierService",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     },
     {
      "name": "Limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfShipmentResponse"
        }
       }
      }
     }
    },
    "operationId": "get-shipments",
    "summary": "Pobierz listę przesyłek",
    "description": "Stronicowana lista przesyłek z filtrami (status, kurier, pobranie, daty, numer nadania)."
   }
  },
  "/api/v3/Shipments/CombinedLabels": {
   "post": {
    "tags": [
     "Przesyłki"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedLabelsRequestV2"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedLabelsRequestV2"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedLabelsRequestV2"
         }
        ]
       }
      },
      "application/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedLabelsRequestV2"
         }
        ]
       }
      },
      "text/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedLabelsRequestV2"
         }
        ]
       }
      },
      "application/*+xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedLabelsRequestV2"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfFileStreamResult"
        }
       }
      }
     }
    },
    "operationId": "post-shipments-combinedlabels",
    "summary": "Pobierz zbiorczy plik etykiet",
    "description": "Łączy etykiety wielu przesyłek w jeden plik do wydruku. Zbliżone do getLabel w BaseLinker, ale dla wielu paczek."
   }
  },
  "/api/v3/Shipments/CombinedLabels/Print": {
   "post": {
    "tags": [
     "Przesyłki"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintCombinedLabelsRequestV2"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintCombinedLabelsRequestV2"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintCombinedLabelsRequestV2"
         }
        ]
       }
      },
      "application/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintCombinedLabelsRequestV2"
         }
        ]
       }
      },
      "text/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintCombinedLabelsRequestV2"
         }
        ]
       }
      },
      "application/*+xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/PrintCombinedLabelsRequestV2"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PrintCombinedLabelsResponseV2"
        }
       }
      }
     }
    },
    "operationId": "post-shipments-combinedlabels-print",
    "summary": "Wydrukuj zbiorczo etykiety przesyłek",
    "description": "Wysyła połączone etykiety wielu przesyłek bezpośrednio do drukarki."
   }
  },
  "/api/v3/Shipments/CombinedProtocols": {
   "post": {
    "tags": [
     "Przesyłki"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedProtocolsRequestV2"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedProtocolsRequestV2"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedProtocolsRequestV2"
         }
        ]
       }
      },
      "application/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedProtocolsRequestV2"
         }
        ]
       }
      },
      "text/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedProtocolsRequestV2"
         }
        ]
       }
      },
      "application/*+xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetCombinedProtocolsRequestV2"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfFileStreamResult"
        }
       }
      }
     }
    },
    "operationId": "post-shipments-combinedprotocols",
    "summary": "Pobierz zbiorczy protokół nadania",
    "description": "Generuje protokoły przekazania przesyłek kurierowi. Odpowiednik getProtocol w BaseLinker."
   }
  },
  "/api/v3/Shipments/DistinctCouriers": {
   "get": {
    "tags": [
     "Przesyłki"
    ],
    "parameters": [
     {
      "name": "FromDate",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/DistinctCourierDTO"
         }
        }
       }
      }
     }
    },
    "operationId": "get-shipments-distinctcouriers",
    "summary": "Pobierz kurierów użytych w przesyłkach",
    "description": "Zwraca unikalną listę kurierów/usług, z których korzystano od wskazanej daty."
   }
  },
  "/api/v3/Shipments/ShipmentLabel/{shipmentId}": {
   "get": {
    "tags": [
     "Przesyłki"
    ],
    "parameters": [
     {
      "name": "shipmentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "string",
         "format": "binary"
        }
       }
      }
     }
    },
    "operationId": "get-shipments-shipmentlabel-shipmentid",
    "summary": "Pobierz etykietę przesyłki po ID",
    "description": "Zwraca plik etykiety dla wskazanej przesyłki. Odpowiednik getLabel w BaseLinker."
   }
  },
  "/api/v3/Shipments/Statuses": {
   "get": {
    "tags": [
     "Przesyłki"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfShipmentResponse"
        }
       }
      }
     }
    },
    "operationId": "get-shipments-statuses",
    "summary": "Pobierz statusy przesyłek",
    "description": "Zwraca statusy śledzenia przesyłek. Zbliżone do getCourierPackagesStatusHistory w BaseLinker."
   }
  },
  "/api/v5/Stats/packing": {
   "get": {
    "tags": [
     "Statystyki zamówień"
    ],
    "parameters": [
     {
      "name": "StartDate",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "EndDate",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "Sources",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     },
     {
      "name": "StatusIds",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "type": "integer",
        "format": "int64"
       }
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "get-stats-packing",
    "summary": "Pobierz statystyki pakowania",
    "description": "Zestawienie pakowania zamówień w zadanym okresie, z filtrami źródeł i statusów."
   }
  },
  "/api/v5/Stats/status-transitions/first": {
   "get": {
    "tags": [
     "Statystyki zamówień"
    ],
    "parameters": [
     {
      "name": "from",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "to",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "statusId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "get-stats-status-transitions-first",
    "summary": "Eksportuj pierwsze przejścia do statusu (CSV)",
    "description": "Zwraca plik CSV z momentem pierwszego wejścia zamówień do wskazanego statusu w zadanym okresie."
   }
  },
  "/api/v6/Stats/statuses": {
   "get": {
    "tags": [
     "Statystyki zamówień"
    ],
    "parameters": [
     {
      "name": "StartDate",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "EndDate",
      "in": "query",
      "schema": {
       "type": "string",
       "format": "date-time"
      }
     },
     {
      "name": "Sources",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     },
     {
      "name": "StatusIds",
      "in": "query",
      "schema": {
       "type": "array",
       "items": {
        "type": "integer",
        "format": "int64"
       }
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "get-stats-statuses",
    "summary": "Pobierz statystyki statusów zamówień",
    "description": "Zestawienie liczby zamówień w statusach w zadanym okresie."
   }
  },
  "/api/v3/Statuses": {
   "get": {
    "tags": [
     "Statusy"
    ],
    "parameters": [
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfStatusDTO"
        }
       }
      }
     }
    },
    "operationId": "get-statuses",
    "summary": "Pobierz statusy zamówień (stronicowanie)",
    "description": "Odpowiednik getOrderStatusList w BaseLinker."
   },
   "post": {
    "tags": [
     "Statusy"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateStatusRequestDTO"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-statuses",
    "summary": "Utwórz status zamówienia",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Statuses/{id}": {
   "delete": {
    "tags": [
     "Statusy"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "newStatusId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-statuses-id",
    "summary": "Usuń status zamówienia",
    "description": "Usuwa status; parametr newStatusId wskazuje status, do którego zostaną przeniesione zamówienia. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Statuses/{statusId}": {
   "get": {
    "tags": [
     "Statusy"
    ],
    "parameters": [
     {
      "name": "statusId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/StatusDTO"
        }
       }
      }
     }
    },
    "operationId": "get-statuses-statusid",
    "summary": "Pobierz status zamówienia po ID"
   },
   "put": {
    "tags": [
     "Statusy"
    ],
    "parameters": [
     {
      "name": "statusId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateStatusRequestDTO"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-statuses-statusid",
    "summary": "Zaktualizuj status zamówienia",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/Statuses/{statusId}/Position": {
   "put": {
    "tags": [
     "Statusy"
    ],
    "parameters": [
     {
      "name": "statusId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateStatusPositionRequestDto"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "403": {
      "description": "Forbidden",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-statuses-statusid-position",
    "summary": "Zmień pozycję statusu zamówienia",
    "description": "Ustala kolejność wyświetlania statusu. Używane głównie przez panel Sellrocket."
   }
  },
  "/api/v3/Statuses/ByIds": {
   "post": {
    "tags": [
     "Statusy"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/StatusDTO"
         }
        }
       }
      }
     }
    },
    "operationId": "post-statuses-byids",
    "summary": "Pobierz wiele statusów zamówień po ID",
    "description": "Odczyt – lista ID w treści żądania."
   }
  },
  "/api/v3/Statuses/GetAll": {
   "get": {
    "tags": [
     "Statusy"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/StatusDTO"
         }
        }
       }
      }
     }
    },
    "operationId": "get-statuses-getall",
    "summary": "Pobierz wszystkie statusy zamówień",
    "description": "Pełna lista statusów bez stronicowania. Odpowiednik getOrderStatusList w BaseLinker."
   }
  },
  "/api/v3/Statuses/GetAllUserStatuses": {
   "get": {
    "tags": [
     "Statusy"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/StatusDTO"
         }
        }
       }
      }
     }
    },
    "operationId": "get-statuses-getalluserstatuses",
    "summary": "Pobierz statusy dostępne dla użytkownika",
    "description": "Zwraca statusy, do których bieżący użytkownik ma uprawnienia."
   }
  },
  "/api/v3/StatusGroups/{statusId}/Position": {
   "put": {
    "tags": [
     "Grupy statusów"
    ],
    "parameters": [
     {
      "name": "statusId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateStatusGroupPositionRequestDto"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-statusgroups-statusid-position",
    "summary": "Zmień pozycję grupy statusów zamówień",
    "description": "Ustala kolejność wyświetlania grupy statusów. Używane głównie przez panel Sellrocket."
   }
  },
  "/api/v3/Tags": {
   "get": {
    "tags": [
     "Tagi"
    ],
    "summary": "Pobierz wszystkie tagi",
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/TagDto"
         }
        }
       }
      }
     }
    },
    "operationId": "get-tags"
   },
   "post": {
    "tags": [
     "Tagi"
    ],
    "summary": "Utwórz tagi dla obiektu",
    "requestBody": {
     "description": "<b>Example</b> \n            ```\n            {\n                \"target\": \"udpl://smerp-api/api/v1/UserEvents/343\",\n                \"tags\": [\n                    \"startAsync202:udpl://ajs-api/api/v1/automaticScripts/start/343:post\"\n                ]\n            }\n            ```",
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateTagRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateTagRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateTagRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "post-tags",
    "description": "Tworzy wpis tagów dla wskazanego obiektu (np. zamówienia)."
   }
  },
  "/api/v3/Tags/{target}": {
   "get": {
    "tags": [
     "Tagi"
    ],
    "summary": "Pobierz tagi obiektu",
    "parameters": [
     {
      "name": "target",
      "in": "path",
      "description": "`udpl` of the target<br />\ne.g. `udpl://smerp-api/api/v1/UserEvents/343`",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TagDto"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-tags-target"
   },
   "delete": {
    "tags": [
     "Tagi"
    ],
    "summary": "Usuń obiekt wraz z tagami",
    "parameters": [
     {
      "name": "target",
      "in": "path",
      "description": "`udpl` of the target<br />\ne.g. `udpl://smerp-api/api/v1/UserEvents/343`",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "delete-tags-target",
    "description": "Usuwa wpis obiektu i wszystkie przypisane do niego tagi."
   }
  },
  "/api/v3/Tags/{target}/add": {
   "post": {
    "tags": [
     "Tagi"
    ],
    "summary": "Dodaj tagi do obiektu",
    "description": "Dopisuje tagi, nie usuwając dotychczasowych.\n\nAdds new tags to the target but does not remove the old ones.",
    "parameters": [
     {
      "name": "target",
      "in": "path",
      "description": "`udpl` of the target<br />\ne.g. `udpl://smerp-api/api/v1/UserEvents/343`",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "description": "<b>Example</b> \n            ```\n            {\n                \"tags\": [\n                    \"startAsync202:udpl://ajs-api/api/v1/automaticScripts/start/343:post\"\n                ]\n            }\n            ```",
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddTagsRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddTagsRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddTagsRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "post-tags-target-add"
   }
  },
  "/api/v3/Tags/{target}/delete": {
   "delete": {
    "tags": [
     "Tagi"
    ],
    "summary": "Usuń wybrane tagi z obiektu",
    "description": "Usuwa tylko tagi przekazane w treści żądania.\n\nDeletes tags passed in request from existing tags for given target",
    "parameters": [
     {
      "name": "target",
      "in": "path",
      "description": "`udpl` of the target<br />\ne.g. `udpl://smerp-api/api/v1/UserEvents/343`",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "description": "<b>Example</b> \n            ```\n            {\n                \"tags\": [\n                    \"startAsync202:udpl://ajs-api/api/v1/automaticScripts/start/343:post\"\n                ]\n            }\n            ```",
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/DeleteTagsRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/DeleteTagsRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/DeleteTagsRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "delete-tags-target-delete"
   }
  },
  "/api/v3/Tags/{target}/purge": {
   "delete": {
    "tags": [
     "Tagi"
    ],
    "summary": "Wyczyść wszystkie tagi obiektu",
    "description": "Usuwa wszystkie tagi, pozostawiając sam obiekt.\n\nPurges all tags from target",
    "parameters": [
     {
      "name": "target",
      "in": "path",
      "description": "`udpl` of the target<br />\ne.g. `udpl://smerp-api/api/v1/UserEvents/343`",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "delete-tags-target-purge"
   }
  },
  "/api/v3/Tags/{target}/replace": {
   "post": {
    "tags": [
     "Tagi"
    ],
    "summary": "Zastąp tagi obiektu",
    "description": "Ustawia dokładnie przekazaną listę tagów – dodaje brakujące i usuwa nadmiarowe.\n\nSubstitutes the list of tags - adds new and removes missing.",
    "parameters": [
     {
      "name": "target",
      "in": "path",
      "description": "`udpl` of the target<br />\ne.g. `udpl://smerp-api/api/v1/UserEvents/343`",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "description": "<b>Example</b> \n            ```\n            {\n                \"tags\": [\n                    \"startAsync202:udpl://ajs-api/api/v1/automaticScripts/start/343:post\"\n                ]\n            }\n            ```",
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ReplaceTagsRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ReplaceTagsRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/ReplaceTagsRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "post-tags-target-replace"
   }
  },
  "/api/v3/Templates": {
   "get": {
    "tags": [
     "Szablony"
    ],
    "parameters": [
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/PageOfTemplateResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfTemplateResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfTemplateResponse"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-templates",
    "summary": "Pobierz szablony wiadomości",
    "description": "Zwraca stronicowaną listę szablonów wiadomości e-mail."
   },
   "put": {
    "tags": [
     "Szablony"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddOrUpdateTemplateRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/FullTemplateResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FullTemplateResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/FullTemplateResponse"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/FullTemplateResponse"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/FullTemplateResponse"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "put-templates",
    "summary": "Utwórz lub zaktualizuj szablon wiadomości"
   }
  },
  "/api/v3/Templates/{templateId}": {
   "get": {
    "tags": [
     "Szablony"
    ],
    "parameters": [
     {
      "name": "templateId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/FullTemplateResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FullTemplateResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/FullTemplateResponse"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/FullTemplateResponse"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/FullTemplateResponse"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-templates-templateid",
    "summary": "Pobierz szablon wiadomości po ID"
   },
   "delete": {
    "tags": [
     "Szablony"
    ],
    "parameters": [
     {
      "name": "templateId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       },
       "application/json": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       },
       "text/json": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       },
       "application/xml": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       },
       "text/xml": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "delete-templates-templateid",
    "summary": "Usuń szablon wiadomości"
   }
  },
  "/api/v3/Templates/{templateId}/attachments/{filename}": {
   "put": {
    "tags": [
     "Szablony"
    ],
    "parameters": [
     {
      "name": "templateId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "filename",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/octet-stream": {
       "schema": {
        "type": "string",
        "format": "byte"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/TemplateAttachmentResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TemplateAttachmentResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/TemplateAttachmentResponse"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/TemplateAttachmentResponse"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/TemplateAttachmentResponse"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "put-templates-templateid-attachments-filename",
    "summary": "Dodaj załącznik do szablonu wiadomości",
    "description": "Wgrywa plik, który będzie dołączany do wiadomości wysyłanych z szablonu."
   }
  },
  "/api/v3/Templates/{templateId}/attachments/{templateAttachmentId}": {
   "get": {
    "tags": [
     "Szablony"
    ],
    "parameters": [
     {
      "name": "templateId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "templateAttachmentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "get-templates-templateid-attachments-templateattachmentid",
    "summary": "Pobierz załącznik szablonu po ID"
   },
   "delete": {
    "tags": [
     "Szablony"
    ],
    "parameters": [
     {
      "name": "templateId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "templateAttachmentId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       },
       "application/json": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       },
       "text/json": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       },
       "application/xml": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       },
       "text/xml": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "delete-templates-templateid-attachments-templateattachmentid",
    "summary": "Usuń załącznik szablonu wiadomości"
   }
  },
  "/api/v3/Templates/{templateId}/attachmentsByName/{templateAttachmentName}": {
   "get": {
    "tags": [
     "Szablony"
    ],
    "parameters": [
     {
      "name": "templateId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "templateAttachmentName",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "get-templates-templateid-attachmentsbyname-templateattachmentname",
    "summary": "Pobierz załącznik szablonu po nazwie"
   }
  },
  "/api/v3/Templates/{templateId}/dynamic-attachments/{filename}/{type}": {
   "put": {
    "tags": [
     "Szablony"
    ],
    "parameters": [
     {
      "name": "templateId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "filename",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "type",
      "in": "path",
      "required": true,
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/DynamicAttachmentType"
        }
       ]
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddDynamicAttachmentAdditionalFieldNameRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddDynamicAttachmentAdditionalFieldNameRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddDynamicAttachmentAdditionalFieldNameRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/TemplateAttachmentResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TemplateAttachmentResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/TemplateAttachmentResponse"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/TemplateAttachmentResponse"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/TemplateAttachmentResponse"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "put-templates-templateid-dynamic-attachments-filename-type",
    "summary": "Dodaj dynamiczny załącznik do szablonu",
    "description": "Dołącza do wiadomości plik generowany dynamicznie (np. z pola dodatkowego zamówienia)."
   }
  },
  "/api/v3/Templates/ByIds": {
   "post": {
    "tags": [
     "Szablony"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/FullTemplateResponse"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/FullTemplateResponse"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/FullTemplateResponse"
         }
        }
       },
       "application/xml": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/FullTemplateResponse"
         }
        }
       },
       "text/xml": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/FullTemplateResponse"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-templates-byids",
    "summary": "Pobierz wiele szablonów wiadomości po ID",
    "description": "Odczyt – lista ID w treści żądania."
   }
  },
  "/api/v3/Tokens": {
   "get": {
    "tags": [
     "Tokeny API"
    ],
    "parameters": [
     {
      "name": "expiredInSeconds",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "rateLimit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/IssueTokenResponseDTO"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IssueTokenResponseDTO"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/IssueTokenResponseDTO"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/IssueTokenResponseDTO"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/IssueTokenResponseDTO"
        }
       }
      }
     }
    },
    "operationId": "get-tokens",
    "summary": "Wygeneruj token API (parametry w zapytaniu)",
    "description": "Wydaje token dostępu dla bieżącego użytkownika z opcjonalnym czasem ważności i limitem zapytań."
   },
   "post": {
    "tags": [
     "Tokeny API"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/IssueTokenRequestDTO"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/IssueTokenRequestDTO"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/IssueTokenRequestDTO"
         }
        ]
       }
      },
      "application/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/IssueTokenRequestDTO"
         }
        ]
       }
      },
      "text/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/IssueTokenRequestDTO"
         }
        ]
       }
      },
      "application/*+xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/IssueTokenRequestDTO"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/IssueTokenResponseDTO"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IssueTokenResponseDTO"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/IssueTokenResponseDTO"
        }
       },
       "application/xml": {
        "schema": {
         "$ref": "#/components/schemas/IssueTokenResponseDTO"
        }
       },
       "text/xml": {
        "schema": {
         "$ref": "#/components/schemas/IssueTokenResponseDTO"
        }
       }
      }
     }
    },
    "operationId": "post-tokens",
    "summary": "Wygeneruj token API",
    "description": "Wydaje token dostępu do API dla bieżącego użytkownika; można ustawić czas ważności i limit zapytań."
   }
  },
  "/api/v3/UserActions": {
   "get": {
    "tags": [
     "Akcje użytkownika"
    ],
    "summary": "Pobierz listę akcji użytkownika",
    "description": "Zwraca katalog akcji, do których można nadawać uprawnienia. Wymaga roli administratora.\n\nUser can only call this endpoint when he has role `ADMINISTRATOR`",
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/UserActionDto"
         }
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-useractions"
   }
  },
  "/api/v3/UserEvents": {
   "get": {
    "tags": [
     "Zdarzenia użytkownika"
    ],
    "parameters": [
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 0
      }
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int32",
       "default": 100
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageOfUserEventDTO"
        }
       }
      }
     }
    },
    "operationId": "get-userevents",
    "summary": "Pobierz akcje własne (stronicowanie)",
    "description": "Akcje własne to zdefiniowane przez użytkownika operacje uruchamiane na zamówieniach (np. przyciskiem lub skanem kodu)."
   },
   "post": {
    "tags": [
     "Zdarzenia użytkownika"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CreateUserEventRequestDTO"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-userevents",
    "summary": "Utwórz akcję własną",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v4/UserEvents": {
   "put": {
    "tags": [
     "Zdarzenia użytkownika"
    ],
    "summary": "Utwórz lub zaktualizuj akcję własną",
    "requestBody": {
     "description": "Request payload",
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpsertUserEventRequestDTO"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpsertUserEventRequestDTO"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpsertUserEventRequestDTO"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-userevents",
    "description": "Aktualizuje akcję o podanym ID lub tworzy nową. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/UserEvents/{id}": {
   "delete": {
    "tags": [
     "Zdarzenia użytkownika"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "delete-userevents-id",
    "summary": "Usuń akcję własną",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v4/UserEvents/{userEventId}": {
   "get": {
    "tags": [
     "Zdarzenia użytkownika"
    ],
    "summary": "Pobierz akcję własną po ID",
    "parameters": [
     {
      "name": "userEventId",
      "in": "path",
      "description": "User event ID",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/V4UserEventDTO"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-userevents-usereventid"
   }
  },
  "/api/v3/UserEvents/{userEventId}": {
   "put": {
    "tags": [
     "Zdarzenia użytkownika"
    ],
    "parameters": [
     {
      "name": "userEventId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateUserEventRequestDTO"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-userevents-usereventid",
    "summary": "Zaktualizuj akcję własną",
    "description": "Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/UserEvents/{userEventId}/Call": {
   "post": {
    "tags": [
     "Zdarzenia użytkownika"
    ],
    "parameters": [
     {
      "name": "userEventId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/CallUserEventRequestDTO"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "post-userevents-usereventid-call",
    "summary": "Uruchom akcję własną dla zamówienia",
    "description": "Wywołuje akcję własną w kontekście wskazanego zamówienia. Zbliżone do runOrderMacroTrigger w BaseLinker."
   }
  },
  "/api/v3/UserEvents/{userEventId}/Position": {
   "put": {
    "tags": [
     "Zdarzenia użytkownika"
    ],
    "parameters": [
     {
      "name": "userEventId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateUserEventPositionRequestDto"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     }
    },
    "operationId": "put-userevents-usereventid-position",
    "summary": "Zmień pozycję akcji własnej",
    "description": "Ustala kolejność wyświetlania akcji. Używane głównie przez panel Sellrocket."
   }
  },
  "/api/v4/UserEvents/Available": {
   "get": {
    "tags": [
     "Zdarzenia użytkownika"
    ],
    "summary": "Pobierz akcje dostępne dla statusu zamówienia",
    "parameters": [
     {
      "name": "statusId",
      "in": "query",
      "description": "Order status ID",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "location",
      "in": "query",
      "description": "Location to filter events by",
      "schema": {
       "allOf": [
        {
         "$ref": "#/components/schemas/SupportedLocationsEnum"
        }
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/V4UserEventDTO"
         }
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-userevents-available",
    "description": "Zwraca akcje własne dostępne dla bieżącego użytkownika w danym statusie i miejscu panelu."
   }
  },
  "/api/v3/UserEvents/GetAll": {
   "get": {
    "tags": [
     "Zdarzenia użytkownika"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/UserEventDTO"
         }
        }
       }
      }
     }
    },
    "operationId": "get-userevents-getall",
    "summary": "Pobierz wszystkie akcje własne",
    "description": "Pełna lista bez stronicowania."
   }
  },
  "/api/v4/UserEvents/RegenerateBarcodes": {
   "post": {
    "tags": [
     "Zdarzenia użytkownika"
    ],
    "summary": "Wygeneruj ponownie kody kreskowe akcji",
    "requestBody": {
     "description": "Collection of user event IDs",
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobDTO"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "post-userevents-regeneratebarcodes",
    "description": "Odtwarza kody kreskowe służące do wywoływania akcji skanerem. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych."
   }
  },
  "/api/v3/UserPermissions": {
   "get": {
    "tags": [
     "Uprawnienia"
    ],
    "summary": "Pobierz uprawnienia użytkownika",
    "description": "Wymaga roli administratora.\n\nUser can only call this endpoint when he has role `ADMINISTRATOR`",
    "parameters": [
     {
      "name": "userId",
      "in": "query",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/UserPermissionDto"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-userpermissions"
   },
   "put": {
    "tags": [
     "Uprawnienia"
    ],
    "summary": "Ustaw uprawnienia użytkownika",
    "description": "Wymaga roli administratora.\n\nUser can only call this endpoint when he has role `ADMINISTRATOR`",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UserPermissionDto"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UserPermissionDto"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UserPermissionDto"
         }
        ]
       }
      },
      "application/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UserPermissionDto"
         }
        ]
       }
      },
      "text/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UserPermissionDto"
         }
        ]
       }
      },
      "application/*+xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UserPermissionDto"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/UserPermissionDto"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "put-userpermissions"
   }
  },
  "/api/v3/UserPrinters/available": {
   "get": {
    "tags": [
     "Drukarki użytkownika"
    ],
    "summary": "Pobierz drukarki dostępne dla użytkownika",
    "description": "Zwraca drukarki, na które bieżący użytkownik może wysyłać wydruki.",
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AvailablePrinterDto"
         }
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-userprinters-available"
   }
  },
  "/api/v3/Users": {
   "get": {
    "tags": [
     "Użytkownicy"
    ],
    "summary": "Pobierz listę użytkowników",
    "description": "Wymaga roli administratora.\n\nUser can only call this endpoint when he has role `ADMINISTRATOR`",
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/UserDto"
         }
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-users"
   },
   "post": {
    "tags": [
     "Użytkownicy"
    ],
    "summary": "Utwórz użytkownika",
    "description": "Wymaga roli administratora.\n\nUser can only call this endpoint when he has role `ADMINISTRATOR`",
    "requestBody": {
     "description": "Details regarding new user account",
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/RegisterNewUserRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/RegisterNewUserRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/RegisterNewUserRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Created"
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-users"
   }
  },
  "/api/v3/Users/{userId}": {
   "get": {
    "tags": [
     "Użytkownicy"
    ],
    "summary": "Pobierz użytkownika po ID",
    "description": "Wymaga roli administratora.\n\nUser can only call this endpoint when he has role `ADMINISTRATOR`",
    "operationId": "get-users-userid",
    "parameters": [
     {
      "name": "userId",
      "in": "path",
      "description": "Id of the user which should be returned",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/UserDto"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/UserDto"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    }
   },
   "put": {
    "tags": [
     "Użytkownicy"
    ],
    "summary": "Zaktualizuj użytkownika",
    "description": "Wymaga roli administratora.\n\nUser can only call this endpoint when he has role `ADMINISTRATOR`",
    "parameters": [
     {
      "name": "userId",
      "in": "path",
      "description": "Id of the user whose details should be changed",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "requestBody": {
     "description": "Details regarding updated to user account. <br />\n`RequesterPasswordConfirmation` is the password of user that edits the profile. <br />\n`null` value in properties means, they should not be changed",
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/EditUserRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/EditUserRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/EditUserRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "204": {
      "description": "No Content"
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "put-users-userid"
   },
   "delete": {
    "tags": [
     "Użytkownicy"
    ],
    "summary": "Usuń użytkownika",
    "description": "Wymaga roli administratora.\n\nUser can only call this endpoint when he has role `ADMINISTRATOR`",
    "parameters": [
     {
      "name": "userId",
      "in": "path",
      "description": "Id of the user which should be removed",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "No Content"
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "delete-users-userid"
   }
  },
  "/api/v3/Users/{userId}/sessions": {
   "delete": {
    "tags": [
     "Użytkownicy"
    ],
    "summary": "Wyloguj użytkownika ze wszystkich urządzeń",
    "description": "Unieważnia wszystkie aktywne sesje użytkownika. Wymaga roli administratora.\n\nUser can only call this endpoint when he has role `ADMINISTRATOR` or `SUPERADMIN`.",
    "parameters": [
     {
      "name": "userId",
      "in": "path",
      "description": "The id of the user whose sessions should be removed",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "No Content"
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "delete-users-userid-sessions"
   }
  },
  "/api/v3/Users/ByIds": {
   "post": {
    "tags": [
     "Użytkownicy"
    ],
    "summary": "Pobierz wielu użytkowników po ID",
    "description": "Odczyt – lista ID w treści żądania. Wymaga roli administratora.\n\nUser can only call this endpoint when he has role `ADMINISTRATOR`",
    "requestBody": {
     "description": "Ids of the users which should be returned",
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+json": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "text/xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      },
      "application/*+xml": {
       "schema": {
        "type": "array",
        "items": {
         "type": "integer",
         "format": "int64"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/UserDto"
         }
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/UserDto"
         }
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-users-byids"
   }
  },
  "/api/v3/Users/me/pack-station": {
   "put": {
    "tags": [
     "Użytkownicy"
    ],
    "summary": "Ustaw domyślne stanowisko pakowania",
    "description": "Ustawia stanowisko pakowania bieżącego użytkownika; wartość null czyści ustawienie.\n\nAny authenticated user can set their own packing station. Pass a null `packStationId` to clear it.",
    "requestBody": {
     "description": "The packing station selection",
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SetPackStationRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SetPackStationRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SetPackStationRequest"
         }
        ]
       }
      },
      "application/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SetPackStationRequest"
         }
        ]
       }
      },
      "text/xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SetPackStationRequest"
         }
        ]
       }
      },
      "application/*+xml": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/SetPackStationRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "204": {
      "description": "No Content"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "put-users-me-pack-station"
   }
  },
  "/api/v3/Users/sessions/{sessionVersion}": {
   "delete": {
    "tags": [
     "Użytkownicy"
    ],
    "summary": "Unieważnij sesję użytkownika",
    "description": "Usuwa wskazaną sesję, wymuszając ponowne logowanie na danym urządzeniu. Wymaga roli administratora.\n\nUser can only call this endpoint when he has role `ADMINISTRATOR` or `SUPERADMIN`.\nThe session matching the given session version is removed, which forces a re-login on that device.",
    "parameters": [
     {
      "name": "sessionVersion",
      "in": "path",
      "description": "The session version value to remove",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "No Content"
     },
     "404": {
      "description": "Not Found",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "delete-users-sessions-sessionversion"
   }
  }
 },
 "components": {
  "schemas": {
   "ProblemDetails": {
    "type": "object",
    "properties": {
     "type": {
      "type": "string",
      "nullable": true
     },
     "title": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "detail": {
      "type": "string",
      "nullable": true
     },
     "instance": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": {}
   },
   "OwnerData": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "userName": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "roles": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PaymentReturnStatus": {
    "enum": [
     "Success",
     "Incorrect"
    ],
    "type": "string"
   },
   "ReturnParcel": {
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "shipmentId": {
      "type": "string",
      "nullable": true
     },
     "trackingNumber": {
      "type": "string",
      "nullable": true
     },
     "carrierId": {
      "type": "string",
      "nullable": true
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "manualShipment": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "SmerpConnection": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "nullable": true
     },
     "context": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "AdditionalFieldResponse": {
    "type": "object",
    "properties": {
     "objectId": {
      "type": "integer",
      "format": "int64"
     },
     "ownerType": {
      "type": "string",
      "nullable": true
     },
     "definitionId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldDisplayName": {
      "type": "string",
      "nullable": true
     },
     "fieldValue": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PositionAction": {
    "enum": [
     "MoveToTop",
     "MoveOneUp",
     "MoveOneDown",
     "MoveToBottom",
     "PlaceAfter"
    ],
    "type": "string"
   },
   "PageOfReturnStatusGroupResponse": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnStatusGroupResponse"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfReturnStatusResponse": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnStatusResponse"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfReturnsPositionStatusResponse": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnsPositionStatusResponse"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfReturnsReasonResponse": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnsReasonResponse"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfShipmentResponse": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ShipmentResponse"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfStatusDTO": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/StatusDTO"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfTemplateResponse": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/TemplateResponse"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfUserEventDTO": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UserEventDTO"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "KeyValueStoreUpdateDTO": {
    "type": "object",
    "properties": {
     "key": {
      "type": "string",
      "nullable": true
     },
     "value": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/JsonNode"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ConnectionPositionInDefinitionDTOV2": {
    "type": "object",
    "properties": {
     "position": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "ConnectionResponseDTOV2": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "connectionType": {
      "type": "string",
      "nullable": true
     },
     "externalSourceType": {
      "type": "string",
      "nullable": true
     },
     "externalSourceTypeName": {
      "type": "string",
      "nullable": true
     },
     "externalSourceId": {
      "type": "string",
      "nullable": true
     },
     "isConfigured": {
      "type": "boolean"
     },
     "isSystemTool": {
      "type": "boolean"
     },
     "positionInDefinition": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ConnectionPositionInDefinitionDTOV2"
       }
      ],
      "nullable": true
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     }
    },
    "additionalProperties": false
   },
   "CreateShopperConnectionCommand": {
    "type": "object",
    "properties": {
     "admin-id": {
      "type": "string",
      "nullable": true
     },
     "admin-name": {
      "type": "string",
      "nullable": true
     },
     "place": {
      "type": "string",
      "nullable": true
     },
     "shop": {
      "type": "string",
      "nullable": true
     },
     "timestamp": {
      "type": "integer",
      "format": "int64"
     },
     "hash": {
      "type": "string",
      "nullable": true
     },
     "admin-hash": {
      "type": "string",
      "nullable": true
     },
     "application": {
      "type": "string",
      "nullable": true
     },
     "application-version": {
      "type": "string",
      "nullable": true
     },
     "translations": {
      "type": "string",
      "nullable": true
     },
     "locale": {
      "type": "string",
      "nullable": true
     },
     "version": {
      "type": "string",
      "nullable": true
     },
     "is-mitra": {
      "type": "boolean"
     },
     "appbridge": {
      "type": "integer",
      "format": "int32"
     },
     "appbridge_appid": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "CreateShopperConnectionResponse": {
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "success": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "KeyValueDbEntity": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "updatedAt": {
      "type": "string",
      "format": "date-time"
     },
     "version": {
      "type": "integer",
      "format": "int32"
     },
     "value": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/JsonNode"
      },
      "nullable": true
     },
     "userId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "key": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ContractorResponse": {
    "type": "object",
    "properties": {
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "firstName": {
      "type": "string",
      "nullable": true
     },
     "lastName": {
      "type": "string",
      "nullable": true
     },
     "isCompany": {
      "type": "boolean"
     },
     "companyTaxId": {
      "allOf": [
       {
        "$ref": "#/components/schemas/CompanyTaxId"
       }
      ],
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/SharedAddressResponse"
       }
      ],
      "nullable": true
     },
     "email": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "businessEndDate": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "suspensionStartDate": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "resumptionDate": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ExistingContractorResponse": {
    "type": "object",
    "properties": {
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderBuyerResponse"
       }
      ],
      "nullable": true
     },
     "recipient": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderRecipientResponse"
       }
      ],
      "nullable": true
     },
     "invoice": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InvoiceResponse"
       }
      ],
      "nullable": true
     },
     "creationDate": {
      "type": "string",
      "format": "date-time"
     }
    },
    "additionalProperties": false
   },
   "SharedAddressResponse": {
    "type": "object",
    "properties": {
     "apartmentNo": {
      "type": "string",
      "nullable": true
     },
     "houseNo": {
      "type": "string",
      "nullable": true
     },
     "street": {
      "type": "string",
      "nullable": true
     },
     "city": {
      "type": "string",
      "nullable": true
     },
     "postCode": {
      "type": "string",
      "nullable": true
     },
     "state": {
      "type": "string",
      "nullable": true
     },
     "countryCode": {
      "type": "string",
      "nullable": true
     },
     "fullNumber": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "isEu": {
      "type": "boolean",
      "nullable": true,
      "readOnly": true
     },
     "address": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "community": {
      "type": "string",
      "nullable": true
     },
     "county": {
      "type": "string",
      "nullable": true
     },
     "voivodeship": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "CompanyTaxId": {
    "type": "object",
    "properties": {
     "nip": {
      "type": "string",
      "nullable": true
     },
     "countryCode": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "JobDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "updatedAt": {
      "type": "string",
      "format": "date-time"
     },
     "payload": {
      "nullable": true
     },
     "result": {
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JobStatusEnum"
       }
      ]
     },
     "command": {
      "type": "string",
      "nullable": true
     },
     "scope": {
      "type": "string",
      "nullable": true
     },
     "scopeValue": {
      "type": "string",
      "nullable": true
     },
     "silentMode": {
      "type": "boolean"
     },
     "ajsChainId": {
      "type": "string",
      "nullable": true
     },
     "ajsChainVisits": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "JobStatusEnum": {
    "enum": [
     "New",
     "InProgress",
     "Completed",
     "Failed"
    ],
    "type": "string"
   },
   "KsefDto": {
    "type": "object",
    "properties": {
     "errorMessage": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderAttachmentKsefDto": {
    "type": "object",
    "properties": {
     "number": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "AutoSplitOrderByPimQuantitiesFilterType": {
    "enum": [
     "Equals",
     "NotEquals",
     "GreaterThan",
     "LessThan"
    ],
    "type": "string"
   },
   "AutoSplitOrderByPimQunatitiesRequest": {
    "type": "object",
    "properties": {
     "pimQuantity": {
      "type": "integer",
      "format": "int32"
     },
     "filterType": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AutoSplitOrderByPimQuantitiesFilterType"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "AutoSplitOrderDeliveryCostRequest": {
    "type": "object",
    "properties": {
     "reuseDeliveryCost": {
      "type": "boolean"
     },
     "deliveryCostToSetOnAllOrders": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "AutoSplitOrderRequest": {
    "type": "object",
    "properties": {
     "splitBy": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AutoSplitOrderSplitBy"
       }
      ]
     },
     "lineItemFieldNameToSplitBy": {
      "type": "string",
      "nullable": true
     },
     "lineItemAdditionalFieldNameToSplitBy": {
      "type": "string",
      "nullable": true
     },
     "autoSplitByPimQuantities": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AutoSplitOrderByPimQunatitiesRequest"
       }
      ],
      "nullable": true
     },
     "reuseDeliveryData": {
      "type": "boolean"
     },
     "reuseInvoiceData": {
      "type": "boolean"
     },
     "reusePickupPointData": {
      "type": "boolean"
     },
     "deliveryCostToSet": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AutoSplitOrderDeliveryCostRequest"
       }
      ],
      "nullable": true
     },
     "markAllOrdersAsPaid": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "AutoSplitOrderSplitBy": {
    "enum": [
     "LineItemFieldName",
     "LineItemAdditionalFieldName",
     "PimQuantities"
    ],
    "type": "string"
   },
   "MergeOrdersRequest": {
    "type": "object",
    "properties": {
     "mergeMode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/MergeModeEnum"
       }
      ]
     },
     "deliveryCostMode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryCostModeEnum"
       }
      ]
     },
     "ordersIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PrintOrderAttachmentRequest": {
    "type": "object",
    "properties": {
     "orderId": {
      "type": "integer",
      "format": "int64"
     },
     "uri": {
      "type": "string",
      "nullable": true
     },
     "connectionId": {
      "type": "integer",
      "format": "int64"
     },
     "printerId": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "DefinitionCreationDto": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldDisplayName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "predefinedValues": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "DeliveryCostRequest": {
    "required": [
     "amount"
    ],
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "DeliveryMethodRequest": {
    "type": "object",
    "properties": {
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "platformName": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "FieldCreationDto": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "fieldValue": {
      "type": "string",
      "nullable": true
     },
     "additionalFieldDefinition": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DefinitionCreationDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemAdditionalEanRequest": {
    "type": "object",
    "properties": {
     "ean": {
      "type": "string",
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "description": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemFromPimRequest": {
    "required": [
     "product",
     "quantity"
    ],
    "type": "object",
    "properties": {
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemProductFromPimRequest"
       }
      ]
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemPriceRequest"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "originalCreatedAt": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "additionalFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FieldCreationDto"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemPriceRequest": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "unitPrice": {
      "type": "number",
      "description": "Cena brutto",
      "format": "double",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemProductFromPimRequest": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "warehouseId": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "code": {
      "type": "string",
      "nullable": true
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "storage": {
      "type": "string",
      "nullable": true
     },
     "location": {
      "type": "string",
      "nullable": true
     },
     "variantId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemProductRequest": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "warehouseId": {
      "type": "string",
      "nullable": true
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "code": {
      "type": "string",
      "nullable": true
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "bundleId": {
      "type": "string",
      "nullable": true
     },
     "storage": {
      "type": "string",
      "nullable": true
     },
     "imageUrl": {
      "type": "string",
      "nullable": true
     },
     "parentName": {
      "type": "string",
      "nullable": true
     },
     "location": {
      "type": "string",
      "nullable": true
     },
     "variantId": {
      "type": "string",
      "nullable": true
     },
     "additionalEans": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemAdditionalEanRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemRequest": {
    "required": [
     "quantity"
    ],
    "type": "object",
    "properties": {
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemProductRequest"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "quantityPicked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPacked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemTaxRequest"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemPriceRequest"
       }
      ],
      "nullable": true
     },
     "originalCreatedAt": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "additionalFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FieldCreationDto"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemTaxRequest": {
    "type": "object",
    "properties": {
     "symbol": {
      "type": "string",
      "nullable": true
     },
     "rate": {
      "type": "number",
      "format": "double",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemsFromPimRequest": {
    "type": "object",
    "properties": {
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemFromPimRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderCancellationRequest": {
    "type": "object",
    "properties": {
     "cancelledAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "reason": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSummaryRequest": {
    "type": "object",
    "properties": {
     "totalToPay": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryTotalToPayRequest"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSummaryTotalToPayRequest": {
    "required": [
     "amount"
    ],
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "PaymentAmountRequest": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "PaymentRequest": {
    "type": "object",
    "properties": {
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "platformName": {
      "type": "string",
      "nullable": true
     },
     "finishedAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "paymentAmount": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentAmountRequest"
       }
      ],
      "nullable": true
     },
     "paid": {
      "type": "boolean",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PaymentsRequest": {
    "type": "object",
    "properties": {
     "paymentName": {
      "type": "string",
      "nullable": true
     },
     "payments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PaymentRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ShipmentRequest": {
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "shipmentId": {
      "type": "string",
      "nullable": true
     },
     "dateAddedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "courierCode": {
      "type": "string",
      "nullable": true
     },
     "trackingNumber": {
      "type": "string",
      "nullable": true
     },
     "externalCarrierTrackingNumber": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "string",
      "nullable": true
     },
     "courierService": {
      "type": "string",
      "nullable": true
     },
     "trackingUrl": {
      "type": "string",
      "nullable": true
     },
     "courierTransport": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "deliveryMethodPlatformId": {
      "type": "string",
      "nullable": true
     },
     "shippingDate": {
      "type": "string",
      "format": "date",
      "nullable": true
     },
     "isReturn": {
      "type": "boolean"
     },
     "parcelLabelGetStrategy": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ParcelLabelGetStrategy"
       }
      ]
     },
     "courierPickup": {
      "type": "boolean",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "SplitOrderRequest": {
    "type": "object",
    "properties": {
     "originalPayment": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentRequest"
       }
      ],
      "nullable": true
     },
     "originalDeliveryCost": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryCostRequest"
       }
      ],
      "nullable": true
     },
     "originalDeliveryMethod": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryMethodRequest"
       }
      ],
      "nullable": true
     },
     "splitPayment": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentRequest"
       }
      ],
      "nullable": true
     },
     "splitDeliveryCost": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryCostRequest"
       }
      ],
      "nullable": true
     },
     "splitDeliveryMethod": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryMethodRequest"
       }
      ],
      "nullable": true
     },
     "splitLineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UpdateLineItemRequest"
      },
      "nullable": true
     },
     "deleteSourceForCreatedOrders": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "UpdateLineItemRequest": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemProductRequest"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPicked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPacked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemTaxRequest"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemPriceRequest"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateOrderAttachmentRequest": {
    "type": "object",
    "properties": {
     "invoiceNumber": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdatePaymentRequest": {
    "type": "object",
    "properties": {
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "platformName": {
      "type": "string",
      "nullable": true
     },
     "finishedAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "paymentAmount": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentAmountRequest"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateShipmentRequest": {
    "type": "object",
    "properties": {
     "ownerData": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OwnerData"
       }
      ],
      "nullable": true
     },
     "shipmentId": {
      "type": "string",
      "nullable": true
     },
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "courierCode": {
      "type": "string",
      "nullable": true
     },
     "trackingNumber": {
      "type": "string",
      "nullable": true
     },
     "externalCarrierTrackingNumber": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "string",
      "nullable": true
     },
     "courierService": {
      "type": "string",
      "nullable": true
     },
     "trackingUrl": {
      "type": "string",
      "nullable": true
     },
     "courierTransport": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "deliveryMethodPlatformId": {
      "type": "string",
      "nullable": true
     },
     "shippingDate": {
      "type": "string",
      "format": "date",
      "nullable": true
     },
     "isReturn": {
      "type": "boolean",
      "nullable": true
     },
     "courierPickup": {
      "type": "boolean",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateShipmentWithIdRequest": {
    "type": "object",
    "properties": {
     "ownerData": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OwnerData"
       }
      ],
      "nullable": true
     },
     "shipmentId": {
      "type": "string",
      "nullable": true
     },
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "courierCode": {
      "type": "string",
      "nullable": true
     },
     "trackingNumber": {
      "type": "string",
      "nullable": true
     },
     "externalCarrierTrackingNumber": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "string",
      "nullable": true
     },
     "courierService": {
      "type": "string",
      "nullable": true
     },
     "trackingUrl": {
      "type": "string",
      "nullable": true
     },
     "courierTransport": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "deliveryMethodPlatformId": {
      "type": "string",
      "nullable": true
     },
     "shippingDate": {
      "type": "string",
      "format": "date",
      "nullable": true
     },
     "isReturn": {
      "type": "boolean",
      "nullable": true
     },
     "courierPickup": {
      "type": "boolean",
      "nullable": true
     },
     "id": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "OrdersInStatusCountResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "count": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "OrdersReturnResponse": {
    "type": "object",
    "properties": {
     "returnedAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "reason": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "AddressResponse2": {
    "type": "object",
    "properties": {
     "apartmentNo": {
      "type": "string",
      "nullable": true
     },
     "houseNo": {
      "type": "string",
      "nullable": true
     },
     "street": {
      "type": "string",
      "nullable": true
     },
     "city": {
      "type": "string",
      "nullable": true
     },
     "postCode": {
      "type": "string",
      "nullable": true
     },
     "state": {
      "type": "string",
      "nullable": true
     },
     "countryCode": {
      "type": "string",
      "nullable": true
     },
     "fullNumber": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "isEu": {
      "type": "boolean",
      "nullable": true,
      "readOnly": true
     },
     "address": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     }
    },
    "additionalProperties": false
   },
   "InvoiceResponse": {
    "type": "object",
    "properties": {
     "required": {
      "type": "boolean"
     },
     "payer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderPayerResponse"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "MergedOrderResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "connectionPlatformOrderId": {
      "type": "string",
      "nullable": true
     },
     "connectionId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderAttachmentResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "orderId": {
      "type": "integer",
      "format": "int64"
     },
     "contentType": {
      "type": "string",
      "nullable": true
     },
     "fileName": {
      "type": "string",
      "nullable": true
     },
     "uri": {
      "type": "string",
      "nullable": true
     },
     "bytesSize": {
      "type": "integer",
      "format": "int64"
     },
     "status": {
      "type": "string",
      "nullable": true
     },
     "uploadType": {
      "type": "string",
      "nullable": true
     },
     "invoiceNumber": {
      "type": "string",
      "nullable": true
     },
     "ksef": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderAttachmentKsefDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderBuyerResponse": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "firstName": {
      "type": "string",
      "nullable": true
     },
     "lastName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "rawCompanyTaxId": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressResponse2"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderCancellationResponse": {
    "type": "object",
    "properties": {
     "cancelledAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "reason": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderPayerResponse": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "firstName": {
      "type": "string",
      "nullable": true
     },
     "lastName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "rawCompanyTaxId": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressResponse2"
       }
      ],
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     }
    },
    "additionalProperties": false
   },
   "OrderRecipientResponse": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "firstName": {
      "type": "string",
      "nullable": true
     },
     "lastName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressResponse2"
       }
      ],
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     }
    },
    "additionalProperties": false
   },
   "OrderSellerResponse": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "firstName": {
      "type": "string",
      "nullable": true
     },
     "lastName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "rawCompanyTaxId": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSummaryResponse": {
    "type": "object",
    "properties": {
     "totalToPay": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryTotalToPayResponse"
       }
      ],
      "nullable": true
     },
     "toPayWithoutShipment": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryTotalToPayResponse"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSummaryTotalToPayResponse": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "SharedPaymentAmountResponse": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     },
     "notRoundedAmount": {
      "type": "number",
      "format": "double"
     },
     "amountBefore": {
      "type": "number",
      "format": "double"
     },
     "change": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "SharedPaymentResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "platformName": {
      "type": "string",
      "nullable": true
     },
     "finishedAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "paymentAmount": {
      "allOf": [
       {
        "$ref": "#/components/schemas/SharedPaymentAmountResponse"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PaymentsResponse": {
    "type": "object",
    "properties": {
     "paymentStatus": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderPaymentStatusEnum"
       }
      ],
      "nullable": true
     },
     "paymentName": {
      "type": "string",
      "nullable": true
     },
     "payments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/SharedPaymentResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PickupPointResponse": {
    "type": "object",
    "properties": {
     "code": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressResponse2"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "StatusResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "from": {
      "type": "string",
      "format": "date-time"
     }
    },
    "additionalProperties": false
   },
   "OrdersShipmentResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "shipmentId": {
      "type": "string",
      "nullable": true
     },
     "dateAddedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "courierCode": {
      "type": "string",
      "nullable": true
     },
     "trackingNumber": {
      "type": "string",
      "nullable": true
     },
     "externalCarrierTrackingNumber": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "string",
      "nullable": true
     },
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "courierConnectionType": {
      "type": "string",
      "nullable": true
     },
     "courierService": {
      "type": "string",
      "nullable": true
     },
     "trackingUrl": {
      "type": "string",
      "nullable": true
     },
     "courierTransport": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "deliveryMethodPlatformId": {
      "type": "string",
      "nullable": true
     },
     "shippingDate": {
      "type": "string",
      "format": "date",
      "nullable": true
     },
     "isReturn": {
      "type": "boolean",
      "nullable": true
     },
     "returnId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "connection": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ConnectionResponseDTOV2"
       }
      ],
      "nullable": true
     },
     "courierPickup": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "ConfirmOrderPaymentReturnRequestV1": {
    "type": "object",
    "properties": {
     "paymentReturnStatus": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentReturnStatus"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "AddressResponseV5": {
    "type": "object",
    "properties": {
     "street": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "city": {
      "type": "string",
      "nullable": true
     },
     "postCode": {
      "type": "string",
      "nullable": true
     },
     "state": {
      "type": "string",
      "nullable": true
     },
     "countryCode": {
      "type": "string",
      "nullable": true
     },
     "fullNumber": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "isEu": {
      "type": "boolean",
      "nullable": true,
      "readOnly": true
     }
    },
    "additionalProperties": false
   },
   "DeliveryCostResponseV5": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "DeliveryMethodResponseV5": {
    "type": "object",
    "properties": {
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "platformName": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "DeliveryResponseV5": {
    "type": "object",
    "properties": {
     "recipient": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderRecipientResponseV5"
       }
      ],
      "nullable": true
     },
     "pickupPoint": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PickupPointResponseV5"
       }
      ],
      "nullable": true
     },
     "cost": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryCostResponseV5"
       }
      ],
      "nullable": true
     },
     "method": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryMethodResponseV5"
       }
      ],
      "nullable": true
     },
     "isCod": {
      "type": "boolean"
     },
     "isPacked": {
      "type": "boolean"
     },
     "isPicked": {
      "type": "boolean"
     },
     "isBeingPacked": {
      "type": "boolean"
     },
     "isBeingPicked": {
      "type": "boolean"
     },
     "packedByUserId": {
      "type": "integer",
      "format": "int64",
      "nullable": true,
      "deprecated": true
     }
    },
    "additionalProperties": false
   },
   "InvoiceResponseV5": {
    "type": "object",
    "properties": {
     "required": {
      "type": "boolean"
     },
     "payer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderPayerResponseV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemAdditionalEanResponseV5": {
    "type": "object",
    "properties": {
     "ean": {
      "type": "string",
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "description": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemElasticFieldResponseV5": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldValue": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemPriceResponseV5": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "unitPrice": {
      "type": "number",
      "description": "Cena brutto",
      "format": "double"
     },
     "originalUnitPrice": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "LineItemProductResponseV5": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "code": {
      "type": "string",
      "nullable": true
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "bundleId": {
      "type": "string",
      "nullable": true
     },
     "warehouseId": {
      "type": "string",
      "nullable": true
     },
     "parentName": {
      "type": "string",
      "nullable": true
     },
     "additionalEans": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemAdditionalEanResponseV5"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemResponseV5": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemProductResponseV5"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemTaxResponseV5"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemPriceResponseV5"
       }
      ],
      "nullable": true
     },
     "elasticFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemElasticFieldResponseV5"
      },
      "nullable": true
     },
     "allegroOfferUrl": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemTaxResponseV5": {
    "type": "object",
    "properties": {
     "symbol": {
      "type": "string",
      "nullable": true
     },
     "rate": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "OrderBuyerResponseV5": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "rawCompanyTaxId": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressResponseV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderPayerResponseV5": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "rawCompanyTaxId": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressResponseV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderRecipientResponseV5": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressResponseV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSellerResponseV5": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "rawCompanyTaxId": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSourceResponseV5": {
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "connectionType": {
      "type": "string",
      "nullable": true
     },
     "platformAccountId": {
      "type": "string",
      "nullable": true
     },
     "platformOrderId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PickupPointResponseV5": {
    "type": "object",
    "properties": {
     "code": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressResponseV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderWithElasticFieldsResponseV5": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "source": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSourceResponseV5"
       }
      ],
      "nullable": true
     },
     "externalSourceId": {
      "type": "string",
      "nullable": true
     },
     "externalSourceType": {
      "type": "string",
      "nullable": true
     },
     "sourceOrderId": {
      "type": "string",
      "nullable": true
     },
     "asteriskMarked": {
      "type": "boolean"
     },
     "asteriskKindId": {
      "type": "integer",
      "format": "int64"
     },
     "asteriskKindColor": {
      "type": "string",
      "nullable": true
     },
     "asteriskKindIcon": {
      "type": "string",
      "nullable": true
     },
     "sellerComments": {
      "type": "string",
      "nullable": true
     },
     "buyerComments": {
      "type": "string",
      "nullable": true
     },
     "platformDateAddedUtc": {
      "type": "string",
      "format": "date-time"
     },
     "platformDateConfirmedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "seller": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSellerResponseV5"
       }
      ],
      "nullable": true
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderBuyerResponseV5"
       }
      ],
      "nullable": true
     },
     "payments": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentsResponse"
       }
      ],
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/StatusResponse"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryResponseV5"
       }
      ],
      "nullable": true
     },
     "invoice": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InvoiceResponseV5"
       }
      ],
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemResponseV5"
      },
      "nullable": true
     },
     "attachments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrderAttachmentResponse"
      },
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryResponse"
       }
      ],
      "nullable": true
     },
     "ksef": {
      "allOf": [
       {
        "$ref": "#/components/schemas/KsefDto"
       }
      ],
      "nullable": true
     },
     "orderIdFromWhichThisWasCreatedBySplit": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "orderIdsWhichWereCreatedBySplitFromThis": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "fulfillmentByMarketplace": {
      "type": "boolean",
      "nullable": true
     },
     "return": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrdersReturnResponse"
       }
      ],
      "nullable": true
     },
     "mergedOrders": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/MergedOrderResponse"
      },
      "nullable": true
     },
     "currency": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "shipments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrdersShipmentResponse"
      },
      "nullable": true
     },
     "cancellation": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderCancellationResponse"
       }
      ],
      "nullable": true
     },
     "packStation": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PackStationResponse"
       }
      ],
      "nullable": true
     },
     "returnIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "elasticFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AdditionalFieldResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BundleSplitMethodEnum": {
    "enum": [
     "Default",
     "Discount",
     "Proportional",
     "Disabled",
     "Undefined",
     "ProportionalWithNoPriceSupport"
    ],
    "type": "string"
   },
   "DeliveryCostModeEnum": {
    "enum": [
     "DeliveryCostAddUpMode",
     "DeliveryCostUseMainMode"
    ],
    "type": "string"
   },
   "MergeModeEnum": {
    "enum": [
     "MergeIntoMode",
     "MergeToNewOrderMode"
    ],
    "type": "string"
   },
   "OrderPaymentStatusEnum": {
    "enum": [
     "Unpaid",
     "Paid",
     "Incorrect"
    ],
    "type": "string"
   },
   "ParcelLabelGetStrategy": {
    "enum": [
     "Default",
     "ShipmentIdAndTrackingNumber",
     "ShipmentIdUnique"
    ],
    "type": "string"
   },
   "ShipmentLabelType": {
    "enum": [
     "All",
     "Outbound",
     "Return"
    ],
    "type": "string"
   },
   "OrderOperationDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "orderId": {
      "type": "integer",
      "format": "int64"
     },
     "connectionId": {
      "type": "integer",
      "format": "int64"
     },
     "platformOrderId": {
      "type": "string",
      "nullable": true
     },
     "type": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderOperationTypeEnum"
       }
      ]
     },
     "owner": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderOperationTypeEnum": {
    "enum": [
     "Create",
     "Remove",
     "Modify",
     "Merge",
     "Split"
    ],
    "type": "string"
   },
   "CreatePackStationRequest": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "printers": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PrinterRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PrinterRequest": {
    "type": "object",
    "properties": {
     "printerName": {
      "type": "string",
      "nullable": true
     },
     "computerName": {
      "type": "string",
      "nullable": true
     },
     "printerId": {
      "type": "integer",
      "format": "int64"
     },
     "position": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdatePackStationRequest": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "printers": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PrinterRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PackStationPrinterResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "printerId": {
      "type": "integer",
      "format": "int64"
     },
     "printerName": {
      "type": "string",
      "nullable": true
     },
     "computerName": {
      "type": "string",
      "nullable": true
     },
     "position": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PackStationResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "printers": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PackStationPrinterResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ExportPickingPackingTemplatesSummaryRequest": {
    "type": "object",
    "properties": {
     "templateIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "description": "Identyfikatory szablonów do wydruku",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "FindOrdersByTemplateRequest": {
    "type": "object",
    "properties": {
     "batch": {
      "allOf": [
       {
        "$ref": "#/components/schemas/Batch"
       }
      ],
      "description": "Liczba - twardy limit zwracanych zamówień",
      "nullable": true
     },
     "sorting": {
      "allOf": [
       {
        "$ref": "#/components/schemas/Sorting"
       }
      ],
      "description": "Algorytm sortowania",
      "nullable": true
     },
     "orderSize": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSize"
       }
      ],
      "description": "Wielkość zamówień",
      "nullable": true
     },
     "skipMode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/SkipCollectedMode"
       }
      ],
      "description": "Pomiń zebrane/spakowane"
     },
     "orderFilters": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderFilters"
       }
      ],
      "description": "Filtrowanie po statusach/shipmentach",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "FindOrdersByTemplateResponse": {
    "type": "object",
    "properties": {
     "foundOrders": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrderWithElasticFieldsResponseV5"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "Batch": {
    "type": "object",
    "properties": {
     "number": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "OrderFilters": {
    "type": "object",
    "properties": {
     "orderStatuses": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "shipmentOptions": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSize": {
    "type": "object",
    "properties": {
     "mode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSizeMode"
       }
      ]
     },
     "minPositions": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "maxPositions": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PickingMethod": {
    "type": "object",
    "properties": {
     "mode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PickingMode"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "Sorting": {
    "type": "object",
    "properties": {
     "algorithm": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PickingAlgorithm"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "PickingPackingTemplateDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "type": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PickingPackingTemplateType"
       }
      ]
     },
     "barcode": {
      "type": "string",
      "nullable": true
     },
     "profiles": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "allowManualModifications": {
      "type": "boolean"
     },
     "barcodeScannerOnly": {
      "type": "boolean",
      "nullable": true
     },
     "barcodeAction": {
      "allOf": [
       {
        "$ref": "#/components/schemas/BarcodeAction"
       }
      ]
     },
     "skipMode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/SkipCollectedMode"
       }
      ]
     },
     "isAvailableForCurrentUser": {
      "type": "boolean"
     },
     "pickingMethod": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PickingMethod"
       }
      ],
      "nullable": true
     },
     "batch": {
      "allOf": [
       {
        "$ref": "#/components/schemas/Batch"
       }
      ],
      "nullable": true
     },
     "sorting": {
      "allOf": [
       {
        "$ref": "#/components/schemas/Sorting"
       }
      ],
      "nullable": true
     },
     "orderSize": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSize"
       }
      ],
      "nullable": true
     },
     "orderFilters": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderFilters"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PickingPackingTemplateRequest": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "type": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PickingPackingTemplateType"
       }
      ],
      "description": "Typ - zbieranie/pakowanie"
     },
     "profiles": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "description": "Profile pracowników - identyfikatory użytkowników",
      "nullable": true
     },
     "allowManualModifications": {
      "type": "boolean",
      "description": "Ręczne modyfikacje"
     },
     "barcodeScannerOnly": {
      "type": "boolean",
      "description": "Skaner kodów kreskowych",
      "nullable": true
     },
     "barcodeAction": {
      "allOf": [
       {
        "$ref": "#/components/schemas/BarcodeAction"
       }
      ],
      "description": "Kody kreskowe - działanie"
     },
     "skipMode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/SkipCollectedMode"
       }
      ],
      "description": "Pomiń zebrane/spakowane"
     },
     "pickingMethod": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PickingMethod"
       }
      ],
      "description": "Tryb zbierania",
      "nullable": true
     },
     "batch": {
      "allOf": [
       {
        "$ref": "#/components/schemas/Batch"
       }
      ],
      "description": "Liczba - na ten moment nie mamy możliwości wyboru pomiędzy zamówień/produktów/metrów",
      "nullable": true
     },
     "sorting": {
      "allOf": [
       {
        "$ref": "#/components/schemas/Sorting"
       }
      ],
      "description": "Algorytm",
      "nullable": true
     },
     "orderSize": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSize"
       }
      ],
      "description": "Wielkość zamówień",
      "nullable": true
     },
     "orderFilters": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderFilters"
       }
      ],
      "description": "Filtrowanie po statusach/shipmentach",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BarcodeAction": {
    "enum": [
     "GoToAssistantImmediately",
     "OpenPickingWindowWithTemplate"
    ],
    "type": "string"
   },
   "OrderSizeMode": {
    "enum": [
     "All",
     "SingleItemOnly",
     "MultiItemOnly",
     "CustomRange"
    ],
    "type": "string"
   },
   "PickingAlgorithm": {
    "enum": [
     "Oldest",
     "Newest"
    ],
    "type": "string"
   },
   "PickingMode": {
    "enum": [
     "Group",
     "Basket",
     "Single"
    ],
    "type": "string"
   },
   "PickingPackingTemplateType": {
    "enum": [
     "Picking",
     "Packing"
    ],
    "type": "string"
   },
   "SkipCollectedMode": {
    "enum": [
     "SkipNone",
     "SkipCollected",
     "SkipPacked"
    ],
    "type": "string"
   },
   "AddReturnLineItemRequest": {
    "type": "object",
    "properties": {
     "returnsReasonId": {
      "type": "integer",
      "format": "int64"
     },
     "returnsPositionStatusId": {
      "type": "integer",
      "format": "int32"
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnProductRequest"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "quantityPicked": {
      "type": "number",
      "format": "double"
     },
     "quantityPacked": {
      "type": "number",
      "format": "double"
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/TaxDto"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PriceDto"
       }
      ],
      "nullable": true
     },
     "originalCreatedAt": {
      "type": "string",
      "format": "date-time"
     },
     "miniatures": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnLineItemMiniatureRequest"
       }
      ],
      "nullable": true
     },
     "clientNote": {
      "type": "string",
      "nullable": true
     },
     "additionalFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FieldCreationRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "AddReturnLineItemsRequest": {
    "type": "object",
    "properties": {
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnLineItemWithElasticFieldsRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BulkMoveReturnsToStatusRequest": {
    "type": "object",
    "properties": {
     "returnIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "targetStatusId": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "CreateReturnStatusGroupRequest": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "parentId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "CreateReturnStatusRequest": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "color": {
      "type": "string",
      "nullable": true
     },
     "groupId": {
      "type": "integer",
      "format": "int32"
     },
     "shortName": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "CreateReturnsPositionStatusRequest": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "color": {
      "type": "string",
      "nullable": true
     },
     "warehouseId": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "CreateReturnsReasonRequest": {
    "type": "object",
    "properties": {
     "names": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnsReasonPositionRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "DeleteReturnStatusRequest": {
    "type": "object",
    "properties": {
     "newStatusId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "DefinitionCreationRequest": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldDisplayName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "predefinedValues": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "FieldCreationRequest": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "fieldValue": {
      "type": "string",
      "nullable": true
     },
     "additionalFieldDefinition": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DefinitionCreationRequest"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnElasticFieldDefinitionDto": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldDisplayName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "predefinedValues": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnElasticFieldDto": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "fieldValue": {
      "type": "string",
      "nullable": true
     },
     "definition": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnElasticFieldDefinitionDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnLineItemWithElasticFieldsRequest": {
    "type": "object",
    "properties": {
     "returnsReasonId": {
      "type": "integer",
      "format": "int64"
     },
     "returnsPositionStatusId": {
      "type": "integer",
      "format": "int32"
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnProductRequest"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "quantityPicked": {
      "type": "number",
      "format": "double"
     },
     "quantityPacked": {
      "type": "number",
      "format": "double"
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/TaxDto"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PriceDto"
       }
      ],
      "nullable": true
     },
     "originalCreatedAt": {
      "type": "string",
      "format": "date-time"
     },
     "miniatures": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnLineItemMiniatureRequest"
       }
      ],
      "nullable": true
     },
     "clientNote": {
      "type": "string",
      "nullable": true
     },
     "additionalFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FieldCreationRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnProductRequest": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "warehouseId": {
      "type": "string",
      "nullable": true
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "code": {
      "type": "string",
      "nullable": true
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "bundleId": {
      "type": "string",
      "nullable": true
     },
     "storage": {
      "type": "string",
      "nullable": true
     },
     "imageUrl": {
      "type": "string",
      "nullable": true
     },
     "parentName": {
      "type": "string",
      "nullable": true
     },
     "location": {
      "type": "string",
      "nullable": true
     },
     "variantId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PriceDto": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "unitPrice": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "ProcessReturnBundlesRequest": {
    "type": "object",
    "properties": {
     "method": {
      "allOf": [
       {
        "$ref": "#/components/schemas/BundleSplitMethodEnum"
       }
      ]
     },
     "orderConfirmationRequired": {
      "type": "boolean",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnLineItemMiniatureRequest": {
    "type": "object",
    "properties": {
     "originalImageUrl": {
      "type": "string",
      "nullable": true
     },
     "selector": {
      "type": "string",
      "nullable": true
     },
     "entityId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnShipmentRequest": {
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "shipmentId": {
      "type": "string",
      "nullable": true
     },
     "dateAddedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "courierCode": {
      "type": "string",
      "nullable": true
     },
     "trackingNumber": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "string",
      "nullable": true
     },
     "courierService": {
      "type": "string",
      "nullable": true
     },
     "trackingUrl": {
      "type": "string",
      "nullable": true
     },
     "shippingDate": {
      "type": "string",
      "format": "date",
      "nullable": true
     },
     "isReturn": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "ReturnsReasonPositionRequest": {
    "type": "object",
    "properties": {
     "language": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "TaxDto": {
    "type": "object",
    "properties": {
     "symbol": {
      "type": "string",
      "nullable": true
     },
     "rate": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnLineItemRequest": {
    "type": "object",
    "properties": {
     "returnsReasonId": {
      "type": "integer",
      "format": "int64"
     },
     "returnsPositionStatusId": {
      "type": "integer",
      "format": "int32"
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnProductRequest"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "quantityPicked": {
      "type": "number",
      "format": "double"
     },
     "quantityPacked": {
      "type": "number",
      "format": "double"
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/TaxDto"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PriceDto"
       }
      ],
      "nullable": true
     },
     "originalCreatedAt": {
      "type": "string",
      "format": "date-time"
     },
     "miniatures": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnLineItemMiniatureRequest"
       }
      ],
      "nullable": true
     },
     "clientNote": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestAddressDto": {
    "type": "object",
    "properties": {
     "apartmentNo": {
      "type": "string",
      "nullable": true
     },
     "houseNo": {
      "type": "string",
      "nullable": true
     },
     "street": {
      "type": "string",
      "nullable": true
     },
     "city": {
      "type": "string",
      "nullable": true
     },
     "postCode": {
      "type": "string",
      "nullable": true
     },
     "state": {
      "type": "string",
      "nullable": true
     },
     "countryCode": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestBuyerDto": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestCostDto": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestDefinitionCreationDto": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldDisplayName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "predefinedValues": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestDeliveryDto": {
    "type": "object",
    "properties": {
     "recipient": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestRecipientDto"
       }
      ],
      "nullable": true
     },
     "cost": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestCostDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestFieldCreationDto": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "fieldValue": {
      "type": "string",
      "nullable": true
     },
     "additionalFieldDefinition": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestDefinitionCreationDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestLineItemDto": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "returnsReasonId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "returnsPositionStatusId": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestProductDto"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "quantityPicked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPacked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestTaxDto"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestPriceDto"
       }
      ],
      "nullable": true
     },
     "originalCreatedAt": {
      "type": "string",
      "format": "date-time"
     },
     "additionalFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UpdateReturnRequestFieldCreationDto"
      },
      "nullable": true
     },
     "miniatures": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnLineItemMiniatureRequest"
       }
      ],
      "nullable": true
     },
     "clientNote": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestPaymentAmountDto": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestPaymentDto": {
    "type": "object",
    "properties": {
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "platformName": {
      "type": "string",
      "nullable": true
     },
     "finishedAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "paymentAmount": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestPaymentAmountDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestPaymentsDto": {
    "type": "object",
    "properties": {
     "paymentName": {
      "type": "string",
      "nullable": true
     },
     "payments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UpdateReturnRequestPaymentDto"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestPriceDto": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "unitPrice": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestProductDto": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "warehouseId": {
      "type": "string",
      "nullable": true
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "code": {
      "type": "string",
      "nullable": true
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "bundleId": {
      "type": "string",
      "nullable": true
     },
     "storage": {
      "type": "string",
      "nullable": true
     },
     "imageUrl": {
      "type": "string",
      "nullable": true
     },
     "parentName": {
      "type": "string",
      "nullable": true
     },
     "location": {
      "type": "string",
      "nullable": true
     },
     "variantId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestRecipientDto": {
    "type": "object",
    "properties": {
     "username": {
      "type": "string",
      "nullable": true
     },
     "firstName": {
      "type": "string",
      "nullable": true
     },
     "lastName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestAddressDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestSummaryDto": {
    "type": "object",
    "properties": {
     "totalToPay": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestTotalToPayDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestTaxDto": {
    "type": "object",
    "properties": {
     "symbol": {
      "type": "string",
      "nullable": true
     },
     "rate": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestTotalToPayDto": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnShipmentRequest": {
    "type": "object",
    "properties": {
     "ownerData": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OwnerData"
       }
      ],
      "nullable": true
     },
     "shipmentId": {
      "type": "string",
      "nullable": true
     },
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "courierCode": {
      "type": "string",
      "nullable": true
     },
     "trackingNumber": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "string",
      "nullable": true
     },
     "courierService": {
      "type": "string",
      "nullable": true
     },
     "trackingUrl": {
      "type": "string",
      "nullable": true
     },
     "shippingDate": {
      "type": "string",
      "format": "date",
      "nullable": true
     },
     "isReturn": {
      "type": "boolean",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnShipmentWithIdRequest": {
    "type": "object",
    "properties": {
     "ownerData": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OwnerData"
       }
      ],
      "nullable": true
     },
     "shipmentId": {
      "type": "string",
      "nullable": true
     },
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "courierCode": {
      "type": "string",
      "nullable": true
     },
     "trackingNumber": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "string",
      "nullable": true
     },
     "courierService": {
      "type": "string",
      "nullable": true
     },
     "trackingUrl": {
      "type": "string",
      "nullable": true
     },
     "shippingDate": {
      "type": "string",
      "format": "date",
      "nullable": true
     },
     "isReturn": {
      "type": "boolean",
      "nullable": true
     },
     "id": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnStatusGroupPositionRequest": {
    "type": "object",
    "properties": {
     "positionAction": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PositionAction"
       }
      ]
     },
     "itemId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnStatusGroupRequest": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "parentId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnStatusPositionRequest": {
    "type": "object",
    "properties": {
     "positionAction": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PositionAction"
       }
      ]
     },
     "itemId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnStatusRequest": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "color": {
      "type": "string",
      "nullable": true
     },
     "groupId": {
      "type": "integer",
      "format": "int32"
     },
     "shortName": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnsPositionStatusRequest": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "color": {
      "type": "string",
      "nullable": true
     },
     "warehouseId": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnsReasonRequest": {
    "type": "object",
    "properties": {
     "names": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnsReasonPositionRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnsAddressResponse": {
    "type": "object",
    "properties": {
     "apartmentNo": {
      "type": "string",
      "nullable": true
     },
     "houseNo": {
      "type": "string",
      "nullable": true
     },
     "street": {
      "type": "string",
      "nullable": true
     },
     "city": {
      "type": "string",
      "nullable": true
     },
     "postCode": {
      "type": "string",
      "nullable": true
     },
     "state": {
      "type": "string",
      "nullable": true
     },
     "countryCode": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BuyerResponse": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "DeliveryResponse": {
    "type": "object",
    "properties": {
     "recipient": {
      "allOf": [
       {
        "$ref": "#/components/schemas/RecipientResponse"
       }
      ],
      "nullable": true
     },
     "cost": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnsPaymentAmountResponse"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnsPaymentAmountResponse": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "ReturnsPaymentResponse": {
    "type": "object",
    "properties": {
     "paymentName": {
      "type": "string",
      "nullable": true
     },
     "payments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnPaymentResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PriceResponse": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "unitPrice": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "RecipientResponse": {
    "type": "object",
    "properties": {
     "username": {
      "type": "string",
      "nullable": true
     },
     "firstName": {
      "type": "string",
      "nullable": true
     },
     "lastName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnsAddressResponse"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnAndOrderShipmentsResponse": {
    "type": "object",
    "properties": {
     "returnShipments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnShipmentResponse"
      },
      "nullable": true
     },
     "orderShipments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrdersShipmentResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnLineItemMiniatureResponse": {
    "type": "object",
    "properties": {
     "originalImageUrl": {
      "type": "string",
      "nullable": true
     },
     "selector": {
      "type": "string",
      "nullable": true
     },
     "entityId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnLineItemResponse": {
    "type": "object",
    "properties": {
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnProductResponse"
       }
      ],
      "nullable": true
     },
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "quantityPicked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPacked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/TaxResponse"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PriceResponse"
       }
      ],
      "nullable": true
     },
     "originalCreatedAt": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "returnsReasonId": {
      "type": "integer",
      "format": "int64"
     },
     "returnsPositionStatusId": {
      "type": "integer",
      "format": "int64"
     },
     "additionalFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AdditionalFieldResponse"
      },
      "nullable": true
     },
     "miniatures": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnLineItemMiniatureResponse"
       }
      ],
      "nullable": true
     },
     "clientNote": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnPaymentResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "platformName": {
      "type": "string",
      "nullable": true
     },
     "finishedAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "ReturnProductResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "warehouseId": {
      "type": "string",
      "nullable": true
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "code": {
      "type": "string",
      "nullable": true
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "imageUrl": {
      "type": "string",
      "nullable": true
     },
     "bundleId": {
      "type": "string",
      "nullable": true
     },
     "storage": {
      "type": "string",
      "nullable": true
     },
     "parentName": {
      "type": "string",
      "nullable": true
     },
     "variantId": {
      "type": "string",
      "nullable": true
     },
     "location": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnsReturnResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "sourcePlatformAccountId": {
      "type": "string",
      "nullable": true
     },
     "sourcePlatformOrderId": {
      "type": "string",
      "nullable": true
     },
     "sourcePlatformReturnId": {
      "type": "string",
      "nullable": true
     },
     "platformDateAddedUtc": {
      "type": "string",
      "format": "date-time"
     },
     "payment": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnsPaymentResponse"
       }
      ],
      "nullable": true
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/BuyerResponse"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryResponse"
       }
      ],
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnSummaryResponse"
       }
      ],
      "nullable": true
     },
     "returnStatusId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "statusUpdatedAtUtc": {
      "type": "string",
      "format": "date-time"
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "orderReturnAccountNumber": {
      "type": "string",
      "nullable": true
     },
     "orderReturnIBan": {
      "type": "string",
      "nullable": true
     },
     "orderReturnSwitft": {
      "type": "string",
      "nullable": true
     },
     "sellerComments": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "fulfillmentStatus": {
      "type": "integer",
      "format": "int32"
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnLineItemResponse"
      },
      "nullable": true
     },
     "orderId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "isComplete": {
      "type": "boolean"
     },
     "shipments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnShipmentResponse"
      },
      "nullable": true
     },
     "referenceNumber": {
      "type": "string",
      "nullable": true
     },
     "externalPackage": {
      "type": "boolean"
     },
     "buyerComment": {
      "type": "string",
      "nullable": true
     },
     "additionalFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AdditionalFieldResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnShipmentResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "shipmentId": {
      "type": "string",
      "nullable": true
     },
     "dateAddedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "courierCode": {
      "type": "string",
      "nullable": true
     },
     "trackingNumber": {
      "type": "string",
      "nullable": true
     },
     "externalCarrierTrackingNumber": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "string",
      "nullable": true
     },
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "courierConnectionType": {
      "type": "string",
      "nullable": true
     },
     "courierService": {
      "type": "string",
      "nullable": true
     },
     "trackingUrl": {
      "type": "string",
      "nullable": true
     },
     "courierTransport": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "deliveryMethodPlatformId": {
      "type": "string",
      "nullable": true
     },
     "shippingDate": {
      "type": "string",
      "format": "date",
      "nullable": true
     },
     "isReturn": {
      "type": "boolean",
      "nullable": true
     },
     "connection": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ConnectionResponseDTOV2"
       }
      ],
      "nullable": true
     },
     "courierPickup": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "ReturnStatusGroupResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "parentId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "position": {
      "type": "integer",
      "format": "int64"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "updatedAt": {
      "type": "string",
      "format": "date-time"
     }
    },
    "additionalProperties": false
   },
   "ReturnStatusResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "color": {
      "type": "string",
      "nullable": true
     },
     "groupId": {
      "type": "integer",
      "format": "int32"
     },
     "shortName": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "position": {
      "type": "integer",
      "format": "int64"
     },
     "isDefault": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "ReturnSummaryResponse": {
    "type": "object",
    "properties": {
     "totalToPay": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnsPaymentAmountResponse"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnsInStatusCountResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "count": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "ReturnsPositionStatusResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "color": {
      "type": "string",
      "nullable": true
     },
     "warehouseId": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "updatedAt": {
      "type": "string",
      "format": "date-time"
     }
    },
    "additionalProperties": false
   },
   "ReturnsReasonPositionResponse": {
    "type": "object",
    "properties": {
     "language": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnsReasonResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "availableLanguages": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "names": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnsReasonPositionResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "TaxResponse": {
    "type": "object",
    "properties": {
     "symbol": {
      "type": "string",
      "nullable": true
     },
     "rate": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "ReturnsSearchOperatorEnum": {
    "enum": [
     "AND",
     "OR"
    ],
    "type": "string"
   },
   "ShipmentResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "orderId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "shipmentId": {
      "type": "string",
      "nullable": true
     },
     "dateAddedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "trackingNumber": {
      "type": "string",
      "nullable": true
     },
     "courierTransport": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "deliveryMethodPlatformId": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "string",
      "nullable": true
     },
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "courierService": {
      "type": "string",
      "nullable": true
     },
     "courierPickupRequested": {
      "type": "boolean"
     },
     "externalCarrierTrackingNumbers": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "CreateStatusRequestDTO": {
    "required": [
     "color",
     "name",
     "shortName"
    ],
    "type": "object",
    "properties": {
     "name": {
      "minLength": 1,
      "type": "string"
     },
     "shortName": {
      "minLength": 1,
      "type": "string"
     },
     "color": {
      "minLength": 1,
      "type": "string"
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "isFavorite": {
      "type": "boolean"
     },
     "groupId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "position": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateStatusGroupPositionRequestDto": {
    "type": "object",
    "properties": {
     "positionAction": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PositionAction"
       }
      ]
     },
     "itemId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateStatusPositionRequestDto": {
    "type": "object",
    "properties": {
     "positionAction": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PositionAction"
       }
      ]
     },
     "itemId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateStatusRequestDTO": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "shortName": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "color": {
      "type": "string",
      "nullable": true
     },
     "isFavorite": {
      "type": "boolean",
      "nullable": true
     },
     "groupId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "externalId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "StatusDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "shortName": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "color": {
      "type": "string",
      "nullable": true
     },
     "isFavorite": {
      "type": "boolean"
     },
     "groupId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "position": {
      "type": "integer",
      "format": "int64"
     },
     "externalId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "AddTagsRequest": {
    "type": "object",
    "properties": {
     "tags": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "CreateTagRequest": {
    "type": "object",
    "properties": {
     "target": {
      "type": "string",
      "nullable": true
     },
     "tags": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "DeleteTagsRequest": {
    "type": "object",
    "properties": {
     "tags": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReplaceTagsRequest": {
    "type": "object",
    "properties": {
     "tags": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "useRegenerateScriptsForUserEvent": {
      "type": "boolean",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "TagDto": {
    "type": "object",
    "properties": {
     "target": {
      "type": "string",
      "nullable": true
     },
     "tags": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "AddDynamicAttachmentAdditionalFieldNameRequest": {
    "type": "object",
    "properties": {
     "additionalFieldName": {
      "type": "string",
      "nullable": true
     },
     "attachmentTemplateId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "AddOrUpdateTemplateRequest": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "content": {
      "type": "string",
      "nullable": true
     },
     "displayName": {
      "type": "string",
      "nullable": true
     },
     "topic": {
      "type": "string",
      "nullable": true
     },
     "isHtml": {
      "type": "boolean",
      "nullable": true
     },
     "email": {
      "type": "string",
      "nullable": true
     },
     "emailAccountId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "templateType": {
      "allOf": [
       {
        "$ref": "#/components/schemas/TemplateTypeEnum"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "FullTemplateResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "displayName": {
      "type": "string",
      "nullable": true
     },
     "topic": {
      "type": "string",
      "nullable": true
     },
     "content": {
      "type": "string",
      "nullable": true
     },
     "isHtml": {
      "type": "boolean"
     },
     "email": {
      "type": "string",
      "nullable": true
     },
     "emailAccountId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "type": {
      "allOf": [
       {
        "$ref": "#/components/schemas/TemplateTypeEnum"
       }
      ],
      "nullable": true
     },
     "attachments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/TemplateAttachmentResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "TemplateAttachmentResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "templateId": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "blobKey": {
      "type": "string",
      "nullable": true
     },
     "contentType": {
      "type": "string",
      "nullable": true
     },
     "type": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DynamicAttachmentType"
       }
      ],
      "nullable": true
     },
     "additionalFieldName": {
      "type": "string",
      "nullable": true
     },
     "attachmentTemplateId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "TemplateResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "displayName": {
      "type": "string",
      "nullable": true
     },
     "topic": {
      "type": "string",
      "nullable": true
     },
     "content": {
      "type": "string",
      "nullable": true
     },
     "templateType": {
      "allOf": [
       {
        "$ref": "#/components/schemas/TemplateTypeEnum"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "DynamicAttachmentType": {
    "enum": [
     "Invoice",
     "NewestShipmentLabel",
     "OrderAdditionalField",
     "LineItemProductComplexField",
     "LineItemAdditionalField",
     "CsvTemplate",
     "PdfTemplate",
     "AllInvoices"
    ],
    "type": "string"
   },
   "TemplateTypeEnum": {
    "enum": [
     "CSV",
     "TEXT",
     "PDF"
    ],
    "type": "string"
   },
   "CallUserEventRequestDTO": {
    "type": "object",
    "properties": {
     "context": {
      "type": "string",
      "nullable": true
     },
     "order": {
      "allOf": [
       {
        "$ref": "#/components/schemas/CallUserEventRequestOrderDTO"
       }
      ],
      "nullable": true
     },
     "owner": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OwnerDataDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "CallUserEventRequestOrderDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "CreateUserEventRequestDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "button": {
      "allOf": [
       {
        "$ref": "#/components/schemas/SharedUserEventButtonDTO"
       }
      ],
      "nullable": true
     },
     "shortcut": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventValueSettingDTO"
       }
      ],
      "nullable": true
     },
     "barcode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventValueSettingDTO"
       }
      ],
      "nullable": true
     },
     "synchronous": {
      "type": "boolean",
      "nullable": true
     },
     "position": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "refreshPageAfterAnyScriptFinishes": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "OwnerDataDto": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "userName": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "roles": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateUserEventPositionRequestDto": {
    "type": "object",
    "properties": {
     "positionAction": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PositionAction"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "UpdateUserEventRequestDTO": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "button": {
      "allOf": [
       {
        "$ref": "#/components/schemas/SharedUserEventButtonDTO"
       }
      ],
      "nullable": true
     },
     "shortcut": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventValueSettingDTO"
       }
      ],
      "nullable": true
     },
     "barcode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventValueSettingDTO"
       }
      ],
      "nullable": true
     },
     "synchronous": {
      "type": "boolean",
      "nullable": true
     },
     "refreshPageAfterAnyScriptFinishes": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "UserEventDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "button": {
      "allOf": [
       {
        "$ref": "#/components/schemas/SharedUserEventButtonDTO"
       }
      ],
      "nullable": true
     },
     "shortcut": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventValueSettingDTO"
       }
      ],
      "nullable": true
     },
     "barcode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventValueSettingDTO"
       }
      ],
      "nullable": true
     },
     "synchronous": {
      "type": "boolean"
     },
     "position": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "refreshPageAfterAnyScriptFinishes": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "SharedUserEventButtonDTO": {
    "type": "object",
    "properties": {
     "enabled": {
      "type": "boolean"
     },
     "caption": {
      "type": "string",
      "nullable": true
     },
     "icon": {
      "type": "string",
      "nullable": true
     },
     "color": {
      "type": "string",
      "nullable": true
     },
     "location": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/SupportedLocationsEnum"
      },
      "nullable": true
     },
     "refreshPageAfterAnyScriptFinishes": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "UserEventValueSettingDTO": {
    "type": "object",
    "properties": {
     "enabled": {
      "type": "boolean"
     },
     "value": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "SupportedLocationsEnum": {
    "enum": [
     "Order",
     "Orders",
     "Returns",
     "Pick",
     "Pack",
     "Return"
    ],
    "type": "string"
   },
   "IssueTokenRequestDTO": {
    "type": "object",
    "properties": {
     "expiresInSeconds": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "apiRateLimit": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "IssueTokenResponseDTO": {
    "type": "object",
    "properties": {
     "success": {
      "type": "boolean"
     },
     "message": {
      "type": "string",
      "nullable": true
     },
     "jwt": {
      "type": "string",
      "nullable": true
     },
     "expiredAt": {
      "type": "string",
      "format": "date-time"
     },
     "issuedAt": {
      "type": "string",
      "format": "date-time"
     }
    },
    "additionalProperties": false
   },
   "JsonNode": {
    "type": "object",
    "properties": {
     "options": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JsonNodeOptions"
       }
      ],
      "nullable": true,
      "readOnly": true
     },
     "parent": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JsonNode"
       }
      ],
      "nullable": true,
      "readOnly": true
     },
     "root": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JsonNode"
       }
      ],
      "nullable": true,
      "readOnly": true
     }
    },
    "additionalProperties": false
   },
   "JsonNodeOptions": {
    "type": "object",
    "properties": {
     "propertyNameCaseInsensitive": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "TimeSpan": {
    "type": "object",
    "properties": {
     "ticks": {
      "type": "integer",
      "format": "int64"
     },
     "days": {
      "type": "integer",
      "format": "int32",
      "readOnly": true
     },
     "hours": {
      "type": "integer",
      "format": "int32",
      "readOnly": true
     },
     "milliseconds": {
      "type": "integer",
      "format": "int32",
      "readOnly": true
     },
     "microseconds": {
      "type": "integer",
      "format": "int32",
      "readOnly": true
     },
     "nanoseconds": {
      "type": "integer",
      "format": "int32",
      "readOnly": true
     },
     "minutes": {
      "type": "integer",
      "format": "int32",
      "readOnly": true
     },
     "seconds": {
      "type": "integer",
      "format": "int32",
      "readOnly": true
     },
     "totalDays": {
      "type": "number",
      "format": "double",
      "readOnly": true
     },
     "totalHours": {
      "type": "number",
      "format": "double",
      "readOnly": true
     },
     "totalMilliseconds": {
      "type": "number",
      "format": "double",
      "readOnly": true
     },
     "totalMicroseconds": {
      "type": "number",
      "format": "double",
      "readOnly": true
     },
     "totalNanoseconds": {
      "type": "number",
      "format": "double",
      "readOnly": true
     },
     "totalMinutes": {
      "type": "number",
      "format": "double",
      "readOnly": true
     },
     "totalSeconds": {
      "type": "number",
      "format": "double",
      "readOnly": true
     }
    },
    "additionalProperties": false
   },
   "TimeZoneInfo": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "hasIanaId": {
      "type": "boolean",
      "readOnly": true
     },
     "displayName": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "standardName": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "daylightName": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "baseUtcOffset": {
      "allOf": [
       {
        "$ref": "#/components/schemas/TimeSpan"
       }
      ],
      "readOnly": true
     },
     "supportsDaylightSavingTime": {
      "type": "boolean",
      "readOnly": true
     }
    },
    "additionalProperties": false
   },
   "OrderEventDto": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "event": {
      "nullable": true
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "updatedAt": {
      "type": "string",
      "format": "date-time"
     }
    },
    "additionalProperties": false
   },
   "EventsOrdering": {
    "enum": [
     "Asc",
     "Desc"
    ],
    "type": "string"
   },
   "PageOfFileStreamResult": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "type": "string",
       "format": "binary"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfOrderEventDto": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrderEventDto"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfConnectionResponseDTOV2": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ConnectionResponseDTOV2"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfOrderFlattenedHistoryResponseV2": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrderFlattenedHistoryResponseV2"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfOrderHistoryResponseV2": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrderHistoryResponseV2"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfOrderStatusHistoryResponseV2": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrderStatusHistoryResponseV2"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "ConnectionDefinitionDto": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "nullable": true
     },
     "extensionName": {
      "type": "string",
      "nullable": true
     },
     "extensionState": {
      "type": "string",
      "nullable": true
     },
     "extensionVendor": {
      "type": "string",
      "nullable": true
     },
     "extensionDescription": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "isDisabled": {
      "type": "boolean"
     },
     "isEditable": {
      "type": "boolean"
     },
     "isHidden": {
      "type": "boolean"
     },
     "kind": {
      "type": "string",
      "nullable": true
     },
     "isShop": {
      "type": "boolean"
     },
     "createShipmentOperation": {
      "type": "string",
      "nullable": true
     },
     "deleteDisabled": {
      "type": "boolean"
     },
     "protocolDisabled": {
      "type": "boolean"
     },
     "requestPickupDisabled": {
      "type": "boolean"
     },
     "generatePickupForm": {
      "type": "boolean"
     },
     "connectionDefaultsFormEnabled": {
      "type": "boolean"
     },
     "requiresToSelectConnectionFirstBeforeCreatingAShipment": {
      "type": "boolean"
     },
     "trackingNumberTransfer": {
      "type": "boolean"
     },
     "invoiceTransfer": {
      "type": "boolean"
     },
     "isSystemTool": {
      "type": "boolean"
     },
     "setupAccount": {
      "nullable": true
     },
     "deleteConnectionOperation": {
      "nullable": true
     },
     "setupShipment": {
      "nullable": true
     },
     "trackingLinks": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      },
      "description": "Tracking links with format - key: iso country code, value: hyperlink, example: \"PL\": \"http://www.someexamplelink.pl?trackingId=#TRACKING_ID#\"",
      "nullable": true,
      "example": {
       "PL": "https://www.someexamplelink.pl?trackingId=#TRACKING_ID#"
      }
     },
     "uspl": {
      "type": "string",
      "nullable": true
     },
     "positionOverwriteModule": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PositionOverwriteModule"
       }
      ],
      "nullable": true
     },
     "showStockSyncModule": {
      "type": "boolean",
      "description": "Optional. Defaults to NULL. Used by UI.",
      "nullable": true
     },
     "showPriceSyncModule": {
      "type": "boolean",
      "description": "Optional. Defaults to NULL. Used by UI.",
      "nullable": true
     },
     "relatedDefinitions": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Optional. Ids of other connection definitions installed/uninstalled together with this one.",
      "nullable": true
     },
     "inventorySettings": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InventorySettingsDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ConnectionRequestDTOV2": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "connectionType": {
      "type": "string",
      "nullable": true
     },
     "externalSourceType": {
      "type": "string",
      "nullable": true
     },
     "externalSourceTypeName": {
      "type": "string",
      "nullable": true
     },
     "externalSourceId": {
      "type": "string",
      "nullable": true
     },
     "isConfigured": {
      "type": "boolean",
      "nullable": true
     },
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ConnectionWithDefinitionResponseDTOV2": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "connectionType": {
      "type": "string",
      "nullable": true
     },
     "externalSourceType": {
      "type": "string",
      "nullable": true
     },
     "externalSourceTypeName": {
      "type": "string",
      "nullable": true
     },
     "externalSourceId": {
      "type": "string",
      "nullable": true
     },
     "isConfigured": {
      "type": "boolean"
     },
     "isSystemTool": {
      "type": "boolean"
     },
     "positionInDefinition": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ConnectionPositionInDefinitionDTOV2"
       }
      ],
      "nullable": true
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "definition": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ConnectionDefinitionDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ConnectionsGetAllGroupedResponseDTOV2": {
    "type": "object",
    "properties": {
     "kinds": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ConnectionsGetAllGroupedResponseDTOV2Kind"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ConnectionsGetAllGroupedResponseDTOV2Definition": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "nullable": true
     },
     "extensionName": {
      "type": "string",
      "nullable": true
     },
     "extensionState": {
      "type": "string",
      "nullable": true
     },
     "extensionVendor": {
      "type": "string",
      "nullable": true
     },
     "extensionDescription": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "isDisabled": {
      "type": "boolean"
     },
     "isEditable": {
      "type": "boolean"
     },
     "isHidden": {
      "type": "boolean"
     },
     "kind": {
      "type": "string",
      "nullable": true
     },
     "isShop": {
      "type": "boolean"
     },
     "createShipmentOperation": {
      "type": "string",
      "nullable": true
     },
     "deleteDisabled": {
      "type": "boolean"
     },
     "protocolDisabled": {
      "type": "boolean"
     },
     "requestPickupDisabled": {
      "type": "boolean"
     },
     "generatePickupForm": {
      "type": "boolean"
     },
     "connectionDefaultsFormEnabled": {
      "type": "boolean"
     },
     "requiresToSelectConnectionFirstBeforeCreatingAShipment": {
      "type": "boolean"
     },
     "trackingNumberTransfer": {
      "type": "boolean"
     },
     "invoiceTransfer": {
      "type": "boolean"
     },
     "isSystemTool": {
      "type": "boolean"
     },
     "setupAccount": {
      "nullable": true
     },
     "deleteConnectionOperation": {
      "nullable": true
     },
     "setupShipment": {
      "nullable": true
     },
     "trackingLinks": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      },
      "description": "Tracking links with format - key: iso country code, value: hyperlink, example: \"PL\":\n\"http://www.someexamplelink.pl?trackingId=#TRACKING_ID#\"",
      "nullable": true,
      "example": {
       "PL": "https://www.someexamplelink.pl?trackingId=#TRACKING_ID#"
      }
     },
     "uspl": {
      "type": "string",
      "nullable": true
     },
     "positionOverwriteModule": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PositionOverwriteModule"
       }
      ],
      "nullable": true
     },
     "showStockSyncModule": {
      "type": "boolean",
      "description": "Optional. Defaults to NULL. Used by UI.",
      "nullable": true
     },
     "showPriceSyncModule": {
      "type": "boolean",
      "description": "Optional. Defaults to NULL. Used by UI.",
      "nullable": true
     },
     "connections": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ConnectionResponseDTOV2"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ConnectionsGetAllGroupedResponseDTOV2Kind": {
    "type": "object",
    "properties": {
     "kind": {
      "type": "string",
      "nullable": true
     },
     "definitions": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ConnectionsGetAllGroupedResponseDTOV2Definition"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "InventorySettingsDto": {
    "type": "object",
    "properties": {
     "syncQuantityEqualsToSrInventory": {
      "type": "boolean"
     },
     "setupMaxQuantity": {
      "type": "boolean"
     },
     "endOfferBelow": {
      "type": "boolean"
     },
     "increaseAndSubstractFromStock": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "PositionOverwriteModule": {
    "type": "object",
    "properties": {
     "showPositionOverwriteModule": {
      "type": "boolean"
     },
     "showOverwriteNameOption": {
      "type": "boolean"
     },
     "showOverwriteProductIdOption": {
      "type": "boolean"
     },
     "showOverwriteWeightOption": {
      "type": "boolean"
     },
     "showOverwriteEanOption": {
      "type": "boolean"
     },
     "showOverwriteSkuOption": {
      "type": "boolean"
     },
     "showOverwriteTaxRateOption": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "UpdateConnectionPositionInDefinitionRequest": {
    "type": "object",
    "properties": {
     "positionAction": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PositionAction"
       }
      ]
     },
     "itemId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpsertConnectionDefinitionRequest": {
    "type": "object",
    "properties": {
     "extensionName": {
      "type": "string",
      "nullable": true
     },
     "extensionVendor": {
      "type": "string",
      "nullable": true
     },
     "extensionDescription": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "isDisabled": {
      "type": "boolean"
     },
     "isEditable": {
      "type": "boolean"
     },
     "isHidden": {
      "type": "boolean"
     },
     "kind": {
      "type": "string",
      "nullable": true
     },
     "isShop": {
      "type": "boolean"
     },
     "createShipmentOperation": {
      "type": "string",
      "nullable": true
     },
     "deleteDisabled": {
      "type": "boolean"
     },
     "protocolDisabled": {
      "type": "boolean"
     },
     "requestPickupDisabled": {
      "type": "boolean"
     },
     "generatePickupForm": {
      "type": "boolean"
     },
     "trackingNumberTransfer": {
      "type": "boolean"
     },
     "invoiceTransfer": {
      "type": "boolean"
     },
     "connectionDefaultsFormEnabled": {
      "type": "boolean"
     },
     "requiresToSelectConnectionFirstBeforeCreatingAShipment": {
      "type": "boolean"
     },
     "isSystemTool": {
      "type": "boolean"
     },
     "setupAccount": {
      "nullable": true
     },
     "deleteConnectionOperation": {
      "nullable": true
     },
     "setupShipment": {
      "nullable": true
     },
     "trackingLinks": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      },
      "description": "Tracking links with format - key: iso country code, value: hyperlink, example: \"PL\": \"http://www.someexamplelink.pl?trackingId=#TRACKING_ID#\"",
      "nullable": true,
      "example": {
       "PL": "https://www.someexamplelink.pl?trackingId=#TRACKING_ID#"
      }
     },
     "jwt": {
      "type": "string",
      "nullable": true
     },
     "uspl": {
      "type": "string",
      "nullable": true
     },
     "positionOverwriteModule": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PositionOverwriteModule"
       }
      ],
      "nullable": true
     },
     "showStockSyncModule": {
      "type": "boolean",
      "description": "Optional. Defaults to NULL. Used by UI.",
      "nullable": true
     },
     "showPriceSyncModule": {
      "type": "boolean",
      "description": "Optional. Defaults to NULL. Used by UI.",
      "nullable": true
     },
     "relatedDefinitions": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Optional. Ids of other connection definitions that are installed/uninstalled together with this one.",
      "nullable": true
     },
     "inventorySettings": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InventorySettingsDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnRequest": {
    "type": "object",
    "properties": {
     "returnedAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "reason": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BatchGetProductsResponse": {
    "type": "object",
    "properties": {
     "products": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/BatchGetProductsResponsePackingDto"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BatchGetProductsResponseLineItemDto": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "quantityPacked": {
      "type": "number",
      "format": "double"
     },
     "quantityPicked": {
      "type": "number",
      "format": "double"
     },
     "quantity": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "BatchGetProductsResponseMiniaturesDto": {
    "type": "object",
    "properties": {
     "originalImageUrl": {
      "type": "string",
      "nullable": true
     },
     "selector": {
      "type": "string",
      "nullable": true
     },
     "entityId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BatchGetProductsResponsePackingDto": {
    "type": "object",
    "properties": {
     "locations": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/BatchGetProductsResponseLineItemDto"
      },
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/BatchGetProductsResponseProductDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BatchGetProductsResponseProductDto": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "code": {
      "type": "string",
      "nullable": true
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "bundleId": {
      "type": "string",
      "nullable": true
     },
     "storage": {
      "type": "string",
      "nullable": true
     },
     "variantId": {
      "type": "string",
      "nullable": true
     },
     "parentName": {
      "type": "string",
      "nullable": true
     },
     "miniatures": {
      "allOf": [
       {
        "$ref": "#/components/schemas/BatchGetProductsResponseMiniaturesDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "AdditionalFieldDefinitionCreationDtoV2": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldDisplayName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "predefinedValues": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "GetFilteredHistoryRequest": {
    "type": "object",
    "properties": {
     "orderId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "eventTypes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "gtId": {
      "type": "integer",
      "format": "int64"
     },
     "dateFrom": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "offset": {
      "type": "integer",
      "format": "int32"
     },
     "limit": {
      "type": "integer",
      "format": "int32"
     },
     "type": {
      "type": "string",
      "nullable": true
     },
     "createdBy": {
      "type": "string",
      "nullable": true
     },
     "path": {
      "type": "string",
      "nullable": true
     },
     "value": {
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "GetFilteredOrderEventsRequestV2": {
    "type": "object",
    "properties": {
     "orderId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "eventTypes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "gtId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "dateFrom": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "offset": {
      "type": "integer",
      "format": "int32"
     },
     "limit": {
      "type": "integer",
      "format": "int32"
     },
     "ordering": {
      "allOf": [
       {
        "$ref": "#/components/schemas/EventsOrdering"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "GetOrderHistoryByIdsRequest": {
    "type": "object",
    "properties": {
     "orderIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "paths": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemPriceRequestV2": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "unitPrice": {
      "type": "number",
      "description": "Cena brutto",
      "format": "double",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemProductRequestV2": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "warehouseId": {
      "type": "string",
      "nullable": true
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "code": {
      "type": "string",
      "nullable": true
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "bundleId": {
      "type": "string",
      "nullable": true
     },
     "storage": {
      "type": "string",
      "nullable": true
     },
     "variantId": {
      "type": "string",
      "nullable": true
     },
     "imageUrl": {
      "type": "string",
      "nullable": true
     },
     "parentName": {
      "type": "string",
      "nullable": true
     },
     "additionalEans": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemAdditionalEanRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemRequestV2": {
    "type": "object",
    "properties": {
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemProductRequestV2"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemTaxRequestV2"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemPriceRequestV2"
       }
      ],
      "nullable": true
     },
     "quantityPicked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPacked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "additionalFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FieldCreationDto"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemTaxRequestV2": {
    "type": "object",
    "properties": {
     "symbol": {
      "type": "string",
      "nullable": true
     },
     "rate": {
      "type": "number",
      "format": "double",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemsRequestV2": {
    "type": "object",
    "properties": {
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemRequestV2"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSourceRequestV2": {
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "platformAccountId": {
      "type": "string",
      "nullable": true
     },
     "platformOrderId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateLineItemRequestV2WithId": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemProductRequestV2"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPicked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPacked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemTaxRequestV2"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemPriceRequestV2"
       }
      ],
      "nullable": true
     },
     "elasticFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UpdateLineItemAdditionalFieldV2"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateLineItemsRequestV2": {
    "type": "object",
    "properties": {
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UpdateLineItemRequestV2WithId"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateLineItemAdditionalFieldV2": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "fieldValue": {
      "type": "string",
      "nullable": true
     },
     "elasticFieldsDefinition": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AdditionalFieldDefinitionCreationDtoV2"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateLineItemRequestV2": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemProductRequestV2"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPicked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPacked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemTaxRequestV2"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemPriceRequestV2"
       }
      ],
      "nullable": true
     },
     "elasticFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UpdateLineItemAdditionalFieldV2"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSourceResponseV2": {
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "connectionType": {
      "type": "string",
      "nullable": true
     },
     "platformAccountId": {
      "type": "string",
      "nullable": true
     },
     "platformOrderId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrdersStatusesResponseV2": {
    "type": "object",
    "properties": {
     "statusesOrders": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrdersStatusesResponseV2Row"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrdersStatusesResponseV2Row": {
    "type": "object",
    "properties": {
     "statusId": {
      "type": "integer",
      "format": "int64"
     },
     "orderIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemAdditionalEanResponseV2": {
    "type": "object",
    "properties": {
     "ean": {
      "type": "string",
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "description": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemPriceResponseV2": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "unitPrice": {
      "type": "number",
      "description": "Cena brutto",
      "format": "double"
     },
     "originalUnitPrice": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "LineItemProductResponseV2": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "code": {
      "type": "string",
      "nullable": true
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "bundleId": {
      "type": "string",
      "nullable": true
     },
     "warehouseId": {
      "type": "string",
      "nullable": true
     },
     "storage": {
      "type": "string",
      "nullable": true
     },
     "variantId": {
      "type": "string",
      "nullable": true
     },
     "parentName": {
      "type": "string",
      "nullable": true
     },
     "miniatures": {
      "allOf": [
       {
        "$ref": "#/components/schemas/MiniaturesResponseV2"
       }
      ],
      "nullable": true
     },
     "additionalEans": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemAdditionalEanResponseV2"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemResponseV2": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemProductResponseV2"
       }
      ],
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "quantityPicked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPacked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemTaxResponseV2"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/LineItemPriceResponseV2"
       }
      ],
      "nullable": true
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "elasticFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AdditionalFieldResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemTaxResponseV2": {
    "type": "object",
    "properties": {
     "symbol": {
      "type": "string",
      "nullable": true
     },
     "rate": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "MiniaturesResponseV2": {
    "type": "object",
    "properties": {
     "originalImageUrl": {
      "type": "string",
      "nullable": true
     },
     "selector": {
      "type": "string",
      "nullable": true
     },
     "entityId": {
      "type": "string",
      "nullable": true
     },
     "largeImageUrl": {
      "type": "string",
      "nullable": true
     },
     "smallImageUrl": {
      "type": "string",
      "nullable": true
     },
     "originalCompressedImageUrl": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderFlattenedHistoryResponseV2": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "objectId": {
      "type": "string",
      "nullable": true
     },
     "type": {
      "type": "string",
      "nullable": true
     },
     "operation": {
      "type": "string",
      "nullable": true
     },
     "property": {
      "type": "string",
      "nullable": true
     },
     "prevValue": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JsonNode"
       }
      ],
      "nullable": true
     },
     "value": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JsonNode"
       }
      ],
      "nullable": true
     },
     "createdAtUtc": {
      "type": "string",
      "format": "date-time"
     },
     "createdBy": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderHistoryResponseV2": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "objectId": {
      "type": "string",
      "nullable": true
     },
     "type": {
      "type": "string",
      "nullable": true
     },
     "difference": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JsonNode"
       }
      ],
      "nullable": true
     },
     "createdAtUtc": {
      "type": "string",
      "format": "date-time"
     },
     "createdBy": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderResponseV2": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "source": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSourceResponseV2"
       }
      ],
      "nullable": true
     },
     "externalSourceId": {
      "type": "string",
      "nullable": true
     },
     "externalSourceType": {
      "type": "string",
      "nullable": true
     },
     "sourceOrderId": {
      "type": "string",
      "nullable": true
     },
     "asteriskMarked": {
      "type": "boolean"
     },
     "asteriskKindId": {
      "type": "integer",
      "format": "int64"
     },
     "asteriskKindColor": {
      "type": "string",
      "nullable": true
     },
     "asteriskKindIcon": {
      "type": "string",
      "nullable": true
     },
     "sellerComments": {
      "type": "string",
      "nullable": true
     },
     "buyerComments": {
      "type": "string",
      "nullable": true
     },
     "platformDateAddedUtc": {
      "type": "string",
      "format": "date-time"
     },
     "platformDateConfirmedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "seller": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSellerResponse"
       }
      ],
      "nullable": true
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderBuyerResponse"
       }
      ],
      "nullable": true
     },
     "payments": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentsResponse"
       }
      ],
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/StatusResponse"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryResponseV2"
       }
      ],
      "nullable": true
     },
     "invoice": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InvoiceResponse"
       }
      ],
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemResponseV2"
      },
      "nullable": true
     },
     "attachments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrderAttachmentResponse"
      },
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryResponse"
       }
      ],
      "nullable": true
     },
     "synchronizationErrors": {
      "allOf": [
       {
        "$ref": "#/components/schemas/SynchronizationErrorsResponse"
       }
      ],
      "nullable": true
     },
     "ksef": {
      "allOf": [
       {
        "$ref": "#/components/schemas/KsefDto"
       }
      ],
      "nullable": true
     },
     "fulfillmentByMarketplace": {
      "type": "boolean",
      "nullable": true
     },
     "return": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrdersReturnResponse"
       }
      ],
      "nullable": true
     },
     "mergedOrders": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/MergedOrderResponse"
      },
      "nullable": true
     },
     "currency": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "shipments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrdersShipmentResponse"
      },
      "nullable": true
     },
     "cancellation": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderCancellationResponse"
       }
      ],
      "nullable": true
     },
     "externalPaymentStatus": {
      "type": "string",
      "nullable": true
     },
     "packStation": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PackStationResponse"
       }
      ],
      "nullable": true
     },
     "elasticFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AdditionalFieldResponse"
      },
      "nullable": true
     },
     "returnIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "orderIdFromWhichThisWasCreatedBySplit": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "orderIdsWhichWereCreatedBySplitFromThis": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderStatusHistoryResponseV2": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "statusId": {
      "type": "integer",
      "format": "int64"
     },
     "statusName": {
      "type": "string",
      "nullable": true
     },
     "statusShortName": {
      "type": "string",
      "nullable": true
     },
     "statusDescription": {
      "type": "string",
      "nullable": true
     },
     "changedAtUtc": {
      "type": "string",
      "format": "date-time"
     },
     "previousStatusName": {
      "type": "string",
      "nullable": true
     },
     "previousStatusId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "changedBy": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderStatusHistoryResponseWithIdV2": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "statusId": {
      "type": "integer",
      "format": "int64"
     },
     "statusName": {
      "type": "string",
      "nullable": true
     },
     "statusShortName": {
      "type": "string",
      "nullable": true
     },
     "statusDescription": {
      "type": "string",
      "nullable": true
     },
     "changedAtUtc": {
      "type": "string",
      "format": "date-time"
     },
     "previousStatusName": {
      "type": "string",
      "nullable": true
     },
     "previousStatusId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "changedBy": {
      "type": "string",
      "nullable": true
     },
     "orderId": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "DeliveryCostResponseV2": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "DeliveryMethodResponseV2": {
    "type": "object",
    "properties": {
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "platformName": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "DeliveryResponseV2": {
    "type": "object",
    "properties": {
     "recipient": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderRecipientResponse"
       }
      ],
      "nullable": true
     },
     "pickupPoint": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PickupPointResponse"
       }
      ],
      "nullable": true
     },
     "cost": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryCostResponseV2"
       }
      ],
      "nullable": true
     },
     "method": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryMethodResponseV2"
       }
      ],
      "nullable": true
     },
     "isCod": {
      "type": "boolean"
     },
     "isPacked": {
      "type": "boolean"
     },
     "isPicked": {
      "type": "boolean"
     },
     "isBeingPacked": {
      "type": "boolean"
     },
     "isBeingPicked": {
      "type": "boolean"
     },
     "packedDate": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "SynchronizationErrorsResponse": {
    "type": "object",
    "properties": {
     "statusError": {
      "type": "string",
      "nullable": true
     },
     "shipmentError": {
      "type": "string",
      "nullable": true
     },
     "invoiceError": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "SearchSortByEnum": {
    "enum": [
     "DEFAULT",
     "ID_ASC",
     "ID_DESC",
     "PLATFORM_DATE_ADDED_ASC",
     "PLATFORM_DATE_ADDED_DESC",
     "PLATFORM_DATE_CONFIRMED_ASC",
     "PLATFORM_DATE_CONFIRMED_DESC"
    ],
    "type": "string"
   },
   "PackingLineItemRequest": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "packedQuantity": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "pickedQuantity": {
      "type": "number",
      "format": "double",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PackingMode": {
    "enum": [
     "Pack",
     "Pick"
    ],
    "type": "string"
   },
   "PackingOrderRequest": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "reserve": {
      "type": "boolean",
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PackingLineItemRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PackingOrdersStateDto": {
    "type": "object",
    "properties": {
     "orders": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PackingOrderRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PackingStateRequest": {
    "type": "object",
    "properties": {
     "mode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PackingMode"
       }
      ]
     },
     "state": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PackingOrdersStateDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "GetCombinedLabelsRequestV2": {
    "type": "object",
    "properties": {
     "connectionDefinitionId": {
      "type": "string",
      "nullable": true
     },
     "orderIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "GetCombinedProtocolsRequestV2": {
    "type": "object",
    "properties": {
     "connectionDefinitionId": {
      "type": "string",
      "nullable": true
     },
     "orderIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PrintCombinedLabelsRequestV2": {
    "type": "object",
    "properties": {
     "connectionDefinitionId": {
      "type": "string",
      "nullable": true
     },
     "orderIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "printerConnectionId": {
      "type": "integer",
      "format": "int64"
     },
     "printerId": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "DistinctCourierDTO": {
    "type": "object",
    "properties": {
     "courierService": {
      "type": "string",
      "nullable": true
     },
     "courierConnectionType": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PrintCombinedLabelsResponseV2": {
    "type": "object",
    "properties": {
     "labelsCount": {
      "type": "integer",
      "format": "int32"
     },
     "printJobId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PageOfOrderIdResponseV3": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrderIdResponseV3"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "OrderSearchFiltersRequest": {
    "type": "object",
    "properties": {
     "ids": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "sourcePlatformIds": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "paymentPlatformIds": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdatePaymentBatchRequestV3": {
    "type": "object",
    "properties": {
     "ownerData": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OwnerData"
       }
      ],
      "nullable": true
     },
     "orderId": {
      "type": "integer",
      "format": "int64"
     },
     "clientReference": {
      "type": "string",
      "nullable": true
     },
     "payload": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentRequest"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "GetOrdersShipmentsResponseV3": {
    "type": "object",
    "properties": {
     "connectionDefinitionId": {
      "type": "string",
      "nullable": true
     },
     "labelsCount": {
      "type": "integer",
      "format": "int32"
     },
     "orders": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LabelOrderDto"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LabelOrderDto": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "nullable": true
     },
     "labelsCount": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "OrderIdResponseV3": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "OrderByPropertyEnum": {
    "enum": [
     "OrderId",
     "ExternalOrderId",
     "DateCreated",
     "DateConfirmed",
     "DateInStatus",
     "TotalPrice",
     "ShipmentPrice",
     "ShipmentType",
     "Status",
     "AllegroTransaction",
     "Payments",
     "NameAndSurname",
     "AllegroLogin",
     "ShipmentTrackingNumber",
     "AddtionalField1",
     "AddtionalField2",
     "PlatformOrderId",
     "ProductCode"
    ],
    "type": "string"
   },
   "OrderByTypeEnum": {
    "enum": [
     "Ascending",
     "Descending"
    ],
    "type": "string"
   },
   "SearchAttachmentTypeEnum": {
    "enum": [
     "Invoice",
     "Proforma",
     "Receipt",
     "WithoutInvoice",
     "WithoutProforma",
     "WithoutReceipt"
    ],
    "type": "string"
   },
   "OrdersSearchOperatorEnum": {
    "enum": [
     "AND",
     "OR"
    ],
    "type": "string"
   },
   "V3BuyerCommentsFilterEnum": {
    "enum": [
     "Set",
     "Empty"
    ],
    "type": "string"
   },
   "ReturnPaymentRequest": {
    "type": "object",
    "properties": {
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "platformName": {
      "type": "string",
      "nullable": true
     },
     "finishedAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "CreateReturnFromOrderRequest": {
    "type": "object",
    "properties": {
     "orderId": {
      "type": "integer",
      "format": "int64"
     },
     "orderLineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnLineItemRequest"
      },
      "nullable": true
     },
     "returnParams": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnParamsRequest"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnLineItemRequest": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "quantity": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "price": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "returnsReasonId": {
      "type": "integer",
      "format": "int64"
     },
     "returnsPositionStatusId": {
      "type": "integer",
      "format": "int64"
     },
     "clientNote": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnParamsRequest": {
    "type": "object",
    "properties": {
     "sourcePlatformReturnId": {
      "type": "string",
      "nullable": true
     },
     "referenceNumber": {
      "type": "string",
      "nullable": true
     },
     "externalPackage": {
      "type": "boolean"
     },
     "buyerComment": {
      "maxLength": 1024,
      "type": "string",
      "nullable": true
     },
     "useDeliveryCostsFromOrder": {
      "type": "boolean"
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "orderReturnAccountNumber": {
      "type": "string",
      "nullable": true
     },
     "orderReturnIBan": {
      "type": "string",
      "nullable": true
     },
     "orderReturnSwitft": {
      "type": "string",
      "nullable": true
     },
     "sellerComments": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "fulfillmentStatus": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "returnStatusId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "buyerEmail": {
      "type": "string",
      "nullable": true
     },
     "buyerUsername": {
      "type": "string",
      "nullable": true
     },
     "buyerPhone": {
      "type": "string",
      "nullable": true
     },
     "recipientFirstName": {
      "type": "string",
      "nullable": true
     },
     "recipientLastName": {
      "type": "string",
      "nullable": true
     },
     "recipientCompanyName": {
      "type": "string",
      "nullable": true
     },
     "recipientPhone": {
      "type": "string",
      "nullable": true
     },
     "recipientApartmentNo": {
      "type": "string",
      "nullable": true
     },
     "recipientHouseNo": {
      "type": "string",
      "nullable": true
     },
     "recipientStreet": {
      "type": "string",
      "nullable": true
     },
     "recipientCity": {
      "type": "string",
      "nullable": true
     },
     "recipientPostCode": {
      "type": "string",
      "nullable": true
     },
     "recipientState": {
      "type": "string",
      "nullable": true
     },
     "recipientCountryCode": {
      "type": "string",
      "nullable": true
     },
     "deliveryCostAmount": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "summaryAmount": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "additionalFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FieldCreationRequest"
      },
      "nullable": true
     },
     "payments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnPaymentRequest"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "EditUserRequest": {
    "type": "object",
    "properties": {
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "email": {
      "type": "string",
      "nullable": true
     },
     "newUserPassword": {
      "type": "string",
      "nullable": true
     },
     "roles": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "timeZoneId": {
      "type": "string",
      "nullable": true
     },
     "loginMethod": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "defaultPrinter": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserPrinterRequest"
       }
      ],
      "nullable": true
     },
     "allowedPrinters": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UserPrinterRequest"
      },
      "nullable": true
     },
     "defaultPrinters": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UserPrinterRequest"
      },
      "nullable": true
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "RegisterNewUserRequest": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "password": {
      "type": "string",
      "nullable": true
     },
     "email": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "roles": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "timeZoneId": {
      "type": "string",
      "nullable": true
     },
     "loginMethod": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "defaultPrinter": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserPrinterRequest"
       }
      ],
      "nullable": true
     },
     "allowedPrinters": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UserPrinterRequest"
      },
      "nullable": true
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "SetPackStationRequest": {
    "type": "object",
    "properties": {
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UserPrinterRequest": {
    "required": [
     "printerConnectionId",
     "printerId"
    ],
    "type": "object",
    "properties": {
     "printerConnectionId": {
      "type": "integer",
      "format": "int64"
     },
     "printerId": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "AvailablePrinterDto": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "connectionId": {
      "type": "integer",
      "format": "int64"
     },
     "cpPrinterId": {
      "type": "integer",
      "format": "int64"
     },
     "cpUserId": {
      "type": "integer",
      "format": "int64"
     },
     "printerName": {
      "type": "string",
      "nullable": true
     },
     "computerName": {
      "type": "string",
      "nullable": true
     },
     "isEnabled": {
      "type": "boolean"
     },
     "isDefault": {
      "type": "boolean"
     },
     "defaultOrder": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "visibility": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PrinterVisibilityEnum"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "PrinterDataDto": {
    "type": "object",
    "properties": {
     "printerConnectionId": {
      "type": "integer",
      "format": "int64"
     },
     "printerId": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "UserActionDto": {
    "type": "object",
    "properties": {
     "username": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "type": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserActionType"
       }
      ]
     },
     "result": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserActionResult"
       }
      ]
     },
     "ipAddress": {
      "type": "string",
      "nullable": true
     },
     "browser": {
      "type": "string",
      "nullable": true
     },
     "performedAt": {
      "type": "string",
      "format": "date-time"
     }
    },
    "additionalProperties": false
   },
   "UserDto": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "login": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "email": {
      "type": "string",
      "nullable": true
     },
     "roles": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "timeZone": {
      "allOf": [
       {
        "$ref": "#/components/schemas/TimeZoneInfo"
       }
      ],
      "nullable": true
     },
     "loginMethod": {
      "type": "integer",
      "format": "int32"
     },
     "keyValues": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/KeyValueDbEntity"
      },
      "nullable": true
     },
     "defaultPrinter": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PrinterDataDto"
       }
      ],
      "nullable": true
     },
     "allowedPrinters": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PrinterDataDto"
      },
      "nullable": true
     },
     "defaultPrinters": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PrinterDataDto"
      },
      "nullable": true
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UserPermissionDto": {
    "type": "object",
    "properties": {
     "userId": {
      "type": "integer",
      "format": "int64"
     },
     "statuses": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "readOnlyStatuses": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "allowedIPs": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "apiRateLimit": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "connections": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UserActionResult": {
    "enum": [
     "Success",
     "Failure"
    ],
    "type": "string"
   },
   "UserActionType": {
    "enum": [
     "Login"
    ],
    "type": "string"
   },
   "PrinterVisibilityEnum": {
    "enum": [
     "Listed",
     "Unlisted"
    ],
    "type": "string"
   },
   "PageOfReturnFlattenedHistoryResponse": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnFlattenedHistoryResponse"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfReturnStatusHistoryResponse": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnStatusHistoryResponse"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfReturnResponse": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/V4ReturnResponse"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "MultipleOrdersStatusUpdateRequestV4": {
    "required": [
     "ids",
     "statusId"
    ],
    "type": "object",
    "properties": {
     "ids": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      }
     },
     "statusId": {
      "type": "integer",
      "format": "int64"
     },
     "skipAjs": {
      "type": "boolean",
      "nullable": true
     },
     "passThroughCommandData": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/JsonNode"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "MultipleOrdersStatusUpdateSyncRequestV4": {
    "required": [
     "ids",
     "statusId"
    ],
    "type": "object",
    "properties": {
     "ids": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      }
     },
     "statusId": {
      "type": "integer",
      "format": "int64"
     },
     "skipAjs": {
      "type": "boolean",
      "nullable": true
     },
     "passThroughCommandData": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/JsonNode"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnFlattenedHistoryResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "objectId": {
      "type": "string",
      "nullable": true
     },
     "type": {
      "type": "string",
      "nullable": true
     },
     "operation": {
      "type": "string",
      "nullable": true
     },
     "property": {
      "type": "string",
      "nullable": true
     },
     "prevValue": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JsonNode"
       }
      ],
      "nullable": true
     },
     "value": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JsonNode"
       }
      ],
      "nullable": true
     },
     "createdAtUtc": {
      "type": "string",
      "format": "date-time"
     },
     "createdBy": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ReturnStatusHistoryResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "statusId": {
      "type": "integer",
      "format": "int64"
     },
     "statusName": {
      "type": "string",
      "nullable": true
     },
     "statusShortName": {
      "type": "string",
      "nullable": true
     },
     "statusDescription": {
      "type": "string",
      "nullable": true
     },
     "changedAtUtc": {
      "type": "string",
      "format": "date-time"
     },
     "previousStatusName": {
      "type": "string",
      "nullable": true
     },
     "previousStatusId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "changedBy": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "CreateReturnV4Request": {
    "type": "object",
    "properties": {
     "platformOrderId": {
      "type": "string",
      "nullable": true
     },
     "platformReturnId": {
      "type": "string",
      "nullable": true
     },
     "referenceNumber": {
      "type": "string",
      "nullable": true
     },
     "smerpConnection": {
      "allOf": [
       {
        "$ref": "#/components/schemas/SmerpConnection"
       }
      ],
      "nullable": true
     },
     "returnLineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/CreateReturnV4RequestReturnLineItem"
      },
      "nullable": true
     },
     "returnParcels": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnParcel"
      },
      "nullable": true
     },
     "setOrderAsReturnedOnly": {
      "type": "boolean"
     },
     "externalPackage": {
      "type": "boolean"
     },
     "buyerComment": {
      "maxLength": 1024,
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "CreateReturnV4RequestReturnLineItem": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "quantity": {
      "type": "integer",
      "format": "int32"
     },
     "price": {
      "type": "number",
      "format": "double"
     },
     "reason": {
      "type": "string",
      "nullable": true
     },
     "omsReturnReasonId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "clientNote": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateReturnRequestV4": {
    "type": "object",
    "properties": {
     "payments": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestPaymentsDto"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestDeliveryDto"
       }
      ],
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestSummaryDto"
       }
      ],
      "nullable": true
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UpdateReturnRequestBuyerDto"
       }
      ],
      "nullable": true
     },
     "returnStatusId": {
      "type": "integer",
      "format": "int64"
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "orderReturnAccountNumber": {
      "type": "string",
      "nullable": true
     },
     "orderReturnIBan": {
      "type": "string",
      "nullable": true
     },
     "orderReturnSwitft": {
      "type": "string",
      "nullable": true
     },
     "sellerComments": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     },
     "fulfillmentStatus": {
      "type": "integer",
      "format": "int64"
     },
     "orderId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UpdateReturnRequestLineItemDto"
      },
      "nullable": true
     },
     "elasticFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnElasticFieldDto"
      },
      "nullable": true
     },
     "referenceNumber": {
      "type": "string",
      "nullable": true
     },
     "externalPackage": {
      "type": "boolean"
     },
     "buyerComment": {
      "maxLength": 1024,
      "type": "string",
      "nullable": true
     },
     "userName": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "V4AddressResponse": {
    "type": "object",
    "properties": {
     "apartmentNo": {
      "type": "string",
      "nullable": true
     },
     "houseNo": {
      "type": "string",
      "nullable": true
     },
     "street": {
      "type": "string",
      "nullable": true
     },
     "city": {
      "type": "string",
      "nullable": true
     },
     "postCode": {
      "type": "string",
      "nullable": true
     },
     "state": {
      "type": "string",
      "nullable": true
     },
     "countryCode": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "V4BuyerResponse": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "V4DeliveryResponse": {
    "type": "object",
    "properties": {
     "recipient": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4RecipientResponse"
       }
      ],
      "nullable": true
     },
     "cost": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4PaymentAmountResponse"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "V4PaymentAmountResponse": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "V4PaymentResponse": {
    "type": "object",
    "properties": {
     "paymentName": {
      "type": "string",
      "nullable": true
     },
     "payments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnPaymentResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "V4PriceResponse": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "unitPrice": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "V4RecipientResponse": {
    "type": "object",
    "properties": {
     "username": {
      "type": "string",
      "nullable": true
     },
     "firstName": {
      "type": "string",
      "nullable": true
     },
     "lastName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4AddressResponse"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "V4ReturnLineItemMiniatureResponse": {
    "type": "object",
    "properties": {
     "originalImageUrl": {
      "type": "string",
      "nullable": true
     },
     "selector": {
      "type": "string",
      "nullable": true
     },
     "entityId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "V4ReturnLineItemResponse": {
    "type": "object",
    "properties": {
     "product": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4ReturnProductResponse"
       }
      ],
      "nullable": true
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "quantity": {
      "type": "number",
      "format": "double"
     },
     "quantityPicked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPacked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "tax": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4TaxResponse"
       }
      ],
      "nullable": true
     },
     "price": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4PriceResponse"
       }
      ],
      "nullable": true
     },
     "originalCreatedAt": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "returnsReasonId": {
      "type": "integer",
      "format": "int64"
     },
     "returnsPositionStatusId": {
      "type": "integer",
      "format": "int64"
     },
     "additionalFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AdditionalFieldResponse"
      },
      "nullable": true
     },
     "miniatures": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4ReturnLineItemMiniatureResponse"
       }
      ],
      "nullable": true
     },
     "clientNote": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "V4ReturnProductResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "warehouseId": {
      "type": "string",
      "nullable": true
     },
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "code": {
      "type": "string",
      "nullable": true
     },
     "ean": {
      "type": "string",
      "nullable": true
     },
     "imageUrl": {
      "type": "string",
      "nullable": true
     },
     "bundleId": {
      "type": "string",
      "nullable": true
     },
     "storage": {
      "type": "string",
      "nullable": true
     },
     "parentName": {
      "type": "string",
      "nullable": true
     },
     "variantId": {
      "type": "string",
      "nullable": true
     },
     "location": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "V4ReturnResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "connectionType": {
      "type": "string",
      "nullable": true
     },
     "sourcePlatformAccountId": {
      "type": "string",
      "nullable": true
     },
     "sourcePlatformOrderId": {
      "type": "string",
      "nullable": true
     },
     "sourcePlatformReturnId": {
      "type": "string",
      "nullable": true
     },
     "platformDateAddedUtc": {
      "type": "string",
      "format": "date-time"
     },
     "payments": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4PaymentResponse"
       }
      ],
      "nullable": true
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4BuyerResponse"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4DeliveryResponse"
       }
      ],
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4ReturnSummaryResponse"
       }
      ],
      "nullable": true
     },
     "returnStatusId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/StatusResponse"
       }
      ],
      "nullable": true
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "additionalFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/AdditionalFieldResponse"
      },
      "nullable": true
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "orderReturnAccountNumber": {
      "type": "string",
      "nullable": true
     },
     "orderReturnIBan": {
      "type": "string",
      "nullable": true
     },
     "orderReturnSwitft": {
      "type": "string",
      "nullable": true
     },
     "fulfillmentStatus": {
      "type": "integer",
      "format": "int32"
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/V4ReturnLineItemResponse"
      },
      "nullable": true
     },
     "orderId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "isComplete": {
      "type": "boolean"
     },
     "shipments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReturnShipmentResponse"
      },
      "nullable": true
     },
     "referenceNumber": {
      "type": "string",
      "nullable": true
     },
     "externalPackage": {
      "type": "boolean"
     },
     "buyerComment": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "V4ReturnSummaryResponse": {
    "type": "object",
    "properties": {
     "totalToPay": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4PaymentAmountResponse"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "V4TaxResponse": {
    "type": "object",
    "properties": {
     "symbol": {
      "type": "string",
      "nullable": true
     },
     "rate": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "OrderByType": {
    "enum": [
     "Ascending",
     "Descending"
    ],
    "type": "string"
   },
   "ReturnOrderByProperty": {
    "enum": [
     "Id",
     "CreatedAt",
     "StatusUpdatedAt",
     "TotalPrice",
     "RecipientFirstName",
     "RecipientLastName",
     "RecipientPhone",
     "RecipientCompanyName",
     "BuyerEmail",
     "BuyerPhone",
     "BuyerUsername",
     "ConnectionId",
     "ConnectionType"
    ],
    "type": "string"
   },
   "ReturnTypeFilter": {
    "enum": [
     "Any",
     "Full",
     "Partial"
    ],
    "type": "string"
   },
   "UpsertUserEventLocationRestrictionDTO": {
    "type": "object",
    "properties": {
     "location": {
      "allOf": [
       {
        "$ref": "#/components/schemas/SupportedLocationsEnum"
       }
      ]
     },
     "userAccountRestrictions": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventShowOnUserAccountRestrictions"
       }
      ]
     },
     "statusesRestrictions": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventShowOnStatusesRestrictions"
       }
      ]
     },
     "stationRestrictions": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventShowOnStationRestrictions"
       }
      ]
     },
     "userAccountsAssociations": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "statusesAssociations": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpsertUserEventRequestDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "button": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4UserEventButtonDTO"
       }
      ],
      "nullable": true
     },
     "shortcut": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventValueSettingDTO"
       }
      ],
      "nullable": true
     },
     "barcode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventValueSettingDTO"
       }
      ],
      "nullable": true
     },
     "synchronous": {
      "type": "boolean",
      "nullable": true
     },
     "position": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "refreshPageAfterAnyScriptFinishes": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "V4UserEventButtonDTO": {
    "type": "object",
    "properties": {
     "enabled": {
      "type": "boolean"
     },
     "caption": {
      "type": "string",
      "nullable": true
     },
     "icon": {
      "type": "string",
      "nullable": true
     },
     "color": {
      "type": "string",
      "nullable": true
     },
     "location": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/SupportedLocationsEnum"
      },
      "nullable": true
     },
     "restrictions": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UpsertUserEventLocationRestrictionDTO"
      },
      "nullable": true
     },
     "refreshPageAfterAnyScriptFinishes": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "V4UserEventDTO": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "button": {
      "allOf": [
       {
        "$ref": "#/components/schemas/V4UserEventButtonDTO"
       }
      ],
      "nullable": true
     },
     "shortcut": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventValueSettingDTO"
       }
      ],
      "nullable": true
     },
     "barcode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/UserEventValueSettingDTO"
       }
      ],
      "nullable": true
     },
     "synchronous": {
      "type": "boolean",
      "nullable": true
     },
     "position": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "refreshPageAfterAnyScriptFinishes": {
      "type": "boolean"
     },
     "buttonShouldBeDisplayed": {
      "type": "boolean",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UserEventShowOnStationRestrictions": {
    "enum": [
     "None",
     "ShowOnSpecifiedStations",
     "HideOnSpecifiedStations"
    ],
    "type": "string"
   },
   "UserEventShowOnStatusesRestrictions": {
    "enum": [
     "None",
     "ShowForSpecifiedStatuses",
     "HideForSpecifiedStatuses"
    ],
    "type": "string"
   },
   "UserEventShowOnUserAccountRestrictions": {
    "enum": [
     "None",
     "ShowForSpecifiedUsers",
     "HideForSpecifiedUsers"
    ],
    "type": "string"
   },
   "PageOfOrderHeaderResponseV5": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrderHeaderResponseV5"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfOrderResponseV5": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrderResponseV5"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PageOfOrdersStatusHistoryResponseV5": {
    "type": "object",
    "properties": {
     "list": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrdersStatusHistoryResponseV5"
      },
      "nullable": true
     },
     "pageNumber": {
      "type": "integer",
      "format": "int32"
     },
     "total": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "AddressRequestV5": {
    "type": "object",
    "properties": {
     "apartmentNo": {
      "type": "string",
      "nullable": true
     },
     "houseNo": {
      "type": "string",
      "nullable": true
     },
     "street": {
      "type": "string",
      "nullable": true
     },
     "city": {
      "type": "string",
      "nullable": true
     },
     "postCode": {
      "type": "string",
      "nullable": true
     },
     "state": {
      "type": "string",
      "nullable": true
     },
     "countryCode": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BatchUpdateOrderRequestV5": {
    "type": "object",
    "properties": {
     "source": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSourceRequestV2"
       }
      ],
      "nullable": true
     },
     "platformDateAddedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "platformDateConfirmedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "asteriskMarked": {
      "type": "boolean",
      "nullable": true
     },
     "asteriskKindId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "sellerComments": {
      "type": "string",
      "nullable": true
     },
     "buyerComments": {
      "type": "string",
      "nullable": true
     },
     "pickState": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "packState": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderBuyerRequestV5"
       }
      ],
      "nullable": true
     },
     "payments": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentsRequest"
       }
      ],
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/StatusRequestV5"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryRequestV5"
       }
      ],
      "nullable": true
     },
     "invoice": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InvoiceRequestV5"
       }
      ],
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryRequestV5"
       }
      ],
      "nullable": true
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "cancellation": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderCancellationRequest"
       }
      ],
      "nullable": true
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "elasticFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/StoreElasticFieldRequestV5"
      },
      "nullable": true
     },
     "passThroughCommandData": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/JsonNode"
      },
      "nullable": true
     },
     "fulfillmentByMarketplace": {
      "type": "boolean",
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemRequest"
      },
      "nullable": true
     },
     "return": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnRequest"
       }
      ],
      "nullable": true
     },
     "ksef": {
      "allOf": [
       {
        "$ref": "#/components/schemas/KsefDto"
       }
      ],
      "nullable": true
     },
     "id": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "CreateOrderRequestV5": {
    "required": [
     "platformDateAddedUtc"
    ],
    "type": "object",
    "properties": {
     "orderDuplicationBaseId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "source": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSourceRequestV2"
       }
      ],
      "nullable": true
     },
     "allowDuplicates": {
      "type": "boolean"
     },
     "asteriskMarked": {
      "type": "boolean"
     },
     "asteriskKindId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "buyerComments": {
      "type": "string",
      "nullable": true
     },
     "sellerComments": {
      "type": "string",
      "nullable": true
     },
     "packState": {
      "type": "integer",
      "format": "int32"
     },
     "pickState": {
      "type": "integer",
      "format": "int32"
     },
     "platformDateAddedUtc": {
      "type": "string",
      "format": "date-time"
     },
     "platformDateConfirmedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderBuyerRequestV5"
       }
      ],
      "nullable": true
     },
     "payments": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentsRequest"
       }
      ],
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/StatusRequestV5"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryRequestV5"
       }
      ],
      "nullable": true
     },
     "invoice": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InvoiceRequestV5"
       }
      ],
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemRequest"
      },
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryRequestV5"
       }
      ],
      "nullable": true
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "elasticFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/StoreElasticFieldRequestV5"
      },
      "nullable": true
     },
     "externalPaymentStatus": {
      "type": "string",
      "nullable": true
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "fulfillmentByMarketplace": {
      "type": "boolean",
      "nullable": true
     },
     "return": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnRequest"
       }
      ],
      "nullable": true
     },
     "ksef": {
      "allOf": [
       {
        "$ref": "#/components/schemas/KsefDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "DeliveryCostRequestV5": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "DeliveryMethodRequestV5": {
    "type": "object",
    "properties": {
     "platformId": {
      "type": "string",
      "nullable": true
     },
     "platformName": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "DeliveryRequestV5": {
    "type": "object",
    "properties": {
     "recipient": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderRecipientRequestV5"
       }
      ],
      "nullable": true
     },
     "pickupPoint": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PickupPointRequestV5"
       }
      ],
      "nullable": true
     },
     "cost": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryCostRequestV5"
       }
      ],
      "nullable": true
     },
     "method": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryMethodRequestV5"
       }
      ],
      "nullable": true
     },
     "isCod": {
      "type": "boolean",
      "nullable": true
     },
     "isPacked": {
      "type": "boolean",
      "nullable": true
     },
     "isPicked": {
      "type": "boolean",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "InvoiceRequestV5": {
    "type": "object",
    "properties": {
     "required": {
      "type": "boolean",
      "nullable": true
     },
     "payer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderPayerRequestV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "LineItemUpdatePickedPackedRequestV5": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "quantityPicked": {
      "type": "number",
      "format": "double",
      "nullable": true
     },
     "quantityPacked": {
      "type": "number",
      "format": "double",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderBuyerRequestV5": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "rawCompanyTaxId": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressRequestV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderPayerRequestV5": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "rawCompanyTaxId": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressRequestV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderRecipientRequestV5": {
    "type": "object",
    "properties": {
     "email": {
      "type": "string",
      "nullable": true
     },
     "username": {
      "type": "string",
      "nullable": true
     },
     "fullName": {
      "type": "string",
      "nullable": true
     },
     "companyName": {
      "type": "string",
      "nullable": true
     },
     "phone": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressRequestV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSummaryRequestV5": {
    "type": "object",
    "properties": {
     "totalToPay": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryTotalToPayRequestV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSummaryTotalToPayRequestV5": {
    "required": [
     "amount"
    ],
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "PatchOrderRequestV5": {
    "type": "object",
    "properties": {
     "source": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSourceRequestV2"
       }
      ],
      "nullable": true
     },
     "platformDateAddedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "platformDateConfirmedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "asteriskMarked": {
      "type": "boolean",
      "nullable": true
     },
     "asteriskKindId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "sellerComments": {
      "type": "string",
      "nullable": true
     },
     "buyerComments": {
      "type": "string",
      "nullable": true
     },
     "packState": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "pickState": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderBuyerRequestV5"
       }
      ],
      "nullable": true
     },
     "payments": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentsRequest"
       }
      ],
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/StatusRequestV5"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryRequestV5"
       }
      ],
      "nullable": true
     },
     "invoice": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InvoiceRequestV5"
       }
      ],
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemRequest"
      },
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryRequest"
       }
      ],
      "nullable": true
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "cancellation": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderCancellationRequest"
       }
      ],
      "nullable": true
     },
     "externalPaymentStatus": {
      "type": "string",
      "nullable": true
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "return": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnRequest"
       }
      ],
      "nullable": true
     },
     "ksef": {
      "allOf": [
       {
        "$ref": "#/components/schemas/KsefDto"
       }
      ],
      "nullable": true
     },
     "passThroughCommandData": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/JsonNode"
      },
      "nullable": true
     },
     "replaceAllLineItems": {
      "type": "boolean",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PickupPointRequestV5": {
    "type": "object",
    "properties": {
     "code": {
      "type": "string",
      "nullable": true
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "description": {
      "type": "string",
      "nullable": true
     },
     "address": {
      "allOf": [
       {
        "$ref": "#/components/schemas/AddressRequestV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "SplitBundlesRequestV5": {
    "type": "object",
    "properties": {
     "method": {
      "allOf": [
       {
        "$ref": "#/components/schemas/BundleSplitMethodEnum"
       }
      ]
     },
     "orderConfirmationRequired": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "StatusRequestV5": {
    "required": [
     "id"
    ],
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     }
    },
    "additionalProperties": false
   },
   "StoreElasticFieldDefinitionRequestV5": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldDisplayName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "predefinedValues": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "StoreElasticFieldRequestV5": {
    "type": "object",
    "properties": {
     "fieldName": {
      "type": "string",
      "nullable": true
     },
     "fieldType": {
      "type": "string",
      "nullable": true
     },
     "fieldValue": {
      "type": "string",
      "nullable": true
     },
     "definition": {
      "allOf": [
       {
        "$ref": "#/components/schemas/StoreElasticFieldDefinitionRequestV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpdateOrderRequestV5": {
    "type": "object",
    "properties": {
     "source": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSourceRequestV2"
       }
      ],
      "nullable": true
     },
     "platformDateAddedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "platformDateConfirmedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "asteriskMarked": {
      "type": "boolean",
      "nullable": true
     },
     "asteriskKindId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "sellerComments": {
      "type": "string",
      "nullable": true
     },
     "buyerComments": {
      "type": "string",
      "nullable": true
     },
     "pickState": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "packState": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderBuyerRequestV5"
       }
      ],
      "nullable": true
     },
     "payments": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentsRequest"
       }
      ],
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/StatusRequestV5"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryRequestV5"
       }
      ],
      "nullable": true
     },
     "invoice": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InvoiceRequestV5"
       }
      ],
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryRequestV5"
       }
      ],
      "nullable": true
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "cancellation": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderCancellationRequest"
       }
      ],
      "nullable": true
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "elasticFields": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/StoreElasticFieldRequestV5"
      },
      "nullable": true
     },
     "passThroughCommandData": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/JsonNode"
      },
      "nullable": true
     },
     "fulfillmentByMarketplace": {
      "type": "boolean",
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemRequest"
      },
      "nullable": true
     },
     "return": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ReturnRequest"
       }
      ],
      "nullable": true
     },
     "ksef": {
      "allOf": [
       {
        "$ref": "#/components/schemas/KsefDto"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "UpsertOrderBatchRequestV5": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "clientReference": {
      "type": "string",
      "nullable": true
     },
     "source": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSourceRequestV2"
       }
      ],
      "nullable": true
     },
     "allowDuplicates": {
      "type": "boolean"
     },
     "asteriskMarked": {
      "type": "boolean"
     },
     "asteriskKindId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "buyerComments": {
      "type": "string",
      "nullable": true
     },
     "sellerComments": {
      "type": "string",
      "nullable": true
     },
     "packState": {
      "type": "integer",
      "format": "int32"
     },
     "pickState": {
      "type": "integer",
      "format": "int32"
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderBuyerRequestV5"
       }
      ],
      "nullable": true
     },
     "payments": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentsRequest"
       }
      ],
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/StatusRequestV5"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryRequestV5"
       }
      ],
      "nullable": true
     },
     "invoice": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InvoiceRequestV5"
       }
      ],
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemRequest"
      },
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryRequestV5"
       }
      ],
      "nullable": true
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "cancellation": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderCancellationRequest"
       }
      ],
      "nullable": true
     },
     "fulfillmentByMarketplace": {
      "type": "boolean",
      "nullable": true
     },
     "platformDateAddedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "platformDateConfirmedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderCancellationResponseV5": {
    "type": "object",
    "properties": {
     "cancelledAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "reason": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderHeaderResponseV5": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "source": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSourceResponseV5"
       }
      ],
      "nullable": true
     },
     "externalSourceId": {
      "type": "string",
      "nullable": true
     },
     "externalSourceType": {
      "type": "string",
      "nullable": true
     },
     "connectionId": {
      "type": "string",
      "nullable": true
     },
     "connectionType": {
      "type": "string",
      "nullable": true
     },
     "sourceOrderId": {
      "type": "string",
      "nullable": true
     },
     "sellerComments": {
      "type": "string",
      "nullable": true
     },
     "buyerComments": {
      "type": "string",
      "nullable": true
     },
     "asteriskMarked": {
      "type": "boolean"
     },
     "asteriskKindId": {
      "type": "integer",
      "format": "int64"
     },
     "asteriskKindColor": {
      "type": "string",
      "nullable": true
     },
     "asteriskKindIcon": {
      "type": "string",
      "nullable": true
     },
     "paymentName": {
      "type": "string",
      "nullable": true
     },
     "packState": {
      "type": "integer",
      "format": "int32"
     },
     "pickState": {
      "type": "integer",
      "format": "int32"
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "platformDateAddedUtc": {
      "type": "string",
      "format": "date-time"
     },
     "platformDateConfirmedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "seller": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSellerResponseV5"
       }
      ],
      "nullable": true
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderBuyerResponseV5"
       }
      ],
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/StatusResponseV5"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryResponseV5"
       }
      ],
      "nullable": true
     },
     "invoice": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InvoiceResponseV5"
       }
      ],
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemResponseV5"
      },
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryResponseV5"
       }
      ],
      "nullable": true
     },
     "cancellation": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderCancellationResponseV5"
       }
      ],
      "nullable": true
     },
     "returnIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "fulfillmentByMarketplace": {
      "type": "boolean",
      "nullable": true
     },
     "orderIdFromWhichThisWasCreatedBySplit": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "orderIdsWhichWereCreatedBySplitFromThis": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "hasInvoiceAttached": {
      "type": "boolean"
     },
     "hasProformaAttached": {
      "type": "boolean"
     },
     "invoiceAttachedInfo": {
      "type": "string",
      "nullable": true
     },
     "return": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrdersReturnResponse"
       }
      ],
      "nullable": true
     },
     "hasReceiptAttached": {
      "type": "boolean"
     },
     "hasOtherTypeAttached": {
      "type": "boolean"
     },
     "mergedOrders": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/MergedOrderResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderLineItemsScanMultipleSearchResponseV5": {
    "type": "object",
    "properties": {
     "orderId": {
      "type": "integer",
      "format": "int64"
     },
     "foundLineItemId": {
      "type": "integer",
      "format": "int64"
     },
     "quantityToApply": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "OrderResponseV5": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "source": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSourceResponseV5"
       }
      ],
      "nullable": true
     },
     "externalSourceId": {
      "type": "string",
      "nullable": true
     },
     "externalSourceType": {
      "type": "string",
      "nullable": true
     },
     "sourceOrderId": {
      "type": "string",
      "nullable": true
     },
     "asteriskMarked": {
      "type": "boolean"
     },
     "asteriskKindId": {
      "type": "integer",
      "format": "int64"
     },
     "asteriskKindColor": {
      "type": "string",
      "nullable": true
     },
     "asteriskKindIcon": {
      "type": "string",
      "nullable": true
     },
     "sellerComments": {
      "type": "string",
      "nullable": true
     },
     "buyerComments": {
      "type": "string",
      "nullable": true
     },
     "platformDateAddedUtc": {
      "type": "string",
      "format": "date-time"
     },
     "platformDateConfirmedUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "seller": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSellerResponseV5"
       }
      ],
      "nullable": true
     },
     "buyer": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderBuyerResponseV5"
       }
      ],
      "nullable": true
     },
     "payments": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PaymentsResponse"
       }
      ],
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/StatusResponse"
       }
      ],
      "nullable": true
     },
     "delivery": {
      "allOf": [
       {
        "$ref": "#/components/schemas/DeliveryResponseV5"
       }
      ],
      "nullable": true
     },
     "invoice": {
      "allOf": [
       {
        "$ref": "#/components/schemas/InvoiceResponseV5"
       }
      ],
      "nullable": true
     },
     "lineItems": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/LineItemResponseV5"
      },
      "nullable": true
     },
     "attachments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrderAttachmentResponse"
      },
      "nullable": true
     },
     "summary": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryResponse"
       }
      ],
      "nullable": true
     },
     "ksef": {
      "allOf": [
       {
        "$ref": "#/components/schemas/KsefDto"
       }
      ],
      "nullable": true
     },
     "orderIdFromWhichThisWasCreatedBySplit": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "orderIdsWhichWereCreatedBySplitFromThis": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     },
     "fulfillmentByMarketplace": {
      "type": "boolean",
      "nullable": true
     },
     "return": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrdersReturnResponse"
       }
      ],
      "nullable": true
     },
     "mergedOrders": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/MergedOrderResponse"
      },
      "nullable": true
     },
     "currency": {
      "type": "string",
      "nullable": true,
      "readOnly": true
     },
     "additionalField1": {
      "type": "string",
      "nullable": true
     },
     "additionalField2": {
      "type": "string",
      "nullable": true
     },
     "shipments": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/OrdersShipmentResponse"
      },
      "nullable": true
     },
     "cancellation": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderCancellationResponse"
       }
      ],
      "nullable": true
     },
     "packStation": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PackStationResponse"
       }
      ],
      "nullable": true
     },
     "returnIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSummaryResponseV5": {
    "type": "object",
    "properties": {
     "totalToPay": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryTotalToPayResponseV5"
       }
      ],
      "nullable": true
     },
     "toPayWithoutShipment": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderSummaryTotalToPayResponseV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderSummaryTotalToPayResponseV5": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string",
      "nullable": true
     },
     "amount": {
      "type": "number",
      "format": "double"
     }
    },
    "additionalProperties": false
   },
   "OrdersStatusHistoryResponseV5": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "orderId": {
      "type": "integer",
      "format": "int64"
     },
     "statusId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "statusName": {
      "type": "string",
      "nullable": true
     },
     "changedAtUtc": {
      "type": "string",
      "format": "date-time"
     },
     "previousStatusName": {
      "type": "string",
      "nullable": true
     },
     "previousStatusId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "changedBy": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "StatusResponseV5": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "from": {
      "type": "string",
      "format": "date-time"
     }
    },
    "additionalProperties": false
   },
   "ScanSearchFilterModeEnum": {
    "enum": [
     "Pick",
     "Pack"
    ],
    "type": "string"
   },
   "V5BuyerCommentsFilterEnum": {
    "enum": [
     "Set",
     "Empty"
    ],
    "type": "string"
   },
   "FindOrderByAdditionalFieldResponse": {
    "type": "object",
    "properties": {
     "foundOrdersIds": {
      "type": "array",
      "items": {
       "type": "integer",
       "format": "int64"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "GetOrderStateResponse": {
    "type": "object",
    "properties": {
     "orderState": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderState"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "ScanOrderByCodeRequest": {
    "type": "object",
    "properties": {
     "reserve": {
      "type": "boolean"
     },
     "mode": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ScanOrderMode"
       }
      ]
     },
     "packStationId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "additionalFieldName": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ScanOrderMode": {
    "enum": [
     "Pack",
     "Pick"
    ],
    "type": "string"
   },
   "FindOrderByCodeResponse": {
    "type": "object",
    "properties": {
     "matchedOrder": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderWithElasticFieldsResponseV5"
       }
      ],
      "nullable": true
     },
     "matchedBy": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderCodeMatchType"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "OrderCodeMatchType": {
    "enum": [
     "ShipmentTrackingNumber",
     "OrderId",
     "AdditionalField"
    ],
    "type": "string"
   },
   "ScanOrderByCodeResponse": {
    "type": "object",
    "properties": {
     "reserveJobId": {
      "type": "integer",
      "format": "int64"
     },
     "matchedOrder": {
      "allOf": [
       {
        "$ref": "#/components/schemas/OrderWithElasticFieldsResponseV5"
       }
      ],
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "OrderState": {
    "enum": [
     "Normal",
     "Cancelled",
     "MergedMaster",
     "MergedSlave",
     "NotExist",
     "UsedToExist"
    ],
    "type": "string"
   }
  },
  "securitySchemes": {
   "Bearer": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "JWT",
    "description": "Token API wygenerowany w panelu Sellrocket."
   }
  }
 },
 "security": [
  {
   "Bearer": []
  }
 ]
}