Availability: Public Preview
This endpoint is currently in public preview and available only to approved accounts. Please contact Arta to request access for your organization.
Cancel a scheduled self-ship collection. The collection's status becomes cancelled.
Cancellation through the API is currently supported for DHL collections only; attempting to cancel a FedEx collection returns a 422 with {"errors": {"#": ["Only DHL collections can be cancelled"]}}. If the carrier rejects the cancellation, the carrier's error messages are returned in a 400 response under #.
PATCH
/self_ship_collections/{self_ship_collection_id}/cancel
curl \
--request PATCH 'https://api.arta.io/self_ship_collections/{self_ship_collection_id}/cancel' \
--header "Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y"
Response examples (200)
# Headers
content-type: application/json
x-arta-request-id: FkBjuxbwLLTx4RoAARkx
# Payload
{
"closed_at": null,
"collection_date": "2026-03-06",
"collection_time": "10:00:00",
"created_at": "2026-03-01T12:00:00.000000",
"id": "550e8400-e29b-41d4-a716-446655440000",
"location": {
"address_line_1": "123 Main St",
"address_line_2": null,
"city": "New York",
"close_time": "17:00:00",
"contact": {
"email_address": "john@example.com",
"name": "John Doe",
"phone_number": "+1-555-123-4567"
},
"country": "US",
"package_location": "none",
"postal_code": "10001",
"region": "NY"
},
"service": {
"carrier": "dhl",
"code": "express",
"declared_value": "500.00",
"declared_value_currency": "USD",
"package_details": {
"packages": [
{
"depth": "12",
"height": "8",
"unit_of_measurement": "in",
"weight": "5.5",
"weight_unit": "lb",
"width": "10"
}
]
},
"route": "international"
},
"shortcode": "ACME-S3GP24",
"status": "scheduled",
"updated_at": "2026-03-01T12:00:00.000000"
}
Response examples (400)
{
"errors": {
"#": [
"The carrier rejected the request (HTTP 400)"
]
}
}
Response examples (404)
# Headers
content-type: application/json
x-arta-request-id: FkBjuxbwLLTx4RoAARkx
# Payload
{
"errors": {
"detail": "string"
}
}
Response examples (422)
{
"errors": {
"#": [
"Only DHL collections can be cancelled"
]
}
}