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.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Validation:
receipt_ids— required, array, min:1receipt_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_confirmationsentry 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
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.