Create simplified invoice

Endpoint for creating a new simplified invoice. Without a VAT TRN, the organization can't newly add a Sales rate above 0% or a Reverse charge rate, nor, in the UAE, a zero-rated rate; exempt and out-of-scope rates stay available. Such a request is refused with HTTP 400 and code vat_trn_required; see the tax_rate field.

Query Params
string

Comma-separated related objects to return in full instead of as IDs. Accepted values: branch, contact, contact.persons, journal, line_items, line_items.account, line_items.cost_center, line_items.item, line_items.tax_rate, project, warehouse. Nested relations are joined with a dot. Pass journal to replace the journal ID with its object (ID, date, currency, reference, notes and timestamps). Documents without a journal still return null. Journal line items are retrieved separately with GET /v1/journal-line-items/?journal={journal_id}.

Body Params

A simplified tax invoice issued to a customer, such as for a retail sale.

string | null

The branch associated with this invoice.

string

The contact associated with this invoice.

string
enum
required

The currency of the invoice. A change is refused while a line the document keeps is on a bank account held in the current currency.

View the enum reference

double | null

The exchange rate to the organization base currency at the time of the document.

string
length ≤ 255

External identifier for the simplified invoice.

date
required

The date of the invoice.

string
length ≤ 100

The unique number of the invoice.

string
enum
Defaults to en

The language of the invoice.

View the enum reference

Allowed:
line_items
array of objects
required

The line items of the invoice.

line_items*
string

Additional notes or comments for the invoice.

string
required

The account through which the invoice was paid.

string

Only required if your organization is in the UAE: one of ABU_DHABI, AJMAN, DUBAI, FUJAIRAH, RAS_AL_KHAIMAH, SHARJAH, UMM_AL_QUWAIN or OUTSIDE_UAE

string | null

The project associated with this invoice.

string

The reference of the invoice.

string
enum
Defaults to DRAFT

The status of the invoice (draft or paid).

View the enum reference

Allowed:
string
enum

Whether the tax amount is inclusive or exclusive.

View the enum reference

Allowed:
string | null

The warehouse associated with this invoice.

Headers
string

Client-provided UUID to uniquely identify a request

string

The id of the organization to act on, from GET /v1/organizations/. Required when the OAuth token or accounting partner API key grants access to several organizations; optional otherwise. With an organization API key, it must name the key's own organization.

string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Response

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json