Skip to main content

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.

Required scope: warehouses:write

Grant 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​

OK

Response Headers
    Content-Type