| input_format | string | REQ | Format vstupneho dokumentu (povolené: json, ubl) |
| output_format | string | REQ | Format vystupneho dokumentu (povolené: json, ubl) |
| document | object | REQ | SendDocumentJsonRequest objekt (pre input_format=json) alebo UBL XML string (pre input_format=ubl) |
| document.processId | string | optional | Peppol process URN. Accepts the bare URN or the cenbii-procid-ubl:: prefixed form. Defaults to profile 01; use urn:peppol:bis:billing_with_response to require an Invoice Response. |
| document.documentType | string | optional | Business document type. invoice is a supplier-issued invoice; credit_note corrects a supplier-issued invoice; self_billing is a buyer-issued invoice; self_billing_credit_note corrects a buyer-issued invoice; self_billing_debit_note (527) adds to a buyer-issued invoice. correction uses InvoiceTypeCode 384; correction (384) is a data-only corrective invoice with no VAT effect: it repeats all items, quantities and amounts of the original invoice, only the corrected data, its own invoiceNumber and issueDate differ, and precedingInvoiceRef is mandatory. It is accepted only between a Slovak supplier and a Slovak buyer, from the date the Peppol network accepts it (BIS Billing 3.0.22, rule PEPPOL-EN16931-P0112); before that and for any non-Slovak party the API answers 422 with P0112, so send a credit_note referencing the original plus a new invoice. A change of an amount needs credit_note or debit_note. The original invoice stays the document that is paid, reported and exported; a 384 is never payable. It is billed like a credit note, sent and received. debit_note uses InvoiceTypeCode 383 and requires an original invoice reference. prepayment_invoice uses InvoiceTypeCode 386; it is a separate invoice, not a proforma or a final invoice prepayments entry. advance_payment uses InvoiceTypeCode 388 (daňový doklad k prijatej platbe, tax document for a received payment). Issue 386 and 388 only after the payment was received and put the payment date in taxPointDate; for 388 taxPointDate is required, must not be after issueDate or in the future, prepayments and advance_deduction lines are rejected and PrepaidAmount equals the total with VAT, so PayableAmount is 0. A proforma or payment request is not an invoice and must not be sent over Peppol. Defaults to invoice. (default: invoice) (povolené: invoice, credit_note, debit_note, prepayment_invoice, advance_payment, correction, self_billing, self_billing_credit_note, self_billing_debit_note) |
| document.document_type | string | optional | Snake_case alias for documentType. If multiple aliases are sent, all non-empty values must match. (povolené: invoice, credit_note, debit_note, prepayment_invoice, advance_payment, correction, self_billing, self_billing_credit_note, self_billing_debit_note) |
| document.docType | string | optional | Compatibility alias for documentType. Do not send conflicting alias values. (povolené: invoice, credit_note, debit_note, prepayment_invoice, advance_payment, correction, self_billing, self_billing_credit_note, self_billing_debit_note) |
| document.receiverPeppolId | string | optional | Peppol participant ID in scheme:identifier form, for example 0245:2123456789. Required for invoice/credit_note and identifies the buyer. For self-billing it identifies the supplier/Peppol recipient, but supplierPeppolId is the clearer alias. |
| document.supplierPeppolId | string | optional | Self-billing alias for the supplier/Peppol recipient in scheme:identifier form. Allowed only for self_billing, self_billing_credit_note and self_billing_debit_note; it is normalized into receiverPeppolId. |
| document.invoiceNumber | string | optional | Invoice or credit-note number. If omitted or empty, ePošťák allocates the next number from the authenticated firm's numbering sequence. |
| document.precedingInvoiceRef | string | optional | External original invoice number adjusted by this corrective document. Required for credit_note, correction (384), debit_note, self_billing_credit_note and self_billing_debit_note; emitted as UBL BillingReference. |
| document.issueDate | date | optional | Issue date in YYYY-MM-DD format. Through 2026 a supplied value is preserved. From 1 January 2027 the legal issue date is the Europe/Bratislava handoff day; generated JSON is normalized and raw UBL with a different IssueDate is rejected. |
| document.dueDate | date | optional | Payment due date in YYYY-MM-DD format. Optional. |
| document.taxPointDate | date | optional | VAT tax point date (BT-7) in YYYY-MM-DD format. Kept separate from the actual delivery date. For advance_payment (388) and prepayment_invoice (386) it is the date the payment was received (Slovak VAT Act § 74(1)(d)); required for 388, not after issueDate and not in the future. |
| document.deliveryDate | date | optional | Actual delivery date for the whole document (BT-72) in YYYY-MM-DD format. |
| document.documentDiscountPercent | number | optional | Document-level discount percentage represented as a Peppol BG-20 allowance. This is additional to any items[].discount. (0–100) |
| document.currency | string | optional | ISO 4217 currency code. If omitted, the authenticated firm's default currency is used, falling back to EUR. (default: EUR) |
| document.exchangeRate | number | string | optional | EUR value of one unit of a non-EUR currency; drives BT-6 TaxCurrencyCode and the VAT total in EUR (BT-111). Ignored for EUR. |
| document.note | string | optional | Free-text invoice note. Use it for a human-readable exemption/reverse-charge reason or other information the receiver must see. |
| document.iban | string | optional | Payment IBAN. If omitted, the authenticated firm's saved IBAN is used when available. |
| document.paymentMethod | string | optional | Payment method. Accepted convenience aliases: bank_transfer=30, credit_transfer=30, sepa=58, card=48, cash=10, direct_debit=49. A direct UNCL4461 code such as 30 is also accepted. Omitted defaults to 30 in generated UBL. |
| document.variableSymbol | string | optional | Variable symbol (variabilný symbol) sent as the UBL PaymentID. Only its digits are kept, and the stored value equals the sent one; when more than 10 digits remain, the last 10 are used. A value without digits is treated as not sent. The format is never refused. |
| document.buyerReference | string | optional | Buyer reference, purchase-order number, or internal procurement reference. |
| document.orderReference | string | optional | Buyer's purchase-order number (BT-13, cac:OrderReference). (max 100 znakov / chars) |
| document.contractReference | string | optional | Contract number (BT-12, cac:ContractDocumentReference). (max 100 znakov / chars) |
| document.projectReference | string | optional | Project reference (BT-11, cac:ProjectReference). (max 100 znakov / chars) |
| document.invoicePeriodStart | date | optional | First day of the billing period (BT-73, cac:InvoicePeriod/cbc:StartDate) in YYYY-MM-DD format. |
| document.invoicePeriodEnd | date | optional | Last day of the billing period (BT-74, cac:InvoicePeriod/cbc:EndDate) in YYYY-MM-DD format. Must not be before invoicePeriodStart. |
| document.receiverName | string | optional | Counterparty legal/business name. Required for invoice/credit_note. For self-billing it identifies the supplier, but supplierName is the clearer alias. |
| document.receiverIco | string | optional | Counterparty company registration number (IČO). |
| document.receiverDic | string | optional | Counterparty tax identification number (DIČ). |
| document.receiverIcDph | string | optional | Counterparty VAT identification number (IČ DPH). For self-billing it is also used to determine supplier-side VAT-payer treatment. |
| document.emailFallback | boolean | optional | When true and the buyer has no Peppol registration, ePošťák e-mails the invoice (PDF and the sent UBL XML, plus attachments) once to receiverEmail or, when it is omitted, to the buyer e-mail in the UBL (BT-58). The document still ends as recipient_not_found and the TDD is reported as usual; the e-mail is not billed. The outcome is in emailFallback on GET /documents/{id}/status and on the document.delivery_failed webhook. Ak odberateľ nemá Peppol schránku, faktúru (PDF a odoslané UBL XML) mu pošleme raz e-mailom na receiverEmail, a ak chýba, na e-mail odberateľa z UBL. (default: false) |
| document.receiverEmail | string | optional | Buyer e-mail for emailFallback. Takes precedence over the buyer e-mail in the UBL (cac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:ElectronicMail, BT-58). When omitted, that UBL e-mail is used; required when emailFallback is true and the document carries no valid buyer e-mail. E-mail odberateľa pre emailFallback; bez neho použijeme e-mail odberateľa z UBL. (max 254 znakov / chars) |
| document.receiverStreet | string | optional | Receiver street and number. Preferred over parsing receiverAddress. |
| document.receiverCity | string | optional | Counterparty city. |
| document.receiverPostalCode | string | optional | Counterparty postal code. |
| document.receiverAddress | string | optional | Single-line counterparty address. Prefer receiverStreet, receiverCity and receiverPostalCode when the ERP has split address fields. |
| document.receiverCountry | string | optional | Counterparty country as ISO 3166-1 alpha-2. Defaults to SK. (default: SK) |
| document.supplierName | string | optional | Self-billing alias for receiverName (supplier). Required for self_billing/self_billing_credit_note/self_billing_debit_note when receiverName is omitted. |
| document.supplierIco | string | optional | Self-billing alias for receiverIco. |
| document.supplierDic | string | optional | Self-billing alias for receiverDic. |
| document.supplierIcDph | string | optional | Self-billing alias for receiverIcDph. Used for supplier-side VAT payer logic. |
| document.supplierStreet | string | optional | Self-billing alias for receiverStreet. |
| document.supplierCity | string | optional | Self-billing alias for receiverCity. |
| document.supplierPostalCode | string | optional | Self-billing alias for receiverPostalCode. |
| document.supplierAddress | string | optional | Self-billing alias for receiverAddress. |
| document.supplierCountry | string | optional | Self-billing alias for receiverCountry. (default: SK) |
| document.prepaidAmount | number | optional | Amount paid in advance (BT-113). Emitted as LegalMonetaryTotal/PrepaidAmount and reduces PayableAmount. Do not combine with your own items[].lineType=advance_deduction. With prepayments[] it may equal the sum of all prepayments[].amountWithVat; only untaxed advances (without taxDocumentRef) are emitted as PrepaidAmount. For advance_payment (388) it defaults to the total with VAT and, if sent, must equal it within 0.01. (min 0) |
| document.payableRoundingAmount | number | optional | Rounding of the amount to be paid (BT-114), signed, at most 2 decimal places, between -0.99 and 0.99. Emitted as LegalMonetaryTotal/PayableRoundingAmount; PayableAmount = total with VAT - prepaidAmount + payableRoundingAmount. It changes only the amount due: line amounts, the VAT base and VAT stay as calculated from items[]. ePošťák never calculates this value; when omitted or 0, nothing is rounded. Use it when the amount actually charged differs by cents from the calculated total, for example cash rounding or prices where VAT was taken out of the gross amount. Not allowed for advance_payment (388) and correction (384), and it must not make the amount due negative. (-0.99–0.99) |
| document.prepayments | object[] | optional | Structured settled prepayments on the final invoice. Untaxed advances (without taxDocumentRef) are summed into prepaidAmount and reduce PayableAmount; taxed advances (with taxDocumentRef) are deducted as negative advance_deduction lines with a BT-25 BillingReference, so the tax breakdown reflects them. Advance and tax references are preserved in the UBL note. Do not combine your own items[].lineType=advance_deduction with untaxed advances. Not allowed on advance_payment (388). |
| document.prepayments[].advanceInvoiceRef | string | optional | Advance/prepayment invoice reference from the ERP. |
| document.prepayments[].taxDocumentRef | string | optional | Number of the tax document for the received payment (UNCL1001 386 or 388). When set, the advance is taxed: it is deducted as a negative line with a BT-25 reference and vatRate is required. |
| document.prepayments[].settlementDate | date | optional | Settlement date in strict YYYY-MM-DD format. |
| document.prepayments[].amountWithoutVat | number | optional | Settled amount without VAT. (min 0) |
| document.prepayments[].vatAmount | number | optional | VAT amount from the settled prepayment. (min 0) |
| document.prepayments[].amountWithVat | number | REQ | Settled amount including VAT. Required. Untaxed advances are summed into prepaidAmount; for a taxed advance it yields the negative line price when amountWithoutVat is missing. (min 0) |
| document.prepayments[].vatRate | number | optional | Non-negative VAT rate of the prepayment, preserved in the UBL note. Required with taxDocumentRef: the negative deduction line uses the VAT rate of the tax document. (min 0) |
| document.prepayments[].vatCategoryCode | string | optional | Optional VAT category of the prepayment. Values are normalized to uppercase and preserved as prepayment metadata. For a taxed advance it is the category of the deduction line (default S when vatRate is above 0). (povolené: S, Z, AE, E, K, G, O, L, M) |
| document.items | object[] | REQ | Billing lines. Between 1 and 999 entries are accepted. (max 999 položiek / items) |
| document.items[].description | string | REQ | Non-empty line name (BT-153). A longer text under the name can be sent as itemDescription (BT-154, max 1000 characters). |
| document.items[].quantity | number | REQ | Quantity. Must not be zero. A negative quantity on a standard line is a discount or returned item (unitPrice stays non-negative). Must be negative for lineType=advance_deduction. |
| document.items[].unit | string | optional | UN/ECE Rec 20 unit code. Use H87 for a piece; C62 is the generic one/unit code. Short aliases are also mapped: ks=H87, kus=H87, piece=H87, pcs=H87, jednotka=C62, unit=C62, one=C62, hod=HUR, den=DAY, mes=MON, kg=KGM, m=MTR, l=LTR, km=KMT. Omitted values default to C62. (default: C62) |
| document.items[].unitPrice | number | REQ | Net price per unit. Must be a finite non-negative number. (min 0) |
| document.items[].vatRate | number | REQ | VAT rate in percent. Accepted values: 0, 5, 10, 19, 20, 23; this includes historical 20% for older/corrective documents. Z, AE, E, K, G and O categories require 0; S, L and M require a positive rate. (povolené: 0, 5, 10, 19, 20, 23) |
| document.items[].vatCategoryCode | string | optional | DPH category BT-151 according to UNCL5305. A positive rate may derive S. At 0%, vatCategoryCode or taxTreatment is required because 0% can represent Z, E, AE, K, G or O. (povolené: S, Z, AE, E, K, G, O, L, M) |
| document.items[].vatCategory | string | optional | Alias for vatCategoryCode. (povolené: S, Z, AE, E, K, G, O, L, M) |
| document.items[].vat_category | string | optional | Snake_case alias for vatCategoryCode. (povolené: S, Z, AE, E, K, G, O, L, M) |
| document.items[].taxTreatment | string | optional | Higher-level ePostak tax treatment mapped to vatCategoryCode: standard=S, zero_rate=Z, reverse_charge_domestic=AE, exempt=E, intra_community_supply=K, export=G, outside_scope=O. Explicit vatCategoryCode wins when both are present. (povolené: standard, zero_rate, reverse_charge_domestic, exempt, intra_community_supply, export, outside_scope) |
| document.items[].tax_treatment | string | optional | Snake_case alias for taxTreatment. (povolené: standard, zero_rate, reverse_charge_domestic, exempt, intra_community_supply, export, outside_scope) |
| document.items[].discount | number | optional | Line discount percentage from 0 to 100. Omitted means 0. (0–100) |
| document.items[].deliveryDate | string | optional | Line delivery date. Written to UBL as cac:InvoiceLine/cac:InvoicePeriod (BT-134 and BT-135, start and end are the same date; ISO timestamps are accepted and only the date part is used) and printed in the PDF under the item name as "Dátum dodania". When the line dates differ, the document is a summary invoice (§ 75 of the Slovak VAT Act): the dates must stay within one calendar month and issueDate must be no later than the 15th day after that month ends. |
| document.items[].lineType | string | optional | Line type. Use advance_deduction for a negative advance deduction line on the final invoice. (default: standard) (povolené: standard, advance_deduction) |
| document.items[].advanceInvoiceReference | string | optional | Advance invoice number. Required when lineType is advance_deduction. Emitted to UBL as AdditionalItemProperty named AdvanceInvoiceNumber. |
| document.items[].customsTariffCode | string | optional | Customs tariff / combined nomenclature code. Emitted as CommodityClassification/ItemClassificationCode listID=HS; KV DPH A2 uses the first 4 digits as TK. (pattern ^\d{4,10}$) |
| document.items[].commodityClassificationCode | string | optional | Generic item classification code when customsTariffCode is not used. Send together with commodityClassificationListId when the list is not HS. |
| document.items[].commodityClassificationListId | string | optional | Classification list identifier from UNTDID 7143. Defaults to HS for customsTariffCode. |
| document.items[].reverseChargeParagraphLetter | string | optional | Optional letter of the domestic reverse-charge provision § 69 ods. 12, for example f or g, without parentheses. Written to the UBL line as AdditionalItemProperty with Name ReverseChargeParagraphLetter. Informational only: it is not printed on the PDF and no export (POHODA, KV DPH) reads it. The KV DPH A.2 row is built from customsTariffCode or commodityClassificationCode and from controlStatementType, controlStatementQuantity and controlStatementUnit. |
| document.items[].controlStatementType | string | optional | Slovak KV DPH A2 TD value. (povolené: IO, MT) |
| document.items[].controlStatementQuantity | number | optional | Positive Slovak KV DPH A2 Mn quantity. If omitted and the unit can be mapped, the absolute line quantity is used. (min 0) |
| document.items[].controlStatementUnit | string | optional | Slovak KV DPH A2 MJ unit. (povolené: kg, t, m, ks) |
| document.attachments | object[] | optional | Invoice supporting documents (Peppol BG-24), embedded in UBL as base64 through AdditionalDocumentReference / EmbeddedDocumentBinaryObject. Maximum 20 files, 10 MB decoded per file, and 15 MB decoded total. These limits apply only to this field (JSON mode): a finished UBL sent in XML mode or through SAPI is checked only against the 22 MB document limit, however many attachments it embeds. (max 20 položiek / items) |
| document.attachments[].fileName | string | REQ | Non-empty attachment filename. (max 255 znakov / chars) |
| document.attachments[].mimeType | string | REQ | Allowed MIME types according to Peppol BR-CL-22. The decoded content must match this MIME type. (povolené: application/pdf, image/png, image/jpeg, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.oasis.opendocument.spreadsheet) |
| document.attachments[].content | base64 | REQ | Base64-encoded file content without a data: prefix. Must decode to a non-empty file and may be at most 10 MB after decoding. |
| document.attachments[].description | string | optional | Optional short attachment description shown as supporting-document metadata. |