Skip to main content

Set Source

POST 

/api/walmart/:integrationInstance/wfs/inbound-shipments/:shipment/source

Set (or confirm) the definitive source of an inbound shipment — a warehouse OR a supplier (exactly one). Used to resolve an imported inbound, confirm an auto-matched one, or re-point an existing one. Unwinds any document already materialized against the old source (throws/blocks if it has already shipped), drops the prior source reservation, marks the link confirmed, and re-reserves against the new warehouse (a no-op when supplier-sourced or when there are no SKU intent lines).

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Authentication: Requires Bearer token.

Fields:

  • source_warehouse_id (integer, required without source_supplier_id, prohibits source_supplier_id, exists:warehouses,id): the source warehouse.
  • source_supplier_id (integer, required without source_warehouse_id, exists:suppliers,id): the source supplier. Provide exactly one — supplying source_warehouse_id together with source_supplier_id is rejected.

Response: the updated shipment (single Walmart WFS inbound shipment object). Returns 404 when the shipment does not belong to the instance.

Request

Responses

OK

Response Headers
    Content-Type