Skip to main content
object

Requires read_locations access scope, read_inventory access scope or read_markets_home access scope.

Represents the location where the physical good resides. You can stock inventory at active locations. Active locations that have fulfills_online_orders: true and are configured with a shipping rate, pickup enabled or local delivery will be able to sell from their storefront.

Anchor to Fields and connectionsFields and connections

Boolean!non-null

Whether the location can be reactivated. If false, then trying to activate the location with the LocationActivate mutation will return an error that describes why the location can't be activated.

LocationAddress!non-null

The address of this location.

Boolean!non-null

Whether the location address has been verified.

DateTime!non-null

The date and time (ISO 8601 format) that the location was added to a shop.

Boolean!non-null

Whether this location can be deactivated. If true, then the location can be deactivated by calling the LocationDeactivate mutation. If false, then calling the mutation to deactivate it will return an error that describes why the location can't be deactivated.

String

The date and time (ISO 8601 format) that the location was deactivated at. For example, 3:30 pm on September 7, 2019 in the time zone of UTC (Universal Time Coordinated) is represented as "2019-09-07T15:50:00Z".

Boolean!non-null

Whether this location can be deleted.

FulfillmentService

Name of the service provider that fulfills from this location.

Anchor to fulfillsOnlineOrdersfulfillsOnlineOrders
Boolean!non-null

Whether this location can fulfill online orders.

Boolean!non-null

Whether this location has active inventory.

Anchor to hasUnfulfilledOrdershasUnfulfilledOrders
Boolean!non-null

Whether this location has orders that need to be fulfilled.

ID!non-null

A globally-unique ID.

InventoryLevel

The quantities of an inventory item at this location.

InventoryLevelConnection!non-null

A list of the quantities of the inventory items that can be stocked at this location.

Boolean!non-null

Whether the location is active. A deactivated location can be activated (change isActive: true) if it has activatable set to true by calling the locationActivate mutation.

Anchor to isFulfillmentServiceisFulfillmentService
Boolean!non-null

Whether this location is a fulfillment service.

UnsignedInt64!non-null

The ID of the corresponding resource in the REST Admin API.

Anchor to localPickupSettingsV2localPickupSettingsV2
DeliveryLocalPickupSettings

Local pickup settings for the location.

Metafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

MetafieldConnection!non-null

A list of custom fields that a merchant associates with a Shopify resource.

String!non-null

The name of the location.

Boolean!non-null

Whether this location is used for calculating shipping rates. In multi-origin shipping mode, this flag is ignored.

[LocationSuggestedAddress!]!non-null

List of suggested addresses for this location (empty if none).

DateTime!non-null

The date and time (ISO 8601 format) when the location was last updated.

Deprecated fields and connections

Boolean!non-nullDeprecated
Anchor to metafieldDefinitionsmetafieldDefinitions
MetafieldDefinitionConnection!non-nullDeprecated
PrivateMetafieldDeprecated
PrivateMetafieldConnection!non-nullDeprecated

Was this section helpful?

query

Returns an inventory Location resource by ID.

query

Returns a list of active inventory locations.

query

Returns a list of all origin locations available for a delivery profile.


Was this section helpful?

mutation

Activates a location so that you can stock inventory at the location. Refer to the isActive and activatable fields on the Location object.

Arguments

ID!required

The ID of a location to activate.


Fields

Location

The location that was activated.

Anchor to locationActivateUserErrorslocationActivateUserErrors
[LocationActivateUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Adds a new location.

Arguments

LocationAddInput!required

The properties of the location to add.


Fields

Location

The location that was added.

[LocationAddUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Deactivates a location and moves inventory, pending orders, and moving transfers to a destination location.

Arguments

Anchor to destinationLocationIddestinationLocationId
ID

The ID of a destination location to which inventory, pending orders and moving transfers will be moved from the location to deactivate.

ID!required

The ID of a location to deactivate.


Fields

Location

The location that was deactivated.

Anchor to locationDeactivateUserErrorslocationDeactivateUserErrors
[LocationDeactivateUserError!]!non-null

The list of errors that occurred from executing the mutation.

mutation

Edits an existing location.

As of the 2023-10 API version, apps can change the name and address of their fulfillment service locations.

Arguments

ID!required

The ID of a location to edit.

LocationEditInput!required

The updated properties for the location.


Fields

Location

The location that was edited.

[LocationEditUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

OSZAR »