Ana içeriğe atla
POST
Calculate sale totals

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

Nothing is stored, so anyone who may fill in the sale form may ask for its figures.

items
object[]
gerekli

Sale line items, as they would be sent to create the sale.

Required array length: 1 - 500 elements
installment_count
integer | null

Number of installments to suggest a plan for (optional).

Gerekli aralık: 2 <= x <= 120
first_due_date
string<date-time> | null

Due date of the first installment (YYYY-MM-DD); the others follow monthly. Required with installment_count.

Yanıt

success
string
gerekli
data
object
gerekli