Create quote

post
https://api.wafeq.com/v1/quotes/

Endpoint for creating a new quote. Without a VAT TRN, the organization can't newly add a Sales rate above 0% or a Reverse charge rate, nor, in the UAE, a zero-rated rate; exempt and out-of-scope rates stay available. Such a request is refused with HTTP 400 and code vat_trn_required; see the tax_rate field.

Query Params
string

Comma-separated related objects to return in full instead of as IDs. Accepted values: attachments, branch, contact, contact.persons, line_items, line_items.item, line_items.tax_rate, line_items.cost_center, project, discount_cost_center. Nested relations are joined with a dot.

Body Params

A quote offered to a customer.

attachmentsarray of strings

Any files or documents attached to this quote.

string | null

The branch associated with this quote.

stringrequired

The contact (customer) associated with this quote.

stringenumrequired

The currency code for the quote. A change is refused while a line the document keeps is on a bank account held in the current currency.

View the enum reference

custom_fieldsobject

A mapping of custom field IDs to their values.

string

The account to which the discount will be booked, if applicable.

double≥ 0

The discount amount to apply to the invoice.

string

The cost center associated with the discount, if applicable.

string

The tax rate applied to the discount, if applicable: the ID of the tax rate (tax_…). List the tax rates of the organization with GET /v1/tax-rates/. Without a VAT TRN on the organization, a local Sales rate above 0%, a Reverse charge rate, or, for a UAE organization, a zero-rated Sales rate is refused when newly set on the discount, with HTTP 400 and code vat_trn_required; a discount that already carries the rate keeps it. Add the VAT TRN with PATCH /v1/organization/profile/ (financial_settings.tax_registration_number) or PATCH /v2/organizations/{id}/ (profile.tax_registration_number).

double | null

The exchange rate to the organization base currency at the time of the document.

stringlength ≤ 255

External identifier for the quote.

stringenumDefaults to en

The language in which the quote is written.

View the enum reference

Allowed:
line_itemsarray of objectsrequired

The individual line items included in this quote.

string

Additional notes or comments about the invoice.

string | null

The project associated with this quote, if applicable.

string

An optional purchase order number or code for this quote.

daterequired

The date when the quote was issued.

stringrequired

The number assigned to this quote.

string

An optional reference number or code for this quote.

stringenumDefaults to DRAFT

The current status of the quote (draft, sent, or invoiced).

View the enum reference

Allowed:
stringenum

Specifies whether the tax amount is inclusive or exclusive.

View the enum reference

Allowed:
Headers
string

Client-provided UUID to uniquely identify a request

string

The id of the organization to act on, from GET /v1/organizations/. Required when the OAuth token or accounting partner API key grants access to several organizations; optional otherwise. With an organization API key, it must name the key's own organization.

stringenumDefaults to application/json

Generated from available request content types

Allowed:
Response