Skip to content

Shippo - Cancel Shipment

This module requests a refund or cancellation of a shipping label in Shippo. It receives the transaction ID (obtained when creating the shipment) and makes a POST request to the /refunds/ endpoint with the associated transaction. It returns the refund ID, status, and the original transaction ID.

ParameterTypeRequiredDescription
credentials_idcredentialsYesShippo credential (provider: shippo)
transaction_idtextYesTransaction ID obtained when creating the shipment

A shippo type credential is required with the following fields:

  • api_token: Shippo API Token
{
"success": true,
"refund_id": "rfnd_abc123",
"status": "QUEUED",
"transaction_id": "txn_abc123",
"message": "Reembolso solicitado: QUEUED"
}
{
"credentials_id": "mi_credencial_shippo",
"transaction_id": "txn_abc123"
}
  • The refund can have statuses: QUEUED, PENDING, SUCCESS, ERROR
  • USPS refunds are generally processed automatically
  • Processing time depends on the carrier
  • Only labels that have not been scanned can be refunded
  • The transaction_id (not the shipment_id) is used to request the refund