Skip to main content
POST
Create a sale

Authorizations

Authorization
string
header
required

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

Headers

X-Tenant
number
required

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

Body

application/json
customer_id
integer
required

Filter by customer ID.

currency_id
integer
required

Filter by currency ID.

exchange_rate
number
required

Currency exchange rate.

Required range: x >= 0
status
enum<string>
required

Filter by status.

Available options:
draft,
completed,
cancelled,
invoiced,
pending
items
object[]
required

List of items.

Minimum array length: 1
appointment_id
integer | null

The appointment ID.

user_id
integer | null

Filter by user ID.

notes
string | null

Internal notes.

Maximum string length: 65535

Response

success
string
required
data
SaleResource · object
required