Shipping APIs
/Batch Shipment APIs
//
Void Batch Shipping Label...
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
- Cancelation must occur before the shipment is picked up or processed by the carrier.
- Refunds are only applicable for unused labels. Voiding a used label may result in penalties or billing.
- Refunds are subject to the policies of the applicable carrier.
- Refund requests must be submitted within 30 days from the date the label was printed.
- USPS may take up to 30 days to process the refund.
- The refund status can be tracked on the History page.
- Approved refunds will be credited back to the USPS postage balance.
- The label status will change to
Refundedonce the refund is processed. - For unused post-paid labels, you must void them. Voiding avoids billing for the label and allows the carrier to maintain an accurate count for pickups.
- Always destroy voided labels to prevent accidental use. If a voided label is shipped, you will be billed for the label.
- Once a refund has been claimed, you cannot use the shipping label for sending packages. It will be rejected.
- Submitting false or fraudulent refund claims is a federal offense, punishable by fines or imprisonment.
Security
bearerAuth
This is the request body for cancelling the selected shipments or entire Batch of shipments*.
Indicates the name of the Batch, i.e., a list of shipments, which need to be cancelled.
Example:"batchTest"
- Shipment ID is a unique identifier for an individual shipment. If ShipmentID(s) are passed in the array, then corresponding shipments will be cancelled. If ShipmentID(s) is/are not provided, then the entire shipments of the Batch will be cancelled.
Example:
[ "USPS09998889999038" ]
- Sandbox Serverhttps://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/shipments/batch/{batchId}/void
- Production Server (uses live data)https://api.sendpro360.pitneybowes.com/shipping/api/v1/shipments/batch/{batchId}/void
- Sandbox Server for Canadahttps://api-ppd.shipping360.pitneybowes.com/ca/shipping/api/v1/shipments/batch/{batchId}/void
- Production Server for Canadahttps://api.shipping360.pitneybowes.com/ca/shipping/api/v1/shipments/batch/{batchId}/void
curl -i -X POST \
'https://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/shipments/batch/{batchId}/void' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-PB-Developer-Partner-ID: string' \
-d '{
"name": "batchTest",
"reason": "Not processing due to rating issue.",
"shipmentIds": [
"USPS09998889999038"
]
}'The indicated shipment(s) of Batch have been successfully cancelled.
Response
{ "batchID": "p1B9VZYVp5V", "status": "RATE_VALIDATION_FAILED" }