Skip to main content

Preview Location Transfer

POST 

/api/v2/location-transfers/preview

What a bin-to-bin move would change, before it is made. Writes nothing. Needs the inventory.transfer permission and Warehouse Locations enabled on the warehouse.

Required scope: warehouses:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Body

  • warehouse_id (required, integer): the warehouse both bins are in
  • lines (required, array, 1 to 100): product_id, from_warehouse_location_id, to_warehouse_location_id (different from the from bin), quantity (> 0)
  • reason (optional): put_away, relocation or replenishment; default relocation. Does not affect the result.

Response

  • changes_available: false when every unit moves between bins of the same kind (both sellable, or both non-sellable)
  • products[]: one row per product, with its lines added up
    • available_before / available_after: Available at the warehouse. Units in a non-sellable bin are left out of Available.
    • allocated: units of the warehouse's stock already allocated to orders
    • channels[]: one row per merchant-fulfilled listing whose stock SKU.io sets, for the product (is_set: false) and for up to 10 bundles that use it (is_set: true). before and after include the channel's buffer, minimum and maximum rules and its reserved stock. Both are null on a channel that works out its own quantity (Storefront, Magento 2). will_update is false while the channel's outbound inventory sync is off. Channels that do not sell from the warehouse are left out. channel_location is set only on a channel with several stock locations. Handling-time caps are not included.
    • sets_not_shown: bundles beyond the 10 listed; channels_worked_out: false when the move has more than 40 products, so this one's channels were not worked out

A move that the create endpoint would reject (a bin in another warehouse, a deprecated destination) is rejected here with the same 422. Bin balances are not checked.

Request​

Responses​

OK

Response Headers
    Content-Type