Skip to main content

ReferenceDeals

Deals

Public name Deal. Domain entity Opportunity. Same id.

POST/api/v1/deals

On create, omit stage. The host uses the org default pipeline and the first open stage. If the org has no default pipeline, create fails closed. PATCH stage only to an open stage. Close with POST /deals/{id}/close and reason_id from GET /close-reasons. amount in major units (25000 = 25,000.00).

HTTPPathScope
GET/api/v1/dealsrest.crm.deals.read
POST/api/v1/dealsrest.crm.deals.write
GET/api/v1/deals/{id}rest.crm.deals.read
PATCH/api/v1/deals/{id}rest.crm.deals.write
GET/api/v1/close-reasonsrest.crm.deals.read
POST/api/v1/deals/{id}/closerest.crm.deals.write

Query

ParameterTypeNotes
limit / cursornumber / stringCursor page. limit 1–100.

Fields

FieldTypeNotes
idUUIDImmutable. Same id as Opportunity.
titlestringRequired. Cannot PATCH to empty.
amountnumber | nullMajor units. 25000 = 25,000.00. Non-negative. Stored as micros.
currencystring | null3-letter ISO (USD).
stageUUIDOpen stage in this org. Omit on create.
company_idUUID | nullCompany in this org.
primary_contact_idUUID | nullContact in this org.
owner_idUUID | nullSame id as GET /members.
tag_idsUUID[]Full replace. [] clears.
pipeline_idUUIDWrite-only on create. Not returned.