Preview WFS Inbound Shipment
POST/api/walmart/:integrationInstance/wfs/inbound-shipments/preview
Preview an inbound order before creating it — returns Walmart's destination fulfillment-center placement plus estimated transfer charges, without persisting anything. Takes the SAME request body as Create WFS Inbound Shipment.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Request body:
- source_warehouse_id (integer) — the warehouse the stock ships from. Required unless source_supplier_id is given.
- source_supplier_id (integer) — the supplier the stock ships from. Required unless source_warehouse_id is given. Send exactly one of the two.
- items (required, array, min 1) — each: { sku (required string), quantity (required integer >= 1) }.
- expected_delivery_date (optional, date Y-m-d, today or later).
Validation errors return 422; a Walmart-side rejection also returns 422 with the failure reason. Requires a Bearer token.
Accepts the same body as Create WFS Inbound Shipment, including the per-item packing_type / units_per_case / prep_services fields (see that endpoint for field semantics).
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.