Skip to main content
POST
Create an offer

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
currency_id
integer
gerekli

Currency ID.

exchange_rate
number
gerekli

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

Gerekli aralık: x >= 0
valid_until
string<date-time>
gerekli

Date until which the offer is valid.

status
enum<string>
gerekli

Offer status: draft, sent, accepted, rejected.

Mevcut seçenekler:
draft,
sent,
accepted,
rejected
items
object[]
gerekli

Offer line items. At least one item required.

Minimum array length: 1
customer_id
integer

Customer ID. Must belong to current tenant.

lead_id
integer

Visible lead ID used as an alternative to customer_id.

user_id
integer | null

User ID (optional, defaults to authenticated user).

notes
string | null

Notes (optional).

Maximum string length: 65535

Yanıt

success
string
gerekli
data
OfferResource · object
gerekli