Inventory > Inventory Locations > inventoryLocationsModify
Commerce APIInventoryInventory LocationsinventoryLocationsModify
inventoryLocationsModify
POST:inventory_locations.json

Description

Modify one or multiple inventory locations.

Permission bit: "inventory_locations.modify"

Topic: Inventory Locations

Arguments

data: [InventoryLocationModify!]!

Main argument for mutations.


ids: [String!]!

List of inventory location ids. See also: Unique Identifiers

Example: ["il_EQzGqWoY"]


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

address: AddressCreate

Address of the inventory location (warehouse)


customer_collection: Boolean

Whether customer collection is allowed or not

Example: false


enabled: Boolean

Whether inventory location is enabled or not

Example: true


hours: [InventoryLocationHourCreate!]


lead_time_hours_max: Int

The maximum amount of time the inventory location will take to fulfill the order

Example: 5

Valid when: lead_time_hours_max is a non-negative integer


lead_time_hours_min: Int

The minimum amount of time the inventory location will take to fulfill the order

Example: 2

Valid when: lead_time_hours_min is a non-negative integer


name: String

Name of the inventory location

Example: "Asia Warehouse"

Valid when: name is not empty

Valid when: name's length doesn't exceed 250 characters


special_hours: [InventoryLocationSpecialHoursCreate!]


Result

[InventoryLocation!]

Preview (typescript)

Loading module