Skip to main content
GET/deals-by-id/:custom_id/stage-changes/

Get deal stage changes by id

You can return deal stage changes by using a deal custom_id.

Attribute

Optional unless marked required

custom_idstringrequired
The unique identifier for the deal which is provided by the client.
LookupDescriptionExample usage
count_fromA date from when stats should be counted?count_from=2021-05-16
count_toA date utill stats should be counted?count_from=2022-05-16

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/deals-by-id/:custom_id/stage-changes/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"count": 3,
"next": null,
"previous": null,
"results": [
{
"id": 4,
"deal": "Deal_56234",
"changed_by": null,
"stage_name": "Negotiations",
"entered_at": "2024-04-19T12:01:37.084481Z",
"left_at": null,
"stage": 5
},
{
"id": 3,
"deal": "Deal_56234",
"changed_by": "John Doe",
"stage_name": "Demo scheduled",
"entered_at": "2024-04-19T12:01:35.449037Z",
"left_at": "2024-04-19T12:01:37.084481Z",
"stage": 3
},
{
"id": 2,
"deal": "Deal_56234",
"changed_by": "John Doe",
"stage_name": "Contact made",
"entered_at": "2024-04-19T12:01:34.200751Z",
"left_at": "2024-04-19T12:01:35.449037Z",
"stage": 2
}
]
}

Response fields​

Fields returned in the 200 OK response body.

countinteger
Number of results across all pages. It can lag behind recent changes; see Response pagination.
nextstring (URL)nullable
URL of the next page of results. null on the last page.
previousstring (URL)nullable
URL of the previous page of results. null on the first page.
resultsarray of objects
Results on this page.
results[].idinteger
A unique identifier for the deal which is given by User automatically.
results[].dealstring
Name of the deal whose stage changed.
results[].changed_bystringnullable
Name of the agent who moved the deal out of this stage in the panel; null while the deal is still in the stage, or when the API or an automation moved it.
results[].stage_namestring
Name of the stage the deal entered.
results[].entered_atstring (date-time)
When the deal entered the stage, ISO 8601.
results[].left_atstring (date-time)nullable
When the deal left the stage, ISO 8601. null while the deal is still in it.
results[].stageinteger
An id of a stage of the pipeline the deal is currently at.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.