# Get deal stage changes by id

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

GET /deals-by-id/:custom_id/stage-changes/

Attribute Type Required Description
custom_id string yes The unique identifier for the deal which is provided by the client.

# Request

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

# Response

{
  "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
    }
  ]
}