/v1/invoice/numbering/:uid
Invoice numberings for accounting unit.
Example
/v1/invoice/numbering/88899460-4d0b-421b8d67-2023
Request
GET
uid - accounting unit identifier
Response
200text/json

{
   type: string, // pohoda_sk, pohoda_cz
   available: string[], // issued_invoice, issued_credit_note, issued_advance_invoice, issued_receivables, received_invoice, received_credit_note, received_advance_invoice, received_payables,
   numbering: {
      ID: number, database id
      Rok: number, numbering year
      IDS: string, numbering prefix
      Cislo: string, next number
      SText: string, naming
      type: string, numbering type, see types above
   }[]
}

Ussualy, number is combination of IDS an Cislo, like "PF2300001"
Error
400 bad request
your request doesn't meet requested input
401 not authorized
your request doesn't meet authorization requirements
404 not found
entity you loking for, is missing
460 request error
requested operations wasn't performed, or xml import failed
500 internal error
we encountered some internal server error
503 not available
requested entity is offline and cannot be reached, try again later
/v1/invoice/export/pdf/:uid/:invoice_number
PDF export for invoice by invoice number.
Example
/v1/invoice/export/pdf/88899460-4d0b-421b8d67-2023/VD00000001
Request
GET
uid - accounting unit identifier
invoice_number - invoice number
Response
200application/pdf
Buffer PDF
Error
400 bad request
your request doesn't meet requested input
401 not authorized
your request doesn't meet authorization requirements
404 not found
entity you loking for, is missing
460 request error
requested operations wasn't performed, or xml import failed
500 internal error
we encountered some internal server error
503 not available
requested entity is offline and cannot be reached, try again later
/v1/invoice/import/xml/:uid
Synchronous invoice XML import for accounting unit. Response will be send after import was successfull, or an error occoured. If so, response will return error message with detailed description.
Request
POSTtext/xml
uid - accounting unit identifier
Request body is required to be valid SK or CZ xml document.
Response
200text/xml
XML response according to SK or CZ xml schema.
Error
400 bad request
your request doesn't meet requested input
401 not authorized
your request doesn't meet authorization requirements
404 not found
entity you loking for, is missing
460 request error
requested operations wasn't performed, or xml import failed
500 internal error
we encountered some internal server error
503 not available
requested entity is offline and cannot be reached, try again later
/v1/invoice/file/add/:uid
Synchronous add file for specific invoice number.
Request
POSTtext/json
uid - accounting unit identifier
number - invoice number

{
   invoice: string, // invoice number
   name: string, // file name
   content: string, // base64 encoded file content
}

Response
200text/plain
internal directory path for invoice
Error
400 bad request
your request doesn't meet requested input
401 not authorized
your request doesn't meet authorization requirements
404 not found
entity you loking for, is missing
460 request error
requested operations wasn't performed, or xml import failed
500 internal error
we encountered some internal server error
503 not available
requested entity is offline and cannot be reached, try again later