Pereiti prie pagrindinio turinio
invoices

Create /invoices

Create an invoice. Required: contact (client UUID), date, currency (currency name), and items (at least one line). Optional: due date, sale agent, notes, addresses, organization, is_reverse_vat, vat_adaptation_articles (picklist value UUIDs from finance/vat_adaptation_article), and manual numbering via document_prefix + document_number (skips auto numbering and uses OTHER_PREFIX). Returns record with the detail projection.

POST
/invoices
Authorizationstringheaderprivaloma

API key (Bearer token) created in Setup → API & MCP.

Turinys

application/json
adminnotestring

Internal admin note.

billing_citystring

Billing city.

billing_countrystring

Billing country UUID.

billing_statestring

Billing state/region.

billing_streetstring

Billing street address.

billing_zipstring

Billing ZIP/postal code.

clientnotestring

Note visible to client.

contactstringprivaloma

Client UUID.

contact_personstring

Contact person UUID.

currencystringprivaloma

Currency name (e.g. EUR).

custom_fieldsobject[]

Custom field values by slug.

custom_recurringinteger

Custom recurring interval value.

datestringprivaloma

Invoice date (Y-m-d).

document_numberstring

Custom document number suffix. Required when document_prefix is provided.

document_prefixstring

Custom document number prefix. When provided, auto numbering is skipped and the invoice is stored under OTHER_PREFIX with a manual full number built from document_prefix and document_number.

due_datestring

Due date (Y-m-d).

is_reverse_vatstring

Apply reverse VAT taxation. When true, invoice total equals subtotal (excl. VAT).

itemsobject[]privaloma

Invoice line items. At least one object is required.

organizationstring

Organization UUID.

recurringstring

Whether the invoice is recurring.

recurring_ends_onstring

Recurring end date (Y-m-d).

recurring_typestring

Recurring interval type.

sale_agentstring

Sale agent staff UUID.

shipping_citystring

Shipping city.

shipping_countrystring

Shipping country UUID.

shipping_statestring

Shipping state/region.

shipping_streetstring

Shipping street address.

shipping_zipstring

Shipping ZIP/postal code.

statusinteger

Invoice status code (1–6).

termsstring

Terms and conditions.

vat_adaptation_articlesstring[]

VAT adaptation article picklist value UUIDs (finance/vat_adaptation_article). Discover values via GET /api/v4/picklists. Pass [] to clear.

Atsakymas

application/json

Success

recordobject

Fields enabled for this documentation instance (projection enabled: feature, option, subdomain, closures) plus account-level form field visibility. Role- and user-level field overrides are not applied here, so an API key whose staff user has such overrides may receive fewer fields. A disabled field is omitted from the response object entirely; a present key with a null value means the record simply has no value.