The Opportunity Lost Reason object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
{
"id": "opportunity-lost-reason_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"lost_reason": "lost_reason_example"
} /api/crm/opportunity-lost-reason/{id} Retrieve a opportunity lost reason
Retrieves the details of an existing opportunity lost reason. Supply the unique opportunity lost reason ID that was returned from a previous request.
Path parameters
The identifier of the opportunity lost reason to retrieve.
Returns
Returns the opportunity lost reason object if a valid identifier was provided.
curl https://api.overplane.dev/api/crm/opportunity-lost-reason/opportunity-lost-reason_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "opportunity-lost-reason_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"lost_reason": "lost_reason_example"
} /api/crm/opportunity-lost-reason List all opportunity lost reasons
Returns a list of opportunity lost reasons. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of opportunity lost reason objects.
curl https://api.overplane.dev/api/crm/opportunity-lost-reason \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "opportunity-lost-reason_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"lost_reason": "lost_reason_example"
}
],
"has_more": false,
"total": 1
} /api/crm/opportunity-lost-reason Create a opportunity lost reason
Creates a new opportunity lost reason object.
Body parameters
Returns
Returns the newly created opportunity lost reason object if the call succeeded.
curl https://api.overplane.dev/api/crm/opportunity-lost-reason \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "opportunity-lost-reason_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"lost_reason": "lost_reason_example"
} /api/crm/opportunity-lost-reason/{id} Update a opportunity lost reason
Updates the specified opportunity lost reason by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the opportunity lost reason to update.
Body parameters
Returns
Returns the updated opportunity lost reason object.
curl https://api.overplane.dev/api/crm/opportunity-lost-reason/opportunity-lost-reason_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"lost_reason":"lost_reason_example"}' {
"id": "opportunity-lost-reason_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"lost_reason": "lost_reason_example"
} /api/crm/opportunity-lost-reason/{id} Delete a opportunity lost reason
Permanently deletes a opportunity lost reason. This cannot be undone.
Path parameters
The identifier of the opportunity lost reason to delete.
Returns
Returns a confirmation that the opportunity lost reason has been deleted.
curl https://api.overplane.dev/api/crm/opportunity-lost-reason/opportunity-lost-reason_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "opportunity-lost-reason_abc123",
"deleted": true
}