Skip to main content
opportunities

Update /opportunities/{uuid}

Update an opportunity by UUID (PATCH). Only sent fields are updated. Returns record with the detail projection.

PATCH
/opportunities/{uuid}
Authorizationstringheaderrequired

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

uuidstringrequired

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 or update. Include uuid to update an existing row.

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.

subjectstring

Opportunity subject/title.

subtotalstring

Subtotal amount.

totalstring

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.

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.