Skip to main content
DELETE
https://api.dcycle.io
/
v1
/
logistics
/
requests
/
{request_id}
Delete Logistics Request
const options = {
  method: 'DELETE',
  headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};

fetch('https://api.dcycle.io/v1/logistics/requests/{request_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));

Delete Logistics Request

Permanently delete a logistics request (shipment leg) from your organization. This action cannot be undone.
Permanent Action: Deleting a logistics request is permanent and cannot be undone. The associated emissions data will also be removed from your organization’s totals. If the request belongs to a package, the package’s aggregated emissions will be recalculated.

Request

Headers

x-api-key
string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
x-organization-id
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

request_id
string
required
The unique identifier (UUID) of the logistics request to deleteExample: 550e8400-e29b-41d4-a716-446655440000

Response

Returns 204 No Content on successful deletion.

Example

curl -X DELETE "https://api.dcycle.io/v1/logistics/requests/550e8400-e29b-41d4-a716-446655440000" \
  -H "x-api-key: ${DCYCLE_API_KEY}" \
  -H "x-organization-id: ${DCYCLE_ORG_ID}"

Successful Response

HTTP/1.1 204 No Content
No response body is returned on successful deletion.

Common Errors

401 Unauthorized

Cause: Missing or invalid API key
{
  "detail": "Invalid API key",
  "code": "INVALID_API_KEY"
}

404 Not Found

Cause: Logistics request not found or doesn’t belong to your organization
{
  "code": "NOT_FOUND",
  "detail": "Logistics request not found"
}
Solution: Verify that:
  1. The request ID is correct
  2. The request belongs to the organization specified in x-organization-id
  3. The record hasn’t already been deleted