Cancel Freight Pickup

Cancel a scheduled freight pickup. When the carrier consolidates multiple shipments onto one confirmation number (for example XPO), supply bol_number to cancel only that shipment and omit it to cancel the entire pickup.

Cancelling a pickup that is already cancelled is a success, so repeating a cancel is safe.

When the operation fails, the response is an ErrorResponse with a 4xx or 5xx status and a code in detailed_errors[].normalized_error_code.

SecurityFreightApiCode
Request
Request Body schema: application/json
transaction_id
required
string

A unique ID for this request, set by the caller and echoed back in the response for tracing. It is not a business identifier.

carrier_code
required
string

Identifies the carrier this request is for. For US LTL carriers this is the carrier's SCAC, for example EXLA. It matches Codes[].SCAC in the app's carrier metadata.

This is not an ApiCode, which is an identifier in the ShipEngine registry.

object

The carrier authorization information needed to fulfill this request. The shape is intentionally undefined and may vary by carrier. It is currently unused, carrier apps read their credentials from environment variables.

confirmation_number
required
string

The confirmation number of the pickup to cancel.

reason
string (CancelFreightPickupReason)

Why the pickup is being cancelled. Use other and explain in comments.

Enum: "customer_request" "schedule_conflict" "business_closure" "other"
comments
string <= 200 characters

Free text notes for the carrier about the cancellation.

bol_number
string <= 50 characters

The BOL of the specific shipment to cancel when the carrier consolidates multiple shipments onto one confirmation number (for example XPO). Omit to cancel the entire pickup. Ignored by carriers that do not consolidate.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

409

Conflict

422

Unprocessable Entity

429

Too Many Requests

500

Internal Server Error

503

Service Unavailable

520

External Server Error

post/cancel-freight-pickup
Request samples
application/json
{
  • "transaction_id": "txn-exla-0002",
  • "carrier_code": "EXLA",
  • "confirmation_number": "124381117",
  • "reason": "customer_request"
}
Response samples
application/json
{
  • "transaction_id": "txn-exla-0002",
  • "carrier_code": "EXLA",
  • "status": "cancelled",
  • "confirmation_number": "124381117",
  • "cancellation_date": "2026-10-08T14:32:00Z"
}