# Get deal by id

You can return information about a specific deal by using a deal custom_id.

GET /deals-by-id/:custom_id/

Attributes Type Required Description
custom_id string no 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" 
-H "Accept: */*; version=2" "https://<your_app_subdomain>.user.com/api/public/deals-by-id/:custom_id/"

# Response

{
    "id": 12218,
    "name": "example deal",
    "value": "1250.00",
    "currency": "USD",
    "custom_id": null,
    "stage": 36585,
    "pipeline": 6179,
    "assigned_to": 398,
    "restricted_to": null,
    "agent": null,
    "company_id": 768,
    "user_id": 20900530,
    "status": 1,
    "products": [],
    "scope": 2,
    "created_by": 382,
    "created_at": "2017-09-06T09:53:50.748535Z",
    "updated_at": "2017-09-06T09:53:50.748555Z",
    "tags": [{"id": 9, "name": "To call"}],
    "activities_status": "planned",
    "expected_close_date": null,
    "loss_reason": null,
    "loss_reason_description": "",
    "lost_at": null,
    "won_at": null,
    "participants": [4],
    "user_custom_id": "52bdc3be5145e87076c8",
    "products_custom_id": [],
    "company_custom_id": "c44adda2ecc0",
    "custom_attribute_xyz": null
}