Skip to main content
opportunities

Create /opportunities

Create an opportunity. Required: subject, total, and either contact (client UUID) or lead. Optional: stage, process, dates, description, currency, addresses, line items. organization, stage, and process use tenant defaults when omitted. Returns record with the detail projection.

POST
/opportunities
Authorizationstringheaderrequired

API key (Bearer token) created in Setup → API & MCP.

Body

application/json
billing_citystring

Billing city.

billing_countrystring

Billing country UUID.

billing_statestring

Billing state/region.

billing_streetstring

Billing street address.

billing_zipstring

Billing ZIP/postal code.

contactstring

Client UUID (required on create if lead is omitted).

contact_personstring

Client contact person UUID.

currencystring

Currency name (e.g. EUR). Uses tenant default when omitted on create.

custom_fieldsobject[]

Custom field values by slug.

datestring

Opportunity date (Y-m-d).

descriptionstring

Opportunity description.

discount_percentstring

Discount percent.

discount_totalstring

Discount total amount.

discount_typestring

Discount type.

due_datestring

Planned sale / due date (Y-m-d).

include_shippingstring

Include shipping address on documents.

itemsobject[]

Opportunity line items to create.

leadstring

Lead UUID (required on create if contact is omitted).

lead_contact_personstring

Lead contact person UUID.

organizationstring

Organization UUID. Optional; tenant default organization is used when omitted.

processstring

Process picklist value UUID. When omitted on create, the tenant default process is used.

shipping_citystring

Shipping city.

shipping_countrystring

Shipping country UUID.

shipping_statestring

Shipping state/region.

shipping_streetstring

Shipping street address.

shipping_zipstring

Shipping ZIP/postal code.

stagestring

Opportunity stage UUID. When omitted on create, the tenant default stage is used.

subjectstringrequired

Opportunity subject/title.

subtotalstring

Subtotal amount.

totalstringrequired

Total amount.

total_taxstring

Total tax amount.

warehousestring

Warehouse UUID (as listed by GET /warehouses), or its codename (e.g. vilnius). Name is also accepted but is neither unique nor stable.

any

Response

application/json

Success

recordobject

Fields enabled for this documentation instance (projection enabled: feature, option, subdomain, closures) plus account-level form field visibility. Role- and user-level field overrides are not applied here, so an API key whose staff user has such overrides may receive fewer fields. A disabled field is omitted from the response object entirely; a present key with a null value means the record simply has no value.