GetCustomerRequest
| Field | Type |
|---|---|
id | string |
Required scope: customer:read
Use this endpoint to retrieve a customer after creation, or to refresh its latest public fields.
POST /public-api/publicapi.v1.Customer/GetCustomer Returns a customer by ID.
| Field | Type |
|---|---|
id | string |
| Field | Type |
|---|---|
customer | Customer |
{ "id": "be85f4d1-b680-4964-bf62-9828fdf4ce04"}curl https://portal.heyx.app/public-api/publicapi.v1.Customer/GetCustomer \ -H "Authorization: Bearer hx_sk_..." \ -H "Content-Type: application/json" \ -d '{ "id": "be85f4d1-b680-4964-bf62-9828fdf4ce04" }'{ "customer": { "id": "be85f4d1-b680-4964-bf62-9828fdf4ce04", "title": "Solar installation lead", "referenceNumber": "P-000456", "kind": "prospect", "prospectOwner": { "memberId": "0f5c7a2e-3b1d-4e8f-9a6c-1d2e3f4a5b6c", "firstName": "Sam", "lastName": "de Vries" }, "contactAttemptCount": 2, "lastContactAttempt": { "occurredAt": "1794590000", "channel": "phone", "outcome": "Call back", "outcomeKind": "follow_up" } }}kind is prospect until the customer buys (a confirmed quote, a payment that
received money or a work order), then customer. owner and prospectOwner
are unset when nobody owns the customer. expectedCloseDate, assigneeIds and
teamIds return what Create Customer and Patch Customer set. Each of a
customer’s prospects, with
its own source, owner and opt-in, is in
List Customer Prospects.