Delete an existing deal by its unique slug.
Request
DELETE
DELETE /v1/deal/:slug
Path Parameter
- slug
string
Replace
:slug
with the deal's unique slug in the request URL.
Headers
- Authorization: Bearer your_access_token
Response
200
Body
- id
number
Example: 28
- slug
string
Example: contact_68ba678fcd2a83f4640c
- name
string
Example: Anjali kotwani
- stage
object
Example:
"id": 1,
"label": "win",
"percentage": "100" - deal_amount
number
Example: 22
- amount_by_stage
number
Example: 2.2
- close_date
string
Example: 1990-02-02
- deal_type
string
Example: "1"
- organization
object
Example:
"id": 1 - jobs
object
Example:
"id": 1 - candidates
object
Example:
"id": 1 - contacts
object
Example:
"id": 1 - tags
string
Example: [leader,java]
- created_at
string (ISO 8601 date)
Example: 2015-05-15T00:00:00Z
- updated_at
string (ISO 8601 date)
Example: 2015-05-15T00:00:00Z
- created_by
object
Example:
"id": 1,
"email": "Rohan@abc.com",
"first_name": "Rohan",
"last_name": "Sharma",
"full_name": "Rohan Sharma",
"role": "Admin",
"phone": null - updated_by
object
Example:
"id": 1,
"email": "Rohan@abc.com",
"first_name": "Rohan",
"last_name": "Sharma",
"full_name": "Rohan Sharma",
"role": "Admin",
"phone": null - owner
object
Example:
"id": 1,
"email": "Rohan@abc.com",
"first_name": "Rohan",
"last_name": "Sharma",
"full_name": "Rohan Sharma",
"role": "Admin",
"phone": null - custom fields:
object
Example:
"id": 1,
"field_name": "textfeild",
"field_type": "string",
"value": "anjali"
401
Body
- Unauthorized
404
Body
- Deal does not exist
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": ""
}
]
}