Skip to content

FedEx - Cancel Shipment

This module cancels a previously created shipment in FedEx. It receives the shipment tracking number and makes a PUT request to the /ship/v1/shipments/cancel endpoint with the account number and tracking number. If the cancellation is successful, it returns the tracking number and the CANCELLED status.

ParameterTypeRequiredDescription
credentials_idcredentialsYesFedEx credential (provider: fedex)
tracking_numbertextYesTracking number of the shipment to cancel

A fedex type credential is required with the following fields:

  • client_id: FedEx API Client ID
  • client_secret: FedEx API Client Secret
  • account_number: FedEx account number
{
"success": true,
"tracking_number": "794644790138",
"status": "CANCELLED",
"message": "Envio FedEx 794644790138 cancelado exitosamente"
}
{
"credentials_id": "mi_credencial_fedex",
"tracking_number": "794644790138"
}
  • Only shipments that have not yet been picked up can be canceled
  • The PUT method (not DELETE) is used for cancellation in FedEx
  • The account number is required in addition to the tracking number