Inventory > Inventory Locations > inventoryLocationsRelocate
Commerce APIInventoryInventory LocationsinventoryLocationsRelocate
inventoryLocationsRelocate
POST:inventory_locations/relocate.json

Description

Relocate inventory location inventory to another inventory location.

Permission bit: "inventory_locations.relocate"

Topic: Inventory Locations

Arguments

data: InventoryLocationRelocate!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

from_inventory_location_id: String!

Inventory location id to relocate inventory from. See also: Unique Identifiers

Example: "il_EQzGqWoY"

Valid when: from_inventory_location_id is not empty

Valid when: from_inventory_location_id matches regexp pattern: ^il_


to_inventory_location_id: String!

Inventory location id to relocate inventory to. See also: Unique Identifiers

Example: "il_EQzGqWoY"

Valid when: to_inventory_location_id is not empty

Valid when: to_inventory_location_id matches regexp pattern: ^il_


Result

ForeignShardedTask

Preview (typescript)

Loading module