Hanzo
OpenapiCrm

Returns the caller org's deals, most recently updated first.

Returns the caller org's deals, most recently updated first.

GET /v1/crm/opportunities

Addresshttps://api.hanzo.ai/v1/crm/opportunities
MethodGET
Operationget_crm_opportunities
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the caller org's deals, most recently updated first. A stage narrows the page to one pipeline stage.

Request

2 fields.

FieldInTypeRequiredDescription
stagequerystringStage returns only the opportunities at that pipeline stage when set (NEW, SCREENING, MEETING, PROPOSAL or CUSTOMER; case-insensitive).
limitqueryintegerLimit caps the rows returned: 200 by default, 1000 at most.

Response

StatusBodyMeaning
200oppListok

200 body — 11 fields.

FieldInTypeAlwaysDescription
databodyOpportunity[]Data is the page of opportunities, most recently updated first.
data[].amountbodyintegerAmount is the deal value in minor units (cents) of Currency.
data[].closeDatebodyintegerCloseDate is the expected close as a unix second (0 = unset).
data[].companyIdbodystringCompanyID links the deal to one of the org's companies; empty when unlinked, and cleared when that company is deleted.
data[].createdAtbodyintegerCreatedAt is the unix second the opportunity was created.
data[].currencybodystringCurrency is the ISO code Amount is denominated in; a write that names none stores USD.
data[].idbodystringID is the server-minted opportunity id ("oppo_" + 128 random bits).
data[].namebodystringName is the deal name.
data[].pointOfContactIdbodystringPointOfContact links the deal to one of the org's contacts; empty when unlinked, and cleared when that contact is deleted.
data[].stagebodystringStage is the pipeline stage, always one of NEW, SCREENING, MEETING, PROPOSAL or CUSTOMER — stored upper-case whatever case the write used.
data[].updatedAtbodyintegerUpdatedAt is the unix second of the last write.

Failure carries the platform error shape — see Errors.

Examples

hanzo crm opportunities list

CRM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page