Get a Deal Details
GET
/deals/details/{deal_id}Fetches details of a specific deal by its ID.
Request
None
Responses
Success(200)
Unauthorized(401)
Not found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
message
string
required
data
object
required
deals_details
object
required
activity_log
object
required
staff
array [object {37}]
required
Example
{
"message": "Success",
"data": {
"deals_details": {
"id": "38",
"title": "Deal 8",
"deal_value": "10.00",
"source_id": "1",
"status": "open",
"notes": null,
"pipeline_id": "1",
"currency": "USD",
"created_at": "2024-08-13 17:18:30",
"days_to_close": "2024-08-13",
"user_id": "[\"1\"]",
"project_id": null,
"invoice_id": null,
"client_id": "null",
"rel_type": "deal",
"rel_id": "1",
"stage_id": "1",
"default_deal_owner": "1",
"convert_to_project": null,
"lost_reason": null,
"tax": null,
"total_tax": null,
"dealorder": "1",
"full_name": "hilal khan",
"source_name": "Facebook",
"pipeline_name": "Sales",
"stage_name": "Qualified To Buy",
"comments": [],
"assignees": [
{
"staffid": "1",
"firstname": "hilal",
"lastname": "khan",
"full_name": "hilal khan"
}
],
"customers": {
"id": "",
"name": "",
"link": "",
"addedfrom": 0,
"subtext": "",
"type": "deal"
},
"attachments": []
},
"activity_log": {
"August 2024": [
{
"id": "12",
"deal_id": "38",
"description": "not_deal_activity_edited",
"additional_data": "",
"date": "2024-08-13 17:18:30",
"staffid": "1",
"full_name": "hilal khan",
"custom_activity": "0"
},
{
"id": "11",
"deal_id": "38",
"description": "not_deal_activity",
"additional_data": "",
"date": "2024-08-13 17:17:09",
"staffid": "1",
"full_name": "hilal khan",
"custom_activity": "0"
}
]
},
"staff": [
{
"staffid": "2",
"email": "[email protected]",
"firstname": "john",
"lastname": "doe",
"facebook": null,
"linkedin": null,
"phonenumber": "090078601",
"skype": null,
"password": "$2a$08$gKGVW8iTdiPXwZA0Y1dHLuPLsMxtsjHaTD2HXVD/eI4HmeCOrYFXa",
"datecreated": "2024-08-09 15:05:02",
"profile_image": null,
"last_ip": null,
"last_login": null,
"last_activity": null,
"last_password_change": null,
"new_pass_key": null,
"new_pass_key_requested": null,
"admin": "0",
"role": null,
"active": "1",
"default_language": null,
"direction": null,
"media_path_slug": "john-doe",
"is_not_staff": "0",
"hourly_rate": "0.00",
"two_factor_auth_enabled": "0",
"two_factor_auth_code": null,
"two_factor_auth_code_requested": null,
"email_signature": null,
"google_auth_secret": null,
"stripe_customer_id": null,
"stripe_obj": null,
"is_paid": "0",
"is_answered": "0",
"is_signed_document": "0",
"session_token": null,
"full_name": "john doe"
},
{
"staffid": "1",
"email": "[email protected]",
"firstname": "hilal",
"lastname": "khan",
"facebook": null,
"linkedin": null,
"phonenumber": "",
"skype": null,
"password": "$2a$08$fkEo5NXredNaKz3Mt4XB3Or9xvH4e3/aQlVpS6qQE2SIBAnH5HO7W",
"datecreated": "2024-07-24 12:46:34",
"profile_image": null,
"last_ip": "127.0.0.1",
"last_login": "2024-08-13 12:24:41",
"last_activity": "2024-08-13 16:07:03",
"last_password_change": null,
"new_pass_key": null,
"new_pass_key_requested": null,
"admin": "1",
"role": null,
"active": "1",
"default_language": null,
"direction": null,
"media_path_slug": null,
"is_not_staff": "0",
"hourly_rate": "0.00",
"two_factor_auth_enabled": "0",
"two_factor_auth_code": null,
"two_factor_auth_code_requested": null,
"email_signature": null,
"google_auth_secret": null,
"stripe_customer_id": null,
"stripe_obj": null,
"is_paid": "0",
"is_answered": "0",
"is_signed_document": "0",
"session_token": "ed47a9fbc06086ea62e27684648ddfdfe1b2dfd94847c1b9e583f5c197dbc362",
"full_name": "hilal khan"
}
]
}
}
Last modified: 2 months ago