GET
/api/public/v1/deals/{dealId}Get a deal
One deal with its stage, its owner and the customer it belongs to.
Required scope
The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.
deals:read
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dealId | string | Required | Deal ID. |
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/deals/{dealId}" \
-H "Authorization: Bearer your_access_token"200Example response
json
{
"message": "Deal retrieved successfully!",
"content": {
"deal": {
"id": "del_8830",
"referenceId": 214,
"locationId": "loc_abc123",
"pipelineId": "pip_01",
"stageId": "stg_02",
"accountId": "acc_7712",
"ownerId": "emp_44f1",
"title": "Northwind — annual contract",
"value": 4800000,
"currency": "USD",
"status": "OPEN",
"probability": 60,
"expectedCloseDate": "2026-10-15T00:00:00.000Z",
"sortOrder": 0,
"wonLostReason": null,
"closedAt": null,
"stageMovedAt": "2026-08-25T10:00:00.000Z",
"createdAt": "2026-08-10T09:00:00.000Z",
"updatedAt": "2026-08-25T10:00:00.000Z"
}
}
}In the console
The same thing done by hand, for anyone comparing the API against the screen they already use.
xRM → Pipeline
/xrm/pipeline