# Trynx ERP API > Rozcestník pro AI agenty a vývojáře. Generováno scripts/openapi_split.py z openapi.yaml (sha256: fb88f617458f98688dd7dc08efaed6aaf94e9d19bbde6180c9feb345c8441d81) – neupravovat ručně. ## Jak s dokumentací pracovat - Úplná specifikace `openapi.yaml` je velká (stovky KB). Místo ní načti tento přehled a pak jen specifikaci modulu, který potřebuješ. - Každý modul má samostatnou platnou OpenAPI 3 specifikaci `modules/.yaml` (cesta relativně k adresáři tohoto souboru) se všemi schématy, která používá. - Všechny cesty níže jsou včetně prefixu serveru `/api`. REST API for Trynx ERP system. ### Co tahle specifikace pokrývá **Popisuje novější JSON vrstvu API, ne celé API.** Část endpointů, které živí mobilní aplikace, tu chybí — jde o starší XML cestu (`BaseAPI::actionSet()` / `actionGet()`), která vrací XML místo JSON a nikdy sem dopsaná nebyla. Z 24 endpointů, které podle produkčního logu mobilní aplikace za srpen a září 2026 skutečně volaly, jsou tu popsané **tři**. Chybí mimo jiné celý `/transport/*` (dvanáct endpointů), `/tasks/get-fund`, `/tasks/task-insert`, `/store/get-quantity`, čtyři přehledy z `/homepage/*`, `/helpdesk/set` a `/partners/set-worker-by-position`. Nedoplňují se zde vědomě: jejich jediní konzumenti jsou mobilní aplikace, jejichž autoři je znají, a pro integraci s externími nástroji se nepoužívají. Pokud hledáš endpoint, který tu není, zdrojem pravdy je kód v `app/APIModule/presenters/`. ### Authentication Tři způsoby, všechny se posílají **v těle POST požadavku** (fungují i jako query parametr, ale tam hodnota skončí v historii prohlížeče, v logu webserveru a u proxy): - **`bearer_token`** — session token z `POST /api/homepage/login`. Není bezstavový, klient musí držet cookies. Platnost 120 minut nečinnosti. - **`sync_token`** — dlouhoživotný firemní token, načítaný z QR kódu v Trynxu. Neurčuje uživatele, jen firmu, takže se u něj nevyhodnocují per-uživatelská práva ani omezení na úrovni záznamu. Dosáhne dál, než je tu popsané — kromě `/tasks/*`, `/invoicearrived/*` a `/partners/*` také na `/transport/*`, `/store/*`, `/homepage/*`, `/helpdesk/*`, `/cash/*`, `/notifications/*` a `/devices/*`, protože sync token obsluhují tři různé autentizační cesty. - **`api_token`** — integrační token pro externí reporting a BI nástroje, spravovaný v nastavení firmy. Jen ke čtení a jen u modulů faktur vydaných, přijatých a pokladny; jinde vrací 403. Podrobnosti u schématu `apiToken` níž. Neplatný token vrací 401. ### Request format All endpoints use **POST** method. Parameters are sent as POST body with `bearer_token` and optionally `dataJSON` (JSON-encoded string with request data). ## Moduly ### Authentication – `modules/homepage.yaml` (endpointů: 2) Login and session management - `POST /api/homepage/login` – Login and obtain bearer token - `POST /api/homepage/get-modules` – Mobile app modules visible to a user ### Mobile App – `modules/devices.yaml` (endpointů: 2) Konfigurace mobilní aplikace Trynx-Info (viditelnost modulů per uživatel) - `POST /api/devices/register` – Register mobile device for push notifications - `POST /api/devices/unregister` – Unregister mobile device ### Tasks – `modules/tasks.yaml` (endpointů: 49) Task (úkol) CRUD operations - `POST /api/tasks/get-all` – List tasks - `POST /api/tasks/get-one/{id}` – Get task detail - `POST /api/tasks/create` – Create new task - `POST /api/tasks/update` – Update existing task - `POST /api/tasks/delete/{id}` – Delete task - `POST /api/tasks/get-statuses` – List task statuses - `POST /api/tasks/get-status/{id}` – Get status detail - `POST /api/tasks/create-status` – Create new task status - `POST /api/tasks/update-status` – Update existing task status - `POST /api/tasks/delete-status/{id}` – Delete task status - `POST /api/tasks/get-categories` – List task categories - `POST /api/tasks/get-category/{id}` – Get category detail - `POST /api/tasks/create-category` – Create new task category - `POST /api/tasks/update-category` – Update existing task category - `POST /api/tasks/delete-category/{id}` – Delete task category - `POST /api/tasks/get-workers/{id}` – List task workers - `POST /api/tasks/create-worker` – Add worker to task - `POST /api/tasks/update-worker` – Update task worker - `POST /api/tasks/delete-worker/{id}` – Delete task worker - `POST /api/tasks/get-work-time-remaining` – Remaining monthly work fund of a user - `POST /api/tasks/get-work-events/{id}` – List helpdesk work events of a task - `POST /api/tasks/create-work-event` – Add helpdesk work record to task - `POST /api/tasks/update-work-event` – Update helpdesk work record - `POST /api/tasks/delete-work-event/{id}` – Delete helpdesk work record - `POST /api/tasks/get-files/{id}` – List task files - `POST /api/tasks/upload-file` – Upload file to task - `POST /api/tasks/download-file/{id}` – Download task file - `POST /api/tasks/delete-file/{id}` – Delete task file - `POST /api/tasks/get-related-tasks/{id}` – List related tasks - `POST /api/tasks/link-task` – Link two tasks - `POST /api/tasks/unlink-task/{id}` – Remove task link - `POST /api/tasks/copy-task/{id}` – Copy task - `POST /api/tasks/get-forms-versions/{id}` – List Forms 2 versions of a task - `POST /api/tasks/create-forms-version` – Create Forms 2 version - `POST /api/tasks/delete-forms-version/{id}` – Delete Forms 2 version - `POST /api/tasks/get-forms-values/{id}` – List form fields of a version - `POST /api/tasks/update-form-value` – Update form field value - `POST /api/tasks/regenerate-summary/{id}` – Regenerate AI summary - `POST /api/tasks/get-ai-chats/{id}` – List AI chats of a task - `POST /api/tasks/create-ai-chat` – Create AI chat for task - `POST /api/tasks/get-event-types` – List helpdesk event types - `POST /api/tasks/get-event-methods` – List helpdesk event methods - `POST /api/tasks/get-projects` – List projects - `POST /api/tasks/get-partner-stats/{id}` – Task statistics of a partner - `POST /api/tasks/get-messages/{id}` – List task chat messages - `POST /api/tasks/create-message` – Create task chat message - `POST /api/tasks/update-message` – Update task chat message - `POST /api/tasks/delete-message/{id}` – Delete task chat message - `POST /api/tasks/mark-read/{id}` – Mark all task messages as read ### KDB Articles – `modules/kdb.yaml` (endpointů: 14) Knowledge Base article CRUD operations - `POST /api/kdb/get-all` – List KDB articles - `POST /api/kdb/get-one/{id}` – Get article detail - `POST /api/kdb/create` – Create new article - `POST /api/kdb/update` – Update existing article - `POST /api/kdb/delete/{id}` – Delete article - `POST /api/kdb/get-categories` – List categories (hierarchical tree) - `POST /api/kdb/get-category/{id}` – Get category detail - `POST /api/kdb/create-category` – Create new category - `POST /api/kdb/update-category` – Update existing category - `POST /api/kdb/delete-category/{id}` – Delete category - `POST /api/kdb/get-files/{id}` – List files attached to a KDB article - `POST /api/kdb/file-upload` – Upload a file to a KDB article (base64 data URL) - `GET /api/kdb/file-download/{id}` – Download a KDB article file (binary) - `POST /api/kdb/file-delete/{id}` – Delete a KDB article file ### AI Chat Embed – `modules/ai-chat-embed.yaml` (endpointů: 2) Server-to-server endpoint for embedding the Trynx AI chat into third-party desktop applications via WebView2. Authenticated with company `sync_token` (not `bearer_token`). Returns a one-shot URL with a session token that the host application loads into WebView2. - `POST /api/ai-chat-embed/list-assistants` – List active embed-capable AI assistants for the tenant - `POST /api/ai-chat-embed/start` – Initialize an embed AI chat session for WebView2 ### Commission – `modules/commission.yaml` (endpointů: 18) Zakázky (cl_commission) – hlavička CRUD + vnořené položky/úkoly/práce/soubory - `POST /api/commission/get-all` – List commissions - `POST /api/commission/get-one/{id}` – Commission detail with nested items/tasks/work/files - `POST /api/commission/create` – Create commission (cm_number auto-generated) - `POST /api/commission/update` – Update commission (partial) - `POST /api/commission/delete/{id}` – Delete commission (409 if has items/work/files) - `POST /api/commission/create-item` – Create commission item - `POST /api/commission/update-item` – Update commission item (partial) - `POST /api/commission/delete-item/{id}` – Delete commission item - `POST /api/commission/create-task` – Create commission task - `POST /api/commission/update-task` – Update commission task (partial) - `POST /api/commission/delete-task/{id}` – Delete commission task - `POST /api/commission/create-work` – Create commission work record - `POST /api/commission/update-work` – Update commission work record (partial) - `POST /api/commission/delete-work/{id}` – Delete commission work record - `POST /api/commission/get-files/{id}` – List commission files - `POST /api/commission/file-upload` – Upload a commission file (base64 data URL) - `POST /api/commission/file-download/{id}` – Download a commission file (binary) - `POST /api/commission/file-delete/{id}` – Delete a commission file ### Offer – `modules/offer.yaml` (endpointů: 18) Nabídky (cl_offer) – hlavička CRUD + vnořené položky/úkoly/práce/soubory - `POST /api/offer/get-all` – List offers - `POST /api/offer/get-one/{id}` – Offer detail with nested items/tasks/work/files - `POST /api/offer/create` – Create offer (cm_number auto-generated) - `POST /api/offer/update` – Update offer (partial) - `POST /api/offer/delete/{id}` – Delete offer (409 if has items/work/files) - `POST /api/offer/create-item` – Create offer item - `POST /api/offer/update-item` – Update offer item (partial) - `POST /api/offer/delete-item/{id}` – Delete offer item - `POST /api/offer/create-task` – Create offer task - `POST /api/offer/update-task` – Update offer task (partial) - `POST /api/offer/delete-task/{id}` – Delete offer task - `POST /api/offer/create-work` – Create offer work record - `POST /api/offer/update-work` – Update offer work record (partial) - `POST /api/offer/delete-work/{id}` – Delete offer work record - `POST /api/offer/get-files/{id}` – List offer files - `POST /api/offer/file-upload` – Upload an offer file (base64 data URL) - `POST /api/offer/file-download/{id}` – Download an offer file (binary) - `POST /api/offer/file-delete/{id}` – Delete an offer file ### Invoice Arrived – `modules/invoicearrived.yaml` (endpointů: 27) Přijaté faktury (cl_invoice_arrived) – hlavička CRUD, stav a úhrada - `POST /api/invoicearrived/get-all` – List arrived invoices - `POST /api/invoicearrived/get-all-payments` – Bulk arrived-invoice payments for a period - `POST /api/invoicearrived/get-all-allocations` – Bulk allocations of arrived invoices to commissions - `POST /api/invoicearrived/get-deleted` – Deleted arrived invoices, payments and allocations since a time - `POST /api/invoicearrived/get-one/{id}` – Arrived invoice detail with nested payments/commissions/files - `POST /api/invoicearrived/create` – Create arrived invoice - `POST /api/invoicearrived/update` – Update arrived invoice header (partial) - `POST /api/invoicearrived/delete/{id}` – Delete arrived invoice (guard na navázaná data) - `POST /api/invoicearrived/set-status` – Change arrived invoice status - `POST /api/invoicearrived/pay-full` – Pay the remaining amount of the invoice in one call - `POST /api/invoicearrived/create-payment` – Create a (partial) payment of an arrived invoice - `POST /api/invoicearrived/update-payment` – Update a payment (partial) - `POST /api/invoicearrived/delete-payment/{id}` – Delete a payment - `POST /api/invoicearrived/create-commission` – Allocate invoice cost to a commission - `POST /api/invoicearrived/update-commission` – Update a cost allocation (partial) - `POST /api/invoicearrived/delete-commission/{id}` – Delete a cost allocation - `POST /api/invoicearrived/get-files/{id}` – List arrived invoice files - `POST /api/invoicearrived/file-upload` – Upload an arrived invoice file (base64 data URL) - `POST /api/invoicearrived/file-download/{id}` – Download an arrived invoice file (binary) - `POST /api/invoicearrived/file-delete/{id}` – Delete an arrived invoice file - `POST /api/invoicearrived/parse-file` – Bezstavové parsování ISDOC souboru dodavatelské faktury - `POST /api/invoicearrived/get-statuses` – List arrived invoice statuses - `POST /api/invoicearrived/get-payment-types` – List payment types - `POST /api/invoicearrived/get-currencies` – List currencies with rates - `POST /api/invoicearrived/get-centers` – List centers - `POST /api/invoicearrived/get-invoice-types` – List arrived invoice document types - `POST /api/invoicearrived/get-vat-rates` – List VAT rates valid at a date ### Reporting – `modules/reporting.yaml` (endpointů: 17) Čtecí výpisy pro BI nástroje (sklad, ceník). Jen bearer_token nebo api_token, sync_token ne. - `POST /api/reporting/get-store-moves` – Store moves for BI - `POST /api/reporting/get-store-docs` – Store documents for BI - `POST /api/reporting/get-stock` – Current stock for BI - `POST /api/reporting/get-pricelist` – Pricelist for BI - `POST /api/reporting/get-pricelist-groups` – Pricelist groups - `POST /api/reporting/get-storages` – Storages - `POST /api/reporting/get-deleted` – Deleted store and pricelist records since a time - `POST /api/reporting/get-commissions` – Commissions for BI - `POST /api/reporting/get-commission-items` – Commission sales items for BI - `POST /api/reporting/get-commission-work` – Commission work items for BI - `POST /api/reporting/get-offers` – Offers for BI - `POST /api/reporting/get-offer-items` – Offer items for BI - `POST /api/reporting/get-delivery-notes` – Delivery notes for BI - `POST /api/reporting/get-delivery-note-items` – Delivery note items for BI - `POST /api/reporting/get-delivery-note-items-back` – Delivery note returned items for BI - `POST /api/reporting/get-partners` – Partners for BI - `POST /api/reporting/get-partner-branches` – Partner branches for BI ### Cash – `modules/cash.yaml` (endpointů: 17) Pokladní doklady (cl_cash) – hlavička CRUD, stav, zůstatky po pokladnách a PDF. Autorizace jen bearer_token (sync_token zde neplatí), zápis kontroluje práva proti Application:Cash a vrací 403. POZOR – bearer_token není bezstavový: server ho porovnává s hodnotou ve své session, která se identifikuje cookie (PHPSESSID, _nss). Klient musí cookies uchovávat a posílat s každým voláním a přebírat jejich aktualizace (Set-Cookie chodí u každé odpovědi). Samotný token na čistém spojení vrátí 401. Platnost 120 minut se vztahuje na session a prodlužuje se každým voláním. dataJSON, pokud je posláno, musí být JSON objekt – jinak 400. Úplně vynechané dataJSON znamená "bez parametrů" a je v pořádku. - `POST /api/cash/get-all` – List cash documents - `POST /api/cash/get-one/{id}` – Cash document detail - `POST /api/cash/create` – Create cash document - `POST /api/cash/update` – Update cash document header (partial) - `POST /api/cash/set-status` – Change cash document status - `POST /api/cash/delete/{id}` – Delete cash document (guard na provázanost a přílohy) - `POST /api/cash/get-balance` – Cash register balances - `POST /api/cash/pdf/{id}` – Cash document as PDF (binary) - `POST /api/cash/get-cash-registers` – List cash registers - `POST /api/cash/get-centers` – List centers - `POST /api/cash/get-currencies` – List currencies - `POST /api/cash/get-number-series` – List number series for cash documents - `POST /api/cash/get-statuses` – List cash document statuses - `POST /api/cash/get-files/{id}` – List cash document files - `POST /api/cash/file-upload` – Upload a cash document file (base64 data URL) - `POST /api/cash/file-download/{id}` – Download a cash document file (binary) - `POST /api/cash/file-delete/{id}` – Delete a cash document file ### Invoice – `modules/invoice.yaml` (endpointů: 44) Faktury vydané (cl_invoice) – hlavička CRUD, stav, přepočet kurzem, PDF a ISDOC. Autorizace jen bearer_token (sync_token zde neplatí), zápis kontroluje práva proti Application:Invoice a vrací 403. POZOR – bearer_token není bezstavový: server ho porovnává s hodnotou ve své session, která se identifikuje cookie (PHPSESSID, _nss). Klient musí cookies uchovávat a posílat s každým voláním a přebírat jejich aktualizace (Set-Cookie chodí u každé odpovědi). Samotný token na čistém spojení vrátí 401. Platnost 120 minut se vztahuje na session a prodlužuje se každým voláním. dataJSON, pokud je posláno, musí být JSON objekt – jinak 400. Úplně vynechané dataJSON znamená "bez parametrů" a je v pořádku. Nad rámec firmy platí stejná omezení jako ve webu: pobočka uživatele (má-li ji vyplněnou) a role „Jen vlastní záznamy" – uplatňují se shodně u všech akcí modulu (hlavička, položky, úhrady, přílohy). - `POST /api/invoice/get-all` – List invoices - `POST /api/invoice/get-one/{id}` – Invoice detail - `POST /api/invoice/get-defaults` – Preview default values for a new invoice - `POST /api/invoice/create` – Create invoice - `POST /api/invoice/update` – Update invoice header (partial) - `POST /api/invoice/set-status` – Change invoice status - `POST /api/invoice/apply-partner` – Recompute due date/payment type/symbols for partner (optionally change partner) - `POST /api/invoice/set-currency` – Change invoice currency, optionally recalculating item prices - `POST /api/invoice/recalc/{id}` – Recalculate invoice header totals from current items - `POST /api/invoice/delete/{id}` – Delete invoice (řada blokátorů, vědomě přísnější než web) - `POST /api/invoice/get-all-items` – Bulk invoice items for a filter - `POST /api/invoice/get-all-payments` – Bulk invoice payments for a period - `POST /api/invoice/get-deleted` – Deleted invoices, items and payments since a time - `POST /api/invoice/get-items/{id}` – Invoice items only (lightweight get-one) - `POST /api/invoice/search-pricelist` – Search pricelist for items to add - `POST /api/invoice/check-availability` – Available quantity of one pricelist item on a storage - `POST /api/invoice/add-item` – Add a sale item (add-item) – zakládá/aktualizuje výdejku jako vedlejší efekt - `POST /api/invoice/update-item` – Update a sale item - `POST /api/invoice/delete-item/{id}` – Delete a sale item – vrací i skladový pohyb dárku - `POST /api/invoice/add-item-back` – Add a return item (dobropis množství) – zakládá/aktualizuje příjemku jako vedlejší efekt - `POST /api/invoice/update-item-back` – Update a return item - `POST /api/invoice/delete-item-back/{id}` – Delete a return item - `POST /api/invoice/reorder-items` – Reorder invoice items (items or items_back) - `POST /api/invoice/get-payments/{id}` – List invoice payments - `POST /api/invoice/create-payment` – Create payment – hotovostní úhrada zakládá pokladní doklad jako vedlejší efekt - `POST /api/invoice/update-payment` – Update payment (partial) - `POST /api/invoice/delete-payment/{id}` – Delete payment – uklidí i navázané doklady - `POST /api/invoice/pay-full/{id}` – Pay the full remaining amount at once - `POST /api/invoice/pdf/{id}` – Invoice PDF (zamyká fakturu u firem s lock_ap=1) - `POST /api/invoice/isdoc/{id}` – Invoice ISDOC XML - `POST /api/invoice/get-files/{id}` – List invoice attachments - `POST /api/invoice/file-upload` – Upload attachment (base64 data URL) - `POST /api/invoice/file-download/{id}` – Download attachment - `POST /api/invoice/file-delete/{id}` – Delete attachment - `POST /api/invoice/get-statuses` – Invoice statuses (status_use = invoice) - `POST /api/invoice/get-invoice-types` – Invoice types (inv_type = 1 only) - `POST /api/invoice/get-payment-types` – Payment types - `POST /api/invoice/get-currencies` – Currencies - `POST /api/invoice/get-centers` – Cost centers - `POST /api/invoice/get-vat-rates` – VAT rates valid to a given date - `POST /api/invoice/get-number-series` – Number series (form_use = invoice) - `POST /api/invoice/get-bank-accounts` – Bank accounts - `POST /api/invoice/get-storages` – Storages (flat list) - `POST /api/invoice/get-commissions` – Open commissions (zakázky) for assignment ### Partners – `modules/partners.yaml` (endpointů: 11) Adresář partnerů (cl_partners_book) – CRUD + vnořené kontakty/pobočky - `POST /api/partners/get-all` – List partners (jen deleted=0) - `POST /api/partners/get-one/{id}` – Partner detail with nested contacts/branches - `POST /api/partners/create` – Create partner - `POST /api/partners/update` – Update partner (partial) - `POST /api/partners/delete/{id}` – Delete partner (soft-delete, deleted=1) - `POST /api/partners/create-contact` – Create partner contact - `POST /api/partners/update-contact` – Update partner contact (partial) - `POST /api/partners/delete-contact/{id}` – Delete partner contact - `POST /api/partners/create-branch` – Create partner branch - `POST /api/partners/update-branch` – Update partner branch (partial) - `POST /api/partners/delete-branch/{id}` – Delete partner branch ### Pos Devices – `modules/pos.yaml` (endpointů: 3) Párování pokladního zařízení (appka) párovacím kódem vygenerovaným v ERP a token zařízení pro následné volání. Bez uživatelského přihlášení - autorizace je párovací kód (`register-device`) nebo token zařízení (`unregister-device`, `deviceToken`). - `POST /api/pos/register-device` – Pair a POS device with a pairing code - `POST /api/pos/unregister-device` – Unpair a POS device - `POST /api/pos/get-catalog` – Download the POS device's offline sales catalog (full or delta) ### Pos Sale – `modules/sale.yaml` (endpointů: 3) Prodej z mobilní pokladny (krok 3c) - `POST /api/sale/create`, autorizace jen tokenem zařízení (`deviceToken`). Obsluhu nese `cl_users_id` v těle, ověřuje ji `PosCashier`. Server prodej nikdy neodmítá kvůli skladu ani rozdílu součtů - obojí se vrátí jako varování v odpovědi. Vklad, výběr a rozdíl z uzávěrky jdou přes `/cash/create` (tag `Cash`), který token zařízení přijme taky. - `POST /api/sale/create` – Create a sale from the POS device (offline cart) - `POST /api/sale/create-correction` – Create a sale correction (storno) from the POS device - `POST /api/sale/get-status` – Bank payment status of sale receipts for the POS history ### ORO – `modules/oro.yaml` (endpointů: 4) Oznámení ORO pro celní správu (jen čtení). Právo read k modulu ORO. - `POST /api/oro/get-all` – Seznam oznámení ORO - `POST /api/oro/get-one/{id}` – Detail oznámení ORO s položkami a výrobky - `POST /api/oro/get-statuses` – Stavy oznámení ORO firmy - `POST /api/oro/get-deleted` – Smazaná oznámení, položky a výrobky od času since ### COCCZ – `modules/coccz.yaml` (endpointů: 5) Exporty prodejů pro Coca-Cola HBC (jen čtení). Právo read k modulu Coca-Cola. - `POST /api/coccz/get-all` – Seznam exportů COCCZ - `POST /api/coccz/get-one/{id}` – Detail exportu COCCZ se souhrnem (bez řádků) - `POST /api/coccz/get-items/{id}` – Řádky exportu COCCZ po stránkách - `POST /api/coccz/get-statuses` – Stavy exportů COCCZ firmy - `POST /api/coccz/get-deleted` – Smazané exporty a řádky od času since ### Transports – `modules/transports.yaml` (endpointů: 4) Jízdy Dopravy (jen čtení, `/api/transports/*`). Nezaměňovat s `/api/transport/*` – to je API mobilní aplikace Doprava (sync_token), které tu dokumentované není. - `POST /api/transports/get-all` – Seznam jízd Dopravy - `POST /api/transports/get-one/{id}` – Detail jízdy s dodacími listy - `POST /api/transports/get-statuses` – Stavy jízd firmy - `POST /api/transports/get-deleted` – Smazané jízdy a jejich dodací listy od času since ### Deliveries – `modules/deliveries.yaml` (endpointů: 4) Dodávky od dodavatelů (jen čtení, `/api/deliveries/*`). Nezaměňovat s `/api/delivery/*` – to je API mobilní aplikace Expedice. - `POST /api/deliveries/get-all` – Seznam dodávek - `POST /api/deliveries/get-one/{id}` – Detail dodávky s položkami a kontrolou množství - `POST /api/deliveries/get-statuses` – Stavy dodávek firmy - `POST /api/deliveries/get-deleted` – Smazané dodávky a položky od času since ### Delivery Notes In – `modules/deliverynotein.yaml` (endpointů: 4) Dodací listy přijaté (jen čtení, `/api/deliverynotein/*`). - `POST /api/deliverynotein/get-all` – Seznam dodacích listů přijatých - `POST /api/deliverynotein/get-one/{id}` – Detail DL přijatého s rozpisem DPH, položkami a vratkami - `POST /api/deliverynotein/get-statuses` – Stavy DL přijatých firmy - `POST /api/deliverynotein/get-deleted` – Smazané DL přijaté, položky a vratky od času since ### Sales – `modules/sales.yaml` (endpointů: 4) Prodejky Prodejny (jen čtení, `/api/sales/*`). Zakládání prodejek z pokladny je `/api/sale/*` (tag Pos Sale, token zařízení). - `POST /api/sales/get-all` – Seznam prodejek - `POST /api/sales/get-one/{id}` – Detail prodejky s rozpisem DPH, položkami a platbami - `POST /api/sales/get-statuses` – Stavy prodejek firmy - `POST /api/sales/get-deleted` – Smazané prodejky, položky a platby od času since ### Purchase Orders – `modules/purchaseorders.yaml` (endpointů: 4) Objednávky u dodavatelů (jen čtení, `/api/purchaseorders/*`). Nezaměňovat s legacy `/api/orders/*` (sync_token). - `POST /api/purchaseorders/get-all` – Seznam objednávek u dodavatelů - `POST /api/purchaseorders/get-one/{id}` – Detail objednávky s položkami a stavem příjmu - `POST /api/purchaseorders/get-statuses` – Stavy objednávek firmy - `POST /api/purchaseorders/get-deleted` – Smazané objednávky a položky od času since