{"openapi":"3.1.0","info":{"title":"Brani Public API","description":"\nREST API, přes které napojíte vlastní e-shop, ERP, marketplace nebo skladový systém na nástroje\n[Brani](https://www.brani.cz/) – **Balič** (expedice), **Sklad**, **Objednávky**, **Výrobu** a další doplňky.\n\n| | |\n| --- | --- |\n| **Základní URL** | `https://api.brani.cz` |\n| **Formát** | JSON v UTF‑8; soubory jako `multipart/form-data` |\n| **Autentizace** | hlavička `Authorization: Bearer <token>` |\n| **Specifikace** | [openapi.json](openapi.json) – naimportujte do Postmanu, Insomnie nebo generátoru klientů |\n| **Podpora** | [support@brani.cz](mailto:support@brani.cz) |\n\nDokumentace má dvě části: tento **průvodce** (jak API funguje, čím začít, jak fungují webhooky)\na **referenci endpointů** v postranním menu. U každého endpointu najdete schéma požadavku\ni odpovědi, příklady a ukázku volání v curl, Pythonu, PHP, JavaScriptu a dalších jazycích.\nTlačítkem *Test Request* si můžete endpoint rovnou vyzkoušet se svým tokenem.\n\n## Rychlý start\n\nZa pár minut od tokenu k první objednávce v Baliči.\n\n### 1. Vystavte si API token\n\nNa [app.brani.cz/tokens](https://app.brani.cz/tokens/) klikněte na **Vygenerovat nový token**. Vyberte e-shop, pro který má token platit, a poznamenejte si, komu\nje určený (název integrace). Token si uložte do bezpečné konfigurace (proměnná prostředí,\nsecret manager) – nikdy ne do front-endu ani do veřejného repozitáře.\n\nToken lze kdykoli deaktivovat na stejném místě; od té chvíle API vrací `401`.\n\n### 2. Nahrajte číselníky e-shopu\n\nObjednávky se odkazují na **ID stavů**, **GUID doprav** a **GUID plateb** z vašeho systému.\nBrani je potřebuje znát dřív, než pošlete první objednávku – u nově napojeného e-shopu je to\nproto první volání (dokud číselníky nenahrajete, vrací [`GET /eshop/info`](#tag/číselníky-e-shopu/GET/eshop/info) stav `404`):\n\n```bash\ncurl -X POST https://api.brani.cz/eshop/info \\\n  -H \"Authorization: Bearer $BRANI_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"data\": {\n      \"orderStatuses\": {\n        \"statuses\": [\n          { \"id\": 1, \"name\": \"Přijato\" },\n          { \"id\": 2, \"name\": \"K expedici\" },\n          { \"id\": 3, \"name\": \"Odesláno\" }\n        ]\n      },\n      \"shippingMethods\": {\n        \"retail\": { \"methods\": [\n          { \"guid\": \"6d33d5bc-0b65-4284-9c1a-dcd7a4f4d31c\", \"name\": \"Zásilkovna\" },\n          { \"guid\": \"2ec88ea7-3fb0-11e2-a723-705ab6a2ba75\", \"name\": \"PPL\" }\n        ]},\n        \"wholesale\": { \"methods\": [] }\n      },\n      \"paymentMethods\": {\n        \"retail\": { \"methods\": [\n          { \"guid\": \"08962fe8-ea34-4f69-be75-b62ef1dcac2f\", \"name\": \"Dobírka\" },\n          { \"guid\": \"e8827deb-61c0-42a2-afb2-2efae1cd5dcb\", \"name\": \"Kartou\" }\n        ]},\n        \"wholesale\": { \"methods\": [] }\n      }\n    }\n  }'\n```\n\nNemáte UUID? Pošlete číselné ID jako řetězec – převedeme ho na UUID doplněné nulami\n(`\"12345\"` → `00000000-0000-0000-0000-000000012345`). Platí pro všechna pole typu GUID.\n\n### 3. Ověřte, co Brani o e-shopu ví\n\n```bash\ncurl https://api.brani.cz/eshop/info \\\n  -H \"Authorization: Bearer $BRANI_TOKEN\"\n```\n\nOdpověď vrací nahrané číselníky a souhrn `summary` o e-shopu (a jeho skladu, pokud je aktivní):\n\n```json\n{\n  \"data\": {\n    \"orderStatuses\": { \"statuses\": [{ \"id\": 1, \"name\": \"Přijato\" }, { \"id\": 2, \"name\": \"K expedici\" }, { \"id\": 3, \"name\": \"Odesláno\" }] },\n    \"shippingMethods\": { \"retail\": { \"methods\": [{ \"guid\": \"6d33d5bc-0b65-4284-9c1a-dcd7a4f4d31c\", \"name\": \"Zásilkovna\" }] }, \"wholesale\": { \"methods\": [] } },\n    \"paymentMethods\": { \"retail\": { \"methods\": [{ \"guid\": \"08962fe8-ea34-4f69-be75-b62ef1dcac2f\", \"name\": \"Dobírka\" }] }, \"wholesale\": { \"methods\": [] } }\n  },\n  \"summary\": {\n    \"eshop_id\": 3256,\n    \"eshop_name\": \"Můj e-shop\",\n    \"eshop_url\": \"https://www.muj-eshop.cz\",\n    \"enabled\": true,\n    \"multieshop_id\": null,\n    \"is_shoptet\": false,\n    \"warehouse\": null\n  }\n}\n```\n\nPokud dostanete `404 Pro dane eshop_id a module neexistuji zadne zaznamy`, e-shop ještě nemá\nčíselníky – vraťte se ke kroku 2. Chyba `401`/`403` znamená problém s tokenem, viz Autentizace.\n\n### 4. Pošlete objednávku\n\n[`POST /order/upsert`](#tag/objednávky/POST/order/upsert) objednávku založí, nebo – pokud už objednávka se stejným `code`\nexistuje – aktualizuje. Stejné volání proto použijete i pro každou pozdější změnu.\n\n```bash\ncurl -X POST https://api.brani.cz/order/upsert \\\n  -H \"Authorization: Bearer $BRANI_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"data\": {\n      \"code\": \"2024001234\",\n      \"creationTime\": \"2024-05-06T10:15:00+02:00\",\n      \"email\": \"jan.novak@example.com\",\n      \"phone\": \"+420604600444\",\n      \"status\": { \"id\": 2 },\n      \"shippingGuid\": \"6d33d5bc-0b65-4284-9c1a-dcd7a4f4d31c\",\n      \"paymentMethodGuid\": \"08962fe8-ea34-4f69-be75-b62ef1dcac2f\",\n      \"billingMethodCode\": 1,\n      \"paid\": false,\n      \"price\": { \"toPay\": \"1290.00\", \"withVat\": \"1290.00\", \"currencyCode\": \"CZK\" },\n      \"deliveryAddress\": {\n        \"fullName\": \"Jan Novák\",\n        \"street\": \"Příčná\",\n        \"houseNumber\": \"21\",\n        \"city\": \"Brno\",\n        \"zip\": \"602 00\",\n        \"countryCode\": \"CZ\"\n      },\n      \"billingAddress\": {\n        \"fullName\": \"Jan Novák\",\n        \"street\": \"Příčná\",\n        \"houseNumber\": \"21\",\n        \"city\": \"Brno\",\n        \"zip\": \"602 00\",\n        \"countryCode\": \"CZ\"\n      },\n      \"notes\": { \"customerRemark\": \"Prosím zvonit dvakrát\" },\n      \"items\": [\n        {\n          \"itemType\": \"product\",\n          \"code\": \"2017000092\",\n          \"name\": \"Medvídek na zeď\",\n          \"variantName\": \"Bílý\",\n          \"amount\": \"1\",\n          \"amountUnit\": \"ks\",\n          \"weight\": \"0.434\",\n          \"itemPriceWithVat\": \"1290.00\",\n          \"vatRate\": \"21\",\n          \"ean\": \"5523678544\"\n        }\n      ]\n    }\n  }'\n```\n\nOdpověď `200`:\n\n```json\n{ \"detail\": \"Uspesne ulozeno\" }\n```\n\nObjednávka se objeví v Baliči ve stavu *K expedici* a obsluha ji může vychystat a zabalit.\n\n### 5. Nechte si posílat, co se s objednávkou děje\n\nZaregistrujte webhook a Brani vám bude posílat události – zabalení, číslo zásilky, změnu stavu:\n\n```bash\ncurl -X POST https://api.brani.cz/webhook \\\n  -H \"Authorization: Bearer $BRANI_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{ \"event_type\": \"package_number\", \"url\": \"https://www.muj-eshop.cz/brani/webhook\" }'\n```\n\nPodrobnosti (typy událostí, formát, opakování) najdete v kapitole [Webhooky](#webhooky) níže.\n\n### Totéž v Pythonu\n\n```python\nimport os\nimport requests\n\nAPI = \"https://api.brani.cz\"\nsession = requests.Session()\nsession.headers[\"Authorization\"] = f\"Bearer {os.environ['BRANI_TOKEN']}\"\n\n# číselníky (první volání u nového e-shopu), pak kontrola\nciselniky = {\"data\": {\"orderStatuses\": {\"statuses\": [{\"id\": 1, \"name\": \"Přijato\"}]}, \"...\": \"...\"}}\nsession.post(f\"{API}/eshop/info\", json=ciselniky, timeout=30).raise_for_status()\ninfo = session.get(f\"{API}/eshop/info\", timeout=30)\ninfo.raise_for_status()\nprint(info.json()[\"summary\"][\"eshop_name\"])\n\n# objednávka (založení i každá další změna)\norder = {\"data\": {\"code\": \"2024001234\", \"creationTime\": \"2024-05-06T10:15:00+02:00\", \"...\": \"...\"}}\nresp = session.post(f\"{API}/order/upsert\", json=order, timeout=30)\nif resp.status_code == 422:\n    print(resp.json()[\"detail\"])  # co přesně neprošlo validací\nresp.raise_for_status()\n```\n\n## Autentizace\n\nKaždý požadavek (kromě této stránky a `openapi.json`) musí nést API token:\n\n```http\nAuthorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...\n```\n\n- **Token = jeden e-shop.** Máte-li více e-shopů, vystavte token pro každý zvlášť. Všechna data\n  se automaticky vztahují k e-shopu tokenu; `eshop_id` v požadavcích nikde neposíláte.\n- Token může být omezen jen na část API. Volání mimo povolený rozsah vrátí `401`.\n- Token nemá pevnou expiraci; platí, dokud ho na app.brani.cz nedeaktivujete.\n- Tokeny neposílejte v URL. Z historických důvodů API přijímá i parametr `?bearer=<token>`,\n  ale takový token skončí v logách proxy serverů – používejte hlavičku.\n\n| Stav | Význam |\n| --- | --- |\n| `403 Not authenticated` | Hlavička `Authorization` chybí nebo nemá tvar `Bearer <token>`. |\n| `401 Invalid JWT token` | Token je poškozený nebo nebyl vystaven Brani. |\n| `401 Token was invalidated` | Token byl na app.brani.cz deaktivován. |\n| `401 Token provided doesn't have permission to access this resource` | Token má omezený rozsah a tento endpoint do něj nespadá. |\n\n## Konvence\n\n**Cesty.** Endpointy fungují s lomítkem na konci i bez něj ([`/stock/supplies`](#tag/brani-sklad/GET/stock/supplies) = [`/stock/supplies/`](#tag/brani-sklad/GET/stock/supplies)).\nV dokumentaci uvádíme tvar bez lomítka.\n\n**Data.**\n\n- Datum a čas posílejte v ISO 8601 včetně zóny (`2024-05-06T10:15:00+02:00`). Čas bez zóny\n  bereme jako `Europe/Prague`.\n- Částky a množství u objednávek jsou **řetězce** s desetinnou tečkou (`\"1290.00\"`, `\"0.434\"`),\n  aby nedocházelo k zaokrouhlovacím chybám. Číslo přijmeme také, ale převedeme ho na řetězec.\n- GUID (dopravy, platby, produkty) je UUID; místo něj lze poslat i číselné ID jako řetězec,\n  doplníme ho nulami na UUID.\n- Kódy zemí jsou ISO 3166‑1 alpha‑2 (`CZ`, `SK`), měny ISO 4217 (`CZK`, `EUR`).\n\n**Stránkování.** Seznamy přijímají `page` (od 1) a `items_per_page` (nejčastěji max. 100)\na vracejí `total_items`, `page`, `items_per_page` a `items_on_current_page`. Historie webhooků\npoužívá `page_number` místo `page`.\n\n**Úspěšné zápisy** vracejí `200` a krátký popis:\n\n```json\n{ \"detail\": \"Uspesne ulozeno\" }\n```\n\n**Chyby** vracejí odpovídající HTTP stav a pole `detail`. U validace (`422`) je `detail` seznam\ns cestou k chybnému poli:\n\n```json\n{\n  \"detail\": [\n    {\n      \"type\": \"missing\",\n      \"loc\": [\"body\", \"data\", \"price\", \"currencyCode\"],\n      \"msg\": \"Field required\",\n      \"input\": { \"toPay\": \"1290.00\", \"withVat\": \"1290.00\" }\n    }\n  ]\n}\n```\n\n| Stav | Kdy |\n| --- | --- |\n| `400` | Požadavek nedává smysl (např. `packed_date_from` je po `packed_date_to`, nahraný soubor není PDF). |\n| `401` / `403` | Problém s tokenem, viz Autentizace. `403` také když e-shop nemá aktivní doplněk, který endpoint vyžaduje. |\n| `404` | Objednávka, produkt, doklad nebo webhook s daným identifikátorem neexistuje, případně e-shop nemá aktivní Balič. |\n| `406` | Historie webhooků: pro zadané filtry nejsou žádné záznamy. |\n| `422` | Tělo nebo parametry neodpovídají schématu – v `detail` je přesné místo. |\n| `5xx` | Chyba na naší straně. Požadavek zopakujte s odstupem; pokud problém trvá, napište nám. |\n\n**Idempotence.** [`POST /order/upsert`](#tag/objednávky/POST/order/upsert), [`POST /eshop/info`](#tag/číselníky-e-shopu/POST/eshop/info), [`POST /products`](#tag/produkty/POST/products/) a další „upsert“\nendpointy lze bezpečně volat opakovaně se stejnými daty. Při výpadku sítě tedy požadavek\nprostě zopakujte.\n\n**Doplňky.** Část API patří k doplňkům (Balič, Sklad, Vydané objednávky, Výroba, Digitální\nprodukty). Endpointy doplňku fungují jen pro e-shop, který má doplněk aktivní; jinak vrací\n`403` nebo `404` s vysvětlením v `detail`.\n\n## Typický scénář: napojení e-shopu na Balič\n\n1. **Číselníky** – jednou nahrajte stavy objednávek, dopravy a platby ([`POST /eshop/info`](#tag/číselníky-e-shopu/POST/eshop/info)).\n   Opakujte při každé změně v e-shopu.\n2. **Objednávky** – při vytvoření a při každé změně zavolejte [`POST /order/upsert`](#tag/objednávky/POST/order/upsert).\n   Stornované objednávky odstraňte přes [`DELETE /order/delete`](#tag/objednávky/DELETE/order/delete), případně je přepněte do\n   stavu, který v Baliči nefiltrujete.\n3. **Faktury** – pokud má obsluha při balení tisknout fakturu, nahrajte PDF přes\n   [`POST /order/invoice`](#tag/objednávky/POST/order/invoice).\n4. **Zpětná vazba** – zaregistrujte webhooky `status_change`, `package_number` a `balic_packed`\n   a v e-shopu podle nich přepínejte stav objednávky a ukládejte číslo zásilky.\n   Alternativně stav sledujte dotazem na [`GET /balic/packed_orders`](#tag/brani-balič/GET/balic/packed_orders).\n5. **Dopravci** – potřebujete-li u konkrétní objednávky jinou službu dopravce (např. večerní\n   doručení), nastavte ji přes [`POST /carriers/order-attributes`](#tag/dopravci/POST/carriers/order-attributes); sledování zásilky vrací\n   [`POST /carriers/track-order`](#tag/dopravci/POST/carriers/track-order).\n\n## Typický scénář: napojení na Sklad\n\nSklad pracuje s produkty a jejich kódy, ne s objednávkami. Endpointy vyžadují e-shop\ns aktivním doplňkem **Brani Sklad**.\n\n1. **Produkty** – nahrajte katalog. Pro jednotlivé produkty a průběžné změny slouží\n   [`POST /products`](#tag/produkty/POST/products/) (podle `guid` produkt založí, nebo aktualizuje), pro první import\n   celého katalogu [`POST /products/snapshots/import`](#tag/produkty/POST/products/snapshots/import) (gzip JSONL, jeden produkt na řádek,\n   stejný tvar) a [`GET /products/snapshots`](#tag/produkty/GET/products/snapshots) pro sledování zpracování.\n\n   ```bash\n   curl -X POST https://api.brani.cz/products \\\n     -H \"Authorization: Bearer $BRANI_TOKEN\" \\\n     -H \"Content-Type: application/json\" \\\n     -d '{\n       \"guid\": \"747fb32d-73bc-11e8-8216-002590dad85e\",\n       \"name\": \"Chytré hodinky\",\n       \"creationTime\": \"2024-02-15T12:00:00+01:00\",\n       \"changeTime\": \"2024-05-06T15:30:00+02:00\",\n       \"visibility\": \"visible\",\n       \"variants\": [\n         { \"code\": \"HOD-44\", \"name\": \"44 mm\", \"weight\": \"0.459\", \"ean\": \"8594001234567\" },\n         { \"code\": \"HOD-40\", \"name\": \"40 mm\", \"weight\": \"0.412\" }\n       ]\n     }'\n   ```\n\n   Kód varianty (`variants[].code`) je identifikátor, se kterým pak pracuje celý Sklad i Balič –\n   musí odpovídat kódům položek v objednávkách.\n\n2. **Zásoby** – aktuální stav po pozicích vrací [`GET /stock/supplies`](#tag/brani-sklad/GET/stock/supplies) (filtr `productCode`),\n   skladové nároky vůči e-shopu [`GET /stock/claims`](#tag/brani-sklad/GET/stock/claims), historii pohybů [`GET /stock/movements`](#tag/brani-sklad/GET/stock/movements)\n   (`dateFrom`, `dateUntil`, `productCode`, `movement_document_id`). Pro synchronizaci stavu do\n   e-shopu doporučujeme pravidelně číst pohyby od posledního zpracovaného času, ne přepočítávat\n   celý sklad.\n\n3. **Naskladnění a korekce** – zásobu na konkrétní pozici nastavíte nebo přičtete přes\n   [`POST /stock/inventory`](#tag/brani-sklad/POST/stock/inventory) (`mode: \"set\" | \"add\"`, pozice musí existovat), množství a pozici\n   produktu z pohledu e-shopu přes [`POST /stock/set_eshop_amounts`](#tag/brani-sklad/POST/stock/set_eshop_amounts). Rozložení skladu (sektory,\n   pozice) vrací [`GET /stock/sectors`](#tag/brani-sklad/GET/stock/sectors) a [`GET /stock/locations`](#tag/brani-sklad/GET/stock/locations).\n\n4. **Doklady** – příjemky, výdejky a další doklady mají typy podle [`GET /stock/document_types`](#tag/brani-sklad/GET/stock/document_types).\n   Doklad založíte přes [`POST /stock/movement_documents`](#tag/brani-sklad/POST/stock/movement_documents) (volitelně rovnou s produkty a cenami),\n   seznam s filtry (typ, datum, číslo dokladu, objednávky nebo balíku, stav) vrací\n   [`GET /stock/movement_documents`](#tag/brani-sklad/GET/stock/movement_documents), detail včetně produktů, cen, pohybů a příloh\n   [`GET /stock/movement_documents/{document_id}`](#tag/brani-sklad/GET/stock/movement_documents/{document_id}).\n\n   ```bash\n   curl -X POST https://api.brani.cz/stock/movement_documents \\\n     -H \"Authorization: Bearer $BRANI_TOKEN\" \\\n     -H \"Content-Type: application/json\" \\\n     -d '{\n       \"document_type_id\": 1,\n       \"document_number\": \"PR-2024-0031\",\n       \"comment\": \"Dodávka od výrobce\",\n       \"products\": [\n         { \"product_code\": \"HOD-44\", \"amount\": 20, \"standard_price\": 1490.00 },\n         { \"product_code\": \"HOD-40\", \"amount\": 10, \"standard_price\": 1390.00 }\n       ]\n     }'\n   ```\n\n5. **Přílohy dokladů** – soubory (faktura dodavatele, dodací list) nahrajete přes\n   [`POST /stock/movement_documents/{document_id}/upload`](#tag/brani-sklad/POST/stock/movement_documents/{document_id}/upload), jednotlivě stáhnete přes\n   [`GET /stock/movement_documents/{document_id}/download/{file_id}`](#tag/brani-sklad/GET/stock/movement_documents/{document_id}/download/{file_id}) a všechny najednou jako ZIP\n   přes [`GET /stock/movement_documents/{document_id}/download-all`](#tag/brani-sklad/GET/stock/movement_documents/{document_id}/download-all).\n\n6. **Zpětná vazba** – abyste nemuseli doklady dokola stahovat, zaregistrujte webhooky\n   `movement_document_created` a `movement_document_updated`; při inventuře pak\n   `inventory_check_completed`. Detail dokladu si po události dotáhněte podle `document_id`\n   z payloadu.\n\nNákupní objednávky dodavatelům (doplněk *Vydané objednávky*) mají vlastní endpointy\n[`GET /stock/purchase_orders`](#tag/brani-sklad/GET/stock/purchase_orders) a [`POST /stock/purchase_orders`](#tag/brani-sklad/POST/stock/purchase_orders); příjemku k nim navážete přes\n[`POST /stock/purchase_orders/{purchase_order_id}/link_to_receipt/{document_id}`](#tag/brani-sklad/POST/stock/purchase_orders/{purchase_order_id}/link_to_receipt/{document_id}).\n\n## Webhooky\n\nWebhook je URL na vaší straně, na kterou Brani pošle HTTP `POST`, kdykoli nastane vybraná\nudálost. Registrujete ho přes [`POST /webhook`](#tag/webhooky/POST/webhook) – jednu URL pro každý typ události.\n\n### Objednávkové události\n\nVznikají v Baliči nad konkrétní objednávkou.\n\n| `event_type` | Kdy vzniká | Specifické pole |\n| --- | --- | --- |\n| `status_change` | Obsluha nebo automatika změnila stav objednávky. | `event_status_id` – ID stavu z vašich číselníků |\n| `package_number` | K objednávce byl vytvořen přepravní štítek. | `event_package_number` – číslo zásilky pro sledování |\n| `balic_packed` | Objednávka byla zabalena. | – |\n| `balic_picked` | Objednávka byla vychystána (picking dokončen). | – |\n| `shipping_change` | U objednávky se změnila doprava. | – |\n| `added_to_cart` | Objednávka byla přidána na vychystávací vozík. | – |\n| `order_history` | Do historie objednávky přibyl záznam (zabalení, přepnutí stavu, …). | `event_order_history` – text záznamu |\n\nObjednávkové události posíláme jako `application/x-www-form-urlencoded` – hodnoty jsou tedy\nvždy řetězce. Společná pole: `event_id`, `eshop_id`, `eshop_name`, `event_type`,\n`event_creation`, `order_code`; k nim přibývá pole specifické pro typ události:\n\n```\nevent_id=11&eshop_id=3256&eshop_name=brani.cz&event_type=package_number\n&event_creation=2023-03-09+13%3A46%3A12&order_code=2022000040\n&event_package_number=DR15041150382M\n```\n\n### Všeobecné události\n\nVznikají ve Skladu a v dalších doplňcích; nevážou se na jednu objednávku.\n\n| `event_type` | Kdy vzniká |\n| --- | --- |\n| `movement_document_created` | Ve Skladu vznikl nový doklad (příjemka, výdejka, …). |\n| `movement_document_updated` | Doklad byl změněn. |\n| `inventory_check_completed` | Byla dokončena inventura. |\n| `personal_pickup_stored` | Objednávka pro osobní odběr byla uložena na výdejní pozici. |\n| `personal_pickup_issued` | Objednávka pro osobní odběr byla vydána zákazníkovi. |\n| `task_created` | Vznikl skladový úkol. |\n| `task_assigned` | Skladový úkol byl přiřazen pracovníkovi. |\n| `task_status_changed` | Změnil se stav skladového úkolu. |\n\nVšeobecné události posíláme jako JSON; obsah `data` závisí na typu události:\n\n```json\n{\n  \"event_id\": 4821,\n  \"event_type\": \"movement_document_created\",\n  \"eshop_id\": 3256,\n  \"created_at\": \"2024-05-06T10:15:00\",\n  \"data\": { \"document_id\": 9134, \"document_number\": \"PR-2024-0031\" }\n}\n```\n\n### Doručení a opakování\n\n- Vaše URL musí odpovědět stavem **2xx** – u všeobecných událostí do **10 s**. Cokoli jiného\n  (jiný stav, timeout, chyba spojení) bereme jako neúspěch.\n- Neúspěšné doručení opakujeme, celkem nejvýše **5 pokusů**; u všeobecných událostí\n  s rozestupem 5 minut. Poté událost označíme jako `failed`.\n- Odpovídejte rychle (klidně `202 Accepted`) a zpracování si zařaďte do fronty; složitou\n  logiku v obsluze webhooku nedělejte.\n- Doručení může přijít výjimečně dvakrát – deduplikujte podle `event_id`.\n- Historii doručení včetně chybových stavů získáte z [`GET /webhook/events/{webhook_id}`](#tag/webhooky/GET/webhook/events/{webhook_id})\n  (objednávkové) a [`GET /webhook/events/general/{webhook_id}`](#tag/webhooky/GET/webhook/events/general/{webhook_id}) (všeobecné). Hodí se při\n  ladění integrace i pro dohledání událostí, které vám unikly během výpadku.\n\n## Změny a zpětná kompatibilita\n\n- Nová pole a nové endpointy přidáváme bez ohlášení – ignorujte pole, která neznáte.\n- Odebrání nebo změnu významu pole ohlašujeme předem e-mailem na kontakt uvedený u tokenu.\n- Endpointy ukončeného doplňku *Nákupní seznamy* byly z této dokumentace odebrány.\n\n## Podpora\n\nPište na [support@brani.cz](mailto:support@brani.cz). Pomůže nám, když uvedete ID e-shopu\n(`summary.eshop_id` z [`GET /eshop/info`](#tag/číselníky-e-shopu/GET/eshop/info)), volaný endpoint, čas požadavku a tělo odpovědi.\n","contact":{"name":"Brani.cz","url":"https://www.brani.cz/","email":"support@brani.cz"},"version":"1.0"},"paths":{"/eshop/info":{"get":{"tags":["Číselníky e-shopu"],"summary":"Načte číselníky e-shopu","description":"Vrátí aktuálně uložené **stavy objednávek**, **dopravy** a **platební metody** e-shopu, ke kterému patří token, plus souhrn (`summary`) o e-shopu a jeho skladu.\n\nHodí se pro kontrolu, co Brani o vašem e-shopu ví, a pro ověření, že token funguje.","operationId":"Ziskava_informaci_o_eshope_eshop_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/eshopInfoResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Pro dane eshop_id a module neexistuji zadne zaznamy"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["Číselníky e-shopu"],"summary":"Nahraje číselníky e-shopu","description":"Nahraje (přepíše) číselníky, na které se pak odkazují objednávky:\n\n- **Stavy objednávek** – `id` je vaše ID stavu (na něj se odkazuje `status.id` v objednávce a vracíme ho ve webhooku `status_change`), `name` je název zobrazený obsluze v Baliči.\n- **Dopravy** – zvlášť pro maloobchod (`retail`) a velkoobchod (`wholesale`). Každá má `guid` (vaše ID dopravy) a `name`. Podle dopravy se tisknou přepravní štítky a filtrují objednávky.\n- **Platby** – stejná struktura jako dopravy; slouží k filtrování objednávek a rozpoznání dobírky.\n\nGUID musí být unikátní napříč retail i wholesale. Pokud nemáte UUID, pošlete číselné ID – převedeme ho na UUID doplněné nulami (viz Konvence v úvodu).\n\nEndpoint volejte při napojení a pak vždy, když v e-shopu přibude nebo se přejmenuje stav, doprava nebo platba.","operationId":"Aktualizace_informaci_o_eshope_eshop_info_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/eshopModel"}}},"required":true},"responses":{"200":{"description":"Uloženo","content":{"application/json":{"schema":{},"example":{"detail":"Uspesne ulozeno"}}}},"401":{"description":"Neplatný, expirovaný nebo deaktivovaný token","content":{"application/json":{"example":{"detail":"Invalid JWT token"}}}},"422":{"description":"Tělo požadavku neodpovídá schématu","content":{"application/json":{"example":{"detail":"Request body nesedi podle schematu"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Hodnota eshop_id v tokenu neexistuje v databazi"}}}}},"security":[{"HTTPBearer":[]}]}},"/order/upsert":{"post":{"tags":["Objednávky"],"summary":"Vytvoří nebo aktualizuje objednávku","description":"Hlavní endpoint pro předání objednávky do Brani. Volejte ho při vytvoření objednávky i při každé její změně (stav, adresa, položky, zaplaceno…).\n\n**Jak se objednávka páruje**\n\n- Identifikátorem je `code` (číslo objednávky ve vašem systému). Pokud objednávka s tímto kódem existuje, aktualizuje se; jinak se založí nová.\n- `status.id` musí být jedno z ID stavů, které jste nahráli přes [`POST /eshop/info`](#tag/číselníky-e-shopu/POST/eshop/info).\n- `shippingGuid` a `paymentMethodGuid` musí odpovídat GUID doprav a plateb z [`POST /eshop/info`](#tag/číselníky-e-shopu/POST/eshop/info).\n- Dobírku označíte `billingMethodCode: 1`; částka dobírky se bere z `price.toPay`, hodnota pro pojištění zásilky z `price.withVat`.\n- `creationTime` nesmí být v budoucnosti; čas bez zóny bereme jako Europe/Prague.\n- `items[].itemId` musí být v rámci objednávky unikátní (nepovinné, dogenerujeme).\n\nTělo přijímá dva tvary: **obecný** (`orderModel`) a **Shoptet** (`newShoptetOrderModel`, 1:1 se strukturou Shoptet API). Pokud nejste Shoptet, používejte obecný tvar.","operationId":"Upsert_objednavky_order_upsert_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/orderModel"},{"$ref":"#/components/schemas/newShoptetOrderModel"}],"title":"Orderdata"}}},"required":true},"responses":{"200":{"description":"Uloženo","content":{"application/json":{"schema":{},"example":{"detail":"Uspesne ulozeno"}}}},"401":{"description":"Neplatný, expirovaný nebo deaktivovaný token","content":{"application/json":{"example":{"detail":"Invalid JWT token"}}}},"422":{"description":"Tělo požadavku neodpovídá schématu","content":{"application/json":{"example":{"detail":"Request body nesedi podle schematu"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Hodnota eshop_id v tokenu neexistuje v databazi"}}}}},"security":[{"HTTPBearer":[]}]}},"/order/delete":{"delete":{"tags":["Objednávky"],"summary":"Smaže objednávku na základě jejího kódu","operationId":"Smazání_objednávky_order_delete_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_code","in":"query","required":true,"schema":{"type":"string","title":"Order Code"}}],"responses":{"200":{"description":"Successfuly updated","content":{"application/json":{"schema":{},"example":{"detail":"Uspesne smazano"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"example":{"detail":"Request body nesedi podle schematu"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Objednávka s kodem: <order_code> nebyla v databazi nalezena"}}}}}}},"/order/invoice":{"get":{"tags":["Objednávky"],"summary":"Stažení faktury k objednávce","operationId":"Stáhnutí_faktury_k_objednávce_order_invoice_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_code","in":"query","required":true,"schema":{"type":"string","title":"Order Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Faktura k objednavce s kódem: <order_code> nebyla nalezena"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Objednávky"],"summary":"Nahrání faktury k objednávce","operationId":"Nahrání_faktury_k_objendávce_order_invoice_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_code","in":"query","required":true,"schema":{"type":"string","title":"Order Code"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_Nahr_n__faktury_k_objend_vce_order_invoice_post"}}}},"responses":{"200":{"description":"Successfuly saved","content":{"application/json":{"schema":{},"example":{"detail":"Uspesne ulozeno"}}}},"400":{"description":"Bad Request","content":{"application/json":{"example":{"detail":"Nahrany soubor neni PDF"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Objednavka s kodem: <order_code> v databazi neexistuje"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Objednávky"],"summary":"Smazání faktury k objednávce","operationId":"Smazání_faktury_k_objednávce_order_invoice_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_code","in":"query","required":true,"schema":{"type":"string","title":"Order Code"}}],"responses":{"200":{"description":"Successfuly deleted","content":{"application/json":{"schema":{},"example":{"detail":"Uspesne smazano"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Objednavka s kodem: <order_code> v databazi neexistuje"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/order/customs":{"post":{"tags":["Objednávky"],"summary":"Celní údaje položek objednávky","operationId":"Data_pro_clo_order_customs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_Data_pro_clo_order_customs_post"}}},"required":true},"responses":{"200":{"description":"Successfuly saved","content":{"application/json":{"schema":{},"example":{"detail":"Uspesne ulozeno"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Pro zadanou kombinaci order_code: <order_code> a product_code: <product_code> nebyly v databazi nalezeny zadne zaznamy"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/order/priority":{"post":{"tags":["Objednávky"],"summary":"Nastavení priority objednávek","description":"Nastaví prioritu objednávek. Priorita může být 0 (žádná), 1 (nízká), 2 (střední) nebo 3 (vysoká).","operationId":"Změna_priority_objednávky_order_priority_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderPrioritiesRequest"}}},"required":true},"responses":{"200":{"description":"Successfully updated","content":{"application/json":{"schema":{},"example":{"detail":"Priorita objednávky byla úspěšně změněna"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Objednávka nebyla nalezena"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"example":{"detail":"Request body nesedi podle schematu"}}}}},"security":[{"HTTPBearer":[]}]}},"/order/ordering":{"post":{"tags":["Objednávky"],"summary":"Hromadné nastavení řazení objednávek","description":"Nastaví číslo pro řazení (`ordering_number`) pro seznam objednávek. Objednávky s nižším číslem se v Baliči zobrazují dříve. Objednávky s prioritou (`priority > 0`) mají vždy přednost před řazením podle `ordering_number`. Hodnota `0` znamená, že řazení není nastaveno.","operationId":"Nastavení_řazení_objednávek_order_ordering_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderOrderingRequest"}}},"required":true},"responses":{"200":{"description":"Successfully updated","content":{"application/json":{"schema":{},"example":{"detail":"Řazení objednávek bylo úspěšně uloženo"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Některé objednávky nebyly nalezeny"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"example":{"detail":"Request body nesedi podle schematu"}}}}},"security":[{"HTTPBearer":[]}]}},"/order/org-tags":{"get":{"tags":["Objednávky"],"summary":"Získání všech tagů pro organizaci","operationId":"get_org_tags_order_org_tags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgTagsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/order/order-tags":{"post":{"tags":["Objednávky"],"summary":"Nastavení jedného tagu objednávek pro aktuální e-shop","operationId":"add_order_tags_order_order_tags_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTagsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOrderTagsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["Objednávky"],"summary":"Smaže tagy objednávek pro aktuální e-shop","operationId":"unset_order_tags_order_order_tags_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderTagsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveOrderTagsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/order/order-tags/{order_code}":{"get":{"tags":["Objednávky"],"summary":"Získání tagů objednávky","operationId":"get_order_tags_order_order_tags__order_code__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_code","in":"path","required":true,"schema":{"type":"string","title":"Order Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgTagsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook":{"get":{"tags":["Webhooky"],"summary":"Seznam registrovaných webhooků","description":"Vrátí všechny webhooky registrované pro e-shop tokenu – jejich `id`, typ události a URL.","operationId":"Výpis_registrovaných_webhooků_webhook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook_url_list"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Zadane eshop_id nebylo v databazi nalezeno"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["Webhooky"],"summary":"Registrace webhooku","description":"Zaregistruje URL, na kterou budeme posílat události typu `event_type`. Pro každý typ události registrujte jednu URL (HTTPS). Přehled typů událostí, formát doručení a politiku opakování najdete v kapitole **Webhooky** v úvodu dokumentace.","operationId":"Registrace_nového_webhooku_webhook_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_Registrace_nov_ho_webhooku_webhook_post"}}},"required":true},"responses":{"200":{"description":"Uloženo","content":{"application/json":{"schema":{},"example":{"detail":"Uspesne ulozeno"}}}},"401":{"description":"Neplatný, expirovaný nebo deaktivovaný token","content":{"application/json":{"example":{"detail":"Invalid JWT token"}}}},"422":{"description":"Tělo požadavku neodpovídá schématu","content":{"application/json":{"example":{"detail":"Request body nesedi podle schematu"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Zadane eshop_id nebylo v databazi nalezeno"}}}}},"security":[{"HTTPBearer":[]}]}},"/webhook/{webhook_id}":{"delete":{"tags":["Webhooky"],"summary":"Smazání webhooku","description":"Smaže webhook podle jeho `id` (viz seznam webhooků). Události pro něj se přestanou generovat.","operationId":"Smazání_registrovaného_webhooku_webhook__webhook_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"responses":{"200":{"description":"Successfuly deleted","content":{"application/json":{"schema":{},"example":{"detail":"Webhook s webhook_id: <webhook_id> byl uspesne smazan"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Zadane eshop_id nebylo v databazi nalezeno"}}}},"406":{"description":"Not found","content":{"application/json":{"example":{"detail":"Webhook_id: <webhook_id> nebylo v databazi nalezeno"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"example":{"detail":"Request body nesedi podle schematu"}}}}}},"patch":{"tags":["Webhooky"],"summary":"Změna URL webhooku","description":"Změní cílovou URL existujícího webhooku. Typ události zůstává stejný.","operationId":"Aktualizace_URL_webhooku_webhook__webhook_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_Aktualizace_URL_webhooku_webhook__webhook_id__patch"}}}},"responses":{"200":{"description":"Successfuly updated","content":{"application/json":{"schema":{},"example":{"detail":"Webhook url s webhook_id: <webhook_id> bylo uspesne upraveno"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Zadane eshop_id nebylo v databazi nalezeno"}}}},"406":{"description":"Not found","content":{"application/json":{"example":{"detail":"Webhook_id: <webhook_id> nebylo v databazi nalezeno"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"example":{"detail":"Request body nesedi podle schematu"}}}}}}},"/webhook/events/{webhook_id}":{"get":{"tags":["Webhooky"],"summary":"Historie objednávkových událostí","description":"Vrací eventy z **objednávkové (order)** fronty eventů pro zadaný `webhook_id`.\n\n**Tento endpoint je určen jen pro eventy:**\n- `shipping_change, order_history, balic_packed, package_number, added_to_cart, balic_picked, status_change`\n\nPro všeobecné eventy (`task_created, personal_pickup_issued, personal_pickup_stored, movement_document_updated, task_assigned, task_status_changed, movement_document_created, inventory_check_completed`) použijte endpoint: **GET /webhook/events/general/{webhook_id}**.","operationId":"Výpis_objednávkových_eventů_pro_webhook_webhook_events__webhook_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"default":"2001-01-01 01:01:01","title":"From Date"}},{"name":"inverted","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Inverted"}},{"name":"page_number","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"Page Number"}},{"name":"items_per_page","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Items Per Page"}},{"name":"only_failed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Only Failed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Events_response"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Pro zadane webhook_id nebyly nalezeny zadne vysledeky"}}}},"406":{"description":"Not found","content":{"application/json":{"example":{"detail":"Pro zadane parametry nebyly v databazi nalezeny zadne zaznamy"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"example":{"detail":"Request body nesedi podle schematu"}}}}}}},"/webhook/events/{webhook_id}/xml":{"get":{"tags":["Webhooky"],"summary":"Historie objednávkových událostí (XML)","description":"Vrací eventy z objednávkové (order) fronty pro zadaný `webhook_id` ve formátu XML.\n\nTento endpoint je určen pouze pro objednávkové eventy:\n- shipping_change, order_history, balic_packed, package_number, added_to_cart, balic_picked, status_change\n\nQuery parametry:\n- from_date: eventy vytvořené od zadaného data\n- inverted: obrátí pořadí řazení (standardně od nejnovějších)\n- only_failed: zobrazí pouze neúspěšně zpracované eventy","operationId":"Výpis_objednávkových_eventů_pro_webhook__XML__webhook_events__webhook_id__xml_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From Date"}},{"name":"inverted","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Inverted"}},{"name":"only_failed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Only Failed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"404":{"description":"Not found","content":{"application/json":{"example":{"detail":"Pro zadane webhook_id nebyly nalezeny zadne vysledeky"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/events/general/{webhook_id}":{"get":{"tags":["Webhooky"],"summary":"Historie všeobecných událostí","description":"Vrací eventy z **general** fronty eventů pro zadaný `webhook_id`.\n\n**Tento endpoint je určen jen pro eventy:**\n- `task_created, personal_pickup_issued, personal_pickup_stored, movement_document_updated, task_assigned, task_status_changed, movement_document_created, inventory_check_completed`\n\nPro objednávkové eventy (`shipping_change, order_history, balic_packed, package_number, added_to_cart, balic_picked, status_change`) použijte endpoint: **GET /webhook/events/{webhook_id}**.","operationId":"Výpis_všeobecných_eventů_pro_webhook_webhook_events_general__webhook_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"integer","title":"Webhook Id"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"default":"2001-01-01 01:01:01","title":"From Date"}},{"name":"inverted","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Inverted"}},{"name":"page_number","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"Page Number"}},{"name":"items_per_page","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Items Per Page"}},{"name":"only_failed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Only Failed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralEventsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/carriers/track-order":{"post":{"tags":["Dopravci"],"summary":"Sledování zásilky podle kódu objednávky","description":"Sledování zásilky podle kódu objednávky.\n\nEndpoint automaticky najde přiřazené tracking číslo k objednávce a vrátí aktuální stav zásilky od dopravce.\n\n## Response Format\n\nOdpověď obsahuje tracking informace ve dvou formátech:\n\n### `brani_tracking` (unified format)\nStandardizovaný formát pro všechny dopravce:\n- `name`: Popis stavu v češtině\n- `date`: Datum a čas stavu (YYYY-MM-DD HH:MM:SS)\n- `status_id`: Interní ID stavu (legacy)\n- `status_id_v2`: Standardizované ID stavů (array or single value)\n\n### Dopravce-specifický format\nOriginální data od konkrétního dopravce (např. `balikobot_tracking`, `zasilkovna_tracking`)\n\n## Status ID v2 Meanings\n\nStandardizované identifikátory stavů zásilek:\n\n### Základní stavy:\n- `-1`: Objednáno\n- `0.1`: Chyba u dopravce\n- `0.2`: Chyba na straně příjemce\n- `0.3`: Chyba na straně odesilatele\n\n### Úspěšné doručení:\n- `1.1`: Vyzvednutí zásilky na výdejním místě\n- `1.2`: Doručeno na adresu\n\n### Zpracování zásilky:\n- `2.1`: Vyzvednuta u odesilatele\n- `2.2`: Transit (na cestě)\n- `2.3`: Připravena k vyzvednutí\n- `2.4`: Zpět na cestě k odesilateli\n- `2.5`: Předána koncovému dopravci\n\n### Stornování:\n- `3.1`: Storno ze strany dopravce\n- `3.2`: Storno ze strany příjemce\n- `3.3`: Storno ze strany odesilatele\n\n### Speciální stavy:\n- `4`: Doručena zpět odesilateli\n- `5`: Dobírka byla připsána na účet odesilatele","operationId":"track_order_carriers_track_order_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackOrderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response - tracking data","content":{"application/json":{"schema":{},"example":{"brani_tracking":[{"name":"Zásilka byla převzata do přepravy","date":"2025-01-15 14:30:00","status_id":2,"status_id_v2":["2.1"]}],"balikobot_tracking":[{"date":"2025-01-15 14:30:00","name_balikobot":"Zásilka byla převzata do přepravy","status_id":2,"status_id_v2":2.1,"type":"event"}]}}}},"404":{"description":"Not Found - objednávka nebyla nalezena nebo nemá tracking číslo","content":{"application/json":{"example":{"detail":"Objednavka nema pridelene trackovaci cislo"}}}},"406":{"description":"Not Acceptable - chyba od dopravce","content":{"application/json":{"example":{"detail":"Chyba API dopravce"}}}},"500":{"description":"Internal Server Error - služba není implementována","content":{"application/json":{"example":{"detail":"Sluzba nebyla implementovana"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/carriers/list-attributes":{"get":{"tags":["Dopravci"],"summary":"Seznam atributů služeb","description":"Vrací seznam atributů služeb, které jsou dostupné pro nastavení v objednávkách. Pro nastavení atributů objednávky použijte endpoint [`/carriers/order-attributes/`](#tag/dopravci/POST/carriers/order-attributes).\nPro `attribute_code` v ednpointu [`/carriers/order-attributes/`](#tag/dopravci/POST/carriers/order-attributes) použijte hodnoty \"attribute\" z v tohoto seznamu.","operationId":"list_attributes_carriers_list_attributes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAttributeResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/carriers/order-attributes":{"post":{"tags":["Dopravci"],"summary":"Nastaveni atributu sluzby pro objednavku","description":"Nastaví hodnotu atributu pro objednávku. Atribut se použije místo výchozí hodnoty v případě, že je atribut podporován danou službou.","operationId":"set_order_attributes_carriers_order_attributes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAttribute"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAttrResponse"}}}},"422":{"description":"Invalid input data - nejpravděpodobněji neplatný `attribute_code`","content":{"application/json":{"example":{"detail":"Neplatný attribute_code: %attribute_code%. Platné hodnoty získáte v endpointu /carriers/list-attributes/."}}}},"404":{"description":"Not Found - nejpravděpodobněji neplatná kombinace `eshop_id` a `order_code`","content":{"application/json":{"example":{"detail":"Objednávka nenalezena nebo nepatří k tomuto e-shopu"}}}}},"security":[{"HTTPBearer":[]}]}},"/carriers/order-attributes/{order_code}":{"get":{"tags":["Dopravci"],"summary":"Seznam atributů služby pro objednávku","description":"Vrací seznam atributů služby pro objednávku. Používá se pro zobrazení aktuálních hodnot atributů objednávky.","operationId":"get_order_attributes_carriers_order_attributes__order_code__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_code","in":"path","required":true,"schema":{"type":"string","title":"Order Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAttributesListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/carriers/order-attributes/{order_code}/{attribute_code}":{"delete":{"tags":["Dopravci"],"summary":"Smazání atributu služby pro objednávku","operationId":"delete_order_attribute_carriers_order_attributes__order_code___attribute_code__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_code","in":"path","required":true,"schema":{"type":"string","title":"Order Code"}},{"name":"attribute_code","in":"path","required":true,"schema":{"type":"string","title":"Attribute Code"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/balic/packed_orders":{"get":{"tags":["Brani Balič"],"summary":"Zabalené objednávky","description":"Vrátí stránkovaný seznam zabalených objednávek za zadané období — kdy a kdo objednávku pickoval a balil, kolik v ní bylo produktů a kusů, hmotnost, počet vygenerovaných přepravních štítků a jejich čísla, včetně seznamu štítků s URL jejich PDF. Řazeno od nejnověji zabalených.","operationId":"list_packed_orders_balic_packed_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"packed_date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Zabaleno od (exkluzivně)","examples":["2026-07-01T00:00:00"],"title":"Packed Date From"},"description":"Zabaleno od (exkluzivně)"},{"name":"packed_date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Zabaleno do (inkluzivně)","examples":["2026-07-31T23:59:59"],"title":"Packed Date To"},"description":"Zabaleno do (inkluzivně)"},{"name":"picked_date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Vypickováno od (exkluzivně)","title":"Picked Date From"},"description":"Vypickováno od (exkluzivně)"},{"name":"picked_date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Vypickováno do (inkluzivně)","title":"Picked Date To"},"description":"Vypickováno do (inkluzivně)"},{"name":"picked_by","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"ID uživatele, který objednávku pickoval","title":"Picked By"},"description":"ID uživatele, který objednávku pickoval"},{"name":"packed_by","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"ID uživatele, který objednávku balil","title":"Packed By"},"description":"ID uživatele, který objednávku balil"},{"name":"cart_number","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Číslo vozíku","title":"Cart Number"},"description":"Číslo vozíku"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Část čísla objednávky nebo čísla zásilky","title":"Search"},"description":"Část čísla objednávky nebo čísla zásilky"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Číslo stránky","default":1,"title":"Page"},"description":"Číslo stránky"},{"name":"items_per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Počet objednávek na stránku","default":50,"title":"Items Per Page"},"description":"Počet objednávek na stránku"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackedOrdersListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/balic/orders/{order_code}/labels":{"get":{"tags":["Brani Balič"],"summary":"Štítky objednávky","description":"Vrátí aktivní přepravní štítky objednávky patřící přihlášenému eshopu.","operationId":"get_order_labels_balic_orders__order_code__labels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_code","in":"path","required":true,"schema":{"type":"string","title":"Order Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PackedOrderLabelInfo"},"title":"Response Get Order Labels Balic Orders  Order Code  Labels Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/balic/storage_locations":{"get":{"tags":["Brani Balič"],"summary":"Seznam storage pozic","description":"Vrátí seznam všech storage pozic, na kterých jsou uloženy vypickované produkty objednávek pro daný eshop","operationId":"list_storage_locations_balic_storage_locations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/StorageLocationInfo"},"type":"array","title":"Response List Storage Locations Balic Storage Locations Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/balic/store_items_to_location":{"post":{"tags":["Brani Balič"],"summary":"Uložení položek objednávky na storage pozici","description":"Uloží vybrané položky objednávky na storage pozici. Pokud položky ještě nebyly vypickované, automaticky je vypickuje. Pokud již byly vypickované (ale ještě neuložené na pozici), pouze je přiřadí k storage pozici. Umožňuje ukládat objednávku po částech na různé pozice.","operationId":"store_items_to_location_balic_store_items_to_location_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreItemsToLocationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/balic/consumables":{"get":{"tags":["Brani Balič"],"summary":"Seznam spotřebního materiálu","description":"Vrátí seznam kódů produktů nastavených jako spotřební materiál pro organizaci eshopu","operationId":"list_consumables_balic_consumables_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumablesResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["Brani Balič"],"summary":"Přidat spotřební materiál","description":"Přidá produkty do per-org katalogu spotřebního materiálu","operationId":"add_consumables_balic_consumables_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumableProducts"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumablesModifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["Brani Balič"],"summary":"Odebrat spotřební materiál","description":"Odebere produkty z per-org katalogu spotřebního materiálu","operationId":"remove_consumables_balic_consumables_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumableProducts"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumablesRemoveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/digital-products/orders/{order_code}":{"get":{"tags":["Digitální produkty"],"summary":"Stav zpracování digitálních produktů pro objednávku","description":"Vrací informaci, zda byla objednávka zpracována systémem digitálních produktů. Pokud ano, vrací datum zpracování, e-mail příjemce a seznam odeslaných produktů včetně klíčů, URL a dalších detailů.","operationId":"get_digital_order_status_digital_products_orders__order_code__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_code","in":"path","required":true,"schema":{"type":"string","description":"Kód objednávky","title":"Order Code"},"description":"Kód objednávky"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalOrderStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/products/":{"post":{"tags":["Produkty"],"summary":"Vytvořit/editovat produkt","operationId":"upsert_product_products__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product-Input"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/products/list":{"get":{"tags":["Produkty"],"summary":"Seznam produktů","description":"Vrátí seznam produktů s jejich GUID a vnořenou strukturou kódů.","operationId":"list_products_products_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/products/{guid}":{"delete":{"tags":["Produkty"],"summary":"Smazat produkt dle GUID","operationId":"delete_product_products__guid__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"guid","in":"path","required":true,"schema":{"type":"string","title":"Guid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Produkty"],"summary":"Detail produktu","operationId":"product_detail_products__guid__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"guid","in":"path","required":true,"schema":{"type":"string","title":"Guid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__schemas__products__Product-Output"},{"$ref":"#/components/schemas/shoptet_schemas__product__Product"}],"title":"Response Product Detail Products  Guid  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/products/snapshots/import":{"post":{"tags":["Produkty"],"summary":"Import snapshotu produktu","description":"Importuje snapshot produktů z gzipped JSONL souboru.\n\nTento endpoint přijímá soubor obsahující seznam produktů ve formátu gzipped JSONL – jeden produkt na řádek,\nkaždý ve stejném tvaru jako tělo endpointu [`POST /products`](#tag/produkty/POST/products/) (schéma [**Product**](#datové-modely/Product-Input)). Každý záznam se validuje;\npři chybě vrací `400` se seznamem problémových řádků a podrobnostmi o chybách.\n\nPokud je soubor validní, nahraje se na úložiště a vytvoří se synchronizační úloha (snapshot job), která se\nzpracuje asynchronně. Její stav sledujte přes [`GET /products/snapshots`](#tag/produkty/GET/products/snapshots).","operationId":"import_snapshot_products_snapshots_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_snapshot_products_snapshots_import_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/products/snapshots":{"get":{"tags":["Produkty"],"summary":"Seznam snapshot jobů","operationId":"list_snapshots_products_snapshots_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SnapshotJob"},"type":"array","title":"Response List Snapshots Products Snapshots Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/products/snapshots/download/{id}":{"get":{"tags":["Produkty"],"summary":"Stáhnout snapshot","operationId":"download_snapshot_products_snapshots_download__id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/custom-products/upsert":{"post":{"tags":["Custom produkty"],"summary":"Vytvoří nebo aktualizuje custom produkt","operationId":"upsert_custom_product_endpoint_custom_products_upsert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomProductRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/custom-products/{product_guid}":{"get":{"tags":["Custom produkty"],"summary":"Vrátí detail custom produktu","operationId":"get_custom_product_endpoint_custom_products__product_guid__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_guid","in":"path","required":true,"schema":{"type":"string","title":"Product Guid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleCustomProductResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Custom produkty"],"summary":"Smaže custom produkt","operationId":"delete_custom_product_endpoint_custom_products__product_guid__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_guid","in":"path","required":true,"schema":{"type":"string","title":"Product Guid"}}],"responses":{"204":{"description":"Returns empty response with 204 status code"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/custom-products/":{"get":{"tags":["Custom produkty"],"summary":"Vrátí seznam custom produktů","operationId":"list_custom_products_endpoint_custom_products__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipleCustomProductsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/stock/supplies":{"get":{"tags":["Brani sklad"],"summary":"Skladové zásoby","description":"Vrátí seznam skladových zásob buď pro celý sklad nebo pro určitou pozici","operationId":"supplies_stock_supplies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"location_name","in":"query","required":false,"schema":{"type":"string","title":"Location Name"}},{"name":"product_code","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Product Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StockSupply"},"title":"Response Supplies Stock Supplies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/claims":{"get":{"tags":["Brani sklad"],"summary":"Skladové nároky","description":"Vrátí seznam nároků skladě","operationId":"claims_list_stock_claims_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"return_all_products","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vrátit všechny produkty včetně těch s nulovým claimem","default":false}},{"name":"stock_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID skladu (0 pro API Brani, jiné ID pro externí sklady jako Shoptet)","default":0}},{"name":"group_from_all_stock_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sečíst claims a amounts napříč všemi sklady podle kódu produktu","default":false}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StockAtEshop"},"title":"Response Claims List Stock Claims Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/movements":{"get":{"tags":["Brani sklad"],"summary":"Pohyby","description":"Seznam pohybů z Brani skladu","operationId":"movements_stock_movements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dateFrom","in":"query","required":false,"schema":{"type":"string","format":"date-time","title":"Datefrom"}},{"name":"dateUntil","in":"query","required":false,"schema":{"type":"string","format":"date-time","title":"Dateuntil"}},{"name":"fromId","in":"query","required":false,"schema":{"type":"integer","title":"Fromid"}},{"name":"clientId","in":"query","required":false,"schema":{"type":"integer","title":"Clientid"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","title":"Source"}},{"name":"movement_document_id","in":"query","required":false,"schema":{"type":"integer","title":"Movement Document Id"}},{"name":"productCode","in":"query","required":false,"schema":{"type":"string","description":"Kód produktu","title":"Productcode"},"description":"Kód produktu"},{"name":"position","in":"query","required":false,"schema":{"type":"string","description":"Cílová pozice","title":"Position"},"description":"Cílová pozice"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StockChange"},"title":"Response Movements Stock Movements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/locations":{"get":{"tags":["Brani sklad"],"summary":"Pozice a sektory","description":"Vrátí seznam všech pozic a sektorů na skladě","operationId":"locations_stock_locations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/StockLocation"},"type":"array","title":"Response Locations Stock Locations Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/stock/sectors":{"get":{"tags":["Brani sklad"],"summary":"Seznam sektorů","description":"Získá seznam sektorů s nastavením","operationId":"_list_sectors_stock_sectors_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Sector"},"type":"array","title":"Response  List Sectors Stock Sectors Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/stock/set_eshop_amounts":{"post":{"tags":["Brani sklad"],"summary":"Nastavení množství a pozice produktu v eshopu a Brani skladu","description":"Nastaví skladové množství a pozici produktu v eshopu a volitelně také v Brani skladu.\n\nTento endpoint umožňuje:\n1. Nastavit skladová množství produktu (dostupné množství, fyzické množství, nárok)\n2. Nastavit pozici produktu na skladě\n3. Volitelně synchronizovat změny do Brani skladu\n\nPoužití:\n- Pro nastavení pouze skladových množství v eshopu stačí zadat kód produktu a příslušná množství\n- Pro synchronizaci do Brani skladu nastavte sync_to_brani=True\n- V CHAOS módu Brani skladu je pozice produktu povinná\n- V BASIC módu se pozice produktu nastaví i bez synchronizace do Brani skladu\n\nParametry:\n    code: str\n        Kód produktu, pro který se mají nastavit množství nebo pozice\n\n    claim: int, volitelný\n        Skladový nárok - množství již zarezervované zákazníky\n\n    amount: int, volitelný\n        Množství dostupné k objednání\n\n    real_amount: int, volitelný\n        Skutečné fyzické množství produktu na skladě\n\n    position: str, volitelný\n        Pozice produktu na skladě. V CHAOS módu Brani skladu povinné.\n\n    sync_to_brani: bool, výchozí False\n        Určuje, zda se mají změny promítnout i do Brani skladu\n\n    create_position_if_not_exist: bool, výchozí False\n        Pokud je zapnuta synchronizace do Brani a zadaná pozice neexistuje,\n        automaticky ji vytvoří ve výchozím sektoru. Pokud ani výchozí sektor\n        neexistuje, vytvoří i ten.\n\nNávratová hodnota:\n    {\n        \"errors\": list[str]  # Seznam případných chyb nebo varování\n    }\n\nMožné chyby:\n    400:\n        - \"Nutno zadat alespoň jeden z: claim, amount, real_amount, position\"\n        - \"Brani sklad není nakonfigurován\"\n        - \"V CHAOS módu je pozice povinná\"\n        - \"Pozice {position} neexistuje\"\n\n    303:\n        - Produkt nemá založenou produktovou kartu (v errors)\n\nPříklad použití:\n```\n    POST /set_eshop_amounts/\n    {\n        \"code\": \"PRODUCT123\",\n        \"amount\": 100,\n        \"real_amount\": 120,\n        \"claim\": 20,\n        \"position\": \"A1B2\",\n        \"sync_to_brani\": true\n    }\n```","operationId":"set_eshop_amounts_stock_set_eshop_amounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_set_eshop_amounts_stock_set_eshop_amounts_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/stock/inventory":{"post":{"tags":["Brani sklad"],"summary":"Naskladnění / nastavení skladové zásoby na pozici v Brani skladu","description":"Nastaví nebo přičte skladovou zásobu produktu na zadané pozici v Brani skladu.\n\nRežimy:\n- `mode=\"set\"`: nastaví zásobu produktu na pozici na zadanou hodnotu (přepíše).\n- `mode=\"add\"`: přičte zadané množství k aktuální zásobě.\n\nPravidla:\n- Produkt musí mít založenou produktovou kartu, jinak ho do skladu nezakládáme.\n- Pozice musí existovat – pozice ani sektory se nevytváří, jinak vrátí chybu.\n- V režimu BASIC může být produkt jen na jedné pozici; pokus o naskladnění na jinou pozici skončí chybou.\n- Šarži (`batch`) lze zadat jen v režimu CHAOS a vyžaduje aktivní doplněk Šarže. Když neuvedete `name`,\n  použije se jako název datum expirace.\n- `eshop_sync` určuje, zda se pohyb synchronizuje do e-shopu.\n\nMožné chyby: produkt bez produktové karty, neexistující pozice, šarže mimo CHAOS / bez doplňku,\nnedostatek zásoby při snižování, nebo produkt už na jiné pozici v režimu BASIC (HTTP 400/403).","operationId":"set_warehouse_stock_stock_inventory_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StockInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/stock/inicializace_skladu":{"post":{"tags":["Brani sklad"],"summary":"Inicializovat sklad z csv","description":"Pozor! Smaze vsechny pozice, produkty, skladovosti a znovu inicializuje sklad z excelu.\nCSV musi obsahovat sloupce code, location (nazev pozice), amount (mnozstvi na pozici).\nEncoding utf-8, delimiter `;`","operationId":"inicializace_skladu_stock_inicializace_skladu_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_inicializace_skladu_stock_inicializace_skladu_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/stock/document_types":{"get":{"tags":["Brani sklad"],"summary":"Seznam typů dokladů","description":"Vrátí seznam typů dokladů.","operationId":"get_document_types_stock_document_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MovementDocumentType"},"type":"array","title":"Response Get Document Types Stock Document Types Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/stock/movement_documents":{"get":{"tags":["Brani sklad"],"summary":"Seznam dokladů","description":"Vrátí seznam dokladů.","operationId":"get_movement_documents_stock_movement_documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filtrovat dle ID typu dokladu","examples":[1],"title":"Document Type Id"},"description":"Filtrovat dle ID typu dokladu"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Filtrovat od data (včetně)","examples":["2024-01-01"],"title":"Date From"},"description":"Filtrovat od data (včetně)"},{"name":"date_until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Filtrovat do data (včetně)","examples":["2024-01-31"],"title":"Date Until"},"description":"Filtrovat do data (včetně)"},{"name":"document_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filtrovat dle čísla dokladu","examples":["Doc_123"],"title":"Document Number"},"description":"Filtrovat dle čísla dokladu"},{"name":"order_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filtrovat dle čísla objednávky","examples":["#1234"],"title":"Order Number"},"description":"Filtrovat dle čísla objednávky"},{"name":"package_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filtrovat dle čísla balíku","examples":["A4321"],"title":"Package Number"},"description":"Filtrovat dle čísla balíku"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filtrovat dle stavu dokladu","examples":["open"],"title":"Status"},"description":"Filtrovat dle stavu dokladu"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Zahrnout archivované doklady","examples":[false],"default":false,"title":"Include Archived"},"description":"Zahrnout archivované doklady"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Číslo stránky (počínaje 1)","examples":[2],"default":1,"title":"Page"},"description":"Číslo stránky (počínaje 1)"},{"name":"items_per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Počet dokladů na stránku","examples":[25],"default":50,"title":"Items Per Page"},"description":"Počet dokladů na stránku"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovementDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Brani sklad"],"summary":"Vytvoření nového dokladu","description":"Vytvoří nový doklad s volitelnými produkty.","operationId":"create_movement_document_stock_movement_documents_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovementDocumentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovementDocumentCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/movement_documents/{document_id}":{"get":{"tags":["Brani sklad"],"summary":"Konkrétní doklad","description":"Vrátí konkrétní doklad včetně jeho produktů a přiložených souborů.","operationId":"get_single_movement_document_stock_movement_documents__document_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleMovementDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Brani sklad"],"summary":"Editace existujícího dokladu","description":"Upraví existující doklad podle ID. Umožňuje změnit všechna pole dokladu i jeho produkty a ceny.\n\nPokud jsou v requestu zadány produkty, stávající produkty a jejich ceny budou smazány a nahrazeny novými.\nPro každý produkt lze zadat množství (amount) a/nebo cenu (standard_price):\n- Pouze množství: vytvoří se záznam očekávaného produktu\n- Pouze cena: vytvoří se záznam nákupní ceny (pouze u příjemek)\n- Obojí: vytvoří se oba záznamy","operationId":"edit_movement_document_stock_movement_documents__document_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovementDocumentEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovementDocumentEditResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/movement_documents/{document_id}/products":{"post":{"tags":["Brani sklad"],"summary":"Přidání produktů a cen k existujícímu dokladu","description":"Přidá produkty a/nebo jejich ceny k existujícímu dokladu.\nPokud již k dokladu produkty nebo ceny existují, budou smazány a nahrazeny novým seznamem.\n\nPro každý produkt lze zadat množství (amount) a/nebo cenu (standard_price):\n- Pouze množství: vytvoří se záznam očekávaného produktu\n- Pouze cena: vytvoří se záznam nákupní ceny (pouze u příjemek)\n- Obojí: vytvoří se oba záznamy","operationId":"add_products_to_document_stock_movement_documents__document_id__products_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MovementDocumentProductReq"},"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/movement_documents/{document_id}/upload":{"post":{"tags":["Brani sklad"],"summary":"Nahrání souboru","description":"Nahraje soubor k dokladu.","operationId":"upload_file_stock_movement_documents__document_id__upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_stock_movement_documents__document_id__upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/movement_documents/{document_id}/download/{file_id}":{"get":{"tags":["Brani sklad"],"summary":"Stažení souboru","description":"Stáhne soubor připojený k dokladu.","operationId":"download_file_stock_movement_documents__document_id__download__file_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/movement_documents/{document_id}/download-all":{"get":{"tags":["Brani sklad"],"summary":"Stáhnout všechny soubory pro doklad jako ZIP","description":"Stáhne všechny soubory z dokladu jako ZIP archiv.","operationId":"download_all_files_stock_movement_documents__document_id__download_all_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/movement_documents/{document_id}/delete/{file_id}":{"delete":{"tags":["Brani sklad"],"summary":"Smazání souboru","description":"Smaže soubor připojený k dokladu.","operationId":"delete_file_stock_movement_documents__document_id__delete__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/inventura":{"get":{"tags":["Brani sklad"],"summary":"Seznam inventur","operationId":"inventura_list_stock_inventura_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/inventura/{inventura_id}":{"get":{"tags":["Brani sklad"],"summary":"Detail inventury","operationId":"inventura_detail_stock_inventura__inventura_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"inventura_id","in":"path","required":true,"schema":{"type":"integer","title":"Inventura Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/order/{order_code}/picked-items":{"get":{"tags":["Brani sklad"],"summary":"Informace o vyskladněných položkách objednávky","description":"Získá informace o vyskladněných produktech, z jakých pozic a jaké šarže šly pro určitou objednávku.","operationId":"get_picked_items_for_order_stock_order__order_code__picked_items_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_code","in":"path","required":true,"schema":{"type":"string","title":"Order Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PickedProductInfo"},"title":"Response Get Picked Items For Order Stock Order  Order Code  Picked Items Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/order/{order_code}/awaiting-stock":{"get":{"tags":["Brani sklad"],"summary":"Chybějící produkty objednávky","description":"Vrátí seznam produktů, které chybí pro danou objednávku po zpracování automatizací Objednávky k expedici, spolu s informací, ze které vydané objednávky bude chybějící množství pokryto.","operationId":"get_order_awaiting_stock_stock_order__order_code__awaiting_stock_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_code","in":"path","required":true,"schema":{"type":"string","title":"Order Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAwaitingStockResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/picked-orders-by-product-batch":{"get":{"tags":["Brani sklad"],"summary":"Informace o objednávkách s vyskladněným produktem a šarží","description":"Získá informace o eshopech a objednávkách, které obsahují daný produkt a šarži ve vyskladněných položkách.","operationId":"get_picked_orders_by_product_batch_stock_picked_orders_by_product_batch_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"product_code","in":"query","required":true,"schema":{"type":"string","description":"Kód produktu","title":"Product Code"},"description":"Kód produktu"},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"ID šarže (volitelné)","title":"Batch Id"},"description":"ID šarže (volitelné)"},{"name":"batch_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Název šarže (volitelné)","title":"Batch Name"},"description":"Název šarže (volitelné)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PickedOrderInfo"},"title":"Response Get Picked Orders By Product Batch Stock Picked Orders By Product Batch Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/purchase_orders":{"get":{"tags":["Brani sklad"],"summary":"Seznam vydaných objednávek","description":"Získá seznam vydaných objednávek (nákupních objednávek) s možností filtrování podle stavu a dodavatele","operationId":"get_purchase_orders_stock_purchase_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Seznam ID stavů pro filtrování (oddělené čárkou)","examples":["1,2"],"title":"Status Ids"},"description":"Seznam ID stavů pro filtrování (oddělené čárkou)"},{"name":"supplier_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Seznam ID dodavatelů pro filtrování (oddělené čárkou)","examples":["1"],"title":"Supplier Ids"},"description":"Seznam ID dodavatelů pro filtrování (oddělené čárkou)"},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PurchaseOrderSortOption","description":"Způsob řazení objednávek","default":"created_at_desc"},"description":"Způsob řazení objednávek"},{"name":"with_closed","in":"query","required":false,"schema":{"type":"boolean","description":"Zahrnout uzavřené objednávky","examples":[false],"default":false,"title":"With Closed"},"description":"Zahrnout uzavřené objednávky"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Číslo stránky (počínaje 1)","examples":[1],"default":1,"title":"Page"},"description":"Číslo stránky (počínaje 1)"},{"name":"items_per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Počet objednávek na stránku","examples":[50],"default":50,"title":"Items Per Page"},"description":"Počet objednávek na stránku"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrdersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Brani sklad"],"summary":"Vytvoření vydané objednávky","description":"Vytvoří vydanou objednávku (nákupní objednávku).","operationId":"create_purchase_order_stock_purchase_orders_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/purchase_orders/statuses":{"get":{"tags":["Brani sklad"],"summary":"Seznam stavů vydaných objednávek","description":"Získá seznam všech stavů pro vydané objednávky (systémové i vlastní)","operationId":"get_purchase_order_statuses_stock_purchase_orders_statuses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PurchaseOrderStatus"},"type":"array","title":"Response Get Purchase Order Statuses Stock Purchase Orders Statuses Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/stock/purchase_orders/suppliers":{"get":{"tags":["Brani sklad"],"summary":"Seznam dodavatelů","description":"Získá seznam všech dodavatelů pro vydané objednávky","operationId":"get_purchase_order_suppliers_stock_purchase_orders_suppliers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PurchaseOrderSupplier"},"type":"array","title":"Response Get Purchase Order Suppliers Stock Purchase Orders Suppliers Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/stock/purchase_orders/supplier_offers":{"post":{"tags":["Brani sklad"],"summary":"Nahrání dostupnosti produktů u dodavatelů","description":"Hromadně nahraje dostupné množství a aktuální cenu produktů u jednotlivých dodavatelů.\n\nDodavatelé se odkazují pomocí `supplier_id` ze seznamu dodavatelů ([`GET /stock/purchase_orders/suppliers/`](#tag/brani-sklad/GET/stock/purchase_orders/suppliers)).\n\n**Jednotkou přepisu je produkt:** poslaný produkt bude mít přesně ty dostupnosti, které přijdou v `suppliers` — cokoli dalšího se u něj smaže. Produkty, které v požadavku nejsou, zůstávají beze změny. Prázdný seznam `suppliers` smaže všechny dostupnosti daného produktu.\n\nMaximálně **1000 produktů** na požadavek — větší dávky rozdělte do více požadavků.\n\nKódy, které nejsou v katalogu, se uloží, ale nikde se nezobrazí; vrací se v `unknown_products`.","operationId":"upsert_supplier_product_offers_stock_purchase_orders_supplier_offers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierOffersUpsertRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierOffersUpsertResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/stock/purchase_orders/{purchase_order_id}":{"get":{"tags":["Brani sklad"],"summary":"Detail vydané objednávky","description":"Získá detail vydané objednávky včetně seznamu produktů s cenami a obrázky","operationId":"get_purchase_order_stock_purchase_orders__purchase_order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_order_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Brani sklad"],"summary":"Úprava vydané objednávky","description":"Aktualizuje údaje vydané objednávky (název, stav, dodavatel, čísla dokladů, komentář, datum dodání)","operationId":"update_purchase_order_stock_purchase_orders__purchase_order_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_order_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/purchase_orders/{purchase_order_id}/products":{"post":{"tags":["Brani sklad"],"summary":"Přidání produktů do vydané objednávky","description":"Přidá produkty do vydané objednávky. Pokud produkt v objednávce už existuje, množství se přičte.","operationId":"add_purchase_order_products_stock_purchase_orders__purchase_order_id__products_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_order_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderProductsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Brani sklad"],"summary":"Úprava produktu ve vydané objednávce","description":"Upraví množství nebo poznámku produktu ve vydané objednávce.","operationId":"patch_purchase_order_product_stock_purchase_orders__purchase_order_id__products_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_order_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderProductUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Brani sklad"],"summary":"Odebrání produktu z vydané objednávky","description":"Odebere produkt z vydané objednávky.","operationId":"remove_purchase_order_product_stock_purchase_orders__purchase_order_id__products_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_order_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOrderProductRef"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/purchase_orders/{purchase_order_id}/link_to_receipt/{document_id}":{"post":{"tags":["Brani sklad"],"summary":"Připojit objednávku k příjemce","description":"Připojí vydanou objednávku k příjemce (dokladu). Produkty z objednávky budou automaticky přidány do příjemky.","operationId":"link_purchase_order_to_receipt_stock_purchase_orders__purchase_order_id__link_to_receipt__document_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_order_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Order Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLinkedPurchaseOrdersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stock/purchase_orders/{purchase_order_id}/unlink_from_receipt/{document_id}":{"post":{"tags":["Brani sklad"],"summary":"Odpojit objednávku od příjemky","description":"Odpojí vydanou objednávku od příjemky (dokladu). Produkty z objednávky budou automaticky odebrány z příjemky.","operationId":"unlink_purchase_order_from_receipt_stock_purchase_orders__purchase_order_id__unlink_from_receipt__document_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_order_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Order Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLinkedPurchaseOrdersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manufacture/recipes":{"get":{"tags":["Brani výroba"],"summary":"Seznam kusovníků","description":"Vrátí stránkovaný seznam aktivních (nearchivovaných) kusovníků pro daný eshop.","operationId":"list_recipes_manufacture_recipes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Typy kusovníků oddělené čárkou (assembly, split, customization)","examples":["assembly,split"],"title":"Recipe Types"},"description":"Typy kusovníků oddělené čárkou (assembly, split, customization)"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"Způsob řazení. Možnosti: `created_at_desc`, `created_at_asc`, `updated_at_desc`, `updated_at_asc`.","default":"created_at_desc","title":"Sort"},"description":"Způsob řazení. Možnosti: `created_at_desc`, `created_at_asc`, `updated_at_desc`, `updated_at_asc`."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Číslo stránky","default":1,"title":"Page"},"description":"Číslo stránky"},{"name":"items_per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Počet položek na stránku","default":50,"title":"Items Per Page"},"description":"Počet položek na stránku"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipesListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"403":{"description":"Forbidden","content":{"application/json":{"example":{"detail":"Nemáte aktivovaný doplněk Výroba"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable Entity"}}},"post":{"tags":["Brani výroba"],"summary":"Vytvoření kusovníku","description":"Vytvoří nový kusovník. Viz typy kusovníků: assembly (smíchání), split (rozdělení), customization (personalizace).","operationId":"create_recipe_manufacture_recipes_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeDetail"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"403":{"description":"Forbidden","content":{"application/json":{"example":{"detail":"Nemáte aktivovaný doplněk Výroba"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable Entity"}}}},"/manufacture/recipes/{recipe_id}":{"get":{"tags":["Brani výroba"],"summary":"Detail kusovníku","description":"Vrátí detail konkrétního kusovníku včetně vstupů, výstupů, zbytků a doplněných informací o produktech.","operationId":"get_recipe_manufacture_recipes__recipe_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_id","in":"path","required":true,"schema":{"type":"integer","title":"Recipe Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeDetail"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"403":{"description":"Forbidden","content":{"application/json":{"example":{"detail":"Nemáte aktivovaný doplněk Výroba"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable Entity"}}},"patch":{"tags":["Brani výroba"],"summary":"Úprava kusovníku","description":"Upraví existující kusovník. Typ kusovníku nelze změnit.","operationId":"update_recipe_manufacture_recipes__recipe_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_id","in":"path","required":true,"schema":{"type":"integer","title":"Recipe Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeDetail"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"403":{"description":"Forbidden","content":{"application/json":{"example":{"detail":"Nemáte aktivovaný doplněk Výroba"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable Entity"}}}},"/manufacture/orders":{"get":{"tags":["Brani výroba"],"summary":"Seznam výrobních příkazů","description":"Vrátí stránkovaný seznam výrobních příkazů. Bez filtru statusu jsou vráceny jen aktivní (waiting + in_progress).","operationId":"list_orders_manufacture_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"statuses","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Statusy oddělené čárkou (waiting, in_progress, completed, cancelled)","title":"Statuses"},"description":"Statusy oddělené čárkou (waiting, in_progress, completed, cancelled)"},{"name":"priorities","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Priority oddělené čárkou (low, normal, high, urgent)","title":"Priorities"},"description":"Priority oddělené čárkou (low, normal, high, urgent)"},{"name":"assigned_to_client_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ID přiřazených klientů oddělená čárkou","title":"Assigned To Client Ids"},"description":"ID přiřazených klientů oddělená čárkou"},{"name":"with_closed","in":"query","required":false,"schema":{"type":"boolean","description":"Zahrnout ukončené příkazy","default":false,"title":"With Closed"},"description":"Zahrnout ukončené příkazy"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"Způsob řazení. Možnosti: `created_at_desc`, `created_at_asc`, `deadline_asc`, `deadline_desc`, `priority_desc` (urgent > high > normal > low), `priority_asc`.","default":"created_at_desc","title":"Sort"},"description":"Způsob řazení. Možnosti: `created_at_desc`, `created_at_asc`, `deadline_asc`, `deadline_desc`, `priority_desc` (urgent > high > normal > low), `priority_asc`."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Číslo stránky","default":1,"title":"Page"},"description":"Číslo stránky"},{"name":"items_per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Počet položek na stránku","default":50,"title":"Items Per Page"},"description":"Počet položek na stránku"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"403":{"description":"Forbidden","content":{"application/json":{"example":{"detail":"Nemáte aktivovaný doplněk Výroba"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable Entity"}}},"post":{"tags":["Brani výroba"],"summary":"Vytvoření výrobního příkazu","description":"Vytvoří nový výrobní příkaz pro daný kusovník. Created_by bude nastaven na -1 (public API).","operationId":"create_order_manufacture_orders_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetail"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"403":{"description":"Forbidden","content":{"application/json":{"example":{"detail":"Nemáte aktivovaný doplněk Výroba"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable Entity"}}}},"/manufacture/orders/{order_id}":{"get":{"tags":["Brani výroba"],"summary":"Detail výrobního příkazu","description":"Vrátí detail konkrétního výrobního příkazu včetně navázaného kusovníku.","operationId":"get_order_manufacture_orders__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetail"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"403":{"description":"Forbidden","content":{"application/json":{"example":{"detail":"Nemáte aktivovaný doplněk Výroba"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable Entity"}}},"patch":{"tags":["Brani výroba"],"summary":"Úprava výrobního příkazu","description":"Upraví výrobní příkaz. Povoleno jen pro příkazy ve stavu waiting nebo in_progress.","operationId":"update_order_manufacture_orders__order_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetail"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"403":{"description":"Forbidden","content":{"application/json":{"example":{"detail":"Nemáte aktivovaný doplněk Výroba"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable Entity"}}}},"/manufacture/log":{"get":{"tags":["Brani výroba"],"summary":"Seznam záznamů výroby","description":"Vrátí stránkovaný seznam provedené a zrušené výroby.","operationId":"list_log_manufacture_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filtr dle ID výrobního příkazu","title":"Order Id"},"description":"Filtr dle ID výrobního příkazu"},{"name":"entry_types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Typy záznamů oddělené čárkou (executed, cancelled)","title":"Entry Types"},"description":"Typy záznamů oddělené čárkou (executed, cancelled)"},{"name":"recipe_types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Typy kusovníků oddělené čárkou","title":"Recipe Types"},"description":"Typy kusovníků oddělené čárkou"},{"name":"executed_by_client_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ID klientů oddělená čárkou","title":"Executed By Client Ids"},"description":"ID klientů oddělená čárkou"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Datum od (včetně)","title":"Date From"},"description":"Datum od (včetně)"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Datum do (včetně)","title":"Date To"},"description":"Datum do (včetně)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Číslo stránky","default":1,"title":"Page"},"description":"Číslo stránky"},{"name":"items_per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Počet položek na stránku","default":50,"title":"Items Per Page"},"description":"Počet položek na stránku"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionsListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"403":{"description":"Forbidden","content":{"application/json":{"example":{"detail":"Nemáte aktivovaný doplněk Výroba"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable Entity"}}}},"/manufacture/log/{execution_id}":{"get":{"tags":["Brani výroba"],"summary":"Detail záznamu výroby","description":"Vrátí detail jednoho záznamu výroby včetně spotřebovaných vstupů, vyrobených výstupů a zbytků.","operationId":"get_log_manufacture_log__execution_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"integer","title":"Execution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionDetailResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"example":{"detail":"Nespravny token"}}}},"403":{"description":"Forbidden","content":{"application/json":{"example":{"detail":"Nemáte aktivovaný doplněk Výroba"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable Entity"}}}}},"components":{"schemas":{"ActionPrice":{"properties":{"price":{"type":"number","title":"Price"},"fromDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Fromdate"},"toDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Todate"}},"type":"object","required":["price"],"title":"ActionPrice","description":"Cena v akci."},"AddOrderTagsResponse":{"properties":{"added_order_tags":{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__routers__schema__OrderTag","title":"Added Order Tags","description":"Seznam objednávek s přidanými tagy"},"warnings":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Warnings","description":"Seznam varování při změně tagů"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors","description":"Seznam chyb při změně tagů"}},"type":"object","required":["added_order_tags"],"title":"AddOrderTagsResponse"},"Address":{"properties":{"fullName":{"type":"string","title":"Jméno a příjmení","description":"","examples":["Jan Novák"]},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název společnosti","description":"","examples":["Společnost s.r.o."]},"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ulice","description":"","examples":["Příčná"]},"houseNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo domu","description":"","examples":["21.00"]},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Město","description":"","examples":["Brno"]},"district":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kraj/okres","description":"","examples":["null"]},"additional":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doplňková informace k adrese","description":"","examples":["2. patro"]},"zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"PSČ","description":"","examples":["111 00"]},"countryCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód země","description":"ve formátu ISO 3166 alpha-2","examples":["CZ"]},"regionName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"","examples":["null"]}},"type":"object","required":["fullName"],"title":"Address"},"AvailabilityShort":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"AvailabilityShort","description":"Krátká informace o dostupnosti."},"AwaitingStockCoverageItem":{"properties":{"purchase_order":{"$ref":"#/components/schemas/PurchaseOrder","title":"Detail vydané objednávky"},"covered_amount":{"type":"integer","title":"Pokryté množství z této vydané objednávky","example":50}},"type":"object","required":["purchase_order","covered_amount"],"title":"AwaitingStockCoverageItem"},"AwaitingStockProduct":{"properties":{"product_code":{"type":"string","title":"Kód produktu","example":"PR/BAV/BIL/140/S"},"missing_amount":{"type":"integer","title":"Celkové chybějící množství","example":70},"uncovered_amount":{"type":"integer","title":"Nepokryté množství","description":"Část chybějícího množství, která není pokryta žádnou vydanou objednávkou.","example":15},"purchase_order_coverage":{"items":{"$ref":"#/components/schemas/AwaitingStockCoverageItem"},"type":"array","title":"Pokrytí vydanými objednávkami","description":"Seznam vydaných objednávek a množství, která z nich budou dodána."}},"type":"object","required":["product_code","missing_amount","uncovered_amount","purchase_order_coverage"],"title":"AwaitingStockProduct"},"BillingAddress":{"properties":{"fullName":{"type":"string","title":"Jméno a příjmení","description":"","examples":["Jan Novák"]},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název společnosti","description":"","examples":["Společnost s.r.o."]},"street":{"type":"string","title":"Ulice","description":"","examples":["Příčná"]},"houseNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo domu","description":"","examples":["21.00"]},"city":{"type":"string","title":"Město","description":"","examples":["Brno"]},"district":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kraj/okres","description":"","examples":["null"]},"additional":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doplňková informace k adrese","description":"","examples":["2. patro"]},"zip":{"type":"string","title":"PSČ","description":"","examples":["111 00"]},"countryCode":{"type":"string","title":"Kód země","description":"ve formátu ISO 3166 alpha-2","examples":["CZ"]},"regionName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"","examples":["null"]},"companyId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifikační číslo společnosti (IČ)","description":"","examples":["123456"]},"vatId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"VAT ID (DIČ)","description":"","examples":["CZ123456789"]},"taxId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"TAX ID (IČ DPH)","description":"","examples":["123456"]}},"type":"object","required":["fullName","street","city","zip","countryCode"],"title":"BillingAddress"},"BillingMethodCode":{"type":"integer","enum":[1,2,3,4],"title":"BillingMethodCode"},"Body_Aktualizace_URL_webhooku_webhook__webhook_id__patch":{"properties":{"url":{"type":"string","title":"URL"}},"type":"object","required":["url"],"title":"Body_Aktualizace_URL_webhooku_webhook__webhook_id__patch"},"Body_Data_pro_clo_order_customs_post":{"properties":{"customs":{"items":{"$ref":"#/components/schemas/CustomsData"},"type":"array","title":"Customs"},"order_code":{"type":"string","title":"Order Code"}},"type":"object","required":["customs","order_code"],"title":"Body_Data_pro_clo_order_customs_post"},"Body_Nahr_n__faktury_k_objend_vce_order_invoice_post":{"properties":{"invoice":{"type":"string","contentMediaType":"application/octet-stream","title":"Invoice"}},"type":"object","required":["invoice"],"title":"Body_Nahrání_faktury_k_objendávce_order_invoice_post"},"Body_Registrace_nov_ho_webhooku_webhook_post":{"properties":{"event_type":{"$ref":"#/components/schemas/Event_type"},"url":{"type":"string","maxLength":150,"minLength":6,"title":"Url"}},"type":"object","required":["event_type","url"],"title":"Body_Registrace_nového_webhooku_webhook_post"},"Body_import_snapshot_products_snapshots_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_snapshot_products_snapshots_import_post"},"Body_inicializace_skladu_stock_inicializace_skladu_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_inicializace_skladu_stock_inicializace_skladu_post"},"Body_set_eshop_amounts_stock_set_eshop_amounts_post":{"properties":{"code":{"type":"string","title":"Kód produktu"},"claim":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Skladový nárok"},"amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Množství dostupné k objednání"},"real_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fyzické množství na skladě"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pozice na skladě"},"sync_to_brani":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Synchronizovat do Brani skladu","default":false},"create_position_if_not_exist":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pokud je zapnuta synchronizace do Brani (sync_to_brani=True) a zadaná pozice neexistuje, automaticky ji vytvoří ve výchozím sektoru. Pokud ani výchozí sektor neexistuje, vytvoří i ten.","default":false},"mark_movement_to_sync":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Oznacit pohyby vytvorene v brani skladu pro synchronizaci do shoptetu","default":false}},"type":"object","required":["code"],"title":"Body_set_eshop_amounts_stock_set_eshop_amounts_post"},"Body_upload_file_stock_movement_documents__document_id__upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_stock_movement_documents__document_id__upload_post"},"Brand":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"Brand"},"BrandNamed":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"}},"type":"object","required":["code","name"],"title":"BrandNamed","description":"Značka produktu."},"Category":{"properties":{"guid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guid"},"name":{"type":"string","title":"Name"},"parentGuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parentguid"}},"type":"object","required":["name"],"title":"Category","description":"Kategorie produktu."},"ConsumableProducts":{"properties":{"product_codes":{"items":{"type":"string"},"type":"array","title":"Kódy produktů","examples":[["TAPE-01","BOX-02"]]}},"type":"object","required":["product_codes"],"title":"ConsumableProducts"},"ConsumablesModifyResponse":{"properties":{"added":{"items":{"type":"string"},"type":"array","title":"Přidané produkty"},"skipped":{"items":{"type":"string"},"type":"array","title":"Přeskočené (již existující)"},"not_found":{"items":{"type":"string"},"type":"array","title":"Nenalezené ve skladu"}},"type":"object","title":"ConsumablesModifyResponse"},"ConsumablesRemoveResponse":{"properties":{"removed":{"items":{"type":"string"},"type":"array","title":"Odebrané produkty"},"skipped":{"items":{"type":"string"},"type":"array","title":"Přeskočené (nebyly v seznamu)"}},"type":"object","title":"ConsumablesRemoveResponse"},"ConsumablesResponse":{"properties":{"consumables":{"items":{"type":"string"},"type":"array","title":"Seznam kódů spotřebního materiálu"}},"type":"object","required":["consumables"],"title":"ConsumablesResponse"},"CustomProductRequest":{"properties":{"product_name":{"type":"string","title":"Product Name","description":"Název produktu"},"product_code":{"type":"string","title":"Product Code","description":"Kód produktu"},"product_ean":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Ean","description":"EAN produktu","default":""},"product_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Description","description":"Popis produktu"},"packaging_amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,7}|(?=[\\d.]{1,11}0*$)\\d{0,7}\\.\\d{0,3}0*$)"},{"type":"null"}],"title":"Packaging Amount","description":"Množství v balení","examples":["1"]},"packaging_unit":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Packaging Unit","description":"Jednotka balení","examples":["ks"]},"product_guid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Guid","description":"GUID produktu (pokud není zadán, bude vytvořen nový produkt GUID)"},"image_b64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image B64","description":"Obrázek produktu - base64"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Obrázek produktu - URL"},"delete_image":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Delete Image","description":"Odstranit obrázek produktu","default":false}},"type":"object","required":["product_name","product_code"],"title":"CustomProductRequest"},"CustomProductResponse":{"properties":{"product_name":{"type":"string","title":"Product Name","description":"Název produktu"},"product_code":{"type":"string","title":"Product Code","description":"Kód produktu"},"product_ean":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Ean","description":"EAN produktu","default":""},"product_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Description","description":"Popis produktu"},"packaging_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,7}|(?=[\\d.]{1,11}0*$)\\d{0,7}\\.\\d{0,3}0*$)"},{"type":"null"}],"title":"Packaging Amount","description":"Množství v balení","examples":["1"]},"packaging_unit":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Packaging Unit","description":"Jednotka balení","examples":["ks"]},"product_guid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Guid","description":"GUID produktu (pokud není zadán, bude vytvořen nový produkt GUID)"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Obrázek produktu - URL"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Datum vytvoření produktu"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"Datum poslední aktualizace produktu"}},"type":"object","required":["product_name","product_code","created_at","updated_at"],"title":"CustomProductResponse"},"CustomsData":{"properties":{"product_code":{"type":"string","title":"Kód produktu","description":"","examples":["2017000092"]},"content_name_en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Name En"},"content_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Country"},"content_customs_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Customs Code"},"content_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Description"}},"type":"object","required":["product_code"],"title":"CustomsData"},"Data-Output":{"properties":{"orderStatuses":{"$ref":"#/components/schemas/OrderStatuses","title":"Stavy objednávek","description":""},"shippingMethods":{"$ref":"#/components/schemas/ShippingMethods","title":"Metody doprav","description":""},"paymentMethods":{"$ref":"#/components/schemas/PaymentMethods","title":"Metody plateb","description":""}},"type":"object","required":["orderStatuses","shippingMethods","paymentMethods"],"title":"Data"},"Data2":{"properties":{"creationTime":{"type":"string","format":"date-time","title":"Datum vytvoření objednávky","description":"Datum musí bý v minulosti","examples":["2017-12-12T22:08:01+0100"]},"email":{"type":"string","title":"Email zákazníka","description":"","examples":["customer@someemail.com"]},"code":{"type":"string","title":"Unikátní kód/číslo objednávky","description":"","examples":["5426578"]},"phone":{"type":"string","title":"Telefonní číslo zákazníka","description":"","examples":["+420604600444"]},"shippingDetails":{"anyOf":[{"$ref":"#/components/schemas/ShippingDetails"},{"type":"null"}],"title":"Doplňkové informace k doručení","description":""},"billingMethodCode":{"anyOf":[{"$ref":"#/components/schemas/BillingMethodCode"},{"type":"null"}],"title":"Kódy typu platby","description":"Povolené typy jsou: 1 = Dobírka, 2 = Převodem, 3 = Hotově, 4 = Kartou"},"paymentMethodGuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"GUID platební metody","description":"GUID musí odpovídat platebním metodám zaslaných přes endpoint /eshop/info\n\nMůže být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\"","examples":["b57f91bb-e920-11e0-baa3-7dc668b75ca8"]},"shippingGuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"GUID typu dopravy","description":"GUID musí odpovídat přepravním metodám zaslaných přes endpoint /eshop/info\n\nMůže být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\"","examples":["2ec88ea7-3fb0-11e2-a723-705ab6a2ba75"]},"paid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Příznak zde je objednávka zaplacena","description":"","default":false,"examples":["true"]},"deliveryAddress":{"$ref":"#/components/schemas/Address","title":"Doručovací adresa","description":""},"cashDeskOrder":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Příznak, zda byla objednávka vytvořena na pokladně","description":"","default":false,"examples":["false"]},"addressesEqual":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Shoda adres"},"notes":{"$ref":"#/components/schemas/Notes","title":"Doplńkové data k objednávce","description":""},"status":{"anyOf":[{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__orderSchema__Status"},{"type":"null"}],"title":"Stav objednávky","description":"","default":{"id":0}},"billingAddress":{"$ref":"#/components/schemas/BillingAddress","title":"Fakturační adresa","description":""},"price":{"$ref":"#/components/schemas/Price","title":"Cena objednávky","description":""},"adminUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Odkaz do administrace","description":"Odkaz, kterým lze prokliknout do administrace objednávky","examples":["https://brani.myshoptet.com/admin/objednavky-detail?id=5426578"]},"items":{"items":{"$ref":"#/components/schemas/Item"},"type":"array","title":"Položky objednávky","description":""},"vs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variabilní symbol","description":"","examples":["123456"]},"externalCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Externí kód objednávky","description":"Volitelný externí identifikátor objednávky (např. číslo objednávky z BaseLinker nebo jiného systému)","examples":["BL-123456"]}},"type":"object","required":["creationTime","email","code","phone","deliveryAddress","notes","billingAddress","price","items"],"title":"Data2"},"DefaultCategory":{"properties":{"guid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"visible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Visible"}},"type":"object","title":"DefaultCategory","description":"Výchozí kategorie produktu."},"DescriptiveParameter":{"properties":{"name":{"type":"string","title":"Name"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"}},"type":"object","required":["name"],"title":"DescriptiveParameter","description":"Popisný parametr."},"DigitalOrderStatusResponse":{"properties":{"processed":{"type":"boolean","title":"Processed","description":"Zda byla objednávka zpracována systémem digitálních produktů"},"processed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Processed At","description":"Datum a čas zpracování objednávky"},"order_code":{"type":"string","title":"Order Code","description":"Kód objednávky"},"order_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Email","description":"E-mail zákazníka, na který byly produkty odeslány"},"products":{"items":{"$ref":"#/components/schemas/DigitalProductEntitlementSchema"},"type":"array","title":"Products","description":"Seznam digitálních produktů a jejich klíčů/URL odeslaných v rámci objednávky"}},"type":"object","required":["processed","order_code"],"title":"DigitalOrderStatusResponse","description":"Response pro dotaz na stav zpracování digitálních produktů pro objednávku."},"DigitalProductEntitlementSchema":{"properties":{"product_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Code","description":"Kód produktu"},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Name","description":"Název produktu"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Typ produktu: 'single' nebo 'multiple'"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Klíč, kód nebo URL - u 'single' produktů statická hodnota, u 'multiple' hodnota z přiřazeného seznamu"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url","description":"URL pro stažení (s unikátním hash)"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until","description":"Datum platnosti (např. u slevových kupónů)"}},"type":"object","title":"DigitalProductEntitlementSchema","description":"Detail jednoho digitálního produktu/oprávnění v objednávce."},"ErrorDetail":{"properties":{"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"}},"type":"object","title":"ErrorDetail"},"Event_type":{"type":"string","enum":["balic_packed","balic_picked","package_number","order_history","status_change","added_to_cart","shipping_change","movement_document_created","movement_document_updated","inventory_check_completed","personal_pickup_stored","personal_pickup_issued","task_created","task_assigned","task_status_changed"],"title":"Event_type"},"Events_order_schema":{"properties":{"id":{"type":"integer","title":"Id"},"webhook_id":{"type":"integer","title":"Webhook Id"},"event_creation":{"type":"string","title":"Event Creation"},"order_code":{"type":"string","title":"Order Code"},"event_status_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Event Status Id"},"event_package_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Package Number"},"event_order_history":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Order History"},"date_successful":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Successful"},"date_last_failed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Last Failed"},"last_errors":{"anyOf":[{"$ref":"#/components/schemas/ErrorDetail"},{"type":"null"}]},"fail_counter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fail Counter"},"processed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processed"}},"type":"object","required":["id","webhook_id","event_creation","order_code"],"title":"Events_order_schema"},"Events_response":{"properties":{"webhook_events":{"items":{"$ref":"#/components/schemas/Events_order_schema"},"type":"array","title":"Webhook Events"},"total_items":{"type":"integer","title":"Total Items"},"items_per_page":{"type":"integer","title":"Items Per Page"},"page":{"type":"integer","title":"Page"},"items_on_current_page":{"type":"integer","title":"Items On Current Page"}},"type":"object","required":["webhook_events","total_items","items_per_page","page","items_on_current_page"],"title":"Events_response"},"ExecutionDetailResponse":{"properties":{"id":{"type":"integer","title":"ID záznamu výroby","examples":[101]},"order_id":{"type":"integer","title":"ID výrobního příkazu","examples":[42]},"recipe_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název kusovníku"},"executed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum a čas provedení"},"executed_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jméno toho, kdo výrobu provedl"},"issue_document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID výdejky"},"receipt_document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID příjemky"},"consumed_items":{"items":{"$ref":"#/components/schemas/ExecutionInputDetail"},"type":"array","title":"Spotřebované vstupy","description":"Seznam skutečně spotřebovaných vstupů"},"produced_items":{"items":{"$ref":"#/components/schemas/ExecutionOutputDetail"},"type":"array","title":"Vyrobené výstupy","description":"Seznam skutečně vyrobených výstupů"},"created_remainders":{"items":{"$ref":"#/components/schemas/ExecutionRemainderDetail"},"type":"array","title":"Vzniklé zbytky","description":"Seznam zbytků vzniklých při této výrobě"}},"type":"object","required":["id","order_id"],"title":"ExecutionDetailResponse"},"ExecutionInputDetail":{"properties":{"id":{"type":"integer","title":"ID položky"},"product_code":{"type":"string","title":"Kód produktu","examples":["PROD-001"]},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název produktu"},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL obrázku"},"ean":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"EAN"},"location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název skladové pozice","examples":["A1-02"]},"sarze_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID šarže"},"sarze_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název šarže"},"sarze_expires_at":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expirace šarže"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Množství"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jednotka","examples":["kg"]},"source":{"type":"string","title":"Zdroj vstupu","description":"location = ze skladové pozice, remainder = ze zbytku z předchozí výroby","examples":["location"]},"remainder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID zbytku","description":"Pokud source=remainder"}},"type":"object","required":["id","product_code","amount","source"],"title":"ExecutionInputDetail"},"ExecutionListItem":{"properties":{"id":{"type":"integer","title":"ID záznamu","description":"Pro provedenou výrobu kladné ID, pro zrušený příkaz záporné (-order_id)","examples":[101]},"order_id":{"type":"integer","title":"ID výrobního příkazu","examples":[42]},"entry_type":{"type":"string","title":"Typ záznamu","default":"executed","examples":["executed"]},"recipe_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název kusovníku","examples":["Smíchání čaje 100g"]},"recipe_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typ kusovníku","examples":["assembly"]},"batch_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Počet dávek","examples":[5]},"executed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum a čas provedení","examples":["2026-04-15T13:45:00"]},"executed_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jméno toho, kdo výrobu provedl"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum zahájení příkazu"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum zrušení příkazu"},"output_product_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód výstupního produktu"},"output_product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název výstupního produktu"},"output_variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty výstupu"},"produced_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Skutečně vyrobené množství","examples":[48]},"expected_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Očekávané množství dle kusovníku","examples":[50]},"issue_document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID výdejky","description":"ID automaticky vytvořené výdejky","examples":[1001]},"receipt_document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID příjemky","description":"ID automaticky vytvořené příjemky","examples":[1002]},"order_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód objednávky","description":"Kód objednávky, pro kterou byl příkaz vyroben","examples":["2026001234"]},"order_eshop_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID eshopu objednávky","examples":[42]},"order_eshop_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název eshopu objednávky","examples":["Můj eshop"]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámka výrobního příkazu"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jméno toho, kdo příkaz vytvořil"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum a čas vytvoření příkazu"}},"type":"object","required":["id","order_id"],"title":"ExecutionListItem"},"ExecutionOutputDetail":{"properties":{"id":{"type":"integer","title":"ID položky"},"product_code":{"type":"string","title":"Kód produktu","examples":["OUT-001"]},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název produktu"},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL obrázku"},"ean":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"EAN"},"location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název skladové pozice"},"sarze_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID šarže"},"sarze_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název šarže"},"sarze_expires_at":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expirace šarže"},"amount":{"type":"integer","title":"Skutečně vyrobené množství","examples":[48]},"expected_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Očekávané množství","examples":[50]}},"type":"object","required":["id","product_code","amount"],"title":"ExecutionOutputDetail"},"ExecutionRemainderDetail":{"properties":{"id":{"type":"integer","title":"ID zbytku"},"product_code":{"type":"string","title":"Kód produktu"},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název produktu"},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL obrázku"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Množství zbytku"},"unit":{"type":"string","title":"Jednotka"},"sarze_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název šarže"},"sarze_expires_at":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expirace šarže"}},"type":"object","required":["id","product_code","amount","unit"],"title":"ExecutionRemainderDetail"},"ExecutionsListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ExecutionListItem"},"type":"array","title":"Seznam záznamů výroby","description":"Záznamy na aktuální stránce (provedené výroby + zrušené příkazy)"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Číslo stránky","examples":[1]},"items_per_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Počet záznamů na stránku","description":"Maximum je 100","examples":[50]},"total_items":{"type":"integer","title":"Celkový počet záznamů","description":"Celkový počet záznamů odpovídajících filtru","examples":[120]}},"type":"object","required":["items","total_items"],"title":"ExecutionsListResponse"},"FilteringParameter":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"googleMapping":{"anyOf":[{"$ref":"#/components/schemas/GoogleMappingType"},{"type":"null"}]},"values":{"items":{"$ref":"#/components/schemas/FilteringParameterValue"},"type":"array","title":"Values"}},"type":"object","required":["code","name","values"],"title":"FilteringParameter","description":"Filtrovací parametr."},"FilteringParameterValue":{"properties":{"valueIndex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valueindex"},"name":{"type":"string","title":"Name"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"}},"type":"object","required":["name"],"title":"FilteringParameterValue","description":"Hodnota filtrovacího parametru."},"Flag":{"properties":{"code":{"type":"string","title":"Code"},"title":{"type":"string","title":"Title"},"dateFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Datefrom"},"dateTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dateto"}},"type":"object","required":["code","title"],"title":"Flag","description":"Příznak produktu."},"GeneralEventSchema":{"properties":{"id":{"type":"integer","title":"Id"},"webhook_id":{"type":"integer","title":"Webhook Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"event_type":{"type":"string","title":"Event Type"},"status":{"type":"string","enum":["pending","processing","delivered","failed"],"title":"Status"},"attempt_count":{"type":"integer","title":"Attempt Count"},"last_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Status Code"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"last_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempt At"},"next_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Attempt At"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["id","webhook_id","created_at","event_type","status","attempt_count","payload"],"title":"GeneralEventSchema"},"GeneralEventsResponse":{"properties":{"webhook_events":{"items":{"$ref":"#/components/schemas/GeneralEventSchema"},"type":"array","title":"Webhook Events"},"total_items":{"type":"integer","title":"Total Items"},"items_per_page":{"type":"integer","title":"Items Per Page"},"page":{"type":"integer","title":"Page"},"items_on_current_page":{"type":"integer","title":"Items On Current Page"}},"type":"object","required":["webhook_events","total_items","items_per_page","page","items_on_current_page"],"title":"GeneralEventsResponse"},"GoogleMappingType":{"properties":{"value":{"type":"string","title":"Value"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["value"],"title":"GoogleMappingType","description":"Mapování pro Google."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Image-Input":{"properties":{"name":{"type":"string","title":"Název souboru","examples":["69671-3.jpg"]},"url":{"type":"string","title":"URL obrázku","examples":["https://cdn.myshoptet.com/usr/brani.myshoptet.com/user/shop/big/37_37-kos-odpadkovy-curver-flipbin-25l-new-york.jpg"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Popis obrázku"}},"type":"object","required":["name","url"],"title":"Image"},"Item":{"properties":{"itemId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID položky v objednávce","description":"Musí být unikátní mezi položkami objednávky; pokud není zadáno, vygeneruje se automaticky.","examples":[19]},"stockLocation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skladová pozice produktu","description":"","examples":["S1-03"]},"itemType":{"$ref":"#/components/schemas/ItemType","title":"Typ produktu","description":"Povolené typy jsou: product, second-had, service, gift","examples":["product"]},"code":{"type":"string","title":"Kód produktu/varianty","description":"","examples":["2017000092"]},"vatRate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"DPH","description":"V procentech","examples":["21"]},"itemPriceWithVat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Celková cena s DPH","description":"","examples":["99.00"]},"name":{"type":"string","title":"Název produktu","description":"","examples":["Medvídek na zeď"]},"variantName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty produktu","description":"","examples":["Bílý"]},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Značka produktu","description":"","examples":["Medvídkárna"]},"supplierName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název dodavatele","description":"","examples":["Dodavatel s.r.o"]},"productGuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"GUID produktu, na který se položka objednávky váže","description":"Může být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\"","examples":["747fb32d-73bc-11e8-8216-002590dad85e"]},"remark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámka eshopu u položky","description":"","examples":["Položka je křehká"]},"additionalField":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doplňkové informace k produktu","description":"","examples":["Určen pro děti i dospělé"]},"amount":{"type":"string","title":"Množství","description":"","examples":["1"]},"amountUnit":{"type":"string","title":"Jednotka množství","description":"","examples":["kg"]},"weight":{"type":"string","title":"Váha jedné jednotky množství","description":"V kg","examples":["0.434"]},"status":{"anyOf":[{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__orderSchema__Status"},{"type":"null"}],"title":"Stav položky","description":""},"ean":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"EAN produktu","description":"","examples":["5523678544"]},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL obrázku produktu","description":"","examples":["https://uploads-ssl.webflow.com/60f6bd04b4e345bfc4e15a14/620faf85284b9dafda2bee1d_teddy.png"]},"buyPrice":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Nákupní cena"},"surchargeParameters":{"anyOf":[{"items":{"$ref":"#/components/schemas/SurchargeParameter"},"type":"array"},{"type":"null"}],"title":"Příplatkové parametry"},"adminUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Odkaz do administrace","description":"Odkaz, kterým lze prokliknout do administrace produktu","examples":["https://brani.myshoptet.com/admin/produkty-detail/?id=2017000092"]},"content_name_en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Name En"},"content_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Country"},"content_customs_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Customs Code"},"content_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Description"}},"type":"object","required":["itemType","code","name","productGuid","amount","amountUnit","weight"],"title":"Item"},"ItemType":{"type":"string","enum":["product","second-hand","service","gift","product-set"],"title":"ItemType"},"LinkedPurchaseOrder":{"properties":{"id":{"type":"integer","title":"ID objednávky","examples":[1]},"name":{"type":"string","title":"Název objednávky","examples":["Objednávka leden 2024"]},"status_name":{"type":"string","title":"Název stavu objednávky","examples":["Nová"]},"status_color":{"type":"string","title":"Barva stavu","description":"Hexadecimální kód barvy stavu","examples":["#4CAF50"]}},"type":"object","required":["id","name","status_name","status_color"],"title":"LinkedPurchaseOrder"},"ManufactureOrderRef":{"properties":{"id":{"type":"integer","title":"ID výrobního příkazu","examples":[42]},"status":{"type":"string","title":"Stav výrobního příkazu","description":"waiting, in_progress, completed nebo cancelled","examples":["waiting"]},"batch_count":{"type":"integer","title":"Počet dávek","examples":[5]},"recipe_id":{"type":"integer","title":"ID kusovníku","examples":[1]},"recipe_name":{"type":"string","title":"Název kusovníku","examples":["Smíchání čaje 100g"]},"output_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Výstupní množství na dávku","description":"Počet kusů produktu vyrobených z jedné dávky","examples":[10]}},"type":"object","required":["id","status","batch_count","recipe_id","recipe_name"],"title":"ManufactureOrderRef"},"MeasureUnit":{"properties":{"packagingUnitId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Packagingunitid"},"packagingUnitName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Packagingunitname"},"packagingAmount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Packagingamount"},"measureUnitId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Measureunitid"},"measureUnitName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Measureunitname"},"measureAmount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Measureamount"},"measurePrice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Measureprice"}},"type":"object","title":"MeasureUnit","description":"Měrná jednotka."},"MovementDocument":{"properties":{"document_id":{"type":"integer","title":"ID dokladu","examples":[123]},"document_type_id":{"type":"integer","title":"ID typu dokladu","examples":[1]},"document_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo dokladu","examples":["Doc_123"]},"order_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo objednávky","examples":["#1234"]},"package_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo balíku","examples":["A4321"]},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Komentář","examples":["První dodávka"]},"status":{"type":"string","enum":["open","closed","error"],"title":"Stav dokladu","examples":["open"]},"date":{"type":"string","format":"date-time","title":"Datum vytvoření","examples":["2024-01-01T12:00:00Z"]},"archived":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum archivace","examples":["2024-01-01T12:00:00Z"]},"shipping_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Náklady na dopravu","examples":[150.0]},"customs_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Náklady na clo","examples":[50.0]},"currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"Měna (ISO 4217)","examples":["CZK"]},"suppliers":{"items":{"$ref":"#/components/schemas/MovementDocumentSupplier"},"type":"array","title":"Dodavatelé","description":"Efektivní dodavatelé dokladu. Pokud je doklad napojen na vydané objednávky (VO), jsou to (distinct) dodavatelé z těchto VO (mají prioritu). Jinak jednoprvkový seznam s ručně přiřazeným dodavatelem dokladu, případně prázdný seznam, pokud dodavatel není nastaven."}},"type":"object","required":["document_id","document_type_id","document_number","order_number","package_number","status","date"],"title":"MovementDocument"},"MovementDocumentCreate":{"properties":{"document_type_id":{"type":"integer","title":"ID typu dokladu","examples":[1]},"document_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo dokladu","examples":["Doc_123"]},"order_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo objednávky","examples":["#1234"]},"package_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo balíku","examples":["A4321"]},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Komentář","examples":["První dodávka"]},"status":{"type":"string","enum":["open","closed","error"],"title":"Stav dokladu","default":"open","examples":["open"]},"shipping_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Náklady na dopravu","examples":[150.0]},"customs_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Náklady na clo","examples":[50.0]},"currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3,"pattern":"^[A-Z]{3}$"},{"type":"null"}],"title":"Měna (ISO 4217)","description":"Třípísmenný kód měny dle ISO 4217 (např. CZK, EUR, USD)","examples":["CZK"]},"supplier_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID dodavatele","description":"Ručně přiřazený dodavatel dokladu (ID z nastavení Vydané objednávky → Dodavatelé). Uplatní se jen u dokladů bez napojené VO; pokud je doklad napojen na VO, má dodavatel z VO prioritu.","examples":[1]},"products":{"anyOf":[{"items":{"$ref":"#/components/schemas/MovementDocumentProductReq"},"type":"array"},{"type":"null"}],"title":"Produkty a jejich ceny","description":"Seznam produktů s množstvím a/nebo cenami. Pro každý produkt musí být zadáno množství (amount) a/nebo cena (standard_price). Množství vytvoří záznam očekávaného produktu, cena vytvoří záznam nákupní ceny (pouze u příjemek).","examples":[[{"amount":10,"product_code":"0001"},{"amount":5,"discount_percent":10.0,"product_code":"0002","standard_price":100.0,"vat_rate":21.0}]]}},"type":"object","required":["document_type_id"],"title":"MovementDocumentCreate"},"MovementDocumentCreateResponse":{"properties":{"message":{"type":"string","title":"Zpráva o výsledku","examples":["Doklad byl úspěšně vytvořen"]},"document":{"$ref":"#/components/schemas/SingleMovementDocument","title":"Detail vytvořeného dokladu"}},"type":"object","required":["message","document"],"title":"MovementDocumentCreateResponse"},"MovementDocumentEdit":{"properties":{"document_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo dokladu","examples":["Doc_123"]},"order_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo objednávky","examples":["#1234"]},"package_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo balíku","examples":["A4321"]},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Komentář","examples":["První dodávka"]},"status":{"anyOf":[{"type":"string","enum":["open","closed","error"]},{"type":"null"}],"title":"Stav dokladu","examples":["open"]},"shipping_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Náklady na dopravu","examples":[150.0]},"customs_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Náklady na clo","examples":[50.0]},"currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3,"pattern":"^[A-Z]{3}$"},{"type":"null"}],"title":"Měna (ISO 4217)","description":"Třípísmenný kód měny dle ISO 4217 (např. CZK, EUR, USD)","examples":["CZK"]},"supplier_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID dodavatele","description":"Ručně přiřazený dodavatel dokladu (ID z nastavení Vydané objednávky → Dodavatelé). Uplatní se jen u dokladů bez napojené VO; pokud je doklad napojen na VO, má dodavatel z VO prioritu.","examples":[1]},"products":{"anyOf":[{"items":{"$ref":"#/components/schemas/MovementDocumentProductReq"},"type":"array"},{"type":"null"}],"title":"Produkty a jejich ceny","description":"Seznam produktů s množstvím a/nebo cenami. Pokud je zadáno, nahradí stávající produkty a ceny. Pro každý produkt musí být zadáno množství (amount) a/nebo cena (standard_price). Množství vytvoří záznam očekávaného produktu, cena vytvoří záznam nákupní ceny (pouze u příjemek).","examples":[[{"amount":10,"product_code":"0001"},{"amount":5,"discount_percent":10.0,"product_code":"0002","standard_price":100.0,"vat_rate":21.0}]]}},"type":"object","title":"MovementDocumentEdit"},"MovementDocumentEditResponse":{"properties":{"message":{"type":"string","title":"Zpráva o výsledku","examples":["Doklad byl úspěšně upraven"]},"document":{"$ref":"#/components/schemas/SingleMovementDocument","title":"Detail upraveného dokladu"}},"type":"object","required":["message","document"],"title":"MovementDocumentEditResponse"},"MovementDocumentFile":{"properties":{"id":{"type":"integer","title":"ID souboru","examples":[1]},"client_name":{"type":"string","title":"Uživatel, který soubor nahrál","examples":["Jan Novák"]},"file_name":{"type":"string","title":"Název souboru","examples":["doklad1.pdf"]},"uploaded_at":{"type":"string","format":"date-time","title":"Datum nahrání","examples":["2024-01-01T10:00:00"]},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Komentář k souboru","examples":["Faktura leden"]}},"type":"object","required":["id","client_name","file_name","uploaded_at"],"title":"MovementDocumentFile"},"MovementDocumentMovement":{"properties":{"product_code":{"type":"string","title":"Kód produktu","examples":["PR/BAV/BIL/140/S"]},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID pozice"},"location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název pozice","examples":["A1-1-1"]},"sector_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID sektoru"},"sector_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název sektoru","examples":["A1"]},"zone_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID zóny"},"zone_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název zóny","examples":["Hlavní sklad"]},"sarze_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID šarže"},"sarze_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název šarže"},"sarze_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expirace šarže"},"amount_change":{"type":"integer","title":"Součet pohybů","description":"Součet amount_change pro danou kombinaci produkt+pozice+šarže. Kladné číslo = naskladněno, záporné = vyskladněno.","examples":[5]}},"type":"object","required":["product_code","amount_change"],"title":"MovementDocumentMovement"},"MovementDocumentProduct":{"properties":{"product_code":{"type":"string","title":"Kód produktu","examples":["0001"]},"amount_expected":{"type":"integer","title":"Očekávané množství","examples":[10]},"amount_processed":{"type":"integer","title":"Zpracované množství","examples":[5]},"amount_queued":{"type":"integer","title":"Přijaté množství","description":"Množství evidované jako „přijaté“, které ještě nebylo reálně naskladněno do zásob. Je nenulové pouze u příjemek (document_type='receipt').","examples":[3]},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název produktu","examples":["Produkt1"]},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty","examples":["Varianta1"]},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Obrázek produktu","examples":["https://example.com/image.jpg"]}},"type":"object","required":["product_code","amount_expected","amount_processed","amount_queued"],"title":"MovementDocumentProduct"},"MovementDocumentProductPrice":{"properties":{"product_code":{"type":"string","title":"Kód produktu","examples":["0001"]},"standard_price":{"type":"number","title":"Standardní cena","examples":[100.0]},"discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sleva v procentech","examples":[10.0]},"price":{"type":"number","title":"Cena po slevě","examples":[90.0]},"vat_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sazba DPH","examples":[21.0]}},"type":"object","required":["product_code","standard_price","price"],"title":"MovementDocumentProductPrice"},"MovementDocumentProductReq":{"properties":{"product_code":{"type":"string","title":"Kód produktu","examples":["0001"]},"amount":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Množství","description":"Očekávané množství produktu. Pokud je zadáno, vytvoří se záznam očekávaného produktu.","examples":[10]},"standard_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Standardní cena","description":"Nákupní cena produktu. Pokud je zadána, vytvoří se záznam ceny (pouze u příjemek).","examples":[100.0]},"discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sleva v procentech","description":"Sleva z ceny v procentech.","examples":[10.0]},"vat_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sazba DPH","examples":[21.0]}},"type":"object","required":["product_code"],"title":"MovementDocumentProductReq","description":"Položka produktu pro vytvoření/úpravu dokladu.\nMusí být zadáno množství (amount) a/nebo cena (standard_price).\n- Pokud je zadáno pouze množství: vytvoří se záznam očekávaného produktu.\n- Pokud je zadána pouze cena: vytvoří se záznam ceny produktu (pouze u příjemek).\n- Pokud je zadáno obojí: vytvoří se oba záznamy."},"MovementDocumentResponse":{"properties":{"documents":{"items":{"$ref":"#/components/schemas/MovementDocument"},"type":"array","title":"Seznam dokladů"},"page":{"type":"integer","title":"Číslo stránky","examples":[1]},"items_per_page":{"type":"integer","title":"Počet dokladů na stránku","examples":[50]},"total_items":{"type":"integer","title":"Celkový počet dokladů","examples":[200]}},"type":"object","required":["documents","page","items_per_page","total_items"],"title":"MovementDocumentResponse"},"MovementDocumentSupplier":{"properties":{"id":{"type":"integer","title":"ID dodavatele","examples":[1]},"name":{"type":"string","title":"Název dodavatele","examples":["ACME s.r.o."]}},"type":"object","required":["id","name"],"title":"MovementDocumentSupplier"},"MovementDocumentType":{"properties":{"document_id":{"type":"integer","title":"ID typu dokladu","examples":[1]},"document_name":{"type":"string","title":"Název typu dokladu","examples":["Příjemka"]},"document_type":{"type":"string","enum":["receipt","issue"],"title":"Typ dokladu","examples":["receipt"]},"eshop_sync":{"type":"boolean","title":"Synchronizace s e-shopem","examples":[true]},"queue_receipt":{"type":"boolean","title":"Nenaskladňovat přímo (fronta příjmu)","examples":[false]}},"type":"object","required":["document_id","document_name","document_type","eshop_sync","queue_receipt"],"title":"MovementDocumentType"},"MultipleCustomProductsResponse":{"properties":{"products":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomProductResponse"},"type":"array"},{"type":"null"}],"title":"Products"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["products","total"],"title":"MultipleCustomProductsResponse"},"Notes":{"properties":{"trackingNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trasovací číslo zásilky","description":"","examples":["DR123456"]},"eshopRemark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámka eshopu","description":"","examples":["Důležitá objednávka"]},"customerRemark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámka zákazníka","description":"","examples":["Spěchá"]}},"type":"object","title":"Notes"},"OrderAttribute":{"properties":{"order_code":{"type":"string","title":"Order Code","description":"Kód objednávky"},"attribute_code":{"type":"string","title":"Attribute Code","description":"ID atributu služby"},"value":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"integer"},{"type":"number"}],"title":"Value","description":"Hodnota atributu služby. Hodnota může být typu object(dict) jedině pokud je atribut spojen s produktem (pouze balílkobot)"}},"type":"object","required":["order_code","attribute_code"],"title":"OrderAttribute"},"OrderAttributesListResponse":{"properties":{"order_attributes":{"additionalProperties":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"integer"},{"type":"number"}]},"type":"object","title":"Order Attributes","description":"Seznam atributů služby pro objednávku, kde každý atribut je slovník s kódem a hodnotou"}},"type":"object","required":["order_attributes"],"title":"OrderAttributesListResponse"},"OrderAwaitingStockResponse":{"properties":{"order_code":{"type":"string","title":"Kód objednávky","example":"2024000123"},"missing_products":{"items":{"$ref":"#/components/schemas/AwaitingStockProduct"},"type":"array","title":"Chybějící produkty","description":"Produkty, které chybí pro tuto objednávku po zpracování automatizací Objednávky k expedici. Prázdný seznam znamená, že objednávka nečeká na sklad."}},"type":"object","required":["order_code","missing_products"],"title":"OrderAwaitingStockResponse"},"OrderCreate":{"properties":{"recipe_id":{"type":"integer","title":"ID kusovníku","description":"ID kusovníku, ze kterého se příkaz vytváří","examples":[1]},"batch_count":{"type":"integer","title":"Počet dávek","description":"Kolikrát se kusovník vyrobí","default":1,"examples":[5]},"priority":{"type":"string","enum":["low","normal","high","urgent"],"title":"Priorita","default":"normal","examples":["high"]},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Termín dokončení","examples":["2026-05-01T12:00:00"]},"order_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód objednávky","description":"Kód objednávky, ke které příkaz patří (povinné pro customization)","examples":["ORD-2026-001"]},"order_eshop_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID eshopu objednávky","description":"Povinné pro customization","examples":[219]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámky"},"internal_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interní poznámka"},"custom_inputs":{"items":{"$ref":"#/components/schemas/OrderCustomInput"},"type":"array","title":"Vlastní vstupy","description":"Vstupní produkty pro tento příkaz (používá se pro customization). Lze zadat více různých produktů z jedné objednávky."},"inputs":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecipeInput"},"type":"array"},{"type":"null"}],"title":"Vstupy příkazu","description":"Přetížení vstupů kusovníku pouze pro tento příkaz — lze změnit množství, vyměnit produkt, vstup přidat i odebrat. Původní kusovník zůstává beze změny. Nevyplněno = použijí se vstupy z kusovníku. Množství se zadává na jednu dávku. Nelze použít u kusovníku typu personalizace (tam slouží `custom_inputs`)."}},"type":"object","required":["recipe_id"],"title":"OrderCreate"},"OrderCustomInput":{"properties":{"product_code":{"type":"string","title":"Kód produktu","description":"SKU produktu použitého jako vlastní vstup","examples":["PROD-001"]},"amount":{"type":"integer","title":"Množství","examples":[5]}},"type":"object","required":["product_code","amount"],"title":"OrderCustomInput"},"OrderCustomInputResponse":{"properties":{"product_code":{"type":"string","title":"Kód produktu","description":"SKU produktu použitého jako vlastní vstup","examples":["PROD-001"]},"amount":{"type":"integer","title":"Množství","examples":[5]},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název produktu","examples":["Tričko bavlněné"]},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty","examples":["Červená / L"]}},"type":"object","required":["product_code","amount"],"title":"OrderCustomInputResponse"},"OrderCustomer":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jméno zákazníka","examples":["Jan Novák"]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telefon","examples":["+420777123456"]},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"E-mail","examples":["jan.novak@example.com"]}},"type":"object","title":"OrderCustomer"},"OrderDetail":{"properties":{"id":{"type":"integer","title":"ID příkazu","examples":[1]},"eshop_id":{"type":"integer","title":"ID eshopu","examples":[219]},"recipe_id":{"type":"integer","title":"ID kusovníku","examples":[1]},"recipe_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název kusovníku","examples":["Smíchání čaje 100g"]},"recipe_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typ kusovníku","examples":["assembly"]},"output_product_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód výstupního produktu","examples":["OUT-001"]},"output_product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název výstupního produktu"},"output_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Množství na výstup (na dávku)","examples":[10]},"batch_count":{"type":"integer","title":"Počet dávek","examples":[5]},"status":{"type":"string","title":"Status","examples":["waiting"]},"priority":{"type":"string","enum":["low","normal","high","urgent"],"title":"Priorita","examples":["normal"]},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Termín"},"order_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód objednávky"},"order_eshop_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID eshopu objednávky"},"order_eshop_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název eshopu objednávky"},"assigned_to_client_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID přiřazeného klienta"},"assigned_to_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jméno přiřazeného klienta"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum vytvoření"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum zahájení"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum dokončení"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum zrušení"},"created_by_client_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID klienta, který vytvořil příkaz","description":"Pro příkazy vytvořené přes public API bude hodnota -1","examples":[-1]},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jméno tvůrce"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámky"},"internal_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interní poznámka"},"custom_inputs":{"items":{"$ref":"#/components/schemas/OrderCustomInputResponse"},"type":"array","title":"Vlastní vstupy"},"inputs":{"items":{"$ref":"#/components/schemas/RecipeInputResponse"},"type":"array","title":"Vstupy příkazu","description":"Skutečné vstupy tohoto příkazu (množství na jednu dávku). Pokud nebyly přetíženy, jsou to vstupy kusovníku a jejich pozdější úprava se do příkazu promítne. U personalizace zůstává prázdné — tam se používá `custom_inputs`."},"inputs_overridden":{"type":"boolean","title":"Vstupy přetíženy","description":"True, pokud má příkaz vlastní vstupy — pak se ho pozdější úprava kusovníku už netýká. Přetížení lze zrušit odesláním `inputs: null`.","default":false,"examples":[false]},"recipe":{"anyOf":[{"$ref":"#/components/schemas/RecipeDetail"},{"type":"null"}],"title":"Detail kusovníku","description":"Kompletní data navázaného kusovníku"},"customer":{"anyOf":[{"$ref":"#/components/schemas/OrderCustomer"},{"type":"null"}],"title":"Kontakt na zákazníka","description":"Vyplněno jen u příkazu napojeného na objednávku (order_eshop_id + order_code)"}},"type":"object","required":["id","eshop_id","recipe_id","batch_count","status","priority"],"title":"OrderDetail"},"OrderOrderingItem":{"properties":{"order_code":{"type":"string","title":"Order Code","description":"Kód objednávky"},"ordering_number":{"type":"integer","title":"Ordering Number","description":"Číslo pro řazení objednávky v Baliči (0 = nenastaveno)."}},"type":"object","required":["order_code","ordering_number"],"title":"OrderOrderingItem"},"OrderOrderingRequest":{"properties":{"orders":{"items":{"$ref":"#/components/schemas/OrderOrderingItem"},"type":"array","title":"Orders","description":"Seznam objednávek a jejich čísel pro řazení"}},"type":"object","required":["orders"],"title":"OrderOrderingRequest"},"OrderPrioritiesRequest":{"properties":{"order_code":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Order Code","description":"Kód objednávky"},"priority":{"type":"integer","title":"Priority","description":"Priorita objednávky","gte":0,"lte":3}},"type":"object","required":["order_code","priority"],"title":"OrderPrioritiesRequest"},"OrderResponse":{"properties":{"id":{"type":"integer","title":"ID příkazu","examples":[1]},"eshop_id":{"type":"integer","title":"ID eshopu","examples":[219]},"recipe_id":{"type":"integer","title":"ID kusovníku","examples":[1]},"recipe_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název kusovníku","examples":["Smíchání čaje 100g"]},"recipe_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typ kusovníku","examples":["assembly"]},"output_product_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód výstupního produktu","examples":["OUT-001"]},"output_product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název výstupního produktu"},"output_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Množství na výstup (na dávku)","examples":[10]},"batch_count":{"type":"integer","title":"Počet dávek","examples":[5]},"status":{"type":"string","title":"Status","examples":["waiting"]},"priority":{"type":"string","enum":["low","normal","high","urgent"],"title":"Priorita","examples":["normal"]},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Termín"},"order_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód objednávky"},"order_eshop_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID eshopu objednávky"},"order_eshop_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název eshopu objednávky"},"assigned_to_client_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID přiřazeného klienta"},"assigned_to_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jméno přiřazeného klienta"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum vytvoření"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum zahájení"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum dokončení"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum zrušení"},"created_by_client_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID klienta, který vytvořil příkaz","description":"Pro příkazy vytvořené přes public API bude hodnota -1","examples":[-1]},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jméno tvůrce"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámky"},"internal_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interní poznámka"},"custom_inputs":{"items":{"$ref":"#/components/schemas/OrderCustomInputResponse"},"type":"array","title":"Vlastní vstupy"}},"type":"object","required":["id","eshop_id","recipe_id","batch_count","status","priority"],"title":"OrderResponse"},"OrderStatuses":{"properties":{"statuses":{"items":{"$ref":"#/components/schemas/Status-Output"},"type":"array","title":"Dostupné stavy na eshopu","description":"","examples":[[{"id":-1,"name":"Zabaleno"},{"id":-2,"name":"K expedici"}]]}},"type":"object","required":["statuses"],"title":"OrderStatuses"},"OrderTagsRequest":{"properties":{"order_code":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Order","description":"Kód objednávky nebo seznam kódů objednávek"},"tag_id":{"type":"integer","title":"Tag Id","description":"Id tagu"}},"type":"object","required":["order_code","tag_id"],"title":"OrderTagsRequest"},"OrderUpdate":{"properties":{"batch_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Počet dávek","examples":[10]},"priority":{"anyOf":[{"type":"string","enum":["low","normal","high","urgent"]},{"type":"null"}],"title":"Priorita","examples":["urgent"]},"recipe_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID kusovníku","description":"Změna kusovníku. Lze pouze u příkazu typu personalizace a pouze na jinou personalizaci.","examples":[2]},"order_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód objednávky","description":"Explicitní null vazbu na objednávku zruší (spolu s order_eshop_id).","examples":["ORD-2026-002"]},"order_eshop_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID eshopu objednávky","description":"Explicitní null vazbu na objednávku zruší (spolu s order_code).","examples":[219]},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Termín dokončení","examples":["2026-05-02T12:00:00"]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámky"},"internal_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interní poznámka"},"custom_inputs":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrderCustomInput"},"type":"array"},{"type":"null"}],"title":"Vlastní vstupy","description":"Pouze pro kusovníky typu personalizace (customization). Lze zadat více produktů z jedné objednávky."},"inputs":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecipeInput"},"type":"array"},{"type":"null"}],"title":"Vstupy příkazu","description":"Přetížení vstupů kusovníku pouze pro tento příkaz (množství na jednu dávku). Původní kusovník zůstává beze změny. Explicitní `null` vrátí vstupy zpět na kusovník. Prázdný seznam není povolen. Lze měnit jen u příkazu ve stavu čeká nebo probíhá."}},"type":"object","title":"OrderUpdate"},"OrdersListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OrderResponse"},"type":"array","title":"Seznam výrobních příkazů","description":"Výrobní příkazy na aktuální stránce"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Číslo stránky","examples":[1]},"items_per_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Počet příkazů na stránku","description":"Maximum je 100","examples":[50]},"total_items":{"type":"integer","title":"Celkový počet příkazů","description":"Celkový počet záznamů odpovídajících filtru","examples":[120]}},"type":"object","required":["items","total_items"],"title":"OrdersListResponse"},"OrgTag":{"properties":{"id":{"type":"integer","title":"Tag ID","description":"Unikátní ID tagu"},"name":{"type":"string","title":"Tag Name","description":"Název tagu"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Color","description":"Barva tagu v hex formátu"}},"type":"object","required":["id","name"],"title":"OrgTag"},"OrgTagsResponse":{"properties":{"tags":{"items":{"$ref":"#/components/schemas/OrgTag"},"type":"array","title":"Organization Tags","description":"Seznam tagů organizace"}},"type":"object","required":["tags"],"title":"OrgTagsResponse"},"PackedOrderInfo":{"properties":{"eshop_id":{"type":"integer","title":"ID eshopu","examples":[1]},"order_code":{"type":"string","title":"Kód objednávky","examples":["2024001234"]},"order_creation_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum vytvoření objednávky"},"order_status_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID aktuálního stavu objednávky","examples":[-2]},"shipping_method_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název dopravy","examples":["PPL"]},"picked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Kdy byla objednávka vypickována"},"picked_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kdo objednávku pickoval","examples":["Jana Nováková"]},"packed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Kdy byla objednávka zabalena"},"packed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kdo objednávku zabalil","examples":["Petr Svoboda"]},"cart_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Číslo vozíku","examples":[3]},"box_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Číslo boxu na vozíku","examples":[12]},"products_count":{"type":"integer","title":"Počet různých produktů v objednávce","examples":[3]},"items_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Počet kusů","description":"Snapshot z okamžiku zabalení","examples":[12.0]},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hmotnost v kg","description":"Snapshot z okamžiku zabalení","examples":[2.5]},"labels_count":{"type":"integer","title":"Počet existujících přepravních štítků","examples":[2]},"tracking_numbers":{"items":{"type":"string"},"type":"array","title":"Čísla štítků","examples":[["40547200042","40547200043"]]},"labels":{"items":{"$ref":"#/components/schemas/PackedOrderLabelInfo"},"type":"array","title":"Vygenerované štítky","description":"Aktivní štítky a URL jejich PDF"},"package_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo zásilky na objednávce","description":"Číslo předané eshopu","examples":["40547200042"]}},"type":"object","required":["eshop_id","order_code","products_count","labels_count"],"title":"PackedOrderInfo"},"PackedOrderLabelInfo":{"properties":{"tracking_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo štítku"},"pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL PDF štítku"}},"type":"object","title":"PackedOrderLabelInfo"},"PackedOrdersListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PackedOrderInfo"},"type":"array","title":"Zabalené objednávky","description":"Objednávky na aktuální stránce"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Číslo stránky","examples":[1]},"items_per_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Počet objednávek na stránku","description":"Maximum je 100","examples":[50]},"total_items":{"type":"integer","title":"Celkový počet objednávek","description":"Celkový počet záznamů odpovídajících filtru","examples":[120]}},"type":"object","required":["items","total_items"],"title":"PackedOrdersListResponse"},"PaymentMethod":{"properties":{"guid":{"type":"string","title":"GUID platby","description":"Může být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\""},"name":{"type":"string","title":"Název platby","description":"Může být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\""}},"type":"object","required":["guid","name"],"title":"PaymentMethod"},"PaymentMethods":{"properties":{"retail":{"$ref":"#/components/schemas/RetailPayment","title":"Pro maloobchod","description":""},"wholesale":{"$ref":"#/components/schemas/WholesalPayment","title":"Pro velkoobchod","description":""}},"type":"object","required":["retail","wholesale"],"title":"PaymentMethods"},"PerPricelistPrice":{"properties":{"code":{"type":"string","title":"Code"},"currencyCode":{"type":"string","title":"Currencycode"},"includingVat":{"type":"boolean","title":"Includingvat"},"vatRate":{"type":"string","title":"Vatrate"},"price":{"$ref":"#/components/schemas/shoptet_schemas__product__VariantPrice"},"sales":{"$ref":"#/components/schemas/PriceSales"},"orderableAmount":{"$ref":"#/components/schemas/ProductOrderableAmount"},"pricelistId":{"type":"integer","title":"Pricelistid"}},"type":"object","required":["code","currencyCode","includingVat","vatRate","price","sales","orderableAmount","pricelistId"],"title":"PerPricelistPrice","description":"Ceny dle ceníků."},"PerStockAmount":{"properties":{"stockId":{"type":"integer","title":"Stockid"},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount"},"claim":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"lastAmountUpdate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastamountupdate"}},"type":"object","required":["stockId"],"title":"PerStockAmount","description":"Množství na skladu."},"PickedOrderInfo":{"properties":{"eshop_id":{"type":"integer","title":"Eshop Id"},"eshop_name":{"type":"string","title":"Eshop Name"},"eshop_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eshop Url"},"order_code":{"type":"string","title":"Order Code"}},"type":"object","required":["eshop_id","eshop_name","eshop_url","order_code"],"title":"PickedOrderInfo"},"PickedProductInfo":{"properties":{"product_code":{"type":"string","title":"Product Code"},"location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Name"},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Name"},"batch_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Batch Id"},"picked_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Picked Amount"},"picked_item_datetime":{"type":"string","format":"date-time","title":"Picked Item Datetime"}},"type":"object","required":["product_code","picked_amount","picked_item_datetime"],"title":"PickedProductInfo"},"Price":{"properties":{"toPay":{"type":"string","title":"Cena k zaplacení - v případě dobírky se jedná o dobírkovou částku","examples":["100.90"]},"withVat":{"type":"string","title":"Celková cena objednávky s DPH - propisuje se jako hodnota k pojištění zásilky","examples":["100.90"]},"currencyCode":{"type":"string","title":"Kód měny","description":"Například CZK","examples":["CZK"]}},"type":"object","required":["toPay","withVat","currencyCode"],"title":"Price"},"PriceSales":{"properties":{"minPriceRatio":{"type":"string","title":"Minpriceratio"},"freeShipping":{"type":"boolean","title":"Freeshipping"},"freeBilling":{"type":"boolean","title":"Freebilling"},"loyaltyDiscount":{"type":"boolean","title":"Loyaltydiscount"},"volumeDiscount":{"type":"boolean","title":"Volumediscount"},"quantityDiscount":{"type":"boolean","title":"Quantitydiscount"},"discountCoupon":{"type":"boolean","title":"Discountcoupon"}},"type":"object","required":["minPriceRatio","freeShipping","freeBilling","loyaltyDiscount","volumeDiscount","quantityDiscount","discountCoupon"],"title":"PriceSales","description":"Prodejní nastavení ceny."},"Product-Input":{"properties":{"name":{"type":"string","title":"Název produktu","examples":["Chytré Hodinky"]},"guid":{"type":"string","title":"UUID produktu","description":"Může být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\""},"creationTime":{"type":"string","format":"date-time","title":"Datum vytvoření produktu","examples":["2024-02-15T12:00:00+01:00"]},"changeTime":{"type":"string","format":"date-time","title":"Datum poslední změny produktu","examples":["2024-02-15T15:30:00+01:00"]},"brand":{"anyOf":[{"$ref":"#/components/schemas/Brand"},{"type":"null"}]},"additionalName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additionalname"},"visibility":{"type":"string","title":"Visibility"},"type":{"anyOf":[{"$ref":"#/components/schemas/ProductType"},{"type":"null"}]},"internalNote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internalnote"},"images":{"anyOf":[{"items":{"$ref":"#/components/schemas/Image-Input"},"type":"array"},{"type":"null"}],"title":"Images","description":"Obrázky produktu. Při editaci vynechání pole zachová uložené obrázky, null je smaže a seznam je nahradí."},"setItems":{"anyOf":[{"items":{"$ref":"#/components/schemas/SetItem-Input"},"type":"array"},{"type":"null"}],"title":"Setitems"},"variants":{"items":{"$ref":"#/components/schemas/Variant-Input"},"type":"array","title":"Variants"}},"type":"object","required":["name","guid","creationTime","visibility","variants"],"title":"Product"},"ProductConsumptionTax":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"price":{"type":"string","title":"Price"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["id","name","price","currency"],"title":"ProductConsumptionTax","description":"Spotřební daň produktu."},"ProductGift":{"properties":{"code":{"type":"string","title":"Code"},"priority":{"type":"integer","title":"Priority"}},"type":"object","required":["code","priority"],"title":"ProductGift","description":"Dárek k produktu."},"ProductOrderableAmount":{"properties":{"minimumAmount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Minimumamount"},"maximumAmount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maximumamount"}},"type":"object","title":"ProductOrderableAmount","description":"Objednatelné množství."},"ProductRecipeRef":{"properties":{"recipe_id":{"type":"integer","title":"ID kusovníku","examples":[1]},"recipe_name":{"type":"string","title":"Název kusovníku","examples":["Smíchání čaje 100g"]},"output_amount":{"type":"integer","title":"Výstupní množství","description":"Počet kusů produktu vyrobených z jedné dávky","examples":[10]},"recipe_type":{"type":"string","title":"Typ kusovníku","description":"assembly, split nebo customization","examples":["assembly"]}},"type":"object","required":["recipe_id","recipe_name","output_amount","recipe_type"],"title":"ProductRecipeRef"},"ProductSurchargeParameter":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"required":{"type":"boolean","title":"Required"},"currency":{"type":"string","title":"Currency"},"includingVat":{"type":"boolean","title":"Includingvat"},"values":{"items":{"$ref":"#/components/schemas/ProductSurchargeParameterValue"},"type":"array","title":"Values"}},"type":"object","required":["code","name","required","currency","includingVat","values"],"title":"ProductSurchargeParameter","description":"Příplatkový parametr."},"ProductSurchargeParameterValue":{"properties":{"valueIndex":{"type":"string","title":"Valueindex"},"description":{"type":"string","title":"Description"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"visible":{"type":"boolean","title":"Visible"}},"type":"object","required":["valueIndex","description","visible"],"title":"ProductSurchargeParameterValue","description":"Hodnota příplatkového parametru."},"ProductType":{"type":"string","enum":["product","bazar","service","gift-certificate","product-set"],"title":"ProductType"},"PurchaseOrder":{"properties":{"id":{"type":"integer","title":"ID objednávky","examples":[1]},"name":{"type":"string","title":"Název objednávky","examples":["Objednávka leden 2024"]},"status":{"$ref":"#/components/schemas/PurchaseOrderStatus","title":"Stav objednávky"},"supplier":{"$ref":"#/components/schemas/PurchaseOrderSupplier","title":"Dodavatel"},"document_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo dokladu","description":"Interní číslo dokladu","examples":["DOC-2024-001"]},"order_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo objednávky","description":"Interní číslo objednávky","examples":["ORD-12345"]},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Komentář","examples":["Urgentní dodávka"]},"created_at":{"type":"string","format":"date-time","title":"Datum vytvoření","examples":["2024-01-10T14:30:00"]},"estimated_delivery_at":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Odhadované datum dodání","examples":["2024-01-20"]},"movement_document":{"anyOf":[{"$ref":"#/components/schemas/PurchaseOrderLinkedDocument"},{"type":"null"}],"title":"Navázaný doklad"},"products_count":{"type":"integer","title":"Počet různých produktů","description":"Počet různých SKU v objednávce","default":0,"examples":[15]},"total_pieces":{"type":"integer","title":"Celkový počet kusů","description":"Celkové množství všech produktů","default":0,"examples":[250]},"order_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hodnota objednávky","description":"Celková hodnota objednávky v nákupních cenách","examples":[15750.5]},"order_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Měna objednávky","examples":["CZK"]},"order_value_supplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Order Value Supplier"},"received_pieces":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Naskladněno kusů","description":"Počet kusů již naskladněných na navázané příjemce. None, pokud VO není napojená na příjemku.","examples":[120]},"pinned":{"type":"boolean","title":"Připnuto","default":false}},"type":"object","required":["id","name","status","supplier","created_at"],"title":"PurchaseOrder"},"PurchaseOrderCreate":{"properties":{"name":{"type":"string","title":"Name"},"status_id":{"type":"integer","title":"Status Id"},"supplier_id":{"type":"integer","title":"Supplier Id"},"document_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Number"},"order_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Number"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"estimated_delivery_at":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Estimated Delivery At"}},"type":"object","required":["name","status_id","supplier_id","document_number","order_number","comment","estimated_delivery_at"],"title":"PurchaseOrderCreate"},"PurchaseOrderDetail":{"properties":{"id":{"type":"integer","title":"ID objednávky","examples":[1]},"name":{"type":"string","title":"Název objednávky","examples":["Objednávka leden 2024"]},"status":{"$ref":"#/components/schemas/PurchaseOrderStatus","title":"Stav objednávky"},"supplier":{"$ref":"#/components/schemas/PurchaseOrderSupplier","title":"Dodavatel"},"document_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo dokladu","description":"Interní číslo dokladu","examples":["DOC-2024-001"]},"order_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo objednávky","description":"Interní číslo objednávky","examples":["ORD-12345"]},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Komentář","examples":["Urgentní dodávka"]},"created_at":{"type":"string","format":"date-time","title":"Datum vytvoření","examples":["2024-01-10T14:30:00"]},"estimated_delivery_at":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Odhadované datum dodání","examples":["2024-01-20"]},"movement_document":{"anyOf":[{"$ref":"#/components/schemas/PurchaseOrderLinkedDocument"},{"type":"null"}],"title":"Navázaný doklad"},"products_count":{"type":"integer","title":"Počet různých produktů","description":"Počet různých SKU v objednávce","default":0,"examples":[15]},"total_pieces":{"type":"integer","title":"Celkový počet kusů","description":"Celkové množství všech produktů","default":0,"examples":[250]},"order_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hodnota objednávky","description":"Celková hodnota objednávky v nákupních cenách","examples":[15750.5]},"order_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Měna objednávky","examples":["CZK"]},"order_value_supplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Order Value Supplier"},"received_pieces":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Naskladněno kusů","description":"Počet kusů již naskladněných na navázané příjemce. None, pokud VO není napojená na příjemku.","examples":[120]},"pinned":{"type":"boolean","title":"Připnuto","default":false},"products":{"items":{"$ref":"#/components/schemas/PurchaseOrderProduct"},"type":"array","title":"Seznam produktů","description":"Seznam všech produktů v objednávce s cenami a množstvím"},"total_received_pieces":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Naskladněno kusů celkem","description":"Součet již naskladněných kusů přes všechny položky. None, pokud VO není napojená na příjemku.","examples":[120]}},"type":"object","required":["id","name","status","supplier","created_at","products"],"title":"PurchaseOrderDetail"},"PurchaseOrderLinkedDocument":{"properties":{"document_id":{"type":"integer","title":"ID dokladu","examples":[123]},"status":{"type":"string","title":"Stav dokladu","examples":["open"]},"archived":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum archivace","examples":["2024-01-15T10:30:00"]}},"type":"object","required":["document_id","status"],"title":"PurchaseOrderLinkedDocument"},"PurchaseOrderProduct":{"properties":{"sku":{"type":"string","title":"SKU produktu","description":"Kód produktu/varianty","examples":["PROD-001-RED-L"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název produktu","examples":["Tričko bavlněné"]},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty","examples":["Červená / L"]},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL obrázku","examples":["https://cdn.example.com/products/prod-001.jpg"]},"amount":{"type":"integer","title":"Množství","description":"Objednané množství kusů","examples":[50]},"received_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Přijaté množství","description":"Počet kusů této položky již naskladněných na navázané příjemce. None, pokud VO není napojená na příjemku.","examples":[30]},"current_stock":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Aktuální skladovost","description":"Zásoba položky v Brani skladu bez neskladových sektorů - stejné číslo, jaké `GET /inventory/stock-info/` vrací jako `brani_stock.without_neskladove`.","examples":[12.0]},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámka","description":"Poznámka k položce objednávky","examples":["Doobjednat prioritně"]},"purchase_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nákupní cena","description":"Nákupní cena za kus","examples":[125.5]},"purchase_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Měna nákupní ceny","examples":["CZK"]},"purchase_price_supplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Purchase Price Supplier"},"ean":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"EAN"},"plu_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"PLU kód"},"isbn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"ISBN"},"serial_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sériové číslo"},"mpn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo dílu výrobce (MPN)"},"manufacturer_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód výrobce"},"brand_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód značky"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Značka"},"internal_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interní poznámka"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL produktu"},"line_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hodnota řádku","description":"Celková hodnota řádku (množství × cena)","examples":[6275.0]},"recipes":{"items":{"$ref":"#/components/schemas/ProductRecipeRef"},"type":"array","title":"Dostupné kusovníky","description":"Seznam kusovníků, přes které lze tuto položku vyrobit (prázdné, pokud výroba není dostupná)"},"manufacture_order":{"anyOf":[{"$ref":"#/components/schemas/ManufactureOrderRef"},{"type":"null"}],"title":"Výrobní příkaz","description":"Navázaný výrobní příkaz, pokud je položka ve výrobě"},"awaiting_covered_amount":{"type":"integer","title":"Kusů do čekajících objednávek","description":"Počet kusů této položky, které pokrývají čekající objednávky (auto-expedice)","default":0,"examples":[8]},"awaiting_extra_amount":{"type":"integer","title":"Kusů navíc","description":"Počet kusů této položky, které nejsou přiřazeny žádné čekající objednávce","default":0,"examples":[2]},"awaiting_orders":{"items":{"$ref":"#/components/schemas/PurchaseOrderProductAwaitingOrder"},"type":"array","title":"Čekající objednávky pokryté touto VO","description":"Seznam objednávek, do kterých kusy této položky míří, s počtem kusů"}},"type":"object","required":["sku","amount"],"title":"PurchaseOrderProduct"},"PurchaseOrderProductAwaitingOrder":{"properties":{"eshop_id":{"type":"integer","title":"ID e-shopu objednávky","examples":[123]},"eshop_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název e-shopu objednávky","examples":["Můj e-shop"]},"order_code":{"type":"string","title":"Kód objednávky","examples":["ORD-2024-0042"]},"covered_amount":{"type":"integer","title":"Počet kusů pro tuto objednávku","examples":[5]}},"type":"object","required":["eshop_id","order_code","covered_amount"],"title":"PurchaseOrderProductAwaitingOrder"},"PurchaseOrderProductItem":{"properties":{"code":{"type":"string","title":"Code"},"amount":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["code","amount"],"title":"PurchaseOrderProductItem"},"PurchaseOrderProductRef":{"properties":{"product_code":{"type":"string","title":"Product Code"}},"type":"object","required":["product_code"],"title":"PurchaseOrderProductRef"},"PurchaseOrderProductUpdate":{"properties":{"product_code":{"type":"string","title":"Product Code"},"amount":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Amount"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["product_code"],"title":"PurchaseOrderProductUpdate"},"PurchaseOrderProductsRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PurchaseOrderProductItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"PurchaseOrderProductsRequest"},"PurchaseOrderSortOption":{"type":"string","enum":["created_at_desc","created_at_asc","estimated_delivery_at_desc","estimated_delivery_at_asc"],"title":"PurchaseOrderSortOption"},"PurchaseOrderStatus":{"properties":{"id":{"type":"integer","title":"ID stavu","examples":[1]},"name":{"type":"string","title":"Název stavu","examples":["Nová"]},"color":{"type":"string","title":"Barva stavu","description":"Hexadecimální kód barvy","examples":["#4CAF50"]},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pořadí řazení","examples":[1]}},"type":"object","required":["id","name","color"],"title":"PurchaseOrderStatus"},"PurchaseOrderSupplier":{"properties":{"id":{"type":"integer","title":"ID dodavatele","examples":[1]},"name":{"type":"string","title":"Název dodavatele","examples":["ABC Trading s.r.o."]},"ico":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"IČO dodavatele","examples":["12345678"]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"delivery_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Počet dní na dodání","examples":[7]},"eshop_supplier_guids":{"items":{"type":"string"},"type":"array","title":"Napárovaní dodavatelé v eshopu"}},"type":"object","required":["id","name"],"title":"PurchaseOrderSupplier"},"PurchaseOrderUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název objednávky","examples":["Objednávka leden 2024 - upraveno"]},"status_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID stavu","description":"ID nového stavu objednávky","examples":[2]},"supplier_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID dodavatele","description":"ID dodavatele","examples":[1]},"document_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo dokladu","description":"Interní číslo dokladu","examples":["DOC-2024-001"]},"order_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo objednávky","description":"Interní číslo objednávky","examples":["ORD-12345"]},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Komentář","examples":["Urgentní dodávka - potvrzeno dodavatelem"]},"estimated_delivery_at":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Odhadované datum dodání","examples":["2024-01-22"]}},"type":"object","title":"PurchaseOrderUpdate"},"PurchaseOrdersResponse":{"properties":{"orders":{"items":{"$ref":"#/components/schemas/PurchaseOrder"},"type":"array","title":"Seznam objednávek"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Číslo stránky","examples":[1]},"items_per_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Počet objednávek na stránku","examples":[50]},"total_items":{"type":"integer","title":"Celkový počet objednávek","examples":[200]}},"type":"object","required":["orders","total_items"],"title":"PurchaseOrdersResponse"},"RecipeCreate":{"properties":{"name":{"type":"string","title":"Název kusovníku","description":"Název kusovníku","examples":["Smíchání čaje o hmotnosti 100g"]},"recipe_type":{"type":"string","title":"Typ kusovníku","description":"assembly = smíchání více vstupů, split = rozdělení vstupu, customization = personalizace","examples":["assembly"]},"track_remainder":{"type":"boolean","title":"Sledovat zbytky","description":"Zapnout evidenci nespotřebovaných vstupů (zbytků)","default":false,"examples":[false]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámky","examples":["Interní poznámka ke kusovníku"]},"receipt_document_type_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Typ příjemky","description":"ID typu skladového dokladu pro automatickou příjemku (povinné pro assembly a split)","examples":[5]},"issue_document_type_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Typ výdejky","description":"ID typu skladového dokladu pro automatickou výdejku (povinné pro assembly a split)","examples":[6]},"archive_documents":{"type":"boolean","title":"Archivovat doklady","description":"Automaticky archivovat vygenerované skladové doklady po dokončení výroby","default":false,"examples":[false]},"inputs":{"items":{"$ref":"#/components/schemas/RecipeInput"},"type":"array","title":"Vstupy","description":"Seznam vstupních produktů"},"outputs":{"items":{"$ref":"#/components/schemas/RecipeOutput"},"type":"array","title":"Výstupy","description":"Seznam výstupních produktů"},"remainders":{"items":{"$ref":"#/components/schemas/RecipeRemainder"},"type":"array","title":"Zbytky","description":"Seznam sledovaných zbytkových produktů"}},"type":"object","required":["name","recipe_type"],"title":"RecipeCreate"},"RecipeDetail":{"properties":{"id":{"type":"integer","title":"ID kusovníku","examples":[1]},"eshop_id":{"type":"integer","title":"ID eshopu","examples":[219]},"name":{"type":"string","title":"Název","examples":["Smíchání čaje 100g"]},"recipe_type":{"type":"string","title":"Typ kusovníku","examples":["assembly"]},"track_remainder":{"type":"boolean","title":"Sledovat zbytky","examples":[false]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum vytvoření","examples":["2026-01-10T14:30:00"]},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum archivace","examples":[null]},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum poslední úpravy","examples":["2026-03-05T09:15:00"]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámky"},"receipt_document_type_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Typ příjemky","examples":[5]},"issue_document_type_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Typ výdejky","examples":[6]},"archive_documents":{"type":"boolean","title":"Archivovat doklady","default":false},"receipt_document_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název typu příjemky","examples":["Příjemka výroby"]},"issue_document_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název typu výdejky","examples":["Výdejka výroby"]},"inputs":{"items":{"$ref":"#/components/schemas/RecipeInputResponse"},"type":"array","title":"Vstupy"},"outputs":{"items":{"$ref":"#/components/schemas/RecipeOutputResponse"},"type":"array","title":"Výstupy"},"remainders":{"items":{"$ref":"#/components/schemas/RecipeRemainderResponse"},"type":"array","title":"Zbytky"}},"type":"object","required":["id","eshop_id","name","recipe_type","track_remainder"],"title":"RecipeDetail"},"RecipeInput":{"properties":{"product_code":{"type":"string","title":"Kód produktu","description":"SKU vstupního produktu","examples":["PROD-001"]},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Množství","description":"Množství vstupu na jednu dávku výroby","examples":[2.5]},"unit":{"type":"string","title":"Jednotka","description":"Jednotka množství (ks, kg, l, m atd.)","default":"ks","examples":["kg"]}},"type":"object","required":["product_code","amount"],"title":"RecipeInput"},"RecipeInputResponse":{"properties":{"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název produktu","examples":["Tričko bavlněné"]},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty","examples":["Červená / L"]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL obrázku","examples":["https://cdn.example.com/products/prod-001.jpg"]},"ean":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"EAN","examples":["8594000000017"]},"packaging_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Množství v balení","examples":[1.0]},"packaging_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jednotka balení","examples":["ks"]},"product_code":{"type":"string","title":"Kód produktu","description":"SKU vstupního produktu","examples":["PROD-001"]},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Množství","description":"Množství vstupu na jednu dávku výroby","examples":[2.5]},"unit":{"type":"string","title":"Jednotka","description":"Jednotka množství (ks, kg, l, m atd.)","default":"ks","examples":["kg"]}},"type":"object","required":["product_code","amount"],"title":"RecipeInputResponse"},"RecipeOutput":{"properties":{"product_code":{"type":"string","title":"Kód produktu","description":"SKU výstupního produktu","examples":["OUT-001"]},"amount":{"type":"integer","title":"Množství","description":"Počet kusů vyrobených z jedné dávky","examples":[10]}},"type":"object","required":["product_code","amount"],"title":"RecipeOutput"},"RecipeOutputResponse":{"properties":{"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název produktu","examples":["Tričko bavlněné"]},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty","examples":["Červená / L"]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL obrázku","examples":["https://cdn.example.com/products/prod-001.jpg"]},"ean":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"EAN","examples":["8594000000017"]},"packaging_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Množství v balení","examples":[1.0]},"packaging_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jednotka balení","examples":["ks"]},"product_code":{"type":"string","title":"Kód produktu","description":"SKU výstupního produktu","examples":["OUT-001"]},"amount":{"type":"integer","title":"Množství","description":"Počet kusů vyrobených z jedné dávky","examples":[10]}},"type":"object","required":["product_code","amount"],"title":"RecipeOutputResponse"},"RecipeRemainder":{"properties":{"product_code":{"type":"string","title":"Kód produktu","description":"SKU zbývajícího produktu","examples":["REM-001"]},"unit":{"type":"string","title":"Jednotka","description":"Jednotka zbytku","examples":["kg"]}},"type":"object","required":["product_code","unit"],"title":"RecipeRemainder"},"RecipeRemainderResponse":{"properties":{"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název produktu","examples":["Tričko bavlněné"]},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty","examples":["Červená / L"]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL obrázku","examples":["https://cdn.example.com/products/prod-001.jpg"]},"ean":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"EAN","examples":["8594000000017"]},"packaging_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Množství v balení","examples":[1.0]},"packaging_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jednotka balení","examples":["ks"]},"product_code":{"type":"string","title":"Kód produktu","description":"SKU zbývajícího produktu","examples":["REM-001"]},"unit":{"type":"string","title":"Jednotka","description":"Jednotka zbytku","examples":["kg"]}},"type":"object","required":["product_code","unit"],"title":"RecipeRemainderResponse"},"RecipeResponse":{"properties":{"id":{"type":"integer","title":"ID kusovníku","examples":[1]},"eshop_id":{"type":"integer","title":"ID eshopu","examples":[219]},"name":{"type":"string","title":"Název","examples":["Smíchání čaje 100g"]},"recipe_type":{"type":"string","title":"Typ kusovníku","examples":["assembly"]},"track_remainder":{"type":"boolean","title":"Sledovat zbytky","examples":[false]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum vytvoření","examples":["2026-01-10T14:30:00"]},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum archivace","examples":[null]},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum poslední úpravy","examples":["2026-03-05T09:15:00"]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámky"},"receipt_document_type_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Typ příjemky","examples":[5]},"issue_document_type_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Typ výdejky","examples":[6]},"archive_documents":{"type":"boolean","title":"Archivovat doklady","default":false}},"type":"object","required":["id","eshop_id","name","recipe_type","track_remainder"],"title":"RecipeResponse"},"RecipeUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název kusovníku","examples":["Smíchání čaje o hmotnosti 100g - upraveno"]},"recipe_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typ kusovníku","description":"Pouze pro validaci - typ nelze měnit po vytvoření","examples":["assembly"]},"track_remainder":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sledovat zbytky","examples":[true]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poznámky","examples":["Nová poznámka"]},"receipt_document_type_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Typ příjemky","examples":[5]},"issue_document_type_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Typ výdejky","examples":[6]},"archive_documents":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archivovat doklady","examples":[true]},"inputs":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecipeInput"},"type":"array"},{"type":"null"}],"title":"Vstupy"},"outputs":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecipeOutput"},"type":"array"},{"type":"null"}],"title":"Výstupy"},"remainders":{"anyOf":[{"items":{"$ref":"#/components/schemas/RecipeRemainder"},"type":"array"},{"type":"null"}],"title":"Zbytky"}},"type":"object","title":"RecipeUpdate"},"RecipesListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RecipeResponse"},"type":"array","title":"Seznam kusovníků","description":"Kusovníky na aktuální stránce (bez archivovaných)"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Číslo stránky","examples":[1]},"items_per_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Počet kusovníků na stránku","description":"Maximum je 100","examples":[50]},"total_items":{"type":"integer","title":"Celkový počet kusovníků","description":"Celkový počet záznamů odpovídajících filtru","examples":[120]}},"type":"object","required":["items","total_items"],"title":"RecipesListResponse"},"RecyclingFeeCategory":{"properties":{"id":{"type":"integer","title":"Id"},"category":{"type":"string","title":"Category"},"fee":{"type":"string","title":"Fee"},"unit":{"type":"string","enum":["pcs","kg"],"title":"Unit"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["id","category","fee","unit","currency"],"title":"RecyclingFeeCategory","description":"Kategorie recyklačního poplatku."},"RelatedFile":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"url":{"type":"string","title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"}},"type":"object","required":["url"],"title":"RelatedFile","description":"Související soubor."},"RelatedProduct":{"properties":{"guid":{"type":"string","title":"Guid"},"priority":{"type":"integer","title":"Priority"},"visibility":{"type":"string","title":"Visibility"},"linkType":{"type":"string","title":"Linktype"}},"type":"object","required":["guid","priority","visibility","linkType"],"title":"RelatedProduct","description":"Související produkt."},"RelatedVideo":{"properties":{"code":{"type":"string","title":"Code"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"type":{"type":"string","enum":["youtube","youtube-short"],"title":"Type"}},"type":"object","required":["code","type"],"title":"RelatedVideo","description":"Související video."},"RemoveOrderTagsResponse":{"properties":{"removed_order_tags":{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__routers__schema__OrderTag","title":"Removed Order Tags","description":"Seznam objednávek s odebranými tagy"},"warnings":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Warnings","description":"Seznam varování při změně tagů"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors","description":"Seznam chyb při změně tagů"}},"type":"object","required":["removed_order_tags"],"title":"RemoveOrderTagsResponse"},"ResponseEshop":{"properties":{"eshop_id":{"type":"integer","title":"Eshop Id","description":"ID eshopu"},"eshop_name":{"type":"string","title":"Eshop Name","description":"Název eshopu"},"eshop_url":{"type":"string","title":"Eshop Url","description":"URL eshopu"},"enabled":{"type":"boolean","title":"Enabled","description":"Zda je Balič tohoto eshopu povolen"}},"type":"object","required":["eshop_id","eshop_name","eshop_url","enabled"],"title":"ResponseEshop","description":"Base model for eshop in API response"},"ResponseEshopWithMultiEshop":{"properties":{"eshop_id":{"type":"integer","title":"Eshop Id","description":"ID eshopu"},"eshop_name":{"type":"string","title":"Eshop Name","description":"Název eshopu"},"eshop_url":{"type":"string","title":"Eshop Url","description":"URL eshopu"},"enabled":{"type":"boolean","title":"Enabled","description":"Zda je Balič tohoto eshopu povolen"},"multieshop_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Multieshop Id","description":"ID multieshopu, pokud existuje"},"is_shoptet":{"type":"boolean","title":"Is Shoptet","description":"Zda je eshop typu Shoptet"}},"type":"object","required":["eshop_id","eshop_name","eshop_url","enabled","is_shoptet"],"title":"ResponseEshopWithMultiEshop","description":"Model for secondary eshop in API response"},"ResponseEshopWithWarehouse":{"properties":{"eshop_id":{"type":"integer","title":"Eshop Id","description":"ID eshopu"},"eshop_name":{"type":"string","title":"Eshop Name","description":"Název eshopu"},"eshop_url":{"type":"string","title":"Eshop Url","description":"URL eshopu"},"enabled":{"type":"boolean","title":"Enabled","description":"Zda je Balič tohoto eshopu povolen"},"multieshop_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Multieshop Id","description":"ID multieshopu, pokud existuje"},"is_shoptet":{"type":"boolean","title":"Is Shoptet","description":"Zda je eshop typu Shoptet"},"warehouse":{"anyOf":[{"$ref":"#/components/schemas/ResponseWarehouse"},{"type":"null"}],"description":"Konfigurace skladu, pokud existuje"}},"type":"object","required":["eshop_id","eshop_name","eshop_url","enabled","is_shoptet"],"title":"ResponseEshopWithWarehouse","description":"Model for eshop with warehouse in API response"},"ResponseSecondaryMultieshop":{"properties":{"multieshop_id":{"type":"integer","title":"Multieshop Id","description":"ID multieshopu"},"eshops":{"items":{"$ref":"#/components/schemas/ResponseEshop"},"type":"array","title":"Eshops","description":"Seznam eshopů v multieshopu"}},"type":"object","required":["multieshop_id"],"title":"ResponseSecondaryMultieshop","description":"Model for multieshop in API response"},"ResponseWarehouse":{"properties":{"eshop_id":{"type":"integer","title":"Eshop Id","description":"ID eshopu"},"eshop_name":{"type":"string","title":"Eshop Name","description":"Název eshopu"},"eshop_url":{"type":"string","title":"Eshop Url","description":"URL eshopu"},"enabled":{"type":"boolean","title":"Enabled","description":"Zda je Balič tohoto eshopu povolen"},"activated_at":{"type":"string","format":"date-time","title":"Activated At","description":"Datum aktivace skladu"},"mode":{"type":"string","title":"Mode","description":"Režim skladu"},"secondary_eshops":{"items":{"$ref":"#/components/schemas/ResponseEshopWithMultiEshop"},"type":"array","title":"Secondary Eshops","description":"Seznam sekundárních eshopů, které tento sklad obsluhuje"},"secondary_multieshops":{"items":{"$ref":"#/components/schemas/ResponseSecondaryMultieshop"},"type":"array","title":"Secondary Multieshops","description":"Seznam multieshopů, které tento sklad obsluhuje"}},"type":"object","required":["eshop_id","eshop_name","eshop_url","enabled","activated_at","mode"],"title":"ResponseWarehouse","description":"Model for warehouse in API response"},"RetailPayment":{"properties":{"methods":{"items":{"$ref":"#/components/schemas/PaymentMethod"},"type":"array","title":"Seznam metod plateb","description":"","examples":[[{"guid":"08962fe8-ea34-4f69-be75-b62ef1dcac2f","name":"Dobírka"}]]}},"type":"object","required":["methods"],"title":"RetailPayment"},"RetailShipping":{"properties":{"methods":{"items":{"$ref":"#/components/schemas/ShippingMethod"},"type":"array","title":"Seznam metod doprav","description":"","examples":[[{"guid":"6d33d5bc-0b65-4284-9c1a-dcd7a4f4d31c","name":"Česká pošta"}]]}},"type":"object","required":["methods"],"title":"RetailShipping"},"Sector":{"properties":{"id":{"type":"integer","title":"Id","description":"Unikátní identifikátor sektoru"},"sector_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sector Name","description":"Název sektoru"},"order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Order","description":"Pořadí sektoru"},"disabled_picking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disabled Picking","description":"Indikuje, zda je zakázáno pickování z pozic tohoto sektoru"},"neskladovy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Neskladovy","description":"Indikuje, zda je sektor neskladový"},"shoptet_stock_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shoptet Stock Id","description":"ID skladu v Shoptetu pro tento sektor (NULL = hlavní sklad)"},"povolit_na_jedne_pozici_vice_sarzi":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Povolit Na Jedne Pozici Vice Sarzi","description":"Povoluje více šarží na jedné pozici"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color","description":"Barva"},"stock_locations_mode":{"anyOf":[{"type":"string","enum":["basic","chaos"]},{"type":"null"}],"title":"Stock Locations Mode","description":"Režim sektoru - 'basic' = produkt může být pouze na jedné pozici v tomto sektoru"},"is_handling_units_sector":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Handling Units Sector"}},"type":"object","required":["id"],"title":"Sector"},"ServiceAttribute":{"properties":{"attribute":{"type":"string","title":"Attribute","description":"Kód atributu"},"name":{"type":"string","title":"Name","description":"Název atributu"},"product_attribute":{"type":"boolean","title":"Product Attribute","description":"Je-li atribut spojen s produktem (pouze balílkobot)","default":false}},"type":"object","required":["attribute","name"],"title":"ServiceAttribute"},"ServiceAttributeResponse":{"properties":{"service_attributes":{"additionalProperties":{"items":{"$ref":"#/components/schemas/ServiceAttribute"},"type":"array"},"type":"object","title":"Service Attributes","description":"Seznam atributů služby, kde klíčem je kód služby a hodnotou seznam atributů","examples":[{"balikobot":[{"attribute":"weight","name":"Váha (kg)","product_attribute":false},{"attribute":"volume","name":"Celkový objem (m3)","product_attribute":false},{"attribute":"length","name":"Rozměr zásilky – délka (cm)","product_attribute":false},{"attribute":"content_description","name":"Produkt: Popis","product_attribute":true}],"chameleoon":[{"attribute":"Parameters.EUR","name":"Vrácení europalety","product_attribute":false},{"attribute":"Parameters.VDP","name":"Vrácení dvojpalety","product_attribute":false},{"attribute":"Parameters.HAP","name":"Vrácení půlpalety","product_attribute":false}]}]}},"type":"object","required":["service_attributes"],"title":"ServiceAttributeResponse"},"SetAttrResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Status operace","examples":["success"]},"message":{"type":"string","title":"Message","description":"Human readable status","examples":["Nastavená hodnota atributu služby pro objednávku"]}},"type":"object","required":["status","message"],"title":"SetAttrResponse"},"SetItem-Input":{"properties":{"guid":{"type":"string","title":"UUID produktu v sadě","description":"Může být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\""},"code":{"type":"string","title":"Kód produktu v sadě","examples":["0001"]},"amount":{"type":"string","pattern":"^\\d+\\.\\d{3}$","title":"Množství v sadě","description":"String representing a number with exactly three decimal places","examples":["3.000"]}},"type":"object","required":["guid","code","amount"],"title":"SetItem"},"SetLinkedPurchaseOrdersResponse":{"properties":{"linked_ids":{"items":{"type":"integer"},"type":"array","title":"Připojené IDs","description":"ID objednávek, které byly připojeny k dokladu","examples":[[1,2]]},"unlinked_ids":{"items":{"type":"integer"},"type":"array","title":"Odpojené IDs","description":"ID objednávek, které byly odpojeny od dokladu","examples":[[3]]},"totals_added":{"additionalProperties":{"type":"integer"},"type":"object","title":"Přidané položky celkem","description":"Souhrnné množství přidaných produktů z objednávek (SKU: množství)","examples":[{"PROD-001":10,"PROD-002":5}]},"totals_removed":{"additionalProperties":{"type":"integer"},"type":"object","title":"Odebrané položky celkem","description":"Souhrnné množství odebraných produktů z objednávek (SKU: množství)","examples":[{"PROD-003":8}]}},"type":"object","required":["linked_ids","unlinked_ids","totals_added","totals_removed"],"title":"SetLinkedPurchaseOrdersResponse"},"ShippingDetails":{"properties":{"branchId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"ID výdejního místa","description":"ID výdejního místa, kam má být objednávka doručena","examples":["62"]},"carrierId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"ID koncového přepravce","description":"ID koncového přepravce, který do výdejního místa doručuje","examples":["62"]}},"type":"object","title":"ShippingDetails"},"ShippingMethod":{"properties":{"guid":{"type":"string","title":"GUID dopravy","description":"Může být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\""},"name":{"type":"string","title":"Název dopravy","description":"Může být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\""}},"type":"object","required":["guid","name"],"title":"ShippingMethod"},"ShippingMethods":{"properties":{"retail":{"$ref":"#/components/schemas/RetailShipping","title":"Pro maloobchod","description":""},"wholesale":{"$ref":"#/components/schemas/WholesalShipping","title":"Pro velkoobchod","description":""}},"type":"object","required":["retail","wholesale"],"title":"ShippingMethods"},"SingleCustomProductResponse":{"properties":{"product":{"$ref":"#/components/schemas/CustomProductResponse"}},"type":"object","required":["product"],"title":"SingleCustomProductResponse"},"SingleMovementDocument":{"properties":{"document_id":{"type":"integer","title":"ID dokladu","examples":[123]},"document_type_id":{"type":"integer","title":"ID typu dokladu","examples":[1]},"document_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo dokladu","examples":["Doc_123"]},"order_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo objednávky","examples":["#1234"]},"package_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Číslo balíku","examples":["A4321"]},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Komentář","examples":["První dodávka"]},"status":{"type":"string","enum":["open","closed","error"],"title":"Stav dokladu","examples":["open"]},"date":{"type":"string","format":"date-time","title":"Datum vytvoření","examples":["2024-01-01T12:00:00Z"]},"archived":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum archivace","examples":["2024-01-01T12:00:00Z"]},"shipping_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Náklady na dopravu","examples":[150.0]},"customs_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Náklady na clo","examples":[50.0]},"currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"Měna (ISO 4217)","examples":["CZK"]},"suppliers":{"items":{"$ref":"#/components/schemas/MovementDocumentSupplier"},"type":"array","title":"Dodavatelé","description":"Efektivní dodavatelé dokladu. Pokud je doklad napojen na vydané objednávky (VO), jsou to (distinct) dodavatelé z těchto VO (mají prioritu). Jinak jednoprvkový seznam s ručně přiřazeným dodavatelem dokladu, případně prázdný seznam, pokud dodavatel není nastaven."},"products":{"items":{"$ref":"#/components/schemas/MovementDocumentProduct"},"type":"array","title":"Produkty"},"product_prices":{"items":{"$ref":"#/components/schemas/MovementDocumentProductPrice"},"type":"array","title":"Ceny produktů"},"files":{"items":{"$ref":"#/components/schemas/MovementDocumentFile"},"type":"array","title":"Soubory"},"purchase_orders":{"items":{"$ref":"#/components/schemas/LinkedPurchaseOrder"},"type":"array","title":"Připojené objednávky","description":"Seznam vydaných objednávek připojených k tomuto dokladu"},"movements":{"items":{"$ref":"#/components/schemas/MovementDocumentMovement"},"type":"array","title":"Souhrn pohybů","description":"Agregované pohyby pro tento doklad seskupené podle produktu, pozice a šarže. Umožňuje dohledat, co konkrétně se kam naskladnilo nebo odkud vyskladnilo."},"total_expected_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Celková cena očekávaných produktů","description":"Celková cena očekávaných produktů včetně nákladů na dopravu a clo","examples":[1000.0]},"total_received_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Celková cena přijatých produktů","description":"Celková cena přijatých produktů včetně nákladů na dopravu a clo","examples":[1500.0]}},"type":"object","required":["document_id","document_type_id","document_number","order_number","package_number","status","date","products","product_prices","files","purchase_orders","movements"],"title":"SingleMovementDocument"},"SnapshotJob":{"properties":{"id":{"type":"integer","title":"Id"},"status":{"type":"string","title":"Status"},"added_at":{"type":"string","format":"date-time","title":"Added At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"log":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Log"}},"type":"object","required":["id","status","added_at"],"title":"SnapshotJob"},"Status-Output":{"properties":{"id":{"type":"integer","title":"ID stavu","description":""},"name":{"type":"string","title":"Název stavu","description":""}},"type":"object","required":["id","name"],"title":"Status"},"StockAtEshop":{"properties":{"code":{"type":"string","title":"Kód produktu"},"claim":{"type":"number","title":"Skladový nárok"},"amount":{"type":"number","title":"Skladem na eshopu"}},"type":"object","required":["code","claim","amount"],"title":"StockAtEshop"},"StockBatch":{"properties":{"name":{"type":"string","title":"Název šarže"},"expires_at":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Datum expirace šarže"},"amount":{"type":"integer","title":"Množství šarže na pozici"}},"type":"object","required":["name","amount"],"title":"StockBatch"},"StockChange":{"properties":{"id":{"type":"integer","title":"Unikatni ID pohybu","examples":[6232195]},"product_code":{"type":"string","title":"Kód produktu","examples":["PR/BAV/BIL/140/S"]},"date":{"type":"string","format":"date-time","title":"Datum pohybu","examples":["2022-11-09T09:11:03"]},"location_name_before":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název původní pozice","examples":["A1-1-1"]},"location_name_after":{"type":"string","title":"Název nové pozice","examples":["A1-1-1"]},"amount_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Množství před","examples":[10]},"amount_after":{"type":"integer","title":"Množství po","examples":[8]},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zdroj pohybu","description":"Nejčastější možnosti:<br><br>inventura<br>picking - Picking produktu v Brani Baliči<br>Nákupní seznam <ID seznamu> - Naskladňování z nákupního seznamu dodavatele<br>pokladna - Pohyby, které vznikly novou objednávku v kamenných prodejnách a neprošly by tak standardním procesem skladového systému (s naskenováním produktu pro odečtení ze skladu)<br>shoptet - Synchronizovaný pohyb z Shoptetu (jen eshopy v režimu nechaosového zaskladňování)<br>Sklad - skladový pohyb vzniklý přímo v aplikaci Skladový systém, tedy ruční naskladňování a vyskladňování<br>Sklad - přesun - skladový pohyb vzniklý přesunem mezi pozicemi<br>Výroba - pohyb vzniklý dokončením výroby (výdej vstupů a příjem výstupů)<br>Výroba - přesun - přesun materiálu z jiné pozice na výrobní pozici při přípravě výroby<br>Inicializace šarží - převod skladových zásob z produktů bez šarže na produkty se šarží. Systém automaticky odepíše zvolené množství produktu bez šarže a naskladní ho znovu se zadanou šarží na stejnou pozici.<br>Mohou být i další možnosti (např. inicializace skladu nebo i specifické korekce skladu, o které nás klienti požádali). Výše zmíněné jsou obvyklé","examples":["picking"]},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Komentář"},"order_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kód objednávky","examples":["2022000038"]},"order_eshop_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eshop objednávky","examples":["https://www.brani.cz"]},"shoptet_sync":{"type":"integer","title":"Synchronizace do Shoptetu","description":"-1: zakazana synchr.<br> 0: Nesynchronizovano<br> 1: Prave se synchronizuje<br> 2: Synchronizovano<br> -128: Chyba synchronizace"},"shoptet_sync_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum symchronizace do Shoptetu","examples":["2022-11-09T09:11:05"]},"shoptet_movement_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID pohybu v Shoptetu","examples":[11419]},"client_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID uživatele"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jméno uživatele"},"ao_shoplist_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID nákupního seznamu"},"ao_shoplist_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nazev nákupního seznamu"},"movement_document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID dokladu"},"batch_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID šarže"},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název šarže"},"batch_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Datum expirace šarže"}},"type":"object","required":["id","product_code","date","location_name_after","amount_after","shoptet_sync","client_id","client_name","movement_document_id","batch_id","batch_name","batch_expires_at"],"title":"StockChange"},"StockInBatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název šarže (když chybí, použije se datum expirace)"},"expires_at":{"type":"string","format":"date","title":"Datum expirace šarže"}},"type":"object","required":["expires_at"],"title":"StockInBatch"},"StockInRequest":{"properties":{"code":{"type":"string","title":"Kód produktu"},"amount":{"type":"integer","title":"Množství"},"position":{"type":"string","title":"Název pozice (musí existovat)"},"mode":{"type":"string","enum":["set","add"],"title":"Režim: set = nastavit (přepsat), add = přičíst"},"batch":{"anyOf":[{"$ref":"#/components/schemas/StockInBatch"},{"type":"null"}],"title":"Šarže (jen v režimu CHAOS, vyžaduje doplněk Šarže)"},"eshop_sync":{"type":"boolean","title":"Synchronizovat pohyb do e-shopu","default":true}},"type":"object","required":["code","amount","position","mode"],"title":"StockInRequest"},"StockLocation":{"properties":{"name":{"type":"string","title":"Název pozice"},"sector":{"type":"string","title":"Název sektoru"}},"type":"object","required":["name","sector"],"title":"StockLocation"},"StockSupply":{"properties":{"code":{"type":"string","title":"Kód produkty","examples":["PR/BAV/BIL/140/S"]},"location_name":{"type":"string","title":"Název pozice","examples":["A1-1-1"]},"amount":{"type":"integer","title":"Po4et kus; na pozici","examples":[16]},"batches":{"items":{"$ref":"#/components/schemas/StockBatch"},"type":"array","title":"Šarže na pozici"}},"type":"object","required":["code","location_name","amount"],"title":"StockSupply"},"StorageLocationInfo":{"properties":{"location_id":{"type":"integer","title":"ID storage pozice","examples":[42]},"location_name":{"type":"string","title":"Název pozice","examples":["STOR-01"]},"eshop_id":{"type":"integer","title":"ID eshopu","examples":[1]},"order_code":{"type":"string","title":"Kód objednávky","examples":["2024001234"]},"product_count":{"type":"integer","title":"Počet různých produktů","examples":[3]},"items_count":{"type":"number","title":"Celkové množství kusů","examples":[12.0]}},"type":"object","required":["location_id","location_name","eshop_id","order_code","product_count","items_count"],"title":"StorageLocationInfo"},"StoreItemToLocationProduct":{"properties":{"product_code":{"type":"string","title":"Kód produktu","examples":["PROD-123"]},"amount":{"type":"number","exclusiveMinimum":0.0,"title":"Množství","examples":[5.0]},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název pozice na skladě (nepovinné)","examples":["A-01-02"]},"sarze_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"ID šarže (nepovinné)","examples":[123]}},"type":"object","required":["product_code","amount"],"title":"StoreItemToLocationProduct"},"StoreItemsToLocationRequest":{"properties":{"order_code":{"type":"string","title":"Kód objednávky","examples":["2024001234"]},"storage_location":{"type":"string","title":"Název storage pozice","examples":["STOR-01"]},"products":{"items":{"$ref":"#/components/schemas/StoreItemToLocationProduct"},"type":"array","title":"Seznam produktů k uložení"}},"type":"object","required":["order_code","storage_location","products"],"title":"StoreItemsToLocationRequest"},"SupplierOfferEntry":{"properties":{"supplier_id":{"type":"integer","title":"ID dodavatele","description":"ID dodavatele ze seznamu dodavatelů vydaných objednávek (GET /stock/purchase_orders/suppliers/)","examples":[5]},"amount":{"type":"integer","minimum":0.0,"title":"Dostupné množství u dodavatele","examples":[40]},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,15}0*$)\\d{0,10}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Aktuální cena u dodavatele","examples":[118.0]}},"type":"object","required":["supplier_id","amount"],"title":"SupplierOfferEntry"},"SupplierOffersProductItem":{"properties":{"code":{"type":"string","maxLength":100,"title":"Kód varianty produktu (SKU)","examples":["ABC-1"]},"suppliers":{"items":{"$ref":"#/components/schemas/SupplierOfferEntry"},"type":"array","title":"Kompletní seznam dostupností produktu","description":"Prázdný seznam smaže všechny nabídky tohoto produktu."}},"type":"object","required":["code","suppliers"],"title":"SupplierOffersProductItem"},"SupplierOffersUpsertRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SupplierOffersProductItem"},"type":"array","maxItems":1000,"minItems":1,"title":"Seznam produktů","description":"Maximálně 1000 produktů na požadavek. Větší dávky rozdělte do více požadavků — přepis je po produktu, takže se dávky navzájem nepřebijí."}},"type":"object","required":["items"],"title":"SupplierOffersUpsertRequest"},"SupplierOffersUpsertResponse":{"properties":{"received_products":{"type":"integer","title":"Počet přijatých produktů"},"upserted_offers":{"type":"integer","title":"Počet uložených dostupností"},"deleted_offers":{"type":"integer","title":"Počet odstraněných dostupností","description":"Dostupnosti, které u poslaných produktů byly, ale v tomto požadavku už nepřišly. Aktualizované dostupnosti se sem nepočítají."},"unknown_products_count":{"type":"integer","title":"Počet kódů, které nejsou v katalogu"},"unknown_products":{"items":{"type":"string"},"type":"array","title":"Kódy, které nejsou v katalogu","description":"Uloží se, ale nikde se nezobrazí, dokud se produkt nedosynchronizuje. Prvních 100."}},"type":"object","required":["received_products","upserted_offers","deleted_offers","unknown_products_count"],"title":"SupplierOffersUpsertResponse"},"SurchargeParameter":{"properties":{"parameterName":{"$ref":"#/components/schemas/SurchargeParameterName"},"parameterValue":{"$ref":"#/components/schemas/SurchargeParameterValue"}},"type":"object","required":["parameterName","parameterValue"],"title":"SurchargeParameter"},"SurchargeParameterName":{"properties":{"code":{"type":"string","title":"Kód parametru","description":"","examples":["priplatek"]},"name":{"type":"string","title":"Název parametru","description":"","examples":["Příplatek"]}},"type":"object","required":["code","name"],"title":"SurchargeParameterName"},"SurchargeParameterValue":{"properties":{"valueIndex":{"type":"string","title":"Index hodnoty parametru","description":"","examples":["fotka-s-ni"]},"description":{"type":"string","title":"Popis hodnoty parametru","description":"","examples":["Fotka s ní"]},"price":{"type":"string","title":"Cena příplatku","description":"","examples":["1000.00"]}},"type":"object","required":["valueIndex","description","price"],"title":"SurchargeParameterValue"},"TrackOrderRequest":{"properties":{"order_code":{"type":"string","title":"Order Code"}},"type":"object","required":["order_code"],"title":"TrackOrderRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"Variant-Input":{"properties":{"code":{"type":"string","title":"Kód produktu","examples":["0001"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty","examples":["Chytré Hodinky 44mm"]},"weight":{"type":"string","pattern":"^\\d+\\.\\d{3}$","title":"Váha","description":"String representing a number with exactly three decimal places","examples":["0.459"]},"width":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d{3}$","description":"String representing a number with exactly three decimal places","examples":["0.459","1.000"]},{"type":"null"}],"title":"Šířka v cm","examples":["0.150"]},"height":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d{3}$","description":"String representing a number with exactly three decimal places","examples":["0.459","1.000"]},{"type":"null"}],"title":"Výška v cm","examples":["0.200"]},"depth":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d{3}$","description":"String representing a number with exactly three decimal places","examples":["0.459","1.000"]},{"type":"null"}],"title":"Hloubka v cm","examples":["0.100"]},"minStockSupply":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d{3}$","description":"String representing a number with exactly three decimal places","examples":["0.459","1.000"]},{"type":"null"}],"title":"Množství minimální zásoby, pod kterou by se produkt neměl dostat.","examples":["1.000"]},"visible":{"type":"boolean","title":"Varianta viditelná na eshopu","default":true},"manufacturerCode":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Unikátní identifikátor výrobce, použitelný zejména ve vnitřních informačních systémech."},"pluCode":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"PLU kód je určen především jako další identifikace výrobku v interních informačních systémech, při prodeji nebo ke skladovým účelům a inventurám. Tento kód se také používá pro ty výrobky které ještě EAN kód nemají přidělený."},"ean":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"EAN kód je jednotný mezinárodní identifikátor kódu spotřebního zboží."},"isbn":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"ISBN kód je číselný kód určený pro jednoznačnou identifikaci knižních vydání."},"serialNo":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Unikátní identifikátor produktu, použitelný zejména ve vnitřních informačních systémech."},"mpn":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Číslo dílu výrobce (MPN)"},"negativeStockAllowed":{"type":"string","title":"Povolen nákup do mínusu","default":"no","examples":["yes"]},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL obrázku varianty. Musí být uveden i v seznamu obrázku celého produktu","examples":["https://cdn.myshoptet.com/usr/brani.myshoptet.com/user/shop/big/37_37-kos-odpadkovy-curver-flipbin-25l-new-york.jpg"]},"amountDecimalPlaces":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":0.0},{"type":"null"}],"title":"Položky, které jsou prodávány typicky v jiných jednotkách než ks, jako jsou např. metry, mohou být nakoupeny i v necelém množství. Zde definujete počet možných desetinných míst.","default":0},"price":{"anyOf":[{"$ref":"#/components/schemas/VariantPrice-Input"},{"type":"null"}]}},"type":"object","required":["code","weight"],"title":"Variant"},"VariantParameter":{"properties":{"paramName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paramname"},"paramIndex":{"type":"string","title":"Paramindex"},"paramValue":{"type":"string","title":"Paramvalue"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"rawValue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rawvalue"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"valuePriority":{"type":"integer","title":"Valuepriority"}},"type":"object","required":["paramIndex","paramValue","valuePriority"],"title":"VariantParameter","description":"Parametr varianty."},"VariantPrice-Input":{"properties":{"vatRate":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,11}0*$)\\d{0,8}\\.\\d{0,2}0*$)"},{"type":"null"}],"title":"Vatrate","description":"Sazba DPH v procentech (např. 21.0)","examples":[21.0]},"price":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,11}0*$)\\d{0,8}\\.\\d{0,2}0*$)"},{"type":"null"}],"title":"Price","description":"Prodejní cena s DPH","examples":[1299.9]},"commonPrice":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,11}0*$)\\d{0,8}\\.\\d{0,2}0*$)"},{"type":"null"}],"title":"Commonprice","description":"Běžná/doporučená prodejní cena","examples":[1499.0]},"buyPrice":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,11}0*$)\\d{0,8}\\.\\d{0,2}0*$)"},{"type":"null"}],"title":"Buyprice","description":"Nákupní cena bez DPH","examples":[899.0]}},"type":"object","title":"VariantPrice"},"Warranty":{"properties":{"id":{"type":"integer","title":"Id"},"inMonths":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Inmonths"},"description":{"type":"string","title":"Description"}},"type":"object","required":["id","description"],"title":"Warranty","description":"Záruka."},"Webhook_url":{"properties":{"id":{"type":"integer","title":"Webhook id","description":""},"event_type":{"$ref":"#/components/schemas/Event_type","title":"Event type","description":""},"webhook_url":{"type":"string","title":"Webhook url","description":""}},"type":"object","required":["id","event_type","webhook_url"],"title":"Webhook_url"},"Webhook_url_list":{"properties":{"webhook_urls":{"items":{"$ref":"#/components/schemas/Webhook_url"},"type":"array","title":"Webhook Urls"}},"type":"object","required":["webhook_urls"],"title":"Webhook_url_list"},"WholesalPayment":{"properties":{"methods":{"items":{"$ref":"#/components/schemas/PaymentMethod"},"type":"array","title":"Seznam metod plateb","description":"","examples":[[{"guid":"e8827deb-61c0-42a2-afb2-2efae1cd5dcb","name":"Kartou"},{"guid":"46ebb02d-c44f-4c49-b9b7-f31a46ebe927","name":"Převodem"}]]}},"type":"object","required":["methods"],"title":"WholesalPayment"},"WholesalShipping":{"properties":{"methods":{"items":{"$ref":"#/components/schemas/ShippingMethod"},"type":"array","title":"Seznam metod doprav","description":"","examples":[[{"guid":"b25900f3-5f0e-46f8-b5ff-114b598d340f","name":"PPL VO"}]]}},"type":"object","required":["methods"],"title":"WholesalShipping"},"ZboziCZ":{"properties":{"maximalCPC":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maximalcpc"},"maximalSearchCPC":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maximalsearchcpc"},"hidden":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden"}},"type":"object","title":"ZboziCZ","description":"Nastavení pro Zboží.cz."},"brani_async__infra_jobs__public_api__eshopInfoSchema__Data":{"properties":{"orderStatuses":{"$ref":"#/components/schemas/OrderStatuses","title":"Stavy objednávek","description":""},"shippingMethods":{"$ref":"#/components/schemas/ShippingMethods","title":"Metody doprav","description":""},"paymentMethods":{"$ref":"#/components/schemas/PaymentMethods","title":"Metody plateb","description":""}},"type":"object","required":["orderStatuses","shippingMethods","paymentMethods"],"title":"Data"},"brani_async__infra_jobs__public_api__orderSchema__Data":{"properties":{"creationTime":{"type":"string","format":"date-time","title":"Datum vytvoření objednávky","description":"Datum musí bý v minulosti","examples":["2017-12-12T22:08:01+0100"]},"email":{"type":"string","title":"Email zákazníka","description":"","examples":["customer@someemail.com"]},"code":{"type":"string","title":"Unikátní kód/číslo objednávky","description":"","examples":["5426578"]},"phone":{"type":"string","maxLength":20,"title":"Telefonní číslo zákazníka","description":"","examples":["+420604600444"]},"shippingDetails":{"anyOf":[{"$ref":"#/components/schemas/ShippingDetails"},{"type":"null"}],"title":"Doplňkové informace k doručení","description":""},"billingMethodCode":{"anyOf":[{"$ref":"#/components/schemas/BillingMethodCode"},{"type":"null"}],"title":"Kódy typu platby","description":"Povolené typy jsou: 1 = Dobírka, 2 = Převodem, 3 = Hotově, 4 = Kartou"},"paymentMethodGuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"GUID platební metody","description":"GUID musí odpovídat platebním metodám zaslaných přes endpoint /eshop/info\n\nMůže být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\"","examples":["b57f91bb-e920-11e0-baa3-7dc668b75ca8"]},"shippingGuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"GUID typu dopravy","description":"GUID musí odpovídat přepravním metodám zaslaných přes endpoint /eshop/info\n\nMůže být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\"","examples":["2ec88ea7-3fb0-11e2-a723-705ab6a2ba75"]},"paid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Příznak zde je objednávka zaplacena","description":"","default":false,"examples":["true"]},"companyId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifikační číslo společnosti (IČ)","description":"","examples":["123456"]},"vatId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"VAT ID (DIČ)","description":"","examples":["CZ123456789"]},"taxId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"TAX ID (IČ DPH)","description":"","examples":["123456"]},"deliveryAddress":{"$ref":"#/components/schemas/Address","title":"Doručovací adresa","description":""},"cashDeskOrder":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Příznak, zda byla objednávka vytvořena na pokladně","description":"","default":false,"examples":["false"]},"notes":{"$ref":"#/components/schemas/Notes","title":"Doplńkové data k objednávce","description":""},"status":{"anyOf":[{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__orderSchema__Status"},{"type":"null"}],"title":"Stav objednávky","description":"","default":{"id":0}},"billingAddress":{"anyOf":[{"$ref":"#/components/schemas/BillingAddress"},{"type":"null"}],"title":"Fakturační adresa","description":""},"price":{"$ref":"#/components/schemas/Price","title":"Cena objednávky","description":""},"adminUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Odkaz do administrace","description":"Odkaz, kterým lze prokliknout do administrace objednávky","examples":["https://brani.myshoptet.com/admin/objednavky-detail?id=5426578"]},"items":{"items":{"$ref":"#/components/schemas/Item"},"type":"array","title":"Položky objednávky","description":""},"vs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variabilní symbol","description":"","examples":["123456"]},"externalCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Externí kód objednávky","description":"Volitelný externí identifikátor objednávky (např. číslo objednávky z BaseLinker nebo jiného systému)","examples":["BL-123456"]}},"type":"object","required":["creationTime","email","code","phone","deliveryAddress","notes","billingAddress","price","items"],"title":"Data"},"brani_async__infra_jobs__public_api__orderSchema__Status":{"properties":{"id":{"type":"integer","title":"ID stavu","description":"ID musí odpovídat stavům, které nám zašlete v endpointu eshop/info","examples":[12]}},"type":"object","required":["id"],"title":"Status"},"brani_async__infra_jobs__public_api__routers__schema__OrderTag":{"properties":{"order_codes":{"items":{"type":"string"},"type":"array","title":"Order Code","description":"Kód objednávky"},"tag_id":{"type":"integer","title":"Tag Id","description":"Id tagu přirazeného k objednávkam"}},"type":"object","required":["order_codes","tag_id"],"title":"OrderTag"},"brani_async__infra_jobs__public_api__schemas__products__Image":{"properties":{"name":{"type":"string","title":"Název souboru","examples":["69671-3.jpg"]},"url":{"type":"string","title":"URL obrázku","examples":["https://cdn.myshoptet.com/usr/brani.myshoptet.com/user/shop/big/37_37-kos-odpadkovy-curver-flipbin-25l-new-york.jpg"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Popis obrázku"}},"type":"object","required":["name","url"],"title":"Image"},"brani_async__infra_jobs__public_api__schemas__products__Product-Output":{"properties":{"name":{"type":"string","title":"Název produktu","examples":["Chytré Hodinky"]},"guid":{"type":"string","title":"UUID produktu","description":"Může být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\""},"creationTime":{"type":"string","format":"date-time","title":"Datum vytvoření produktu","examples":["2024-02-15T12:00:00+01:00"]},"changeTime":{"type":"string","format":"date-time","title":"Datum poslední změny produktu","examples":["2024-02-15T15:30:00+01:00"]},"brand":{"anyOf":[{"$ref":"#/components/schemas/Brand"},{"type":"null"}]},"additionalName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additionalname"},"visibility":{"type":"string","title":"Visibility"},"type":{"anyOf":[{"$ref":"#/components/schemas/ProductType"},{"type":"null"}]},"internalNote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internalnote"},"images":{"anyOf":[{"items":{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__schemas__products__Image"},"type":"array"},{"type":"null"}],"title":"Images","description":"Obrázky produktu. Při editaci vynechání pole zachová uložené obrázky, null je smaže a seznam je nahradí."},"setItems":{"anyOf":[{"items":{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__schemas__products__Product__SetItem"},"type":"array"},{"type":"null"}],"title":"Setitems"},"variants":{"items":{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__schemas__products__Variant-Output"},"type":"array","title":"Variants"}},"type":"object","required":["name","guid","creationTime","visibility","variants"],"title":"Product"},"brani_async__infra_jobs__public_api__schemas__products__Product__SetItem":{"properties":{"guid":{"type":"string","title":"UUID produktu v sadě","description":"Může být buď UUID řetězec nebo číselné ID (které bude převedeno na UUID formát doplněný nulami zleva).  \nPříklad: \"12345\" bude převedeno na \"00000000-0000-0000-0000-000000012345\""},"code":{"type":"string","title":"Kód produktu v sadě","examples":["0001"]},"amount":{"type":"string","pattern":"^\\d+\\.\\d{3}$","title":"Množství v sadě","description":"String representing a number with exactly three decimal places","examples":["3.000"]}},"type":"object","required":["guid","code","amount"],"title":"SetItem"},"brani_async__infra_jobs__public_api__schemas__products__Variant-Output":{"properties":{"code":{"type":"string","title":"Kód produktu","examples":["0001"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Název varianty","examples":["Chytré Hodinky 44mm"]},"weight":{"type":"string","pattern":"^\\d+\\.\\d{3}$","title":"Váha","description":"String representing a number with exactly three decimal places","examples":["0.459"]},"width":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d{3}$","description":"String representing a number with exactly three decimal places","examples":["0.459","1.000"]},{"type":"null"}],"title":"Šířka v cm","examples":["0.150"]},"height":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d{3}$","description":"String representing a number with exactly three decimal places","examples":["0.459","1.000"]},{"type":"null"}],"title":"Výška v cm","examples":["0.200"]},"depth":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d{3}$","description":"String representing a number with exactly three decimal places","examples":["0.459","1.000"]},{"type":"null"}],"title":"Hloubka v cm","examples":["0.100"]},"minStockSupply":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d{3}$","description":"String representing a number with exactly three decimal places","examples":["0.459","1.000"]},{"type":"null"}],"title":"Množství minimální zásoby, pod kterou by se produkt neměl dostat.","examples":["1.000"]},"visible":{"type":"boolean","title":"Varianta viditelná na eshopu","default":true},"manufacturerCode":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Unikátní identifikátor výrobce, použitelný zejména ve vnitřních informačních systémech."},"pluCode":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"PLU kód je určen především jako další identifikace výrobku v interních informačních systémech, při prodeji nebo ke skladovým účelům a inventurám. Tento kód se také používá pro ty výrobky které ještě EAN kód nemají přidělený."},"ean":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"EAN kód je jednotný mezinárodní identifikátor kódu spotřebního zboží."},"isbn":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"ISBN kód je číselný kód určený pro jednoznačnou identifikaci knižních vydání."},"serialNo":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Unikátní identifikátor produktu, použitelný zejména ve vnitřních informačních systémech."},"mpn":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Číslo dílu výrobce (MPN)"},"negativeStockAllowed":{"type":"string","title":"Povolen nákup do mínusu","default":"no","examples":["yes"]},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL obrázku varianty. Musí být uveden i v seznamu obrázku celého produktu","examples":["https://cdn.myshoptet.com/usr/brani.myshoptet.com/user/shop/big/37_37-kos-odpadkovy-curver-flipbin-25l-new-york.jpg"]},"amountDecimalPlaces":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":0.0},{"type":"null"}],"title":"Položky, které jsou prodávány typicky v jiných jednotkách než ks, jako jsou např. metry, mohou být nakoupeny i v necelém množství. Zde definujete počet možných desetinných míst.","default":0},"price":{"anyOf":[{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__schemas__products__VariantPrice-Output"},{"type":"null"}]}},"type":"object","required":["code","weight"],"title":"Variant"},"brani_async__infra_jobs__public_api__schemas__products__VariantPrice-Output":{"properties":{"vatRate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,11}0*$)\\d{0,8}\\.\\d{0,2}0*$)"},{"type":"null"}],"title":"Vatrate","description":"Sazba DPH v procentech (např. 21.0)","examples":[21.0]},"price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,11}0*$)\\d{0,8}\\.\\d{0,2}0*$)"},{"type":"null"}],"title":"Price","description":"Prodejní cena s DPH","examples":[1299.9]},"commonPrice":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,11}0*$)\\d{0,8}\\.\\d{0,2}0*$)"},{"type":"null"}],"title":"Commonprice","description":"Běžná/doporučená prodejní cena","examples":[1499.0]},"buyPrice":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,11}0*$)\\d{0,8}\\.\\d{0,2}0*$)"},{"type":"null"}],"title":"Buyprice","description":"Nákupní cena bez DPH","examples":[899.0]}},"type":"object","title":"VariantPrice"},"eshopInfoResponse":{"properties":{"data":{"$ref":"#/components/schemas/Data-Output","title":"Info o eshopu","description":""},"summary":{"$ref":"#/components/schemas/ResponseEshopWithWarehouse","title":"Souhrn informací o eshopu","description":"Obsahuje základní informace o eshopu a případně jeho skladu"}},"type":"object","required":["data","summary"],"title":"eshopInfoResponse","description":"API response model for eshop info"},"eshopModel":{"properties":{"data":{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__eshopInfoSchema__Data","title":"Info o eshopu","description":""}},"type":"object","required":["data"],"title":"eshopModel"},"newShoptetOrderModel":{"properties":{"data":{"$ref":"#/components/schemas/Data2","title":"Objednávka","description":""}},"type":"object","required":["data"],"title":"newShoptetOrderModel","example":{"data":{"adminUrl":"https://brani.myshoptet.com/admin/objednavky-detail?id=2022000040","billingAddress":{"additional":"XY","city":"Praha","company":"Brani s.r.o.","companyId":"12345678","countryCode":"CZ","district":"město","fullName":"Jan Novák","houseNumber":"1677","regionName":"Praha 2","street":"Vinohradská","taxId":"CZ12345678","vatId":"CZ12345678","zip":"61200"},"cashDeskOrder":false,"code":"2022000040","creationTime":"2022-11-04T22:43:25+01:00","deliveryAddress":{"additional":"XY","city":"Praha","company":"Brani s.r.o.","countryCode":"CZ","district":"město","fullName":"Jan Novák","houseNumber":"1677","regionName":"Praha 2","street":"Vinohradská","zip":"61200"},"email":"novak@seznam.cz","items":[{"adminUrl":"https://brani.myshoptet.com/admin/produkty-detail/?id=NIVEA_CARE","amount":"1.000","amountUnit":"ks","brand":"ACER","code":"NIVEA_CARE","itemId":3936,"itemPriceWithVat":"130.00","itemType":"product","name":"Nivea Cream Care","productGuid":"0d1e2524-51d3-11ec-821f-ecf4bbd49285","remark":"","status":{"id":-1},"supplierName":"CatherineLife","surchargeParameters":[{"parameterName":{"code":"priplatek","name":"Příplatek"},"parameterValue":{"description":"Fotka s ní","price":"1000.00","valueIndex":"fotka-s-ni"}}],"variantName":"","weight":"1.000"},{"amount":"1.000","amountUnit":"ks","code":"PERSIL","itemId":3939,"itemPriceWithVat":"130.00","itemType":"product","name":"Persil Universal","productGuid":"a170e014-51d2-11ec-96c4-ecf4bbcda94d","status":{"id":-1},"variantName":"25l","weight":"1.000"}],"notes":{"eshopRemark":"Zákazník 5x volal, kde má zboží","trackingNumber":"DR123456789"},"paid":true,"paymentMethodGuid":"46ebb02d-c44f-4c49-b9b7-f31a46ebe927","phone":"+420737123789","price":{"currencyCode":"CZK","toPay":"260.90","withVat":"260.90"},"shippingDetails":{},"shippingGuid":"6d33d5bc-0b65-4284-9c1a-dcd7a4f4d31c","status":{"id":-2}}}},"orderModel":{"properties":{"data":{"$ref":"#/components/schemas/brani_async__infra_jobs__public_api__orderSchema__Data","title":"Objednávka","description":""}},"type":"object","required":["data"],"title":"orderModel","example":{"data":{"adminUrl":"https://brani.myshoptet.com/admin/objednavky-detail?id=2022000040","billingAddress":{"additional":"XY","city":"Praha","company":"Brani s.r.o.","countryCode":"CZ","district":"město","fullName":"Jan Novák","houseNumber":"1677","regionName":"Praha 2","street":"Vinohradská","zip":"61200"},"cashDeskOrder":false,"code":"2022000040","companyId":"12345678","creationTime":"2022-11-04T22:43:25+01:00","deliveryAddress":{"additional":"XY","city":"Praha","company":"Brani s.r.o.","countryCode":"CZ","district":"město","fullName":"Jan Novák","houseNumber":"1677","regionName":"Praha 2","street":"Vinohradská","zip":"61200"},"email":"novak@seznam.cz","externalCode":"BL-123456","items":[{"amount":"1.000","amountUnit":"ks","brand":"ACER","code":"NIVEA_CARE","itemId":3936,"itemPriceWithVat":"130.00","itemType":"product","name":"Nivea Cream Care","productGuid":"0d1e2524-51d3-11ec-821f-ecf4bbd49285","remark":"","status":{"id":-1},"supplierName":"CatherineLife","surchargeParameters":[{"parameterName":{"code":"priplatek","name":"Příplatek"},"parameterValue":{"description":"Fotka s ní","price":"1000.00","valueIndex":"fotka-s-ni"}}],"variantName":"","weight":"1.000"},{"adminUrl":"https://brani.myshoptet.com/admin/produkty-detail/?id=PERSIL","amount":"1.000","amountUnit":"ks","code":"PERSIL","itemId":3939,"itemPriceWithVat":"130.00","itemType":"product","name":"Persil Universal","productGuid":"a170e014-51d2-11ec-96c4-ecf4bbcda94d","status":{"id":-1},"variantName":"25l","weight":"1.000"}],"notes":{"eshopRemark":"Zákazník 5x volal, kde má zboží","trackingNumber":"DR123456789"},"paid":true,"paymentMethodGuid":"46ebb02d-c44f-4c49-b9b7-f31a46ebe927","phone":"+420737123789","price":{"currencyCode":"CZK","toPay":"260.90","withVat":"260.90"},"shippingDetails":{},"shippingGuid":"6d33d5bc-0b65-4284-9c1a-dcd7a4f4d31c","status":{"id":-2},"taxId":"CZ12345678","vatId":"CZ12345678"}}},"shoptet_schemas__product__Image":{"properties":{"name":{"type":"string","title":"Name"},"seoName":{"type":"string","title":"Seoname"},"cdnName":{"type":"string","title":"Cdnname"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"changeTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Changetime"},"isMainImage":{"type":"boolean","title":"Ismainimage"}},"type":"object","required":["name","seoName","cdnName","isMainImage"],"title":"Image","description":"Obrázek produktu."},"shoptet_schemas__product__Product":{"properties":{"guid":{"type":"string","title":"Guid"},"type":{"type":"string","title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"brand":{"anyOf":[{"$ref":"#/components/schemas/BrandNamed"},{"type":"null"}]},"supplier":{"anyOf":[{"$ref":"#/components/schemas/shoptet_schemas__product__Supplier"},{"type":"null"}]},"visibility":{"type":"string","title":"Visibility"},"creationTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Creationtime"},"changeTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Changetime"},"shortDescription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shortdescription"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"metaDescription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadescription"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"conditionGrade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conditiongrade"},"conditionDescription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conditiondescription"},"internalNote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internalnote"},"preauthorizationRequired":{"type":"boolean","title":"Preauthorizationrequired"},"defaultCategory":{"$ref":"#/components/schemas/DefaultCategory"},"categories":{"items":{"$ref":"#/components/schemas/Category"},"type":"array","title":"Categories"},"descriptiveParameters":{"items":{"$ref":"#/components/schemas/DescriptiveParameter"},"type":"array","title":"Descriptiveparameters"},"additionalName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additionalname"},"xmlFeedName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xmlfeedname"},"metaTitle":{"type":"string","title":"Metatitle"},"adult":{"type":"boolean","title":"Adult"},"allowIPlatba":{"type":"boolean","title":"Allowiplatba"},"allowOnlinePayments":{"type":"boolean","title":"Allowonlinepayments"},"sizeIdName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sizeidname"},"voteAverageScore":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voteaveragescore"},"voteCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Votecount"},"isVariant":{"type":"boolean","title":"Isvariant"},"variants":{"items":{"$ref":"#/components/schemas/shoptet_schemas__product__Variant"},"type":"array","title":"Variants"},"images":{"items":{"$ref":"#/components/schemas/shoptet_schemas__product__Image"},"type":"array","title":"Images"},"flags":{"items":{"$ref":"#/components/schemas/Flag"},"type":"array","title":"Flags"},"surchargeParameters":{"items":{"$ref":"#/components/schemas/ProductSurchargeParameter"},"type":"array","title":"Surchargeparameters"},"setItems":{"anyOf":[{"items":{"$ref":"#/components/schemas/shoptet_schemas__product__SetItem"},"type":"array"},{"type":"null"}],"title":"Setitems"},"filteringParameters":{"items":{"$ref":"#/components/schemas/FilteringParameter"},"type":"array","title":"Filteringparameters"},"warranty":{"anyOf":[{"$ref":"#/components/schemas/Warranty"},{"type":"null"}]},"gifts":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProductGift"},"type":"array"},{"type":"null"}],"title":"Gifts"},"alternativeProducts":{"anyOf":[{"items":{"$ref":"#/components/schemas/RelatedProduct"},"type":"array"},{"type":"null"}],"title":"Alternativeproducts"},"relatedProducts":{"anyOf":[{"items":{"$ref":"#/components/schemas/RelatedProduct"},"type":"array"},{"type":"null"}],"title":"Relatedproducts"},"relatedFiles":{"items":{"$ref":"#/components/schemas/RelatedFile"},"type":"array","title":"Relatedfiles"},"relatedVideos":{"items":{"$ref":"#/components/schemas/RelatedVideo"},"type":"array","title":"Relatedvideos"}},"type":"object","required":["guid","type","visibility","preauthorizationRequired","defaultCategory","categories","metaTitle","adult","allowIPlatba","allowOnlinePayments","isVariant","variants","images","flags"],"title":"Product","description":"Pydantic schéma pro detail produktu podle OpenAPI specifikace."},"shoptet_schemas__product__SetItem":{"properties":{"guid":{"type":"string","title":"Guid"},"code":{"type":"string","title":"Code"},"amount":{"type":"string","title":"Amount"}},"type":"object","required":["guid","code","amount"],"title":"SetItem","description":"Položka v setu."},"shoptet_schemas__product__Supplier":{"properties":{"guid":{"type":"string","title":"Guid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["guid","name"],"title":"Supplier","description":"Dodavatel produktu."},"shoptet_schemas__product__Variant":{"properties":{"code":{"type":"string","title":"Code"},"ean":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ean"},"stock":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stock"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"weight":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight"},"width":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Height"},"depth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Depth"},"visible":{"type":"boolean","title":"Visible"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"},"commonPrice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commonprice"},"manufacturerCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturercode"},"pluCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plucode"},"isbn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Isbn"},"serialNo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serialno"},"mpn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mpn"},"includingVat":{"type":"boolean","title":"Includingvat"},"vatRate":{"type":"string","title":"Vatrate"},"currencyCode":{"type":"string","title":"Currencycode"},"minStockSupply":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Minstocksupply"},"actionPrice":{"anyOf":[{"$ref":"#/components/schemas/ActionPrice"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"isProductDefaultImage":{"type":"boolean","title":"Isproductdefaultimage"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"amountDecimalPlaces":{"type":"integer","title":"Amountdecimalplaces"},"parameters":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantParameter"},"type":"array"},{"type":"null"}],"title":"Parameters"},"measureUnit":{"anyOf":[{"$ref":"#/components/schemas/MeasureUnit"},{"type":"null"}]},"availability":{"anyOf":[{"$ref":"#/components/schemas/AvailabilityShort"},{"type":"null"}]},"availabilityWhenSoldOut":{"anyOf":[{"$ref":"#/components/schemas/AvailabilityShort"},{"type":"null"}]},"negativeStockAllowed":{"type":"string","enum":["yes-global","no-global","yes"],"title":"Negativestockallowed"},"recyclingFee":{"anyOf":[{"$ref":"#/components/schemas/RecyclingFeeCategory"},{"type":"null"}]},"consumptionTax":{"anyOf":[{"$ref":"#/components/schemas/ProductConsumptionTax"},{"type":"null"}]},"heurekaCPC":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heurekacpc"},"zboziCZ":{"anyOf":[{"$ref":"#/components/schemas/ZboziCZ"},{"type":"null"}]},"atypicalBilling":{"type":"boolean","title":"Atypicalbilling"},"atypicalShipping":{"type":"boolean","title":"Atypicalshipping"},"perStockAmounts":{"anyOf":[{"items":{"$ref":"#/components/schemas/PerStockAmount"},"type":"array"},{"type":"null"}],"title":"Perstockamounts"},"perPricelistPrices":{"anyOf":[{"items":{"$ref":"#/components/schemas/PerPricelistPrice"},"type":"array"},{"type":"null"}],"title":"Perpricelistprices"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["code","visible","includingVat","vatRate","currencyCode","isProductDefaultImage","amountDecimalPlaces","negativeStockAllowed","atypicalBilling","atypicalShipping"],"title":"Variant","description":"Varianta produktu."},"shoptet_schemas__product__VariantPrice":{"properties":{"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price"},"commonPrice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commonprice"},"buyPrice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyprice"},"priceRatio":{"type":"string","title":"Priceratio"},"actionPrice":{"anyOf":[{"$ref":"#/components/schemas/ActionPrice"},{"type":"null"}]}},"type":"object","required":["priceRatio"],"title":"VariantPrice","description":"Cena varianty v ceníku."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"API token (JWT) vystavený na app.brani.cz. Posílejte ho v hlavičce `Authorization: Bearer <token>`. Token je vázaný na jeden e-shop – všechna data, která přes něj čtete a zapisujete, patří tomuto e-shopu."}}},"tags":[{"name":"Číselníky e-shopu","description":"Stavy objednávek, dopravy a platební metody vašeho e-shopu. Brani je potřebuje znát, aby mohlo objednávky správně zobrazit, filtrovat a tisknout k nim přepravní štítky. Nahrajte je před první objednávkou a aktualizujte při každé změně v e-shopu."},{"name":"Objednávky","description":"Předávání objednávek do Brani a práce s nimi: založení a aktualizace ([`/order/upsert`](#tag/objednávky/POST/order/upsert)), smazání, faktury k tisku, celní údaje, priorita a pořadí vychystávání, štítky (tagy).\n\nIdentifikátorem objednávky je vždy její `code` – číslo objednávky ve vašem systému."},{"name":"Webhooky","description":"Registrace URL, na které Brani posílá události (zabaleno, číslo zásilky, změna stavu, doklady ve skladu…), a historie jejich doručení. Typy událostí, formát a politiku opakování popisuje kapitola **Webhooky** v úvodu."},{"name":"Dopravci","description":"Sledování zásilek podle kódu objednávky (Balíkobot, Zásilkovna, PPL, DPD, GLS, Česká pošta, Toptrans a další) a nastavení atributů přepravní služby pro konkrétní objednávku – například večerní doručení nebo dobírku jinou částkou – které se použijí místo výchozích hodnot."},{"name":"Brani Balič","description":"Data z expedice: zabalené objednávky (kdo, kdy, kolik kusů, štítky), přepravní štítky objednávky, uložení vychystaných položek na úložné pozice a evidence spotřebního materiálu. Vyžaduje aktivní Brani Balič."},{"name":"Digitální produkty","description":"Stav zpracování objednávky doplňkem Digitální produkty – zda byly zákazníkovi odeslány licenční klíče, odkazy ke stažení nebo jiné digitální položky a jaké."},{"name":"Produkty","description":"Produktový katalog e-shopu v Brani: založení a editace produktu s variantami ([`POST /products`](#tag/produkty/POST/products/)), detail, seznam a smazání. Pro hromadnou synchronizaci větších katalogů slouží import snapshotu (gzip JSONL) a přehled importních úloh."},{"name":"Custom produkty","description":"Produkty, které neexistují ve vašem e-shopu (obaly, marketingové materiály, interní položky), ale chcete je mít ve Skladu nebo Baliči včetně obrázku."},{"name":"Brani sklad","description":"Kompletní přístup ke skladu: zásoby a skladové nároky, pohyby, pozice a sektory, nastavení množství, naskladnění na pozici, doklady (příjemky, výdejky) s přílohami, inventury, informace o vychystaných položkách objednávek a vydané objednávky dodavatelům. Vyžaduje aktivní Brani Sklad; vydané objednávky navíc stejnojmenný doplněk."},{"name":"Brani výroba","description":"Modul Výroba: kusovníky (recepty), výrobní příkazy a záznamy o provedené výrobě. Vyžaduje aktivní doplněk Výroba."}],"servers":[{"url":"https://api.brani.cz","description":"Produkce"}],"x-tagGroups":[{"name":"Objednávky a expedice","tags":["Číselníky e-shopu","Objednávky","Webhooky","Dopravci","Brani Balič","Digitální produkty"]},{"name":"Produkty a sklad","tags":["Produkty","Custom produkty","Brani sklad"]},{"name":"Výroba","tags":["Brani výroba"]}]}