Skip to main content
PUT
Update a sale

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.

Yol Parametreleri

id
integer
gerekli

The sale identifier

Gövde

application/json
customer_id
integer

Customer ID.

appointment_id
integer | null

Related appointment ID (optional). Must belong to current tenant and the provided customer.

currency_id
integer

Currency ID.

exchange_rate
number

Exchange rate (e.g. 1 or 34.5).

Gerekli aralık: x >= 0
status
enum<string>

Sale status: draft, completed, cancelled, invoiced, pending.

Mevcut seçenekler:
draft,
completed,
cancelled,
invoiced,
pending
sale_date
string<date-time>

When the sale happened. A naive value is read in the tenant timezone.

user_id
integer | null

User ID (optional).

notes
string | null

Internal notes.

Maximum string length: 65535
items
object[]

Sale line items (optional on update).

Minimum array length: 1

Yanıt

success
string
gerekli
data
SaleResource · object
gerekli