Retrieve the details of a specific deal by their unique slug.
Request
GET
GET /v1/deal/:slug
Path Parameter
- slugstringReplace :slugwith the deal's unique slug in the request URL.
Query Parameter
- MaximizestringThe maximizeparameter allows you to specify which items to maximize in your API response.It is comma separated string values. The following values are allowed:- owner
- created_by
- updated_by
- organization
- job
- candidate
- stage
- contact
 Note: To maximize all the items in the response, you can pass 'all' as the value for the maximize query parameter. Example usage: GET /v1/deal/:slug?maximize=owner,stage,organization 
Response
200
Body
- idnumberExample: 28 
- slugstringExample: contact_68ba678fcd2a83f4640c 
- namestringExample: Anjali kotwani 
- stageobjectExample: 
 "id": 1,
 "label": "win",
 "percentage": "100"
- deal_amountnumberExample: 22 
- amount_by_stagenumberExample: 2.2 
- close_datestringExample: 1990-02-02 
- deal_typestringExample: "1" 
- organizationobjectExample: 
 "id": 1
- jobsobjectExample: 
 "id": 1
- candidatesobjectExample: 
 "id": 1
- contactsobjectExample: 
 "id": 1
- tagsstringExample: [leader,java] 
- created_atstring (ISO 8601 date)Example: 2015-05-15T00:00:00Z 
- updated_atstring (ISO 8601 date)Example: 2015-05-15T00:00:00Z 
- created_byobjectExample: 
 "id": 1,
 "email": "Rohan@abc.com",
 "first_name": "Rohan",
 "last_name": "Sharma",
 "full_name": "Rohan Sharma",
 "role": "Admin",
 "phone": null
- updated_byobjectExample: 
 "id": 1,
 "email": "Rohan@abc.com",
 "first_name": "Rohan",
 "last_name": "Sharma",
 "full_name": "Rohan Sharma",
 "role": "Admin",
 "phone": null
- ownerobjectExample: 
 "id": 1,
 "email": "Rohan@abc.com",
 "first_name": "Rohan",
 "last_name": "Sharma",
 "full_name": "Rohan Sharma",
 "role": "Admin",
 "phone": null
- custom fields:objectExample: 
 "id": 1,
 "field_name": "textfeild",
 "field_type": "string",
 "value": "anjali"
404
Error
- Deal does not found
Response Example
{
    "id": 11,
    "slug": "deal_b93fc43d76fff40d6647",
    "name": "software engineer",
    "stage": {
        "id": 4
    },
    "deal_amount": 11,
    "amount_by_stage": 2.2,
    "close_date": "2024-08-07",
    "deal_type": 1,
    "organization": {
        "id": 8
    },
    "jobs": [],
    "candidates": [],
    "contacts": [],
    "tags": null,
    "created_at": "2024-08-06T13:33:00.000Z",
    "updated_at": "2024-08-06T13:33:33.000Z",
    "created_by": {
        "id": 1,
        "email": "Rohan@abc.com",
        "first_name": "Rohan",
        "last_name": "Sharma",
        "full_name": "Rohan Sharma",
        "role": "Admin",
        "phone": null
    },
    "updated_by": {
        "id": 1,
        "email": "Rohan@abc.com",
        "first_name": "Rohan",
        "last_name": "Sharma",
        "full_name": "Rohan Sharma",
        "role": "Admin",
        "phone": null
    },
    "owner": {
         "id": 1,
        "email": "Rohan@abc.com",
        "first_name": "Rohan",
        "last_name": "Sharma",
        "full_name": "Rohan Sharma",
        "role": "Admin",
        "phone": null
    },
    "custom_fields": [
        {
            "id": 2,
            "field_name": "test deal",
            "field_type": "phone",
            "value": ""
        },
        {
            "id": 3,
            "field_name": "File",
            "field_type": "file",
            "value": ""
        },
        {
            "id": 1,
            "field_name": "TEst after delete",
            "field_type": "text",
            "value": ""
        }
    ]
}