Write-off Preview
GET/api/walmart/:integrationInstance/wfs/inbound-shipments/:shipment/write-off-preview
What closing or restoring this shipment by hand would write off, to show before confirming. Changes nothing. For a finished shipment with no saved contents it reads them from Walmart.
warehouses:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Returns data: null when neither is offered. Otherwise:
- kind:
closed_by_seller(Close Inbound Shipment) orrestored_finished(Restore Finished Inbound Shipment). - units, amount, currency, source_name.
- posts_on (date): the day the journals would carry, in the account's time zone.
- blocked_reason: why it cannot be done now, or null.
- note: what the amount leaves out, or null (goods sent before the books open, or with no cost).
Authentication: Requires Bearer token.
Requires the warehouse_transfers.receive permission.
Request
Responses
- 200
- 401
- 403
- 404
- 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.
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.