Skip to main content

Void Label Batch Labels

POST 

/api/shipping-label-batches/:shippingLabelBatch/void

Voids the bought labels of item_ids with their providers, one item at a time. results[] says what happened to each: status voided, void_pending (the provider accepted the void and the refund settles later) or, with error: true, the item's unchanged status and the provider's message. A voided label's shipment is removed from its fulfillment order, which can then go in another batch. voided and errors count the outcomes and batch is the updated batch (as Get Label Batch).

Required scope: orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Body:

  • item_ids (required, array of item IDs, 1-500).

200 when at least one label was voided (some may still have errors); 422 when none could be voided. 409 while a rate or buy job holds the batch.

Requires the orders write scope and the fulfillment_orders.index and fulfillment_orders.ship permissions.

Request​

Responses​

OK

Response Headers
    Content-Type