Skip to main content

Bulk Remove Receipts

POST 

/api/amazon/:integrationInstance/removal-shipments/bulk-remove-receipts

Remove multiple receipts (inventory_adjustments rows) by ID for the given integration instance. Useful when undoing a batch of receipts at once.

Authorization

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

Validation:

  • receipt_ids — required, array, min:1
  • receipt_ids.* — integer, exists:inventory_adjustments,id

Returns 422 when the receipt cannot be reversed:

  • it would consume stock hard-allocated to a shipment whose label cannot be voided (void it at the carrier first, or supply a void_confirmations entry to void it as part of the request), or
  • it would consume stock 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