Hanzo
OpenapiCrm

Returns one of the caller org's deals.

Returns one of the caller org's deals.

GET /v1/crm/opportunities/{id}

Addresshttps://api.hanzo.ai/v1/crm/opportunities/{id}
MethodGET
Operationget_crm_opportunities_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one of the caller org's deals. An id belonging to another org reads as not found.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the record to act on, from the path.

Response

StatusBodyMeaning
200Opportunityok

200 body — 10 fields.

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

Failure carries the platform error shape — see Errors.

Examples

hanzo crm opportunities get <id>

CRM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page