Skip to main content

Undo All Receipts for Removal Order

DELETE 

/api/amazon/:integrationInstance/removal-orders/:orderId/undo-all-receipts

Undo every receipt across all shipments for a single Amazon removal order. The endpoint verifies that at least one shipment exists for the given order_id and integration instance, otherwise returns 404.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Voiding hard-allocated labels (void_confirmations): When this removal would consume stock that is hard-allocated to a fulfillment (a printed shipping label), include a void_confirmations array in the request body — one entry per fulfillment you authorize voiding: { "fulfillment_id": <int>, "attempt_void": true, "reason": <string|null> }. Each confirmed label is voided first so the removal can proceed. Omit void_confirmations (or leave out a fulfillment that is in the way) and the request is rejected with 422 when hard-allocated stock blocks the operation. Call the matching preview-impact endpoint first to see exactly which fulfillments block it.

The request is also rejected with 422 when the stock is committed to another in-flight process (a warehouse transfer or an FBA inbound plan): cancel or adjust that transfer/plan first.

If the received units have already been sold or consumed with no live reservation to release, the reversal fails with a server error (not a 422) — a data anomaly worth investigating rather than a routine rejection.

Request

Responses

OK

Response Headers
    Content-Type