Skip to main content
POST
Complete an appointment and record the products used on its sessions

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 appointment identifier

Gövde

application/json
sessions
object[] | null

The products used per linked session (linked_sessions on GET /appointments/{id}). A listed session's recorded products are replaced by its used rows; an empty products list clears them. Sessions left out keep their products.

sale_action
enum<string> | null

What to do with the appointment's sale after recording the products: none (default), create a draft sale with the treatments and used products (409 APPOINTMENT_SALE_EXISTS when it already has one), or append them to its existing sale (422 APPOINTMENT_SALE_MISSING when it has none). create needs Create:Sale, append Update:Sale, both the sales:write scope.

Mevcut seçenekler:
none,
create,
append

Yanıt

success
string
gerekli
data
AppointmentResource · object
gerekli