Get issued invoice
get_sales_invoiceRetrieve an issued sales invoice by ID to review line items, VAT, payment details, bank account, and payments; use prior invoices as templates for new ones.
Instructions
One issued (sales) invoice with line items, VAT, payment symbols, own bank account and payments received. Use export_sales_invoice for the PDF or ISDOC. Earlier invoices to the same buyer show how they are usually issued (DUZP, due days, products, line texts, bank account) — a template for a new one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | invoice_id from search_sales_invoices |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vat | Yes | Sum of VAT amounts | |
| note | Yes | ||
| text | Yes | Introductory text printed on the invoice | |
| type | Yes | ||
| buyer | Yes | ||
| items | Yes | ||
| total | Yes | Total including VAT (Celkem s DPH) | |
| number | Yes | Evidence number shown on the invoice | |
| status | Yes | draft = koncept (UOL "valid"), issued = vystavená ("confirmed"), cancelled = storno ("invalid") | |
| payment | Yes | ||
| currency | Yes | ||
| due_date | Yes | ||
| payments | Yes | ||
| tax_date | Yes | DUZP — taxable supply date | |
| invoice_id | Yes | Internal id, usable with get_sales_invoice | |
| issue_date | Yes | ||
| contract_id | Yes | Contract (zakázka), if any | |
| external_id | Yes | ||
| vat_amounts | Yes | UOL vat1..vat3 amounts in rate order | |
| department_id | Yes | ||
| exchange_rate | Yes | ||
| payment_method | Yes | ||
| bank_account_id | Yes | Own bank account the buyer pays to (list_codebook my_bank_accounts) | |
| constant_symbol | Yes | ||
| specific_symbol | Yes | ||
| variable_symbol | Yes | ||
| linked_invoice_id | Yes | E.g. the original invoice of a corrective invoice | |
| total_without_vat | Yes | Tax base (Celkem bez DPH) |