Skip to content

SevenSenders - Cancel Shipment

This module cancels a previously created shipment in SevenSenders. It receives the shipment ID and makes a DELETE request to the /shipments/{shipment_id} endpoint. If the cancellation is successful, it returns the shipment ID and the updated status.

ParameterTypeRequiredDescription
credentials_idcredentialsYesSevenSenders credential (provider: sevensenders)
shipment_idtextYesShipment ID to cancel

A sevensenders type credential is required with the following fields:

  • api_key: SevenSenders API Key
{
"success": true,
"shipment_id": "ss-12345",
"status": "cancelled",
"message": "Envio cancelado exitosamente: ss-12345"
}
{
"credentials_id": "mi_credencial_sevensenders",
"shipment_id": "ss-12345"
}
  • Only shipments that have not yet been picked up by the carrier can be canceled
  • The operation is irreversible
  • The status may come from result.status or result.data.status
  • SevenSenders - Create Shipment (sevensendersCreateShipment)
  • SevenSenders - Get Carriers (sevensendersGetCarriers)
  • SevenSenders - Track Shipment (sevensendersGetTracking)
  • SevenSenders - Get Labels (sevensendersGetLabels)