Mandatory eInvoicing in Slovakia from 1 Jan 2027. FREE in every BizNow plan! No lock-in, no contracts to sign! eInvoicing is mandatory in Slovakia from 1 Jan 2027. In BizNow it is free in every plan! 34 days left Activate in BizNow →

BizNow API · BIS 3.0

Sending Peppol BIS 3.0 invoices (XML) from your system to BizNow and reading the result.

XML → JSON v1 https://biznow.sk/api/v1

01 Getting started

  1. Create API keys for the center where the documents should be saved (steps below). Each center has one Sandbox key (bnk_test_…) and one Live key (bnk_live_…).
  2. Prepare an XML document in Peppol BIS Billing 3.0 format - see 03 XML format and the sample files. Before you send it for the first time, replace the "Vaša firma s. r. o." data in the sample (IČO 12345678, DIČ 2020123456, IČ DPH SK2020123456) with your company's data - otherwise the document fails with the error wrong_company.
  3. Test with the Sandbox key - the document goes through the same checks as in live use, but it is not saved among your documents. The same document sent again in the Sandbox ends as a duplicate - for the next test, change the document number (cbc:ID).
  4. Switch to the Live key - the same calls save documents in BizNow.
Terms used in this guide
IČOcompany ID (identifikačné číslo organizácie, 8 digits)
DIČtax ID (daňové identifikačné číslo, 10 digits)
IČ DPHVAT ID (identifikačné číslo pre DPH), e.g. SK2020123456; foreign companies have their own format, e.g. ATU12345678
Prevádzkacenter - a part of a company in BizNow (cost center, branch, project); an API key belongs to a center and documents are saved in it
DDkPPtax document for a received payment (daňový doklad k prijatej platbe) - confirms a payment received before delivery
Peppol BIS Billing 3.0 / UBLthe European XML format for electronic invoices (standard EN 16931), the same one used for eFaktúra
EndpointIDthe electronic address of a party in the Peppol network; in Slovakia with scheme 0245 = DIČ. Scheme 0158 (= IČO) is used in PartyLegalEntity/CompanyID
BT / BGthe label of a field (Business Term) and a group of fields (Business Group) in the EN 16931 standard, e.g. BT-3 = document type
SBDHthe Peppol envelope around the document; you may send it, it is not required
How to create a key in BizNow
  1. ⚙️ Nastavenia (Settings) → tab Moje prevádzky/projekty (My centers/projects) → ✏️ next to the center.
  2. At the very bottom of the Upraviť Prevádzku/Projekt (Edit center/project) window: section API kľúče (BIS 3.0) (API keys).
  3. Vytvoriť (Create) next to Live or Sandbox → Kopírovať (Copy) → save the key → Rozumiem, kľúč som uložil (I understand, I have saved the key).
  4. To create a new key, first delete the old one (Zmazať (Delete)) and then create a new one (Vytvoriť). The old key stops working immediately - every program that uses it must be switched to the new one. You can still read the results of older jobs with the new key of the same center (Live with Live, Sandbox with Sandbox).
The key is shown only once.

After you click Rozumiem, kľúč som uložil you will not see it in BizNow again - BizNow does not store the key in readable form and cannot show it again. Copy it right away and keep it in a safe place (e.g. a password manager or your program's settings). Never send the key by e-mail or put it in code that others can see. A lost key cannot be recovered - delete it and create a new one.

Base URLhttps://biznow.sk/api/v1 (HTTPS only)
Authenticationheader Authorization: Bearer <api_key>
Content typeheader Content-Type: application/xml (for POST)
POST bodythe document XML itself (a file in BIS 3.0 format)
ResponsesJSON, UTF-8
Flow
  1. (optional) POST /v1/validate - check the document without saving it
  2. POST /v1/invoices → job_id (queued)
  3. processing within ~5 minutes
  4. GET /v1/invoices/{job_id} → success / failure

02 API keys

Each center has two keys: Live and Sandbox. A key belongs to a center - every document sent with it is saved in that center (in its company). For another center, create its own keys. The URL and the endpoints are the same for both keys - the key decides where the document is saved, not a parameter.

LiveSandbox
Formatbnk_live_<8 characters>_<64 characters>bnk_test_<8 characters>_<64 characters>
Purposelive use - your company's real documentsdeveloping and testing the integration
Where the document is savedin the center in BizNow - depending on the skip_approval parameter: skip_approval=false → among documents for approval (location: for_approval), where someone checks it, adds a category and approves it; skip_approval=true → straight into approved costs / incomes (location: approved) only in the test storage (location: sandbox)
Visible in BizNowyes - like any other document of the center, in the Dokumenty (Documents) menu (exactly: the location field)no - it does not appear in BizNow
Checksthe same for both keys: BIS 3.0 format, totals, your company on the correct side, partner, duplicate (the Sandbox looks for duplicates only among its own test documents)
Client in the directorythe partner is looked up in the client directory and, if it does not exist, created - in two cases: (a) the document is saved straight as approved (skip_approval=true), (b) the partner is a natural person. Otherwise the client is filled in during approval not created or changed - the directory is not read
PDF and attachmentsa PDF / image embedded in the XML is saved with the document, otherwise BizNow creates one from the XML; at most 1 additional attachmentnot saved
Response (job status)the same for both keys - job_id, status, location and the invoice object; so test data looks like live data. In the Sandbox: the partner (seller / buyer) comes from the XML - the directory is not read; invoice_id is the document number in the test storage; category comes only from the partner's history or with skip_approval=true
Retentionlike any document in BizNowdeleted after 30 days; nothing is billed
Limit500 POST requests per hour (including /validate) - each key has its own limit; reading the status (GET) does not count toward the limit
Recommended approach: debug the integration with the Sandbox key (same calls, same responses, nothing is saved among your documents), then switch the key in your program to Live.

03 XML format (BIS 3.0)

The API accepts documents in Peppol BIS Billing 3.0 format (UBL 2.1, standard EN 16931) - the same format that is used for eFaktúra. One file = one document: an invoice, a credit note, a tax document for a received payment (DDkPP) or an advance invoice. In the XML this is the Invoice element (invoice, DDkPP, advance invoice - they differ by the type code) or CreditNote (credit note) - see Document types.

Official documentation
Document types

Click a type - each one shows how it differs, with an example.

Invoice - Invoice, code 380

Root element Invoice, InvoiceTypeCode 380. Payment symbols go into cac:PaymentMeans/cbc:PaymentID: VS0001, VS176/KS0308/SS12, or just the number (= variable symbol); BizNow saves the numbers without the VS / KS / SS prefixes.

Complete example - received invoice from a Slovak company, 2 VAT rates
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
  <cbc:ID>FA2026-0001</cbc:ID>
  <cbc:IssueDate>2026-11-26</cbc:IssueDate>
  <cbc:DueDate>2026-12-10</cbc:DueDate>
  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
  <cbc:BuyerReference>FA2026-0001</cbc:BuyerReference>
  <cac:AccountingSupplierParty>
    <cac:Party>
      <!-- DIČ = Peppol address (scheme 0245) -->
      <cbc:EndpointID schemeID="0245">2021987654</cbc:EndpointID>
      <cac:PartyName><cbc:Name>Dodávateľ s. r. o.</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Priemyselná 5</cbc:StreetName>
        <cbc:CityName>Žilina</cbc:CityName>
        <cbc:PostalZone>01001</cbc:PostalZone>
        <cac:Country><cbc:IdentificationCode>SK</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <!-- VAT ID (IČ DPH) -->
      <cac:PartyTaxScheme>
        <cbc:CompanyID>SK2021987654</cbc:CompanyID>
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
      <!-- IČO (scheme 0158) -->
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Dodávateľ s. r. o.</cbc:RegistrationName>
        <cbc:CompanyID schemeID="0158">87654321</cbc:CompanyID>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>
    <cac:Party>
      <!-- DIČ = Peppol address (scheme 0245) -->
      <cbc:EndpointID schemeID="0245">2020123456</cbc:EndpointID>
      <cac:PartyName><cbc:Name>Vaša firma s. r. o.</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Hlavná 1</cbc:StreetName>
        <cbc:CityName>Bratislava</cbc:CityName>
        <cbc:PostalZone>81101</cbc:PostalZone>
        <cac:Country><cbc:IdentificationCode>SK</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <!-- VAT ID (IČ DPH) -->
      <cac:PartyTaxScheme>
        <cbc:CompanyID>SK2020123456</cbc:CompanyID>
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
      <!-- IČO (scheme 0158) -->
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Vaša firma s. r. o.</cbc:RegistrationName>
        <cbc:CompanyID schemeID="0158">12345678</cbc:CompanyID>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <cac:PaymentMeans>
    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>
    <cbc:PaymentID>VS0001</cbc:PaymentID>
    <cac:PayeeFinancialAccount><cbc:ID>SK8975000000000012345671</cbc:ID></cac:PayeeFinancialAccount>
  </cac:PaymentMeans>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="EUR">105.00</cbc:TaxAmount>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="EUR">450.00</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="EUR">103.50</cbc:TaxAmount>
      <cac:TaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>23</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory>
    </cac:TaxSubtotal>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="EUR">30.00</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="EUR">1.50</cbc:TaxAmount>
      <cac:TaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>5</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="EUR">480.00</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="EUR">480.00</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="EUR">585.00</cbc:TaxInclusiveAmount>
    <cbc:PayableAmount currencyID="EUR">585.00</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="HUR">10</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="EUR">450.00</cbc:LineExtensionAmount>
    <cac:Item>
      <cbc:Name>Programovanie</cbc:Name>
      <cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>23</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price><cbc:PriceAmount currencyID="EUR">45.00</cbc:PriceAmount></cac:Price>
  </cac:InvoiceLine>
  <cac:InvoiceLine>
    <cbc:ID>2</cbc:ID>
    <cbc:InvoicedQuantity unitCode="H87">2</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="EUR">30.00</cbc:LineExtensionAmount>
    <cac:Item>
      <cbc:Name>Odborná publikácia</cbc:Name>
      <cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>5</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price><cbc:PriceAmount currencyID="EUR">15.00</cbc:PriceAmount></cac:Price>
  </cac:InvoiceLine>
</Invoice>
Credit note - CreditNote, code 381

Root element CreditNote, CreditNoteTypeCode 381. The lines are CreditNoteLine with CreditedQuantity, amounts positive; the original invoice is in BillingReference.

<CreditNote xmlns="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
  <cbc:ID>DB2026-0005</cbc:ID>
  <cbc:IssueDate>2026-11-26</cbc:IssueDate>
  <cbc:CreditNoteTypeCode>381</cbc:CreditNoteTypeCode>
  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
  <cbc:BuyerReference>DB2026-0005</cbc:BuyerReference>
  <cac:BillingReference>
    <cac:InvoiceDocumentReference>
      <cbc:ID>FA2026-0001</cbc:ID>
      <cbc:IssueDate>2026-11-26</cbc:IssueDate>
    </cac:InvoiceDocumentReference>
  </cac:BillingReference>
Tax document for a received payment (DDkPP) - Invoice, code 388

A DDkPP confirms a payment received before delivery. Peppol BIS has no separate structure for it - it is an Invoice with type code 388. Under the Slovak rules for eFaktúra (Finančná správa (Financial Administration), Transposition of the Peppol BIS standard) it differs from a regular invoice in these elements:

ElementBTInvoice (380)DDkPP (388)
cbc:InvoiceTypeCodeBT-3380388
cbc:TaxPointDateBT-7delivery date (optional)date the payment was received
cbc:DueDateBT-9due dateleft empty - it is paid
cac:Delivery/cbc:ActualDeliveryDateBT-72delivery dateleft empty - not delivered yet
cac:PaymentMeansBG-16payment method, IBANleft empty
cbc:PrepaidAmountBT-113advances paid (if any)= TaxInclusiveAmount (the full amount with VAT)
cbc:PayableAmountBT-115amount due0.00

Everything else (parties, lines, VAT, totals) is the same as for an invoice. BizNow saves such a document as paid with the payment date from TaxPointDate. Sample: 6_ddkpp_vynos_firma.xml.

<cbc:InvoiceTypeCode>388</cbc:InvoiceTypeCode>
<cbc:Note>Daňový doklad k prijatej platbe</cbc:Note>
<cbc:TaxPointDate>2026-11-26</cbc:TaxPointDate>
…
<cac:LegalMonetaryTotal>
  <cbc:LineExtensionAmount currencyID="EUR">480.00</cbc:LineExtensionAmount>
  <cbc:TaxExclusiveAmount currencyID="EUR">480.00</cbc:TaxExclusiveAmount>
  <cbc:TaxInclusiveAmount currencyID="EUR">585.00</cbc:TaxInclusiveAmount>
  <cbc:PrepaidAmount currencyID="EUR">585.00</cbc:PrepaidAmount>
  <cbc:PayableAmount currencyID="EUR">0.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
Advance invoice - Invoice, code 386

The same structure as an invoice - root element Invoice, only InvoiceTypeCode 386. It is saved as an advance invoice (in BizNow Dokumenty → Schválené náklady / výnosy → Zálohové faktúry (Documents → Approved costs / incomes → Advance invoices) after approval), not as paid. Sample: 7_zalohova_faktura_naklad_firma.xml.

Partner

The partner is the other party of the document - the seller on a received document, the buyer on an issued one. BizNow does not require the partner's electronic address (EndpointID) and does not run the full Peppol validation - it checks what is in 06 Rules and 07 Error codes.

Slovak company

IČO PartyLegalEntity/CompanyID schemeID="0158", DIČ EndpointID schemeID="0245", IČ DPH PartyTaxScheme/CompanyID. Example: Invoice.

Foreign company

The VAT ID (PartyTaxScheme/CompanyID, e.g. ATU12345678) or the DIČ is enough; no IČO is needed.

<cac:AccountingCustomerParty>
  <cac:Party>
    <cac:PartyName><cbc:Name>Muster Handel GmbH</cbc:Name></cac:PartyName>
    <cac:PostalAddress>
      <cbc:StreetName>Hauptstraße 5</cbc:StreetName>
      <cbc:CityName>Wien</cbc:CityName>
      <cbc:PostalZone>1010</cbc:PostalZone>
      <cac:Country><cbc:IdentificationCode>AT</cbc:IdentificationCode></cac:Country>
    </cac:PostalAddress>
    <!-- foreign company: the VAT ID is enough (no IČO needed) -->
    <cac:PartyTaxScheme>
      <cbc:CompanyID>ATU12345678</cbc:CompanyID>
      <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
    </cac:PartyTaxScheme>
    <cac:PartyLegalEntity><cbc:RegistrationName>Muster Handel GmbH</cbc:RegistrationName></cac:PartyLegalEntity>
  </cac:Party>
</cac:AccountingCustomerParty>
Natural person

Only the name (RegistrationName) and address, optionally an IBAN - no IČO, DIČ or IČ DPH.

A natural person as the seller (received document) is not a VAT payer: every line has VAT category O (not subject to VAT), otherwise the document fails with the error person_vat_category (see 07 Error codes). To a natural person as the buyer (issued document) you charge your VAT as usual. The client is created as a natural person.
<cac:AccountingSupplierParty>
  <cac:Party>
    <!-- natural person: only name and address, no IČO, DIČ or IČ DPH -->
    <cac:PartyName><cbc:Name>Ján Novák</cbc:Name></cac:PartyName>
    <cac:PostalAddress>
      <cbc:StreetName>Hlavná 12</cbc:StreetName>
      <cbc:CityName>Senica</cbc:CityName>
      <cbc:PostalZone>90501</cbc:PostalZone>
      <cac:Country><cbc:IdentificationCode>SK</cbc:IdentificationCode></cac:Country>
    </cac:PostalAddress>
    <cac:PartyLegalEntity><cbc:RegistrationName>Ján Novák</cbc:RegistrationName></cac:PartyLegalEntity>
  </cac:Party>
</cac:AccountingSupplierParty>

<cac:ClassifiedTaxCategory><cbc:ID>O</cbc:ID><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory>
Your company - seller or buyer

Received document (an invoice from a seller): in the XML your company is the buyer - AccountingCustomerParty. Issued document (an invoice you issue): your company is the seller - AccountingSupplierParty. BizNow recognizes it by IČO, DIČ or IČ DPH.

Sample files to download - click a file to download it
FileDocument
1_faktura_naklad_firma.xmlreceived invoice from a Slovak company (2 VAT rates)
2_faktura_vynos_zahranicna_firma.xmlissued invoice to a foreign company (VAT ID only, reverse charge)
3_faktura_naklad_fyzicka_osoba.xmlreceived invoice from a natural person (without VAT)
4_faktura_vynos_fyzicka_osoba.xmlissued invoice to a natural person (with VAT)
5_dobropis_naklad_firma.xmlreceived credit note from a Slovak company
6_ddkpp_vynos_firma.xmlissued tax document for a received payment (paid)
7_zalohova_faktura_naklad_firma.xmlreceived advance invoice from a Slovak company

How to send these files (call parameters for a received / issued document and for a natural person): 04 Endpoints → POST /v1/invoices.

The data in the examples is made up. Replace Vaša firma s. r. o. (IČO 12345678, DIČ 2020123456, IČ DPH SK2020123456) with your company's data, otherwise the document fails with wrong_company.

04 Endpoints

Three endpoints. Click an endpoint to expand it; each part (parameters, body, examples, response, errors) can be collapsed.

POST/v1/validateCheck a document without saving it
Description

Runs exactly the same checks as saving (format, totals, your company, partner, duplicate) and returns the result, but saves nothing. Useful for debugging your XML before going live.

Parameters (query)
ParameterTypeRequiredDefaultValues and meaning
targetstringYes–
costs
received document - your company is the buyer in the XML (AccountingCustomerParty); saved to costs
incomes
issued document - your company is the seller in the XML (AccountingSupplierParty); saved to incomes
partner_typestringNocompany
company
the partner is a company - Slovak (company ID (IČO) / tax ID (DIČ) / VAT ID (IČ DPH)) or foreign (the VAT ID or tax ID is enough)
person
the partner is a natural person without IČO, DIČ and IČ DPH (name and address only). As a seller (costs), every line must have VAT category O. See Partner.

skip_approval and force are ignored by /v1/validate. The duplicate check runs here too - if you later send the document with force=true, you can ignore a duplicate from the check.

Request body
HeadersAuthorization: Bearer <api_key> · Content-Type: application/xml
Bodythe document's XML file itself in Peppol BIS Billing 3.0 format - one Invoice or CreditNote (also inside a Peppol SBDH envelope), at most 10 MB including the embedded PDF
How to fill in the XML03 XML format - document types, partner, complete example; sample files to download
Response
Response 202 - accepted, waiting for the check
{ "job_id": 6, "status": "queued" }
FieldTypeMeaning
job_idintegerjob number - use it to ask for the result (GET /v1/invoices/{job_id})
statusstringalways queued - the document is waiting for processing (usually within 5 minutes)

Read the result of the check with GET /v1/invoices/{job_id}. A check saves nothing, so the response has no invoice_id, location or invoice:

Check passed - GET /v1/invoices/6
{ "job_id": 6, "status": "success" }
Check failed
{
  "job_id": 6,
  "status": "failure",
  "errors": [ { "code": "total_mismatch", "message": "…" } ]
}
Examples
Before running the examples, put your key in the environment variable BIZNOW_API_KEY: Linux / macOS export BIZNOW_API_KEY=bnk_test_… · PowerShell $env:BIZNOW_API_KEY = "bnk_test_…" · cmd set BIZNOW_API_KEY=bnk_test_… (in cmd, then write %BIZNOW_API_KEY% instead of $BIZNOW_API_KEY in the curl command). The XML file must be in the folder you run the example from. Save the Node.js (18+) examples as a .mjs file. curl on Windows: in cmd, write the command on one line (without \ at the line ends); in PowerShell, use curl.exe or the PowerShell tab. Python: pip install requests. C#: dotnet new console and paste the code into Program.cs. Older Windows PowerShell 5.1: first run [Net.ServicePointManager]::SecurityProtocol = "Tls12". The responses in the examples are for a Live key - with a Sandbox key you get location: sandbox.
curl -X POST "https://biznow.sk/api/v1/validate?target=costs" \
  -H "Authorization: Bearer $BIZNOW_API_KEY" \
  -H "Content-Type: application/xml" \
  --data-binary @1_faktura_naklad_firma.xml
import os, requests

r = requests.post(
    "https://biznow.sk/api/v1/validate",
    params={"target": "costs"},
    headers={"Authorization": f"Bearer {os.environ['BIZNOW_API_KEY']}",
             "Content-Type": "application/xml"},
    data=open("1_faktura_naklad_firma.xml", "rb").read(),
    timeout=60,
)
print(r.status_code, r.json())
import { readFile } from "node:fs/promises";   // Node.js 18+

const res = await fetch("https://biznow.sk/api/v1/validate?target=costs", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.BIZNOW_API_KEY}`, "Content-Type": "application/xml" },
  body: await readFile("1_faktura_naklad_firma.xml"),
});
console.log(res.status, await res.json());
<?php
$ch = curl_init("https://biznow.sk/api/v1/validate?target=costs");
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_HTTPHEADER     => ["Authorization: Bearer " . getenv("BIZNOW_API_KEY"), "Content-Type: application/xml"],
    CURLOPT_POSTFIELDS     => file_get_contents("1_faktura_naklad_firma.xml"),
    CURLOPT_RETURNTRANSFER => true,
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $body;
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", "Bearer " + Environment.GetEnvironmentVariable("BIZNOW_API_KEY"));

var body = new ByteArrayContent(File.ReadAllBytes("1_faktura_naklad_firma.xml"));
body.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/xml");

var res = await http.PostAsync("https://biznow.sk/api/v1/validate?target=costs", body);
Console.WriteLine($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}");
$r = Invoke-RestMethod -Method Post -Uri "https://biznow.sk/api/v1/validate?target=costs" `
  -Headers @{ Authorization = "Bearer $env:BIZNOW_API_KEY" } `
  -ContentType "application/xml" -InFile "1_faktura_naklad_firma.xml"
$r | ConvertTo-Json

XML examples for a Slovak company, a natural person and a foreign company are under POST /v1/invoices - they apply to /validate in the same way.

Errors
HTTPCode (error.code)When
403https_requiredrequest over http:// - only https:// is accepted; the key has already been sent unencrypted - delete it and create a new one
401invalid_keymissing, wrong or deleted key
400not_xmlthe body is not an XML document
400wrong_targettarget is missing or is not costs / incomes
400invalid_partner_typepartner_type is not company / person
413too_largethe XML is larger than 10 MB
429rate_limitedthe limit of 500 requests per hour was exceeded - the Retry-After header = seconds until the next attempt
429too_many_errors30 refused requests (4xx) came from your address within 10 minutes - no request from this address is processed until Retry-After seconds have passed; fix the cause (e.g. the key), then send again

These errors are returned immediately and the document is not queued. Errors in the document itself (totals, IČO, duplicate …) only come in the job status as status: failure - see 07 Error codes.

POST/v1/invoicesSave a document
Description

Queues the document for processing and returns a job_id right away. Within ~5 minutes the document is checked and saved to the key's center; read the result with GET /v1/invoices/{job_id}.

Parameters (query)
ParameterTypeRequiredDefaultValues and meaning
targetstringYes–
costs
received document - your company is the buyer in the XML (AccountingCustomerParty); saved to costs
incomes
issued document - your company is the seller in the XML (AccountingSupplierParty); saved to incomes
partner_typestringNocompany
company
the partner is a company - Slovak (IČO / DIČ / IČ DPH) or foreign (the VAT ID or tax ID is enough)
person
the partner is a natural person without IČO, DIČ and IČ DPH (name and address only). As a seller (costs), every line must have VAT category O. See Partner.
skip_approvalbooleanNofalse
false
the document is saved for approval - someone in BizNow checks and approves it
true
the document is saved directly as approved - see the red warning below
forcebooleanNofalse
false
a document that is already in BizNow (same number, partner and amount) is rejected with duplicate
true
the duplicate check is skipped - the document is saved anyway
skip_approval=true - the document is saved directly as approved

This skips the approval process, and the document's data shows up in the company reports right away.

The partner is looked up in the client directory by IČO (by name if there is no IČO). If this is the first invoice for that business partner, the partner's data is saved without any check and is then used automatically for further uploaded invoices with the same IČO (or the same name).

Unless you have agreed otherwise with your accountant, send documents for approval (skip_approval=false).

Request body
HeadersAuthorization: Bearer <api_key> · Content-Type: application/xml
Bodythe document's XML file itself in Peppol BIS Billing 3.0 format - one Invoice or CreditNote (also inside a Peppol SBDH envelope), at most 10 MB including the embedded PDF
How to fill in the XML03 XML format - document types, partner, complete example; sample files to download
Response
Response 202 - accepted, waiting for processing
{ "job_id": 7, "status": "queued", "location": "for_approval" }
FieldTypeMeaning
job_idintegerjob number - use it to ask for the result (GET /v1/invoices/{job_id})
statusstringalways queued - the document is waiting for processing (usually within 5 minutes)
locationstringwhere the document will be saved - see the table below
Where the document is saved - the location field

The response tells you right away where the document will be saved once the system processes it. The same value then also appears in the job status.

ValueWhenWhere to find the document
for_approvalLive key, skip_approval=falsein BizNow: Dokumenty → Dokumenty na schválenie (Documents → Documents for approval)
approvedLive key, skip_approval=truein BizNow: Dokumenty → Schválené náklady (Documents → Approved costs) (costs) / Schválené výnosy (Approved incomes) (incomes) → the tab for the document type (Faktúry (Invoices) - including credit notes, Zálohové faktúry (Advance invoices), Daň. doklady k PP (Tax documents for received payments))
sandboxSandbox keyonly in the test storage - not shown in BizNow, deleted after 30 days

At the top of BizNow, select Firma (Company), Prevádzka (Center - the key's center), Rok (Year) and Mesiac (Month) by the document's issue date; find the document by its number (cbc:ID).

Examples - choose the partner
Before running the examples, put your key in the environment variable BIZNOW_API_KEY: Linux / macOS export BIZNOW_API_KEY=bnk_test_… · PowerShell $env:BIZNOW_API_KEY = "bnk_test_…" · cmd set BIZNOW_API_KEY=bnk_test_… (in cmd, then write %BIZNOW_API_KEY% instead of $BIZNOW_API_KEY in the curl command). The XML file must be in the folder you run the example from. Save the Node.js (18+) examples as a .mjs file. curl on Windows: in cmd, write the command on one line (without \ at the line ends); in PowerShell, use curl.exe or the PowerShell tab. Python: pip install requests. C#: dotnet new console and paste the code into Program.cs. Older Windows PowerShell 5.1: first run [Net.ServicePointManager]::SecurityProtocol = "Tls12". The responses in the examples are for a Live key - with a Sandbox key you get location: sandbox.
Sample files - how to send them
FileParameters
1_faktura_naklad_firma.xmltarget=costs
2_faktura_vynos_zahranicna_firma.xmltarget=incomes
3_faktura_naklad_fyzicka_osoba.xmltarget=costs&partner_type=person
4_faktura_vynos_fyzicka_osoba.xmltarget=incomes&partner_type=person
5_dobropis_naklad_firma.xmltarget=costs
6_ddkpp_vynos_firma.xmltarget=incomes
7_zalohova_faktura_naklad_firma.xmltarget=costs

First replace the "Vaša firma s. r. o." data in the file with your company's data. The same parameters apply to /v1/validate.

A received invoice from a Slovak company (company ID (IČO), tax ID (DIČ), VAT ID (IČ DPH)) with two VAT rates. Your company is the buyer → target=costs. partner_type is not needed.

1Request body - partner in XML
<cac:AccountingSupplierParty>
  <cac:Party>
    <!-- DIČ = Peppol address (scheme 0245) -->
    <cbc:EndpointID schemeID="0245">2021987654</cbc:EndpointID>
    <cac:PartyName><cbc:Name>Dodávateľ s. r. o.</cbc:Name></cac:PartyName>
    <cac:PostalAddress>
      <cbc:StreetName>Priemyselná 5</cbc:StreetName>
      <cbc:CityName>Žilina</cbc:CityName>
      <cbc:PostalZone>01001</cbc:PostalZone>
      <cac:Country><cbc:IdentificationCode>SK</cbc:IdentificationCode></cac:Country>
    </cac:PostalAddress>
    <!-- IČ DPH (VAT ID) -->
    <cac:PartyTaxScheme>
      <cbc:CompanyID>SK2021987654</cbc:CompanyID>
      <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
    </cac:PartyTaxScheme>
    <!-- IČO (scheme 0158) -->
    <cac:PartyLegalEntity>
      <cbc:RegistrationName>Dodávateľ s. r. o.</cbc:RegistrationName>
      <cbc:CompanyID schemeID="0158">87654321</cbc:CompanyID>
    </cac:PartyLegalEntity>
  </cac:Party>
</cac:AccountingSupplierParty>
Full file 1_faktura_naklad_firma.xml
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
  <cbc:ID>FA2026-0001</cbc:ID>
  <cbc:IssueDate>2026-11-26</cbc:IssueDate>
  <cbc:DueDate>2026-12-10</cbc:DueDate>
  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
  <cbc:BuyerReference>FA2026-0001</cbc:BuyerReference>
  <cac:AccountingSupplierParty>
    <cac:Party>
      <!-- DIČ = Peppol adresa (schéma 0245) -->
      <cbc:EndpointID schemeID="0245">2021987654</cbc:EndpointID>
      <cac:PartyName><cbc:Name>Dodávateľ s. r. o.</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Priemyselná 5</cbc:StreetName>
        <cbc:CityName>Žilina</cbc:CityName>
        <cbc:PostalZone>01001</cbc:PostalZone>
        <cac:Country><cbc:IdentificationCode>SK</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <!-- IČ DPH -->
      <cac:PartyTaxScheme>
        <cbc:CompanyID>SK2021987654</cbc:CompanyID>
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
      <!-- IČO (schéma 0158) -->
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Dodávateľ s. r. o.</cbc:RegistrationName>
        <cbc:CompanyID schemeID="0158">87654321</cbc:CompanyID>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>
    <cac:Party>
      <!-- DIČ = Peppol adresa (schéma 0245) -->
      <cbc:EndpointID schemeID="0245">2020123456</cbc:EndpointID>
      <cac:PartyName><cbc:Name>Vaša firma s. r. o.</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Hlavná 1</cbc:StreetName>
        <cbc:CityName>Bratislava</cbc:CityName>
        <cbc:PostalZone>81101</cbc:PostalZone>
        <cac:Country><cbc:IdentificationCode>SK</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <!-- IČ DPH -->
      <cac:PartyTaxScheme>
        <cbc:CompanyID>SK2020123456</cbc:CompanyID>
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
      <!-- IČO (schéma 0158) -->
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Vaša firma s. r. o.</cbc:RegistrationName>
        <cbc:CompanyID schemeID="0158">12345678</cbc:CompanyID>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <cac:PaymentMeans>
    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>
    <cbc:PaymentID>VS0001</cbc:PaymentID>
    <cac:PayeeFinancialAccount><cbc:ID>SK8975000000000012345671</cbc:ID></cac:PayeeFinancialAccount>
  </cac:PaymentMeans>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="EUR">105.00</cbc:TaxAmount>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="EUR">450.00</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="EUR">103.50</cbc:TaxAmount>
      <cac:TaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>23</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory>
    </cac:TaxSubtotal>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="EUR">30.00</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="EUR">1.50</cbc:TaxAmount>
      <cac:TaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>5</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="EUR">480.00</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="EUR">480.00</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="EUR">585.00</cbc:TaxInclusiveAmount>
    <cbc:PayableAmount currencyID="EUR">585.00</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="HUR">10</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="EUR">450.00</cbc:LineExtensionAmount>
    <cac:Item>
      <cbc:Name>Programovanie</cbc:Name>
      <cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>23</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price><cbc:PriceAmount currencyID="EUR">45.00</cbc:PriceAmount></cac:Price>
  </cac:InvoiceLine>
  <cac:InvoiceLine>
    <cbc:ID>2</cbc:ID>
    <cbc:InvoicedQuantity unitCode="H87">2</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="EUR">30.00</cbc:LineExtensionAmount>
    <cac:Item>
      <cbc:Name>Odborná publikácia</cbc:Name>
      <cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>5</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price><cbc:PriceAmount currencyID="EUR">15.00</cbc:PriceAmount></cac:Price>
  </cac:InvoiceLine>
</Invoice>
2Call - POST /v1/invoices?target=costs
curl -X POST "https://biznow.sk/api/v1/invoices?target=costs" \
  -H "Authorization: Bearer $BIZNOW_API_KEY" \
  -H "Content-Type: application/xml" \
  --data-binary @1_faktura_naklad_firma.xml
import os, requests

r = requests.post(
    "https://biznow.sk/api/v1/invoices",
    params={"target": "costs"},
    headers={"Authorization": f"Bearer {os.environ['BIZNOW_API_KEY']}",
             "Content-Type": "application/xml"},
    data=open("1_faktura_naklad_firma.xml", "rb").read(),
    timeout=60,
)
print(r.status_code, r.json())
import { readFile } from "node:fs/promises";   // Node.js 18+

const res = await fetch("https://biznow.sk/api/v1/invoices?target=costs", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.BIZNOW_API_KEY}`, "Content-Type": "application/xml" },
  body: await readFile("1_faktura_naklad_firma.xml"),
});
console.log(res.status, await res.json());
<?php
$ch = curl_init("https://biznow.sk/api/v1/invoices?target=costs");
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_HTTPHEADER     => ["Authorization: Bearer " . getenv("BIZNOW_API_KEY"), "Content-Type: application/xml"],
    CURLOPT_POSTFIELDS     => file_get_contents("1_faktura_naklad_firma.xml"),
    CURLOPT_RETURNTRANSFER => true,
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $body;
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", "Bearer " + Environment.GetEnvironmentVariable("BIZNOW_API_KEY"));

var body = new ByteArrayContent(File.ReadAllBytes("1_faktura_naklad_firma.xml"));
body.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/xml");

var res = await http.PostAsync("https://biznow.sk/api/v1/invoices?target=costs", body);
Console.WriteLine($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}");
$r = Invoke-RestMethod -Method Post -Uri "https://biznow.sk/api/v1/invoices?target=costs" `
  -Headers @{ Authorization = "Bearer $env:BIZNOW_API_KEY" } `
  -ContentType "application/xml" -InFile "1_faktura_naklad_firma.xml"
$r | ConvertTo-Json
3Immediate response
Response 202 - accepted, waiting for processing
{ "job_id": 7, "status": "queued", "location": "for_approval" }

An issued invoice to a foreign company that has only a VAT ID (IČ DPH), without a Slovak IČO. Your company is the seller → target=incomes. partner_type is not needed.

1Request body - partner in XML
<cac:AccountingCustomerParty>
  <cac:Party>
    <cac:PartyName><cbc:Name>Muster Handel GmbH</cbc:Name></cac:PartyName>
    <cac:PostalAddress>
      <cbc:StreetName>Hauptstraße 5</cbc:StreetName>
      <cbc:CityName>Wien</cbc:CityName>
      <cbc:PostalZone>1010</cbc:PostalZone>
      <cac:Country><cbc:IdentificationCode>AT</cbc:IdentificationCode></cac:Country>
    </cac:PostalAddress>
    <!-- foreign company: the IČ DPH is enough (no IČO needed) -->
    <cac:PartyTaxScheme>
      <cbc:CompanyID>ATU12345678</cbc:CompanyID>
      <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
    </cac:PartyTaxScheme>
    <cac:PartyLegalEntity><cbc:RegistrationName>Muster Handel GmbH</cbc:RegistrationName></cac:PartyLegalEntity>
  </cac:Party>
</cac:AccountingCustomerParty>
Full file 2_faktura_vynos_zahranicna_firma.xml
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
  <cbc:ID>VF2026-0002</cbc:ID>
  <cbc:IssueDate>2026-11-26</cbc:IssueDate>
  <cbc:DueDate>2026-12-10</cbc:DueDate>
  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
  <cbc:BuyerReference>VF2026-0002</cbc:BuyerReference>
  <cac:AccountingSupplierParty>
    <cac:Party>
      <!-- DIČ = Peppol adresa (schéma 0245) -->
      <cbc:EndpointID schemeID="0245">2020123456</cbc:EndpointID>
      <cac:PartyName><cbc:Name>Vaša firma s. r. o.</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Hlavná 1</cbc:StreetName>
        <cbc:CityName>Bratislava</cbc:CityName>
        <cbc:PostalZone>81101</cbc:PostalZone>
        <cac:Country><cbc:IdentificationCode>SK</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <!-- IČ DPH -->
      <cac:PartyTaxScheme>
        <cbc:CompanyID>SK2020123456</cbc:CompanyID>
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
      <!-- IČO (schéma 0158) -->
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Vaša firma s. r. o.</cbc:RegistrationName>
        <cbc:CompanyID schemeID="0158">12345678</cbc:CompanyID>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>
    <cac:Party>
      <cac:PartyName><cbc:Name>Muster Handel GmbH</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Hauptstraße 5</cbc:StreetName>
        <cbc:CityName>Wien</cbc:CityName>
        <cbc:PostalZone>1010</cbc:PostalZone>
        <cac:Country><cbc:IdentificationCode>AT</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <!-- zahraničná firma: stačí IČ DPH (IČO netreba) -->
      <cac:PartyTaxScheme>
        <cbc:CompanyID>ATU12345678</cbc:CompanyID>
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:PartyLegalEntity><cbc:RegistrationName>Muster Handel GmbH</cbc:RegistrationName></cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <cac:PaymentMeans>
    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>
    <cbc:PaymentID>VS0002</cbc:PaymentID>
    <cac:PayeeFinancialAccount><cbc:ID>SK7111000000002620123456</cbc:ID></cac:PayeeFinancialAccount>
  </cac:PaymentMeans>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="EUR">480.00</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount>
      <cac:TaxCategory><cbc:ID>AE</cbc:ID><cbc:Percent>0</cbc:Percent><cbc:TaxExemptionReason>Prenesenie daňovej povinnosti</cbc:TaxExemptionReason><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="EUR">480.00</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="EUR">480.00</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="EUR">480.00</cbc:TaxInclusiveAmount>
    <cbc:PayableAmount currencyID="EUR">480.00</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="HUR">8</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="EUR">480.00</cbc:LineExtensionAmount>
    <cac:Item>
      <cbc:Name>Konzultácie</cbc:Name>
      <cac:ClassifiedTaxCategory><cbc:ID>AE</cbc:ID><cbc:Percent>0</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price><cbc:PriceAmount currencyID="EUR">60.00</cbc:PriceAmount></cac:Price>
  </cac:InvoiceLine>
</Invoice>
2Call - POST /v1/invoices?target=incomes
curl -X POST "https://biznow.sk/api/v1/invoices?target=incomes" \
  -H "Authorization: Bearer $BIZNOW_API_KEY" \
  -H "Content-Type: application/xml" \
  --data-binary @2_faktura_vynos_zahranicna_firma.xml
import os, requests

r = requests.post(
    "https://biznow.sk/api/v1/invoices",
    params={"target": "incomes"},
    headers={"Authorization": f"Bearer {os.environ['BIZNOW_API_KEY']}",
             "Content-Type": "application/xml"},
    data=open("2_faktura_vynos_zahranicna_firma.xml", "rb").read(),
    timeout=60,
)
print(r.status_code, r.json())
import { readFile } from "node:fs/promises";   // Node.js 18+

const res = await fetch("https://biznow.sk/api/v1/invoices?target=incomes", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.BIZNOW_API_KEY}`, "Content-Type": "application/xml" },
  body: await readFile("2_faktura_vynos_zahranicna_firma.xml"),
});
console.log(res.status, await res.json());
<?php
$ch = curl_init("https://biznow.sk/api/v1/invoices?target=incomes");
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_HTTPHEADER     => ["Authorization: Bearer " . getenv("BIZNOW_API_KEY"), "Content-Type: application/xml"],
    CURLOPT_POSTFIELDS     => file_get_contents("2_faktura_vynos_zahranicna_firma.xml"),
    CURLOPT_RETURNTRANSFER => true,
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $body;
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", "Bearer " + Environment.GetEnvironmentVariable("BIZNOW_API_KEY"));

var body = new ByteArrayContent(File.ReadAllBytes("2_faktura_vynos_zahranicna_firma.xml"));
body.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/xml");

var res = await http.PostAsync("https://biznow.sk/api/v1/invoices?target=incomes", body);
Console.WriteLine($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}");
$r = Invoke-RestMethod -Method Post -Uri "https://biznow.sk/api/v1/invoices?target=incomes" `
  -Headers @{ Authorization = "Bearer $env:BIZNOW_API_KEY" } `
  -ContentType "application/xml" -InFile "2_faktura_vynos_zahranicna_firma.xml"
$r | ConvertTo-Json
3Immediate response
Response 202 - accepted, waiting for processing
{ "job_id": 9, "status": "queued", "location": "for_approval" }

A received invoice from a natural person - the XML has only the name and address, no IČO, DIČ or IČ DPH. Send it with partner_type=person; as the person is not a VAT payer, every item has category O. The client is created as a natural person. An issued invoice to a natural person (sample 4_faktura_vynos_fyzicka_osoba.xml): target=incomes&partner_type=person - you charge your VAT as usual.

1Request body - partner in XML
<cac:AccountingSupplierParty>
  <cac:Party>
    <!-- natural person: only name and address - send with partner_type=person -->
    <cac:PartyName><cbc:Name>Ján Novák</cbc:Name></cac:PartyName>
    <cac:PostalAddress>
      <cbc:StreetName>Hlavná 12</cbc:StreetName>
      <cbc:CityName>Senica</cbc:CityName>
      <cbc:PostalZone>90501</cbc:PostalZone>
      <cac:Country><cbc:IdentificationCode>SK</cbc:IdentificationCode></cac:Country>
    </cac:PostalAddress>
    <cac:PartyLegalEntity><cbc:RegistrationName>Ján Novák</cbc:RegistrationName></cac:PartyLegalEntity>
  </cac:Party>
</cac:AccountingSupplierParty>
Full file 3_faktura_naklad_fyzicka_osoba.xml
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
  <cbc:ID>FO-2026-0003</cbc:ID>
  <cbc:IssueDate>2026-11-26</cbc:IssueDate>
  <cbc:DueDate>2026-12-10</cbc:DueDate>
  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
  <cbc:BuyerReference>FO-2026-0003</cbc:BuyerReference>
  <cac:AccountingSupplierParty>
    <cac:Party>
      <!-- fyzická osoba: iba meno a adresa - pošlite s partner_type=person -->
      <cac:PartyName><cbc:Name>Ján Novák</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Hlavná 12</cbc:StreetName>
        <cbc:CityName>Senica</cbc:CityName>
        <cbc:PostalZone>90501</cbc:PostalZone>
        <cac:Country><cbc:IdentificationCode>SK</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <cac:PartyLegalEntity><cbc:RegistrationName>Ján Novák</cbc:RegistrationName></cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>
    <cac:Party>
      <!-- DIČ = Peppol adresa (schéma 0245) -->
      <cbc:EndpointID schemeID="0245">2020123456</cbc:EndpointID>
      <cac:PartyName><cbc:Name>Vaša firma s. r. o.</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Hlavná 1</cbc:StreetName>
        <cbc:CityName>Bratislava</cbc:CityName>
        <cbc:PostalZone>81101</cbc:PostalZone>
        <cac:Country><cbc:IdentificationCode>SK</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <!-- IČ DPH odberateľa sa pri kategórii DPH O neuvádza (EN 16931, pravidlo BR-O-02) -->
      <!-- IČO (schéma 0158) -->
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Vaša firma s. r. o.</cbc:RegistrationName>
        <cbc:CompanyID schemeID="0158">12345678</cbc:CompanyID>
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <cac:PaymentMeans>
    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>
    <cbc:PaymentID>VS0003</cbc:PaymentID>
    <cac:PayeeFinancialAccount><cbc:ID>SK9509000000000123456789</cbc:ID></cac:PayeeFinancialAccount>
  </cac:PaymentMeans>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="EUR">300.00</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount>
      <cac:TaxCategory><cbc:ID>O</cbc:ID><cbc:TaxExemptionReason>Nepodlieha DPH</cbc:TaxExemptionReason><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="EUR">300.00</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="EUR">300.00</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="EUR">300.00</cbc:TaxInclusiveAmount>
    <cbc:PayableAmount currencyID="EUR">300.00</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="H87">1</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="EUR">300.00</cbc:LineExtensionAmount>
    <cac:Item>
      <cbc:Name>Preklad dokumentácie</cbc:Name>
      <cac:ClassifiedTaxCategory><cbc:ID>O</cbc:ID><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price><cbc:PriceAmount currencyID="EUR">300.00</cbc:PriceAmount></cac:Price>
  </cac:InvoiceLine>
</Invoice>
2Call - POST /v1/invoices?target=costs&partner_type=person
curl -X POST "https://biznow.sk/api/v1/invoices?target=costs&partner_type=person" \
  -H "Authorization: Bearer $BIZNOW_API_KEY" \
  -H "Content-Type: application/xml" \
  --data-binary @3_faktura_naklad_fyzicka_osoba.xml
import os, requests

r = requests.post(
    "https://biznow.sk/api/v1/invoices",
    params={"target": "costs", "partner_type": "person"},
    headers={"Authorization": f"Bearer {os.environ['BIZNOW_API_KEY']}",
             "Content-Type": "application/xml"},
    data=open("3_faktura_naklad_fyzicka_osoba.xml", "rb").read(),
    timeout=60,
)
print(r.status_code, r.json())
import { readFile } from "node:fs/promises";   // Node.js 18+

const res = await fetch("https://biznow.sk/api/v1/invoices?target=costs&partner_type=person", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.BIZNOW_API_KEY}`, "Content-Type": "application/xml" },
  body: await readFile("3_faktura_naklad_fyzicka_osoba.xml"),
});
console.log(res.status, await res.json());
<?php
$ch = curl_init("https://biznow.sk/api/v1/invoices?target=costs&partner_type=person");
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_HTTPHEADER     => ["Authorization: Bearer " . getenv("BIZNOW_API_KEY"), "Content-Type: application/xml"],
    CURLOPT_POSTFIELDS     => file_get_contents("3_faktura_naklad_fyzicka_osoba.xml"),
    CURLOPT_RETURNTRANSFER => true,
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $body;
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", "Bearer " + Environment.GetEnvironmentVariable("BIZNOW_API_KEY"));

var body = new ByteArrayContent(File.ReadAllBytes("3_faktura_naklad_fyzicka_osoba.xml"));
body.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/xml");

var res = await http.PostAsync("https://biznow.sk/api/v1/invoices?target=costs&partner_type=person", body);
Console.WriteLine($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}");
$r = Invoke-RestMethod -Method Post -Uri "https://biznow.sk/api/v1/invoices?target=costs&partner_type=person" `
  -Headers @{ Authorization = "Bearer $env:BIZNOW_API_KEY" } `
  -ContentType "application/xml" -InFile "3_faktura_naklad_fyzicka_osoba.xml"
$r | ConvertTo-Json
3Immediate response
Response 202 - accepted, waiting for processing
{ "job_id": 8, "status": "queued", "location": "for_approval" }
Errors
HTTPCode (error.code)When
403https_requiredrequest over http:// - only https:// is accepted; the key has already been sent unencrypted - delete it and create a new one
401invalid_keymissing, wrong or deleted key
400not_xmlthe body is not an XML document
400wrong_targettarget is missing or is not costs / incomes
400invalid_parameterskip_approval or force is not true / false
400invalid_partner_typepartner_type is not company / person
413too_largethe XML is larger than 10 MB
429rate_limitedthe limit of 500 requests per hour was exceeded - the Retry-After header = seconds until the next attempt
429too_many_errors30 refused requests (4xx) came from your address within 10 minutes - no request from this address is processed until Retry-After seconds have passed; fix the cause (e.g. the key), then send again

These errors are returned immediately and the document is not queued. Errors in the document itself (totals, IČO, duplicate …) come only later in the job status as status: failure - see 07 Error codes.

GET/v1/invoices/{job_id}Job status and document data
Description

Returns the status of a job from POST /v1/validate or POST /v1/invoices and, once the document is saved, also its current data. Poll every 60 seconds until status is success or failure.

Parameters (path)
ParameterTypeRequiredDefaultValues and meaning
job_idintegerYes–
7
job_id from the POST response; only jobs of your key
Response - by status
Response 200 - still processing
{ "job_id": 7, "status": "queued", "location": "for_approval" }

Ask again in 60 seconds.

Response 200 - the document is in BizNow
{
  "job_id": 7,
  "status": "success",
  "invoice_id": 123,
  "location": "for_approval",
  "invoice": { … }
}

The invoice object is shortened here - the full object is in Response - saved document.

Response 200 - the document was not saved
{
  "job_id": 10,
  "status": "failure",
  "errors": [
    { "code": "total_mismatch", "message": "…" },
    { "code": "duplicate", "message": "… already exists in BizNow (approved, document 88) …",
      "location": "approved", "document_id": 88 }
  ]
}

All reasons at once; the codes are in 07 Error codes. Fix the XML and send it again.

Tracking through the API ends when you approve the document in BizNow (a document sent without skip_approval) or delete it: GET then returns record: not_found, and location stays where the document was saved. GET does not tell whether the document was approved or deleted. You can still find an approved document in BizNow (Dokumenty → Schválené náklady / výnosy (Documents → Approved costs / incomes)).

Response 200 - the document was approved or deleted in BizNow
{
  "job_id": 7,
  "status": "success",
  "invoice_id": 123,
  "location": "for_approval",
  "record": "not_found",
  "message": "The saved record no longer exists (approved or deleted in BizNow)."
}
Response fields
FieldTypeWhenMeaning
job_idintegeralwaysjob number
statusstringalwaysqueued waiting · success saved · failure rejected
locationstringwhen savedfor_approval · approved · sandbox (see above)
invoice_idintegersuccessinternal ID of the saved document in BizNow (not the document number - that is cbc:ID / invoice.number); when approved, the document gets a new ID in BizNow
invoiceobjectsuccesscurrent data of the document - Response - saved document
record · messagestringsuccessnot_found - the document is no longer in BizNow (approved or deleted)
errors[]arrayfailurecode + message of each reason; for a duplicate also location and document_id (if the document is being processed right now: location: processing and job_id)
Response - saved document (the invoice object)

When a document from POST /v1/invoices is saved (status: success), the response contains job_id, status, invoice_id (the document's number in BizNow), location (where the document is) and the invoice object - all data of the saved document. With /v1/validate nothing is saved, so invoice is not returned.

Response 200 - saved document (GET /v1/invoices/7)
{
  "job_id": 7,
  "status": "success",
  "invoice_id": 123,
  "location": "for_approval",
  "invoice": {
    "number": "FA2026-0001",
    "type": "invoice",
    "type_code": "380",
    "location": "for_approval",
    "issue_date": "2026-11-26",
    "due_date": "2026-12-10",
    "currency": "EUR",
    "vat_category": "S",
    "seller": {
      "name": "Dodávateľ s. r. o.", "ico": "87654321", "dic": "2021987654", "ic_dph": "SK2021987654",
      "address": "Priemyselná 5, 01001 Žilina, Slovenská republika"
    },
    "buyer": {
      "name": "Vaša firma s. r. o.", "ico": "12345678", "dic": "2020123456", "ic_dph": "SK2020123456",
      "address": "Hlavná 1, 81101 Bratislava, Slovenská republika",
      "register_entry": "OR Mestského súdu Bratislava III, oddiel Sro, vložka 12345/B"
    },
    "totals": { "without_vat": 480.00, "vat": 105.00, "total": 585.00 },
    "vat_breakdown": [
      { "rate": 23, "base": 450.00, "vat": 103.50 },
      { "rate": 5,  "base": 30.00,  "vat": 1.50 }
    ],
    "items": [
      { "name": "Programovanie", "quantity": 10, "unit": "hod", "unit_code": "HUR",
        "unit_price": 45.00, "vat_rate": 23, "amount_without_vat": 450.00, "amount": 553.50 },
      { "name": "Odborná publikácia", "quantity": 2, "unit": "ks", "unit_code": "H87",
        "unit_price": 15.00, "vat_rate": 5, "amount_without_vat": 30.00, "amount": 31.50 }
    ],
    "category": "Služby IT",
    "payment": { "iban": "SK8975000000000012345671", "variable_symbol": "0001", "method": "transfer" },
    "paid": false
  }
}
The invoice object in detail
  • Current data: while the document is waiting for approval (with skip_approval=true, while it exists), another GET returns its current data - for example when someone in BizNow changes the category or the payment.
  • The document no longer exists: after it is approved or deleted in BizNow, instead of invoice you get the field record: "not_found" with an explanation in message.
  • Empty values are left out - a field the document does not have is not in the response. Fields marked "always" are always returned, paid even when it is false. A placeholder IČO / DIČ that BizNow creates for a partner without one (a natural person, a foreign company without an IČO) is not returned in the response.
  • Credit note: the amounts (totals, items, VAT breakdown) are negative.
Who is who - seller and buyer
targetsellerbuyer
costs - received documentpartner (from the client directory if it is there; otherwise from the XML)your company (from the company data in BizNow)
incomes - issued documentyour companypartner (from the client directory if it is there; otherwise from the XML)
Field reference
Basic data
FieldTypeWhen it is filledMeaning and values
numberstringalwaysdocument number (from the XML cbc:ID)
typestringalwaysinvoice invoice · credit_note credit note · tax_document tax document for a received payment · advance_invoice advance invoice
type_codestringalwaystype code according to BIS 3.0: 380 · 381 · 388 · 386
locationstringalwayswhere the document is: for_approval for approval · approved approved · sandbox test storage
issue_datedatealwaysissue date (YYYY-MM-DD)
due_datedateif in the documentdue date: for an invoice from cbc:DueDate, for a credit note from cac:PaymentMeans/cbc:PaymentDueDate; a DDkPP has none
delivery_datedateif in the documentdelivery date; if missing, the tax point date (TaxPointDate)
currencystringalwaysdocument currency, e.g. EUR
vat_categorystringdocuments with itemsVAT category of the document: S standard rate · Z zero rate · E exempt from VAT · AE reverse charge · K supply to another EU country · G export outside the EU · O not subject to VAT
seller and buyer - the parties to the document
FieldTypeWhen it is filledMeaning and values
namestringalwayscompany name or name of the person
icostringif in the documentcompany ID (IČO) - missing for a foreign company and a natural person
dicstringif in the documenttax ID (DIČ)
ic_dphstringif in the documentVAT ID (IČ DPH), e.g. SK2020123456 or ATU12345678
addressstringif in the documentaddress on one line: street, postal code city, country
contactobjectif in the documentname, phone, email - contact person
register_entrystringyour company onlyentry in the business or trade register
Amounts and VAT
FieldTypeWhen it is filledMeaning and values
totals.without_vatnumberalwaysamount without VAT
totals.vatnumberalwaystotal VAT
totals.totalnumberalwaysamount with VAT
vat_breakdown[]arrayalwaysVAT breakdown by rate - each row: rate rate in % · base tax base · vat VAT
advance_paidnumberif in the documentdeducted advance payment (PrepaidAmount)
items[] - items
FieldTypeWhen it is filledMeaning and values
namestringalwaysitem name
quantitynumberalwaysquantity
unitstringif in the documentunit in Slovak, e.g. hod, ks
unit_codestringif in the documentunit code according to BIS 3.0 (UN/ECE Rec. 20), e.g. HUR, H87
unit_pricenumberalwaysunit price without VAT
vat_ratenumberalwaysVAT rate in % (0 for category O - the rate is not given in the XML)
amount_without_vatnumberalwaysitem amount without VAT
amountnumberalwaysitem amount with VAT
Payment
FieldTypeWhen it is filledMeaning and values
payment.ibanstringif in the documentIBAN to pay to
payment.bicstringif in the documentBIC / SWIFT of the bank
payment.variable_symbolstringif in the documentvariable symbol from PaymentID without the prefix (VS0001 → 0001)
payment.constant_symbolstringif in the documentconstant symbol
payment.specific_symbolstringif in the documentspecific symbol
payment.methodstringif in the documenttransfer bank transfer · card card · cash cash
paidbooleanalwaystrue = the document is paid - right when it is saved, if the XML says so (PayableAmount = 0 and PrepaidAmount = amount with VAT, see 06 Rules; typically a DDkPP); otherwise when someone in BizNow marks it as paid
Other
FieldTypeWhen it is filledMeaning and values
categorystringif in the documentcategory name in BizNow - from the partner's history, or chosen by the person who approves the document (a document from a new partner waiting for approval does not have one yet)
order_numberstringif in the documentorder number (OrderReference)
preceding_invoicestringif in the documentnumber of the original invoice the credit note refers to (BillingReference)
notestringif in the documentnote from the document (cbc:Note)
Examples
Before running the examples, put your key in the environment variable BIZNOW_API_KEY: Linux / macOS export BIZNOW_API_KEY=bnk_test_… · PowerShell $env:BIZNOW_API_KEY = "bnk_test_…" · cmd set BIZNOW_API_KEY=bnk_test_… (in cmd, then write %BIZNOW_API_KEY% instead of $BIZNOW_API_KEY in the curl command). Save the Node.js (18+) examples as a .mjs file. curl on Windows: in cmd, write the command on one line (without \ at the line ends); in PowerShell, use curl.exe or the PowerShell tab. Python: pip install requests. C#: dotnet new console and paste the code into Program.cs. Older Windows PowerShell 5.1: first run [Net.ServicePointManager]::SecurityProtocol = "Tls12". The responses in the examples are for a Live key - with a Sandbox key it is location: sandbox.
curl "https://biznow.sk/api/v1/invoices/7" -H "Authorization: Bearer $BIZNOW_API_KEY"
import os, requests

job_id = 7   # job_id from the POST response
r = requests.get(f"https://biznow.sk/api/v1/invoices/{job_id}",
                 headers={"Authorization": f"Bearer {os.environ['BIZNOW_API_KEY']}"}, timeout=60)
print(r.status_code, r.json())
const jobId = 7;   // job_id from the POST response (Node.js 18+, .mjs file)
const res = await fetch(`https://biznow.sk/api/v1/invoices/${jobId}`, {
  headers: { Authorization: `Bearer ${process.env.BIZNOW_API_KEY}` },
});
console.log(res.status, await res.json());
<?php
$jobId = 7;   // job_id from the POST response
$ch = curl_init("https://biznow.sk/api/v1/invoices/" . $jobId);
curl_setopt_array($ch, [
    CURLOPT_HTTPHEADER     => ["Authorization: Bearer " . getenv("BIZNOW_API_KEY")],
    CURLOPT_RETURNTRANSFER => true,
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $body;
long jobId = 7;   // job_id from the POST response
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", "Bearer " + Environment.GetEnvironmentVariable("BIZNOW_API_KEY"));

var res = await http.GetAsync($"https://biznow.sk/api/v1/invoices/{jobId}");
Console.WriteLine($"{(int)res.StatusCode} {await res.Content.ReadAsStringAsync()}");
$jobId = 7   # job_id from the POST response
$status = Invoke-RestMethod -Uri "https://biznow.sk/api/v1/invoices/$jobId" `
  -Headers @{ Authorization = "Bearer $env:BIZNOW_API_KEY" }
$status | ConvertTo-Json -Depth 10
Errors
HTTPCode (error.code)When
403https_requiredrequest over http:// - only https:// is accepted; the key has already been sent unencrypted - delete it and create a new one
401invalid_keymissing, wrong or deleted key
400invalid_job_idjob_id is not a positive integer
404job_not_foundthe job does not exist, belongs to another center, or to the other key type (Live / Sandbox)
429too_many_errors30 refused requests (4xx) came from your address within 10 minutes - no request from this address is processed until Retry-After seconds have passed; fix the cause (e.g. the key), then send again

05 Complete examples

Sends a document and waits for the result (every 60 s, at most 15 min). Usage: <program> <file.xml> [costs|incomes] [person] - the parameters for the sample files are in the table Sample files - how to send them. On 429 it waits according to Retry-After; on 5xx and network failures it tries again (at most 5 times, see Retrying). Exit code: 0 saved · 1 call error · 2 document rejected · 3 still waiting after 15 minutes · 4 the document is already in BizNow (duplicate - e.g. after sending it again; prints where it is, or which job is processing it).

# pip install requests
# python send_invoice.py 1_faktura_naklad_firma.xml costs          (issued document: incomes; natural person: … costs person)
import os
import sys
import time
import requests

BASE = "https://biznow.sk/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['BIZNOW_API_KEY']}"}
EVERY, MAX_WAIT, TRIES = 60, 900, 5          # poll every 60 s, at most 15 min; 5 tries per call


def call(method, path, extra_headers=None, **kwargs):
    """One API call with retries: 429 waits Retry-After, 5xx / network wait longer each time.
    Sending the same document again is safe - one already received comes back as duplicate."""
    headers = {**HEADERS, **(extra_headers or {})}
    for attempt in range(1, TRIES + 1):
        try:
            r = requests.request(method, f"{BASE}{path}", headers=headers, timeout=60, **kwargs)
        except requests.RequestException as error:
            wait, why = 30 * attempt, f"network: {error}"
        else:
            if r.status_code == 429:
                wait, why = int(r.headers.get("Retry-After", "60")), "rate limited"
            elif r.status_code >= 500:
                wait, why = 30 * attempt, f"server error {r.status_code}"
            else:
                try:
                    return r.status_code, r.json()
                except ValueError:
                    return r.status_code, {}
        print(f"{why} - trying again in {wait} s", file=sys.stderr)
        time.sleep(wait)
    sys.exit(f"{method} {path}: no answer after {TRIES} tries")


def send_invoice(path, target="costs", partner_type=None, skip_approval=False):
    params = {"target": target, "skip_approval": str(skip_approval).lower()}
    if partner_type:
        params["partner_type"] = partner_type
    with open(path, "rb") as f:
        code, body = call("POST", "/invoices", {"Content-Type": "application/xml"}, params=params, data=f.read())
    if code != 202:
        error = body.get("error", {})
        sys.exit(f"not accepted: {code} {error.get('code')} - {error.get('message')}")
    return body["job_id"]


def wait_for_result(job_id):
    for _ in range(MAX_WAIT // EVERY + 1):
        code, status = call("GET", f"/invoices/{job_id}")
        if code != 200:
            sys.exit(f"job {job_id}: {code} {status.get('error', {}).get('code')}")
        if status["status"] != "queued":
            return status
        time.sleep(EVERY)
    print(f"job {job_id} is still queued - read its result later (GET /v1/invoices/{job_id})", file=sys.stderr)
    sys.exit(3)


if __name__ == "__main__":
    if len(sys.argv) < 2:
        sys.exit("usage: python send_invoice.py <file.xml> [costs|incomes] [person]")
    job = send_invoice(sys.argv[1], sys.argv[2] if len(sys.argv) > 2 else "costs", sys.argv[3] if len(sys.argv) > 3 else None)
    print("queued: job", job)
    result = wait_for_result(job)
    if result["status"] == "success":
        print("saved:", result["invoice_id"], result["location"], result.get("record", ""))
    elif [e["code"] for e in result["errors"]] == ["duplicate"]:      # e.g. after a resend - BizNow has it already
        e = result["errors"][0]
        if e.get("location") == "processing":
            print("already in BizNow: being processed by job", e.get("job_id"))
        else:
            print("already in BizNow:", e.get("location"), e.get("document_id"))
        sys.exit(4)
    else:
        for e in result["errors"]:
            print("refused:", e["code"], "-", e["message"])
        sys.exit(2)
// Node.js 18+ - node send_invoice.mjs 1_faktura_naklad_firma.xml costs   (issued document: incomes; natural person: … costs person)
import { readFile } from "node:fs/promises";
import { setTimeout as sleep } from "node:timers/promises";

const BASE = "https://biznow.sk/api/v1";
const AUTH = { Authorization: `Bearer ${process.env.BIZNOW_API_KEY}` };
const EVERY_S = 60, MAX_WAIT_S = 900, TRIES = 5;   // poll every 60 s, at most 15 min; 5 tries per call

// One API call with retries: 429 waits Retry-After, 5xx / network wait longer each time.
// Sending the same document again is safe - one already received comes back as duplicate.
async function call(method, path, { headers = {}, body } = {}) {
  for (let attempt = 1; attempt <= TRIES; attempt++) {
    let wait, why;
    try {
      const res = await fetch(`${BASE}${path}`, { method, headers: { ...AUTH, ...headers }, body, signal: AbortSignal.timeout(60_000) });
      if (res.status === 429) { wait = Number(res.headers.get("Retry-After") ?? 60); why = "rate limited"; }
      else if (res.status >= 500) { wait = 30 * attempt; why = `server error ${res.status}`; }
      else return [res.status, await res.json().catch(() => ({}))];
    } catch (error) { wait = 30 * attempt; why = `network: ${error.message}`; }
    console.error(`${why} - trying again in ${wait} s`);
    await sleep(wait * 1000);
  }
  console.error(`${method} ${path}: no answer after ${TRIES} tries`);
  process.exit(1);
}

const [file, target = "costs", partnerType] = process.argv.slice(2);
if (!file) { console.error("usage: node send_invoice.mjs <file.xml> [costs|incomes] [person]"); process.exit(1); }
const qs = new URLSearchParams({ target, skip_approval: "false", ...(partnerType ? { partner_type: partnerType } : {}) });
const [code, sent] = await call("POST", `/invoices?${qs}`, { headers: { "Content-Type": "application/xml" }, body: await readFile(file) });
if (code !== 202) { console.error(`not accepted: ${code} ${sent.error?.code} - ${sent.error?.message}`); process.exit(1); }
console.log("queued: job", sent.job_id);

let status;
for (let waited = 0; waited <= MAX_WAIT_S; waited += EVERY_S) {
  const [getCode, body] = await call("GET", `/invoices/${sent.job_id}`);
  if (getCode !== 200) { console.error(`job ${sent.job_id}: ${getCode} ${body.error?.code}`); process.exit(1); }
  status = body;
  if (status.status !== "queued") break;
  await sleep(EVERY_S * 1000);
}
if (status.status === "queued") { console.error(`job ${sent.job_id} is still queued - read its result later`); process.exit(3); }
if (status.status === "success") console.log("saved:", status.invoice_id, status.location, status.record ?? "");
else if (status.errors.length === 1 && status.errors[0].code === "duplicate") {   // e.g. after a resend - BizNow has it already
  const e = status.errors[0];
  console.log(e.location === "processing" ? `already in BizNow: being processed by job ${e.job_id}` : `already in BizNow: ${e.location} ${e.document_id}`);
  process.exit(4);
} else { for (const e of status.errors) console.log("refused:", e.code, "-", e.message); process.exit(2); }
<?php
// php send_invoice.php 1_faktura_naklad_firma.xml costs   (issued document: incomes; natural person: … costs person)
const BASE = "https://biznow.sk/api/v1";
const EVERY_S = 60, MAX_WAIT_S = 900, TRIES = 5;   // poll every 60 s, at most 15 min; 5 tries per call

function fail(string $message, int $exitCode = 1) {
    fwrite(STDERR, $message . PHP_EOL);
    exit($exitCode);
}

// One API call with retries: 429 waits Retry-After, 5xx / network wait longer each time.
// Sending the same document again is safe - one already received comes back as duplicate.
function api(string $method, string $path, ?string $xml = null): array {
    for ($attempt = 1; $attempt <= TRIES; $attempt++) {
        $retryAfter = null;
        $ch = curl_init(BASE . $path);
        $headers = ["Authorization: Bearer " . getenv("BIZNOW_API_KEY")];
        if ($xml !== null) {
            $headers[] = "Content-Type: application/xml";
            curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
        }
        curl_setopt_array($ch, [
            CURLOPT_CUSTOMREQUEST => $method, CURLOPT_HTTPHEADER => $headers, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 60,
            CURLOPT_HEADERFUNCTION => function ($ch, $line) use (&$retryAfter) {
                if (stripos($line, "Retry-After:") === 0) $retryAfter = (int) trim(substr($line, 12));
                return strlen($line);
            },
        ]);
        $raw = curl_exec($ch);
        $code = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
        if ($raw !== false && $code !== 429 && $code < 500) return [$code, json_decode($raw, true) ?? []];
        $wait = $code === 429 ? ($retryAfter ?: 60) : 30 * $attempt;
        fwrite(STDERR, ($raw === false ? "network: " . curl_error($ch) : "HTTP $code") . " - trying again in $wait s" . PHP_EOL);
        sleep($wait);
    }
    fail("$method $path: no answer after " . TRIES . " tries");
}

[$file, $target, $partnerType] = [$argv[1] ?? null, $argv[2] ?? "costs", $argv[3] ?? null];
if ($file === null) fail("usage: php send_invoice.php <file.xml> [costs|incomes] [person]");
$query = http_build_query(array_filter(["target" => $target, "skip_approval" => "false", "partner_type" => $partnerType]));
[$code, $sent] = api("POST", "/invoices?$query", file_get_contents($file));
if ($code !== 202) fail("not accepted: $code " . ($sent["error"]["code"] ?? "") . " - " . ($sent["error"]["message"] ?? ""));
echo "queued: job {$sent['job_id']}" . PHP_EOL;

for ($waited = 0; $waited <= MAX_WAIT_S; $waited += EVERY_S) {
    [$code, $status] = api("GET", "/invoices/{$sent['job_id']}");
    if ($code !== 200) fail("job {$sent['job_id']}: $code " . ($status["error"]["code"] ?? ""));
    if ($status["status"] !== "queued") break;
    sleep(EVERY_S);
}
if ($status["status"] === "queued") fail("job {$sent['job_id']} is still queued - read its result later", 3);
if ($status["status"] === "success") {
    echo "saved: {$status['invoice_id']} {$status['location']} " . ($status["record"] ?? "") . PHP_EOL;
} elseif (count($status["errors"]) === 1 && $status["errors"][0]["code"] === "duplicate") {   // e.g. after a resend
    $e = $status["errors"][0];
    echo ($e["location"] === "processing" ? "already in BizNow: being processed by job {$e['job_id']}"
                                          : "already in BizNow: {$e['location']} {$e['document_id']}") . PHP_EOL;
    exit(4);
} else {
    foreach ($status["errors"] as $e) echo "refused: {$e['code']} - {$e['message']}" . PHP_EOL;
    exit(2);
}
// .NET 6+ - dotnet run 1_faktura_naklad_firma.xml costs   (issued document: incomes; natural person: … costs person)
using System.Net.Http.Headers;
using System.Text.Json;

const string Base = "https://biznow.sk/api/v1";
const int EverySeconds = 60, MaxWaitSeconds = 900, Tries = 5;   // poll every 60 s, at most 15 min; 5 tries per call
if (args.Length < 1) { Console.Error.WriteLine("usage: dotnet run <file.xml> [costs|incomes] [person]"); return 1; }
string target = args.Length > 1 ? args[1] : "costs";
string? partnerType = args.Length > 2 ? args[2] : null;

using var http = new HttpClient { Timeout = TimeSpan.FromSeconds(60) };
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("BIZNOW_API_KEY"));

// One API call with retries: 429 waits Retry-After, 5xx / network wait longer each time.
// Sending the same document again is safe - one already received comes back as duplicate.
async Task<(int Code, JsonElement Body)> Call(HttpMethod method, string path, byte[]? xml = null)
{
    for (int attempt = 1; attempt <= Tries; attempt++)
    {
        int wait;
        string why;
        try
        {
            var request = new HttpRequestMessage(method, Base + path);
            if (xml != null)
            {
                request.Content = new ByteArrayContent(xml);
                request.Content.Headers.ContentType = new MediaTypeHeaderValue("application/xml");
            }
            var res = await http.SendAsync(request);
            int code = (int)res.StatusCode;
            if (code == 429) { wait = (int)(res.Headers.RetryAfter?.Delta?.TotalSeconds ?? 60); why = "rate limited"; }
            else if (code >= 500) { wait = 30 * attempt; why = $"server error {code}"; }
            else
            {
                string text = await res.Content.ReadAsStringAsync();
                return (code, JsonDocument.Parse(text.Length > 0 ? text : "{}").RootElement);
            }
        }
        catch (Exception error) when (error is HttpRequestException || error is TaskCanceledException)
        {
            wait = 30 * attempt;
            why = "network: " + error.Message;
        }
        Console.Error.WriteLine($"{why} - trying again in {wait} s");
        await Task.Delay(TimeSpan.FromSeconds(wait));
    }
    Console.Error.WriteLine($"{method} {path}: no answer after {Tries} tries");
    Environment.Exit(1);
    return default;
}

string query = $"target={target}&skip_approval=false" + (partnerType != null ? $"&partner_type={partnerType}" : "");
var (postCode, sent) = await Call(HttpMethod.Post, $"/invoices?{query}", await File.ReadAllBytesAsync(args[0]));
if (postCode != 202) { Console.Error.WriteLine($"not accepted: {postCode} {sent}"); return 1; }
long jobId = sent.GetProperty("job_id").GetInt64();
Console.WriteLine($"queued: job {jobId}");

JsonElement status = default;
for (int waited = 0; waited <= MaxWaitSeconds; waited += EverySeconds)
{
    var (getCode, body) = await Call(HttpMethod.Get, $"/invoices/{jobId}");
    if (getCode != 200) { Console.Error.WriteLine($"job {jobId}: {getCode} {body}"); return 1; }
    status = body;
    if (status.GetProperty("status").GetString() != "queued") break;
    await Task.Delay(TimeSpan.FromSeconds(EverySeconds));
}
switch (status.GetProperty("status").GetString())
{
    case "queued":
        Console.Error.WriteLine($"job {jobId} is still queued - read its result later");
        return 3;
    case "success":
        string record = status.TryGetProperty("record", out var r) ? r.GetString() ?? "" : "";
        Console.WriteLine($"saved: {status.GetProperty("invoice_id")} {status.GetProperty("location")} {record}");
        return 0;
    default:
        var errors = status.GetProperty("errors");
        if (errors.GetArrayLength() == 1 && errors[0].GetProperty("code").GetString() == "duplicate")   // e.g. after a resend
        {
            var d = errors[0];
            Console.WriteLine(d.GetProperty("location").GetString() == "processing"
                ? $"already in BizNow: being processed by job {d.GetProperty("job_id")}"
                : $"already in BizNow: {d.GetProperty("location")} {d.GetProperty("document_id")}");
            return 4;
        }
        foreach (var e in errors.EnumerateArray())
            Console.WriteLine($"refused: {e.GetProperty("code")} - {e.GetProperty("message")}");
        return 2;
}
# Windows PowerShell 5.1 / PowerShell 7 - powershell -ExecutionPolicy Bypass -File .\send_invoice.ps1 1_faktura_naklad_firma.xml costs
#   (issued document: incomes; natural person: … costs person; -ExecutionPolicy Bypass = the script may run on this call only)
param([Parameter(Mandatory)][string]$Path, [string]$Target = "costs", [string]$PartnerType)
# HTTPS needs TLS 1.2 - older Windows PowerShell 5.1 does not use it by default
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
$Base = "https://biznow.sk/api/v1"
$Auth = @{ Authorization = "Bearer $env:BIZNOW_API_KEY" }
$EverySeconds = 60; $MaxWaitSeconds = 900; $Tries = 5   # poll every 60 s, at most 15 min; 5 tries per call

# One API call with retries: 429 waits Retry-After, 5xx / network wait longer each time.
# Sending the same document again is safe - one already received comes back as duplicate.
function Invoke-BizNow([string]$Method, [string]$Uri, [string]$InFile) {
    for ($attempt = 1; $attempt -le $Tries; $attempt++) {
        try {
            $call = @{ Method = $Method; Uri = $Uri; Headers = $Auth; UseBasicParsing = $true }
            if ($InFile) { $call.ContentType = "application/xml"; $call.InFile = $InFile }
            $res = Invoke-WebRequest @call
            return @{ Code = [int]$res.StatusCode; Body = ($res.Content | ConvertFrom-Json) }
        } catch {
            $response = $_.Exception.Response
            $code = if ($response) { [int]$response.StatusCode } else { 0 }
            if ($code -ne 0 -and $code -ne 429 -and $code -lt 500) {
                return @{ Code = $code; Body = ($_.ErrorDetails.Message | ConvertFrom-Json) }
            }
            $wait = 30 * $attempt
            if ($code -eq 429) {
                $retryAfter = $null
                try { $retryAfter = $response.Headers["Retry-After"] } catch { }                                # 5.1
                if (-not $retryAfter) { try { $retryAfter = $response.Headers.RetryAfter.Delta.TotalSeconds } catch { } }   # 7
                $wait = if ($retryAfter) { [int]$retryAfter } else { 60 }
            }
            Write-Warning "HTTP $code $($_.Exception.Message) - trying again in $wait s"
            Start-Sleep -Seconds $wait
        }
    }
    Write-Error "$Method $Uri - no answer after $Tries tries"; exit 1
}

$query = "target=$Target&skip_approval=false" + $(if ($PartnerType) { "&partner_type=$PartnerType" } else { "" })
$sent = Invoke-BizNow Post "$Base/invoices?$query" $Path
if ($sent.Code -ne 202) { Write-Error "not accepted: $($sent.Code) $($sent.Body.error.code) - $($sent.Body.error.message)"; exit 1 }
$jobId = $sent.Body.job_id
"queued: job $jobId"

for ($waited = 0; $waited -le $MaxWaitSeconds; $waited += $EverySeconds) {
    $res = Invoke-BizNow Get "$Base/invoices/$jobId"
    if ($res.Code -ne 200) { Write-Error "job ${jobId}: $($res.Code) $($res.Body.error.code)"; exit 1 }
    $status = $res.Body
    if ($status.status -ne "queued") { break }
    Start-Sleep -Seconds $EverySeconds
}
switch ($status.status) {
    "queued"  { Write-Error "job $jobId is still queued - read its result later"; exit 3 }
    "success" { "saved: $($status.invoice_id) $($status.location) $($status.record)" }
    default {
        if (@($status.errors).Count -eq 1 -and $status.errors[0].code -eq "duplicate") {   # e.g. after a resend - BizNow has it already
            $d = $status.errors[0]
            if ($d.location -eq "processing") { "already in BizNow: being processed by job $($d.job_id)" }
            else { "already in BizNow: $($d.location) $($d.document_id)" }
            exit 4
        }
        $status.errors | ForEach-Object { "refused: $($_.code) - $($_.message)" }; exit 2
    }
}
Never put the key in code or in a repository - load it from an environment variable (BIZNOW_API_KEY) or from a key vault.

06 Rules

Documentone file = one Invoice or CreditNote (also inside a Peppol SBDH envelope)
Sidecosts: your company is the buyer · incomes: your company is the seller (matched by company ID (IČO), tax ID (DIČ) or VAT ID (IČ DPH))
PDFan embedded PDF / image of the document is saved, otherwise BizNow creates one from the XML; at most 1 more attachment. The file goes into cac:AdditionalDocumentReference/cac:Attachment/cbc:EmbeddedDocumentBinaryObject (base64, mimeCode, filename). The PDF saved as the document is the one that contains the document number, or the only embedded image / scan; the others are additional attachments. The element goes before cac:AccountingSupplierParty:
<cac:AdditionalDocumentReference>
  <cbc:ID>FA2026-0001</cbc:ID>
  <cac:Attachment>
    <cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="FA2026-0001.pdf">JVBERi0xLjQK…</cbc:EmbeddedDocumentBinaryObject>
  </cac:Attachment>
</cac:AdditionalDocumentReference>
Approved documentsskip_approval=true skips approval - the data go straight into the overviews and a new partner is saved without review (see the red warning at POST /v1/invoices)
Duplicatesnumber + partner + amount already in BizNow → duplicate; the same document sent several times at once is processed only once, the others → duplicate (location: processing); force=true skips the check
PartnerSlovak company, foreign company (a VAT ID (IČ DPH) or tax ID (DIČ) is enough) or natural person (partner_type=person) - see Partner; a new partner is created in BizNow only once, even when several of its documents arrive at once
Paida document is saved as paid only when the XML says so: PayableAmount = 0 and PrepaidAmount = amount with VAT
Datasaved exactly as they are in the XML - amounts, VAT and dates are not changed; without a document currency, EUR is used

07 Error codes

Error response (all endpoints)
{ "error": { "code": "invalid_key", "message": "Missing or invalid API key." } }

Rely on code (stable); message is informational text.

HTTP response to a request
HTTPcodeWhen
403https_requiredrequest over http:// - the API accepts only https://biznow.sk/api/v1 (a key sent over http is not forwarded - but treat it as leaked: delete it and create a new one)
401invalid_keymissing, wrong or deleted key
400not_xmlthe body is not XML
400wrong_targettarget is missing or is not costs / incomes
400invalid_parameterskip_approval / force is not true / false
400invalid_partner_typepartner_type is not company / person
400invalid_job_idjob_id is not a positive integer
404job_not_foundthe job does not exist, belongs to another center or to the other key type (Live / Sandbox)
404not_found · unknown_versionunknown address · a version other than v1
405method_not_allowedwrong HTTP method
413too_largeXML > 10 MB
429rate_limitedlimit exceeded - header Retry-After
429too_many_errors30 refused requests (4xx) from one address within 10 minutes - header Retry-After
500 / 502server_errortemporary error - try again later (see Retrying)
Retrying
  • 429 - wait as many seconds as the Retry-After header says, then send again.
  • 500 / 502 or a network outage - try again in 30 s, and after each further failure wait longer (60, 90, 120 … s); the complete examples try at most 5 times.
  • Lost the response to a POST (e.g. a timeout)? Send the same document again: if BizNow already accepted it, you get duplicate - with location: processing and the job_id of the job that is processing it, or with location and the document_id of the saved document. This way the document is never saved twice.
  • errors[] with the code xml_missing or processing_failed - send the document again unchanged; for all other codes, fix the XML first.
  • You can read a job's status (GET) later too - Live key jobs are not deleted, Sandbox jobs are deleted after 30 days.
status: failure → errors[].code
codeReason
not_xml · no_document · more_than_one_documentnot XML · no document · more than one document
number_missing · issue_date_missing · due_date_invalidnumber / issue date missing · invalid due date
seller_name_missing · buyer_name_missingparty name missing
seller_id_missing · buyer_id_missinga party with no company ID (IČO), DIČ, IČ DPH or Peppol address - if it is a natural person, send with partner_type=person
person_vat_categorya seller who is a natural person (partner_type=person, costs) is not a VAT payer: the VAT category of every line must be O
lines_missing · line_name_missing · line_vat_category_missing · line_vat_rate_missinglines
line_total_mismatch · vat_breakdown_missing · vat_total_mismatch · total_mismatch · payable_mismatchtotals (exact to the cent)
wrong_companyyour company is not on the correct side
too_many_attachmentsmore than 1 attachment besides the document
duplicatethe document already exists (location, document_id = invoice_id of the existing document) or the same document is being processed right now (location: processing, job_id of the job that is processing it)
api_center_missingthe key's center does not exist / is not active
xml_missing · processing_failedtechnical error - send the document again

08 Limits

POST requests500 in the last 60 minutes (sliding window) / key (including /validate) → 429 + Retry-After; reading the status (GET) does not count
Refused requests30 within 10 minutes from one IP address (every 4xx answer except 429 - e.g. a missing or wrong key, an unknown endpoint) → 429 too_many_errors + Retry-After for all requests from that address; successful requests do not count
XML size10 MB including the embedded PDF and the attachment
Processingusually within 5 minutes; reading the status every 60 s is enough. Documents are processed one after another - a larger batch (hundreds of documents) takes longer
Sandboxdata are deleted after 30 days

09 Changelog

New features and API changes - newest first.

VersionDateChange
1.02026-11-27First version: endpoints POST /v1/validate, POST /v1/invoices, GET /v1/invoices/{job_id}; Live and Sandbox keys; partner Slovak company, foreign company and natural person (partner_type); invoice, credit note, tax document for a received payment and advance invoice; sample XML files; duplicate check - the same document sent several times at once is processed only once (duplicate, location: processing); totals exact to the cent; protection: 30 refused requests within 10 minutes from one address → 429 too_many_errors.