Skip to main content
POST
Create an invoice from a sale (draft or sent)

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Gövde

application/json
sale_id
integer
gerekli

The sale ID.

Gerekli aralık: x >= 1
invoice_account_id
integer
gerekli

The invoice account ID.

Gerekli aralık: x >= 1
mode
enum<string>
gerekli

The mode of operation.

Mevcut seçenekler:
draft,
send
series_name
string
gerekli

The invoice series name.

Maximum string length: 50
issue_date
string<date-time>
gerekli

The invoice issue date (YYYY-MM-DD).

custom_line_items
object[] | null

Custom invoice line items.

global_withholding_rate
number | null

Global withholding tax rate as a percentage.

Gerekli aralık: 0 <= x <= 1
use_passport_number
boolean | null

Whether to use the passport number on the invoice.

notes
string | null

Internal notes.

Maximum string length: 2000

Yanıt

The response is of type object.