Close Inbound Shipment
POST/api/walmart/:integrationInstance/wfs/inbound-shipments/:shipment/close
Close a shipment whose goods left a warehouse, that Walmart stopped listing and does not answer for, and write its value off to Receiving Discrepancies as Walmart's own close does. Offered only when offers_close is true and close_blocked_reason is null: SKU.io asks Walmart by ID for 120 days first, and Walmart must have gone a day without answering. A refusal or an error from Walmart is not an answer and closes nothing.
warehouses:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
This writes off stock value. Walmart is asked once more; when it answers with the shipment, its answer is saved, nothing is closed and the call returns 422. Walmart's status stays as last reported. If Walmart reports the shipment later, its counts are recorded and nothing is shipped, closed or written off again.
Body:
- confirmed_amount (number, required, min 0): the amount from Write-off Preview. When the amount that would post differs, nothing changes and the 422 carries
write_off_amount, the real one.
Refused with 422 while the books are locked through today, or when no account is mapped for Receiving Discrepancies. Calling it again once done changes nothing and returns 200.
Authentication: Requires Bearer token.
Requires the warehouse_transfers.receive permission, as every transfer write-off does.
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
Response Headers
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Content
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.