Skip to content

UPS - Cancel Shipment

This module cancels a previously created shipment in UPS. It receives the Shipment Identification Number and makes a DELETE request to the /api/shipments/v1/shipments/cancel endpoint. If the cancellation is successful, it returns the shipment number, the VoidShipmentResponse status, and a confirmation message.

ParameterTypeRequiredDescription
credentials_idcredentialsYesUPS credential (provider: ups)
shipment_identification_numbertextYesShipment identification number to cancel

A ups type credential is required with the following fields:

  • client_id: UPS API Client ID
  • client_secret: UPS API Client Secret
{
"success": true,
"shipment_identification_number": "1Z999AA10123456784",
"status": "CANCELLED",
"message": "Envio UPS 1Z999AA10123456784 cancelado exitosamente"
}
{
"credentials_id": "mi_credencial_ups",
"shipment_identification_number": "1Z999AA10123456784"
}
  • Only shipments that have not yet been picked up by UPS can be canceled
  • The status is obtained from VoidShipmentResponse.Status.Description
  • The operation is irreversible once completed