{"openapi":"3.1.0","info":{"title":"Sumeda API","version":"1.0.0","description":"Veřejné API Sumedy. Klíč patří firmě a smí být jen na serveru integrace — nikdy v prohlížeči ani v mobilní aplikaci. Podrobnosti: docs/public-api.md."},"servers":[{"url":"/api/v1"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"esk_live_…","description":"Scopes: contacts:read, contacts:write, items:read, items:write, documents:read, documents:write, received:read, received:write, finance:read, finance:write, projects:read, projects:write, cost-centers:read, cost-centers:write, cost-categories:read, cost-categories:write"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}}}}},"required":["code","message"]}}},"Object":{"type":"object"},"Me":{"type":"object"},"Contact":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"],"maxLength":100},"name":{"type":"string","maxLength":255},"ico":{"type":["string","null"]},"dic":{"type":["string","null"]},"street":{"type":["string","null"]},"city":{"type":["string","null"]},"zip":{"type":["string","null"]},"country":{"type":"string","minLength":2,"maxLength":2},"email":{"type":["string","null"]},"billingEmail":{"type":["string","null"]},"phone":{"type":["string","null"]},"web":{"type":["string","null"]},"contactPerson":{"type":["string","null"]},"note":{"type":["string","null"]},"isCustomer":{"type":"boolean"},"isSupplier":{"type":"boolean"},"dueDays":{"type":["integer","null"]},"costCenterId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ContactInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":255},"ico":{"type":["string","null"]},"dic":{"type":["string","null"]},"street":{"type":["string","null"]},"city":{"type":["string","null"]},"zip":{"type":["string","null"]},"country":{"type":"string","minLength":2,"maxLength":2},"email":{"type":["string","null"]},"billingEmail":{"type":["string","null"]},"phone":{"type":["string","null"]},"web":{"type":["string","null"]},"contactPerson":{"type":["string","null"]},"note":{"type":["string","null"]},"isCustomer":{"type":"boolean"},"isSupplier":{"type":"boolean"},"dueDays":{"type":["integer","null"]},"costCenterId":{"type":["string","null"]},"externalId":{"type":["string","null"],"maxLength":100}},"required":["name"]},"Item":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"],"maxLength":100},"name":{"type":"string"},"code":{"type":["string","null"]},"description":{"type":["string","null"]},"unit":{"type":"string"},"unitPrice":{"type":"number"},"vatRate":{"type":"integer","enum":[0,12,21]},"isActive":{"type":"boolean"},"trackStock":{"type":"boolean"},"salePrice":{"type":["number","null"]},"purchasePrice":{"type":["number","null"]},"minStock":{"type":["number","null"]},"category":{"type":["string","null"]},"barcodes":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"quantity":{"type":"number"}}}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ItemInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"code":{"type":["string","null"]},"description":{"type":["string","null"]},"unit":{"type":"string"},"unitPrice":{"type":"number"},"vatRate":{"type":"integer","enum":[0,12,21]},"isActive":{"type":"boolean"},"trackStock":{"type":"boolean"},"salePrice":{"type":["number","null"]},"purchasePrice":{"type":["number","null"]},"minStock":{"type":["number","null"]},"category":{"type":["string","null"]},"barcodes":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"quantity":{"type":"number"}}}},"externalId":{"type":["string","null"],"maxLength":100}},"required":["name","unitPrice","vatRate"]},"Project":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"],"maxLength":100},"name":{"type":"string"},"code":{"type":["string","null"]},"description":{"type":["string","null"]},"status":{"type":"string","enum":["OPEN","CLOSED"]},"contactId":{"type":["string","null"]},"costCenterId":{"type":["string","null"]},"budget":{"type":["number","null"]},"startDate":{"type":["string","null"],"format":"date"},"endDate":{"type":["string","null"],"format":"date"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ProjectInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"code":{"type":["string","null"]},"description":{"type":["string","null"]},"status":{"type":"string","enum":["OPEN","CLOSED"]},"contactId":{"type":["string","null"]},"costCenterId":{"type":["string","null"]},"budget":{"type":["number","null"]},"startDate":{"type":["string","null"],"format":"date"},"endDate":{"type":["string","null"],"format":"date"},"externalId":{"type":["string","null"],"maxLength":100}},"required":["name"]},"CostCenter":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"],"maxLength":100},"name":{"type":"string"},"code":{"type":["string","null"]},"description":{"type":["string","null"]},"isActive":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"CostCenterInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"code":{"type":["string","null"]},"description":{"type":["string","null"]},"isActive":{"type":"boolean"},"externalId":{"type":["string","null"],"maxLength":100}},"required":["name"]},"CostCategory":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"],"maxLength":100},"name":{"type":"string"},"code":{"type":["string","null"]},"description":{"type":["string","null"]},"isActive":{"type":"boolean"},"group":{"type":"string","enum":["DIRECT","INDIRECT"]},"calcRule":{"type":"string"},"taxDeductiblePct":{"type":["number","null"]},"sortOrder":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"CostCategoryInput":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"code":{"type":["string","null"]},"description":{"type":["string","null"]},"isActive":{"type":"boolean"},"group":{"type":"string","enum":["DIRECT","INDIRECT"]},"calcRule":{"type":"string"},"taxDeductiblePct":{"type":["number","null"]},"sortOrder":{"type":"integer"},"externalId":{"type":["string","null"],"maxLength":100}},"required":["name"]},"Document":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"],"maxLength":100},"type":{"type":"string","enum":["INVOICE","PROFORMA","CREDIT_NOTE","QUOTE","ORDER","ORDER_CONFIRMATION"]},"status":{"type":"string"},"number":{"type":["string","null"]},"partner":{"type":"object"},"lines":{"type":"array","items":{"type":"object","required":["name","quantity","unitPrice"],"properties":{"name":{"type":"string"},"description":{"type":["string","null"]},"quantity":{"type":"number"},"unit":{"type":"string"},"unitPrice":{"type":"number"},"discountPct":{"type":"number"},"vatRate":{"type":"integer","enum":[0,12,21]},"costCenterId":{"type":["string","null"]},"projectId":{"type":["string","null"]}}}},"subtotal":{"type":"number"},"vatTotal":{"type":"number"},"total":{"type":"number"},"rounding":{"type":"number"},"vatClassification":{"type":["string","null"],"description":"Členění DPH pro Pohodu (jen faktura a dobropis plátce DPH). Zkratky výchozího číselníku Pohody: UD = tuzemské plnění (KH A.4 nad 10 000 Kč vč. DPH, jinak A.5), UDA5 = vždy A.5 (odběratel bez DIČ), UDA4 = vždy A.4, UDpdp = přenesení daňové povinnosti § 92a, UDdodEU = dodání zboží do EU, USregEU = služby do EU, UVzboží (i UVzbozi) = vývoz zboží, UDzahr = služba mimo EU, UN = nezahrnovat; jde i vlastní zkratka z číselníku firmy (písmena a číslice, max. 19 znaků). Zápis: zkratka = ruční volba (Sumeda ji nemění), null = automaticky podle DIČ a země odběratele, DPH na dokladu a původní faktury dobropisu; pole vynechané = beze změny. Čtení: vatClassificationManual = zvolil uživatel / integrace."},"vatClassificationManual":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"DocumentInput":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["INVOICE","PROFORMA","CREDIT_NOTE","QUOTE","ORDER","ORDER_CONFIRMATION"]},"contactId":{"type":["string","null"]},"partnerName":{"type":["string","null"]},"partnerIco":{"type":["string","null"]},"partnerDic":{"type":["string","null"]},"partnerStreet":{"type":["string","null"]},"partnerCity":{"type":["string","null"]},"partnerZip":{"type":["string","null"]},"partnerCountry":{"type":"string"},"partnerEmail":{"type":["string","null"]},"issueDate":{"type":"string","format":"date"},"taxDate":{"type":["string","null"],"format":"date"},"dueDate":{"type":["string","null"],"format":"date"},"validUntil":{"type":["string","null"],"format":"date"},"paymentMethod":{"type":"string","enum":["BANK","CASH","CARD"]},"variableSymbol":{"type":["string","null"]},"currency":{"type":"string"},"roundTotal":{"type":"boolean"},"orderNumber":{"type":["string","null"]},"introText":{"type":["string","null"]},"note":{"type":["string","null"]},"costCenterId":{"type":["string","null"]},"projectId":{"type":["string","null"]},"vatClassification":{"type":["string","null"],"maxLength":19,"examples":["UD","UDA5","UDA4","UDpdp","UDdodEU","USregEU","UVzboží","UDzahr","UN"],"description":"Členění DPH pro Pohodu (jen faktura a dobropis plátce DPH). Zkratky výchozího číselníku Pohody: UD = tuzemské plnění (KH A.4 nad 10 000 Kč vč. DPH, jinak A.5), UDA5 = vždy A.5 (odběratel bez DIČ), UDA4 = vždy A.4, UDpdp = přenesení daňové povinnosti § 92a, UDdodEU = dodání zboží do EU, USregEU = služby do EU, UVzboží (i UVzbozi) = vývoz zboží, UDzahr = služba mimo EU, UN = nezahrnovat; jde i vlastní zkratka z číselníku firmy (písmena a číslice, max. 19 znaků). Zápis: zkratka = ruční volba (Sumeda ji nemění), null = automaticky podle DIČ a země odběratele, DPH na dokladu a původní faktury dobropisu; pole vynechané = beze změny. Čtení: vatClassificationManual = zvolil uživatel / integrace."},"sourceId":{"type":["string","null"]},"lines":{"type":"array","items":{"type":"object","required":["name","quantity","unitPrice"],"properties":{"name":{"type":"string"},"description":{"type":["string","null"]},"quantity":{"type":"number"},"unit":{"type":"string"},"unitPrice":{"type":"number"},"discountPct":{"type":"number"},"vatRate":{"type":"integer","enum":[0,12,21]},"costCenterId":{"type":["string","null"]},"projectId":{"type":["string","null"]}}},"minItems":1,"maxItems":200},"issue":{"type":"boolean"},"number":{"type":"string","maxLength":40,"description":"Původní číslo dokladu vystaveného mimo Sumedu (faktura, záloha, dobropis) — uloží se rovnou jako vystavený"},"externalId":{"type":["string","null"],"maxLength":100}},"required":["type","lines"]},"DocumentPatch":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["INVOICE","PROFORMA","CREDIT_NOTE","QUOTE","ORDER","ORDER_CONFIRMATION"]},"contactId":{"type":["string","null"]},"partnerName":{"type":["string","null"]},"partnerIco":{"type":["string","null"]},"partnerDic":{"type":["string","null"]},"partnerStreet":{"type":["string","null"]},"partnerCity":{"type":["string","null"]},"partnerZip":{"type":["string","null"]},"partnerCountry":{"type":"string"},"partnerEmail":{"type":["string","null"]},"issueDate":{"type":"string","format":"date"},"taxDate":{"type":["string","null"],"format":"date"},"dueDate":{"type":["string","null"],"format":"date"},"validUntil":{"type":["string","null"],"format":"date"},"paymentMethod":{"type":"string","enum":["BANK","CASH","CARD"]},"variableSymbol":{"type":["string","null"]},"currency":{"type":"string"},"roundTotal":{"type":"boolean"},"orderNumber":{"type":["string","null"]},"introText":{"type":["string","null"]},"note":{"type":["string","null"]},"costCenterId":{"type":["string","null"]},"projectId":{"type":["string","null"]},"vatClassification":{"type":["string","null"],"maxLength":19,"examples":["UD","UDA5","UDA4","UDpdp","UDdodEU","USregEU","UVzboží","UDzahr","UN"],"description":"Členění DPH pro Pohodu (jen faktura a dobropis plátce DPH). Zkratky výchozího číselníku Pohody: UD = tuzemské plnění (KH A.4 nad 10 000 Kč vč. DPH, jinak A.5), UDA5 = vždy A.5 (odběratel bez DIČ), UDA4 = vždy A.4, UDpdp = přenesení daňové povinnosti § 92a, UDdodEU = dodání zboží do EU, USregEU = služby do EU, UVzboží (i UVzbozi) = vývoz zboží, UDzahr = služba mimo EU, UN = nezahrnovat; jde i vlastní zkratka z číselníku firmy (písmena a číslice, max. 19 znaků). Zápis: zkratka = ruční volba (Sumeda ji nemění), null = automaticky podle DIČ a země odběratele, DPH na dokladu a původní faktury dobropisu; pole vynechané = beze změny. Čtení: vatClassificationManual = zvolil uživatel / integrace."},"lines":{"type":"array","items":{"type":"object","required":["name","quantity","unitPrice"],"properties":{"name":{"type":"string"},"description":{"type":["string","null"]},"quantity":{"type":"number"},"unit":{"type":"string"},"unitPrice":{"type":"number"},"discountPct":{"type":"number"},"vatRate":{"type":"integer","enum":[0,12,21]},"costCenterId":{"type":["string","null"]},"projectId":{"type":["string","null"]}}},"minItems":1,"maxItems":200}}},"DocumentStatusInput":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["PAID","CANCELLED"]},"paidAt":{"type":"string","format":"date-time"},"reason":{"type":"string","maxLength":500}},"required":["status"]},"Received":{"type":"object","properties":{"id":{"type":"string"},"externalId":{"type":["string","null"],"maxLength":100},"status":{"type":"string"},"kind":{"type":"string"},"supplier":{"type":"object"},"amounts":{"type":"object"},"vatClassification":{"type":["string","null"]},"vatClassificationManual":{"type":"boolean"},"files":{"type":"array","items":{"type":"object"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ReceivedManualInput":{"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string","enum":["INVOICE","CREDIT_NOTE","PROFORMA","RECEIPT","OTHER","ADVANCE_TAX","INSURANCE_CLAIM","PAYMENT_SCHEDULE"]},"contactId":{"type":["string","null"]},"supplierName":{"type":["string","null"]},"supplierIco":{"type":["string","null"]},"supplierDic":{"type":["string","null"]},"supplierStreet":{"type":["string","null"]},"supplierCity":{"type":["string","null"]},"supplierZip":{"type":["string","null"]},"invoiceNumber":{"type":["string","null"]},"variableSymbol":{"type":["string","null"]},"issueDate":{"type":["string","null"],"format":"date"},"taxDate":{"type":["string","null"],"format":"date"},"dueDate":{"type":["string","null"],"format":"date"},"currency":{"type":"string"},"paymentMethod":{"type":"string","enum":["BANK","CASH","CARD"]},"baseHigh":{"type":["number","null"]},"vatHigh":{"type":["number","null"]},"baseLow":{"type":["number","null"]},"vatLow":{"type":["number","null"]},"baseNone":{"type":["number","null"]},"totalWithoutVat":{"type":["number","null"]},"totalVat":{"type":["number","null"]},"totalWithVat":{"type":["number","null"]},"iban":{"type":["string","null"]},"bankAccount":{"type":["string","null"]},"summary":{"type":["string","null"]},"category":{"type":["string","null"]},"costCenterId":{"type":["string","null"]},"projectId":{"type":["string","null"]},"costCategoryId":{"type":["string","null"]},"reverseCharge":{"type":"boolean"},"vatClassification":{"type":["string","null"],"enum":["PD","PK","PN",null],"description":"Členění DPH pro Pohodu: PD = tuzemské plnění s nárokem na odpočet, PK = krácený nárok na odpočet (koeficient § 76 ZDPH), PN = nezahrnovat do přiznání. null = navrhne Sumeda."},"externalId":{"type":["string","null"],"maxLength":100}}},"ReceivedPatch":{"type":"object","additionalProperties":false,"properties":{"kind":{"type":"string","enum":["INVOICE","CREDIT_NOTE","PROFORMA","RECEIPT","OTHER","ADVANCE_TAX","INSURANCE_CLAIM","PAYMENT_SCHEDULE"]},"contactId":{"type":["string","null"]},"supplierName":{"type":["string","null"]},"supplierIco":{"type":["string","null"]},"supplierDic":{"type":["string","null"]},"supplierStreet":{"type":["string","null"]},"supplierCity":{"type":["string","null"]},"supplierZip":{"type":["string","null"]},"invoiceNumber":{"type":["string","null"]},"variableSymbol":{"type":["string","null"]},"issueDate":{"type":["string","null"],"format":"date"},"taxDate":{"type":["string","null"],"format":"date"},"dueDate":{"type":["string","null"],"format":"date"},"currency":{"type":"string"},"paymentMethod":{"type":"string","enum":["BANK","CASH","CARD"]},"baseHigh":{"type":["number","null"]},"vatHigh":{"type":["number","null"]},"baseLow":{"type":["number","null"]},"vatLow":{"type":["number","null"]},"baseNone":{"type":["number","null"]},"totalWithoutVat":{"type":["number","null"]},"totalVat":{"type":["number","null"]},"totalWithVat":{"type":["number","null"]},"iban":{"type":["string","null"]},"bankAccount":{"type":["string","null"]},"summary":{"type":["string","null"]},"category":{"type":["string","null"]},"costCenterId":{"type":["string","null"]},"projectId":{"type":["string","null"]},"costCategoryId":{"type":["string","null"]},"reverseCharge":{"type":"boolean"},"vatClassification":{"type":["string","null"],"enum":["PD","PK","PN",null],"description":"Členění DPH pro Pohodu: PD = tuzemské plnění s nárokem na odpočet, PK = krácený nárok na odpočet (koeficient § 76 ZDPH), PN = nezahrnovat do přiznání. null = navrhne Sumeda."}}},"Movement":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"direction":{"type":"string","enum":["IN","OUT"]},"date":{"type":"string","format":"date"},"amount":{"type":"number"},"currency":{"type":"string"},"number":{"type":["string","null"]},"variableSymbol":{"type":["string","null"]},"documentId":{"type":["string","null"]},"receivedId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"Account":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["BANK","CASH"]},"name":{"type":"string"},"accountNumber":{"type":["string","null"]},"iban":{"type":["string","null"]},"currency":{"type":"string"},"balance":{"type":"number"}}},"StatementImport":{"type":"object","properties":{"statementId":{"type":["string","null"]},"imported":{"type":"integer"},"duplicates":{"type":"integer"},"warning":{"type":["string","null"]}}},"CashInput":{"type":"object","additionalProperties":false,"properties":{"accountId":{"type":"string"},"direction":{"type":"string","enum":["IN","OUT"]},"date":{"type":"string","format":"date"},"amount":{"type":"number"},"message":{"type":["string","null"]},"contactId":{"type":["string","null"]},"partnerName":{"type":["string","null"]},"partnerIco":{"type":["string","null"]},"vatRate":{"type":["integer","null"]},"documentId":{"type":"string"},"receivedId":{"type":"string"},"costCenterId":{"type":["string","null"]},"eet":{"type":"boolean"}},"required":["accountId","direction","date"]}}},"paths":{"/me":{"get":{"tags":["Účet"],"summary":"GET /me","description":"Jen platný klíč","security":[{"apiKey":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/contacts":{"get":{"tags":["Adresář"],"summary":"GET /contacts","description":"Scope: `contacts:read`","security":[{"apiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"updatedSince","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Adresář"],"summary":"POST /contacts","description":"Scope: `contacts:write`","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactInput"}}}}}},"/contacts/{id}":{"get":{"tags":["Adresář"],"summary":"GET /contacts/:id","description":"Scope: `contacts:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["Adresář"],"summary":"PATCH /contacts/:id","description":"Scope: `contacts:write`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactInput"}}}}}},"/contacts/by-external-id/{externalId}":{"put":{"tags":["Adresář"],"summary":"PUT /contacts/by-external-id/:externalId","description":"Scope: `contacts:write`","security":[{"apiKey":[]}],"parameters":[{"name":"externalId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Upraveno (existující externalId)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactInput"}}}}}},"/items":{"get":{"tags":["Ceník"],"summary":"GET /items","description":"Scope: `items:read`","security":[{"apiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"updatedSince","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Ceník"],"summary":"POST /items","description":"Scope: `items:write`","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemInput"}}}}}},"/items/{id}":{"get":{"tags":["Ceník"],"summary":"GET /items/:id","description":"Scope: `items:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["Ceník"],"summary":"PATCH /items/:id","description":"Scope: `items:write`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemInput"}}}}}},"/items/by-external-id/{externalId}":{"put":{"tags":["Ceník"],"summary":"PUT /items/by-external-id/:externalId","description":"Scope: `items:write`","security":[{"apiKey":[]}],"parameters":[{"name":"externalId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Upraveno (existující externalId)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemInput"}}}}}},"/projects":{"get":{"tags":["Zakázky"],"summary":"GET /projects","description":"Scope: `projects:read`","security":[{"apiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"updatedSince","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Zakázky"],"summary":"POST /projects","description":"Scope: `projects:write`","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectInput"}}}}}},"/projects/{id}":{"get":{"tags":["Zakázky"],"summary":"GET /projects/:id","description":"Scope: `projects:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["Zakázky"],"summary":"PATCH /projects/:id","description":"Scope: `projects:write`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectInput"}}}}}},"/projects/by-external-id/{externalId}":{"put":{"tags":["Zakázky"],"summary":"PUT /projects/by-external-id/:externalId","description":"Scope: `projects:write`","security":[{"apiKey":[]}],"parameters":[{"name":"externalId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Upraveno (existující externalId)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectInput"}}}}}},"/cost-centers":{"get":{"tags":["Střediska"],"summary":"GET /cost-centers","description":"Scope: `cost-centers:read`","security":[{"apiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"updatedSince","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CostCenter"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Střediska"],"summary":"POST /cost-centers","description":"Scope: `cost-centers:write`","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenter"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterInput"}}}}}},"/cost-centers/{id}":{"get":{"tags":["Střediska"],"summary":"GET /cost-centers/:id","description":"Scope: `cost-centers:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenter"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["Střediska"],"summary":"PATCH /cost-centers/:id","description":"Scope: `cost-centers:write`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenter"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterInput"}}}}}},"/cost-centers/by-external-id/{externalId}":{"put":{"tags":["Střediska"],"summary":"PUT /cost-centers/by-external-id/:externalId","description":"Scope: `cost-centers:write`","security":[{"apiKey":[]}],"parameters":[{"name":"externalId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Upraveno (existující externalId)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenter"}}}},"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenter"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCenterInput"}}}}}},"/cost-categories":{"get":{"tags":["Kategorie nákladů"],"summary":"GET /cost-categories","description":"Scope: `cost-categories:read`","security":[{"apiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"updatedSince","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CostCategory"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Kategorie nákladů"],"summary":"POST /cost-categories","description":"Scope: `cost-categories:write`","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCategory"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCategoryInput"}}}}}},"/cost-categories/{id}":{"get":{"tags":["Kategorie nákladů"],"summary":"GET /cost-categories/:id","description":"Scope: `cost-categories:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCategory"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["Kategorie nákladů"],"summary":"PATCH /cost-categories/:id","description":"Scope: `cost-categories:write`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCategory"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCategoryInput"}}}}}},"/cost-categories/by-external-id/{externalId}":{"put":{"tags":["Kategorie nákladů"],"summary":"PUT /cost-categories/by-external-id/:externalId","description":"Scope: `cost-categories:write`","security":[{"apiKey":[]}],"parameters":[{"name":"externalId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Upraveno (existující externalId)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCategory"}}}},"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCategory"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCategoryInput"}}}}}},"/documents":{"get":{"tags":["Vydané doklady"],"summary":"GET /documents","description":"Scope: `documents:read`","security":[{"apiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"updatedSince","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Vydané doklady"],"summary":"POST /documents","description":"Scope: `documents:write`","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentInput"}}}}}},"/documents/{id}":{"get":{"tags":["Vydané doklady"],"summary":"GET /documents/:id","description":"Scope: `documents:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["Vydané doklady"],"summary":"PATCH /documents/:id","description":"Scope: `documents:write`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPatch"}}}}}},"/documents/by-external-id/{externalId}":{"put":{"tags":["Vydané doklady"],"summary":"PUT /documents/by-external-id/:externalId","description":"Scope: `documents:write`","security":[{"apiKey":[]}],"parameters":[{"name":"externalId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Upraveno (existující externalId)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentInput"}}}}}},"/documents/{id}/issue":{"post":{"tags":["Vydané doklady"],"summary":"POST /documents/:id/issue","description":"Scope: `documents:write`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/documents/{id}/status":{"post":{"tags":["Vydané doklady"],"summary":"POST /documents/:id/status","description":"Scope: `documents:write`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentStatusInput"}}}}}},"/documents/{id}/pdf":{"get":{"tags":["Vydané doklady"],"summary":"GET /documents/:id/pdf","description":"Scope: `documents:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Soubor","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/documents/{id}/isdoc":{"get":{"tags":["Vydané doklady"],"summary":"GET /documents/:id/isdoc","description":"Scope: `documents:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Soubor","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/received":{"get":{"tags":["Přijaté doklady"],"summary":"GET /received","description":"Scope: `received:read`","security":[{"apiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"updatedSince","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Received"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Přijaté doklady"],"summary":"POST /received","description":"Scope: `received:write`","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Received"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Soubor nad 10 MB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"},"maxItems":2},"externalId":{"type":"string"}},"required":["files"]}}}}}},"/received/{id}":{"get":{"tags":["Přijaté doklady"],"summary":"GET /received/:id","description":"Scope: `received:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Received"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["Přijaté doklady"],"summary":"PATCH /received/:id","description":"Scope: `received:write`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Received"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceivedPatch"}}}}}},"/received/{id}/file":{"get":{"tags":["Přijaté doklady"],"summary":"GET /received/:id/file","description":"Scope: `received:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Soubor","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/received/{id}/files/{fileId}":{"get":{"tags":["Přijaté doklady"],"summary":"GET /received/:id/files/:fileId","description":"Scope: `received:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Soubor","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/received/manual":{"post":{"tags":["Přijaté doklady"],"summary":"POST /received/manual","description":"Scope: `received:write`","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Received"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceivedManualInput"}}}}}},"/finance/accounts":{"get":{"tags":["Banka a pokladna"],"summary":"GET /finance/accounts","description":"Scope: `finance:read`","security":[{"apiKey":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Account"}}}}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/finance/movements":{"get":{"tags":["Banka a pokladna"],"summary":"GET /finance/movements","description":"Scope: `finance:read`","security":[{"apiKey":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"updatedSince","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Movement"}},"nextCursor":{"type":["string","null"]}}}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/finance/movements/{id}":{"get":{"tags":["Banka a pokladna"],"summary":"GET /finance/movements/:id","description":"Scope: `finance:read`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Movement"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/finance/accounts/{id}/statements":{"post":{"tags":["Banka a pokladna"],"summary":"POST /finance/accounts/:id/statements","description":"Scope: `finance:write`","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementImport"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Soubor nad 10 MB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}}}},"/finance/cash":{"post":{"tags":["Banka a pokladna"],"summary":"POST /finance/cash","description":"Scope: `finance:write`","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Movement"}}}},"400":{"description":"Neplatný vstup (VALIDATION)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Neplatný klíč","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Licence / limit tarifu / modul / AI limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Chybí scope / IP mimo allowlist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nenalezeno","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Zamčeno (LOCKED), konflikt nebo běžící idempotentní požadavek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Idempotency-Key použit s jiným tělem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Překročen limit požadavků","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashInput"}}}}}}}}