Inventory > Inventory Locations > inventoryLocationsCreate
Commerce APIInventoryInventory LocationsinventoryLocationsCreate
inventoryLocationsCreate
POST:inventory_locations.json

Description

Create one or multiple inventory locations.

Permission bit: "inventory_locations.create"

Topic: Inventory Locations

Arguments

data: [InventoryLocationCreate!]!

Main argument for mutations.


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