# Get deal stage changes

You can return deal stage changes.

GET /deals/:id/stage-changes/

Attribute Type Required Description
id integer yes A unique identifier for the deal which is given by User.com automatically.
Lookup Description Example usage
count_from A date from when stats should be counted ?count_from=2021-05-16
count_to A date utill stats should be counted ?count_from=2022-05-16

# 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/: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
    }
  ]
}