This operation cancels (voids) shipments which are created using the Batch API operation createBulkShipments
.
If user wants to cancel specific shipment(s) of the Batch, then s/he needs to pass the Shipment ID for the selected shipments in the shipmentIDs
array.
While if user wants to cancel all shipments of the Batch, then s/he does not need to provide any Shipment ID in the array under request body.
Key Considerations
Refunded
once the refund is processed. This is the request body for cancelling the selected shipments or entire Batch of shipments*.
The indicated shipment(s) of Batch have been successfully cancelled.
Invalid request.
The request could not be authorized.
The requested resource was not found.
The request could not be completed due to an internal server error.
{- "name": "batchTest",
- "reason": "Not processing due to rating issue.",
- "shipmentIds": [
- "USPS09998889999038"
]
}
{- "batchID": "p1B9VZYVp5V",
- "status": "RATE_VALIDATION_FAILED"
}