The Quotation 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": "quotation-lost-reason_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"order_lost_reason": "order_lost_reason_example"
} /api/setup/quotation-lost-reason/{id} Retrieve a quotation lost reason
Retrieves the details of an existing quotation lost reason. Supply the unique quotation lost reason ID that was returned from a previous request.
Path parameters
The identifier of the quotation lost reason to retrieve.
Returns
Returns the quotation lost reason object if a valid identifier was provided.
curl https://api.overplane.dev/api/setup/quotation-lost-reason/quotation-lost-reason_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "quotation-lost-reason_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"order_lost_reason": "order_lost_reason_example"
} /api/setup/quotation-lost-reason List all quotation lost reasons
Returns a list of quotation 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 quotation lost reason objects.
curl https://api.overplane.dev/api/setup/quotation-lost-reason \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "quotation-lost-reason_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"order_lost_reason": "order_lost_reason_example"
}
],
"has_more": false,
"total": 1
} /api/setup/quotation-lost-reason Create a quotation lost reason
Creates a new quotation lost reason object.
Body parameters
Returns
Returns the newly created quotation lost reason object if the call succeeded.
curl https://api.overplane.dev/api/setup/quotation-lost-reason \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"order_lost_reason":"order_lost_reason_example"}' {
"id": "quotation-lost-reason_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"order_lost_reason": "order_lost_reason_example"
} /api/setup/quotation-lost-reason/{id} Update a quotation lost reason
Updates the specified quotation lost reason by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the quotation lost reason to update.
Body parameters
Returns
Returns the updated quotation lost reason object.
curl https://api.overplane.dev/api/setup/quotation-lost-reason/quotation-lost-reason_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"order_lost_reason":"order_lost_reason_example"}' {
"id": "quotation-lost-reason_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"order_lost_reason": "order_lost_reason_example"
} /api/setup/quotation-lost-reason/{id} Delete a quotation lost reason
Permanently deletes a quotation lost reason. This cannot be undone.
Path parameters
The identifier of the quotation lost reason to delete.
Returns
Returns a confirmation that the quotation lost reason has been deleted.
curl https://api.overplane.dev/api/setup/quotation-lost-reason/quotation-lost-reason_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "quotation-lost-reason_abc123",
"deleted": true
}