Shop
Represents a collection of general settings and information about the shop.
Anchor to FieldsFields
- Anchor to accountOwneraccount•Staff
Owner Member! non-null Account owner information.
- Anchor to alertsalerts•[Shop
Alert!]! non-null A list of the shop's active alert messages that appear in the Shopify admin.
- Anchor to allProductCategoriesListall•[Taxonomy
Product Categories List Category!]! non-null A list of the shop's product categories. Limit: 1000 product categories.
- Anchor to appTrialEligibleapp•Boolean!
Trial Eligible non-null Whether the shop is eligible for app trials offered by third-party apps.
- Anchor to availableChannelAppsavailable•App
Channel Apps Connection! non-null The list of sales channels not currently installed on the shop.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to channelDefinitionsForInstalledChannelschannel•[Available
Definitions For Installed Channels Channel Definitions By Channel!]! non-null List of all channel definitions associated with a shop.
- Anchor to checkoutApiSupportedcheckout•Boolean!
Api Supported non-null Specifies whether the shop supports checkouts via Checkout API.
- Anchor to contactEmailcontact•String!
Email non-null The public-facing contact email address for the shop. Customers will use this email to communicate with the shop owner.
- Anchor to countriesInShippingZonescountries•Countries
In Shipping Zones In Shipping Zones! non-null Countries that have been defined in shipping zones for the shop.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time when the shop was created.
- Anchor to currencyCodecurrency•Currency
Code Code! non-null The three letter code for the currency that the shop sells in.
- Anchor to currencyFormatscurrency•Currency
Formats Formats! non-null How currencies are displayed on your store.
- Anchor to currencySettingscurrency•Currency
Settings Setting Connection! non-null The presentment currency settings for the shop excluding the shop's own currency.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to customerAccountscustomer•Shop
Accounts Customer Accounts Setting! non-null Whether customer accounts are required, optional, or disabled for the shop.
- Anchor to customerAccountsV2customer•Customer
Accounts V2 Accounts V2! non-null Information about the shop's customer accounts.
- Anchor to customerTagscustomer•String
Tags Connection! non-null A list of tags that have been added to customer accounts.
- Anchor to firstfirst•Int!required
The first
nelements from the paginated list.
Arguments
- Anchor to descriptiondescription•String
The shop's meta description used in search engine results.
- Anchor to domainsPaginateddomains•Domain
Paginated Connection! non-null The domains configured for the shop.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
Arguments
- Anchor to draftOrderTagsdraft•String
Order Tags Connection! non-null A list of tags that have been added to draft orders.
- Anchor to firstfirst•Int!required
The first
nelements from the paginated list.
Arguments
- Anchor to emailemail•String!non-null
The shop owner's email address. Shopify will use this email address to communicate with the shop owner.
- Anchor to emailSenderConfigurationemail•Email
Sender Configuration Sender Configuration! non-null The configuration for the shop email sender.
- Anchor to enabledPresentmentCurrenciesenabled•[Currency
Presentment Currencies Code!]! non-null The presentment currencies enabled for the shop.
- Anchor to entitlementsentitlements•Entitlements
Type! non-null The entitlements for a shop.
- Anchor to featuresfeatures•Shop
Features! non-null The set of features enabled for the shop.
- Anchor to fulfillmentServicesfulfillment•[Fulfillment
Services Service!]! non-null List of the shop's installed fulfillment services.
- Anchor to ianaTimezoneiana•String!
Timezone non-null The shop's time zone as defined by the IANA.
- •ID!non-null
A globally-unique ID.
- Anchor to marketingSmsConsentEnabledAtCheckoutmarketing•Boolean!
Sms Consent Enabled At Checkout non-null Whether SMS marketing has been enabled on the shop's checkout configuration settings.
- Anchor to merchantApprovalSignalsmerchant•Merchant
Approval Signals Approval Signals The approval signals for a shop to support onboarding to channel apps.
- Anchor to merchantAppSignalsmerchant•Merchant
App Signals App Signals Merchant signals for apps.
- Anchor to metafieldmetafield•Metafield
A custom field, including its
namespaceandkey, that's associated with a Shopify resource for the purposes of adding and storing additional information.- Anchor to namespacenamespace•String
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
- •String!required
The key for the metafield.
Arguments
- Anchor to metafieldsmetafields•Metafield
Connection! non-null A list of custom fields that a merchant associates with a Shopify resource.
- Anchor to namespacenamespace•String
The metafield namespace to filter by. If omitted, the app-reserved namespace will be used.
- Anchor to keyskeys•[String!]
List of keys of metafields in the format
namespace.key, will be returned in the same format.- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to metafieldsByIdentifiersmetafields•[Metafield]!
By Identifiers non-null The metafields associated with the resource matching the supplied list of namespaces and keys.
- Anchor to identifiersidentifiers•[Has
Metafields Identifier!]! required The list of metafields to retrieve by namespace and key.
Arguments
- Anchor to myshopifyDomainmyshopify•String!
Domain non-null The shop's .myshopify.com domain name.
- Anchor to namename•String!non-null
The shop's name.
- •[Navigation
Item!]! non-null The shop's settings related to navigation.
- Anchor to orderNumberFormatPrefixorder•String!
Number Format Prefix non-null The prefix that appears before order numbers.
- Anchor to orderNumberFormatSuffixorder•String!
Number Format Suffix non-null The suffix that appears after order numbers.
- Anchor to orderTagsorder•String
Tags Connection! non-null A list of tags that have been added to orders.
- Anchor to firstfirst•Int!required
The first
nelements from the paginated list.- Anchor to sortsort•Shop
Tag Sort Default:ALPHABETICAL Sort type.
Arguments
- Anchor to paymentSettingspayment•Payment
Settings Settings! non-null The shop's settings related to payments.
- Anchor to planplan•Shop
Plan! non-null The shop's billing plan.
- Anchor to primaryDomainprimary•Domain!
Domain non-null The primary domain of the shop's online store.
- Anchor to resourceLimitsresource•Shop
Limits Resource Limits! non-null The shop's limits for specific resources. For example, the maximum number ofvariants allowed per product, or the maximum number of locations allowed.
- Anchor to richTextEditorUrlrich•URL!
Text Editor Url non-null The URL of the rich text editor that can be used for mobile devices.
- Anchor to searchsearch•Search
Result Connection! non-null Fetches a list of admin search results by a specified query.
- Anchor to queryquery•String!required
The search query to filter by.
- Anchor to typestypes•[Search
Result Type!] The search result types to filter by.
- Anchor to firstfirst•Int!required
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
Arguments
- Anchor to searchFilterssearch•Search
Filters Filter Options! non-null The list of search filter options for the shop. These can be used to filter productvisibility for the shop.
- Anchor to setupRequiredsetup•Boolean!
Required non-null Whether the shop has outstanding setup steps.
- Anchor to shipsToCountriesships•[Country
To Countries Code!]! non-null The list of countries that the shop ships to.
- Anchor to shopAddressshop•Shop
Address Address! non-null The shop's address information as it will appear to buyers.
- Anchor to shopOwnerNameshop•String!
Owner Name non-null The name of the shop owner.
- Anchor to shopPoliciesshop•[Shop
Policies Policy!]! non-null The list of all legal policies associated with a shop.
- Anchor to storefrontAccessTokensstorefront•Storefront
Access Tokens Access Token Connection! non-null The storefront access token of a private application. These are scoped per-application.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to taxesIncludedtaxes•Boolean!
Included non-null Whether applicable taxes are included in the shop's product prices.
- Anchor to taxShippingtax•Boolean!
Shipping non-null Whether the shop charges taxes for shipping.
- Anchor to timezoneAbbreviationtimezone•String!
Abbreviation non-null The shop's time zone abbreviation.
- Anchor to timezoneOffsettimezone•String!
Offset non-null The shop's time zone offset.
- Anchor to timezoneOffsetMinutestimezone•Int!
Offset Minutes non-null The shop's time zone offset expressed as a number of minutes.
- Anchor to transactionalSmsDisabledtransactional•Boolean!
Sms Disabled non-null Whether transactional SMS sent by Shopify have been disabled for a shop.
- Anchor to translationstranslations•[Translation!]!non-null
The published translations associated with the resource.
- Anchor to localelocale•String!required
Filters translations locale.
- Anchor to marketIdmarket•ID
Id Filters translations by market ID. Use this argument to retrieve content specific to a market.
Arguments
- Anchor to unitSystemunit•Unit
System System! non-null The shop's unit system for weights and measures.
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time when the shop was last updated.
- •URL!non-null
The URL of the shop's online store.
- Anchor to weightUnitweight•Weight
Unit Unit! non-null The shop's primary unit of weight for products and shipping.
Deprecated fields
- Anchor to allProductCategoriesall•[Product
Product Categories Category!]! non-nullDeprecated - Anchor to analyticsTokenanalytics•String!
Token non-nullDeprecated - Anchor to assignedFulfillmentOrdersassigned•Fulfillment
Fulfillment Orders Order Connection! non-nullDeprecated - Anchor to assignmentStatusassignment•Fulfillment
Status Order Assignment Status The assigment status of the fulfillment orders that should be returned. If
argument is not provided, then the query will return all assigned fulfillment orders, except those that have thestatus.- Anchor to locationIdslocation•[ID!]
Ids Returns fulfillment orders only for certain locations, specified by a list of location IDs.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Fulfillment
Key Order Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
Arguments
- Anchor to billingAddressbilling•Shop
Address Address! non-nullDeprecated - Anchor to channelschannels•Channel
Connection! non-nullDeprecated - Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to collectionscollections•Collection
Connection! non-nullDeprecated - Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Collection
Key Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
- Anchor to default•string
Filter by a case-insensitive search of multiple fields in a document.
query=Bob Normanquery=title:green hoodie- Anchor to collection_type•string
customsmart- Anchor to handle•string
- Anchor to product_id•id
Filter by collections containing a product by its ID.
- Anchor to product_publication_status•string
Filter by the publication status of the resource on a channel, such as the online store. The value is a composite of the channel
appID (Channel.app.id) and one of the valid values.approvedrejectedneeds_actionawaiting_reviewpublisheddemotedscheduledprovisionally_publishedproduct_publication_status:189769876-approved- Anchor to publishable_status•string
Filter by the publishable status of the resource on a channel, such as the online store. The value is a composite of either the channel
appID (Channel.app.id) or channelnameand one of the valid values.online_store_channelpublishedunpublishedvisibleunavailablehiddenintendedvisiblepublishable_status:publishedpublishable_status:189769876-visiblepublishable_status:pos-hidden- Anchor to published_at•time
Filter by the date and time when the collection was published to the Online Store.
- Anchor to published_status•string
Filter by the published status of the resource on a channel, such as the online store.
unsetpendingapprovednot approvedpublished_status:approved- Anchor to title•string
- Anchor to updated_at•time
Example:
Valid values:
Valid values:
Example:
Valid values:
Example:
Valid values:
Example:
- Anchor to savedSearchIdsaved•ID
Search Id The ID of a saved search. The search’s query string is used as the query argument.
Arguments
- Anchor to customerscustomers•Customer
Connection! non-nullDeprecated - Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Customer
Key Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
- Anchor to default•string
Filter by a case-insensitive search of multiple fields in a document.
query=Bob Normanquery=title:green hoodie- Anchor to accepts_marketing•boolean
Filter by whether a customer has consented to receive marketing material.
accepts_marketing:true- Anchor to country•string
Filter by the country associated with the customer's address. Use either the country name or the two-letter country code.
country:Canadacountry:JP- Anchor to customer_date•time
customer_date:'2024-03-15T14:30:00Z'customer_date: >='2024-01-01'- Anchor to email•string
The customer's email address, used to communicate information about orders and for the purposes of email marketing campaigns. You can use a wildcard value to filter the query by customers who have an email address specified. Please note that email is a tokenized field: To retrieve exact matches, quote the email address (phrase query) as described in Shopify API search syntax.
email:gmail.comemail:"bo.wang@example.com"email:*- Anchor to last_abandoned_order_date•time
Filter by the date and time of the customer's most recent abandoned checkout. An abandoned checkout occurs when a customer adds items to their cart, begins the checkout process, but leaves the site without completing their purchase.
last_abandoned_order_date:'2024-04-01T10:00:00Z'last_abandoned_order_date: >='2024-01-01'- Anchor to order_date•time
Filter by the date and time that the order was placed by the customer. Use this query filter to check if a customer has placed at least one order within a specified date range.
order_date:'2024-02-20T00:00:00Z'order_date: >='2024-01-01'order_date:'2024-01-01..2024-03-31'- Anchor to orders_count•integer
Filter by the total number of orders a customer has placed.
orders_count:5- Anchor to phone•string
The phone number of the customer, used to communicate information about orders and for the purposes of SMS marketing campaigns. You can use a wildcard value to filter the query by customers who have a phone number specified.
phone:+18005550100phone:*- Anchor to state•string
Filter by the state of the customer's account with the shop. This filter is only valid when Classic Customer Accounts is active.
state:ENABLEDstate:INVITEDstate:DISABLEDstate:DECLINED- Anchor to tag•string
Filter by the tags that are associated with the customer. This query parameter accepts multiple tags separated by commas.
tag:'VIP'tag:'Wholesale,Repeat'- Anchor to tag_not•string
Filter by the tags that aren't associated with the customer. This query parameter accepts multiple tags separated by commas.
tag_not:'Prospect'tag_not:'Test,Internal'- Anchor to total_spent•float
Filter by the total amount of money a customer has spent across all orders.
total_spent:100.50total_spent:50.00total_spent:>100.50total_spent:>50.00- Anchor to updated_at•time
The date and time, matching a whole day, when the customer's information was last updated.
updated_at:2024-01-01T00:00:00Zupdated_at:<nowupdated_at:<=2024
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Arguments
- Anchor to domainsdomains•[Domain!]!non-nullDeprecated
- Anchor to fulfillmentOrdersfulfillment•Fulfillment
Orders Order Connection! non-nullDeprecated - Anchor to includeClosedinclude•Boolean
Closed Default:false Whether to include closed fulfillment orders.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Fulfillment
Key Order Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
Arguments
- Anchor to inventoryItemsinventory•Inventory
Items Item Connection! non-nullDeprecated - Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
Arguments
- Anchor to limitedPendingOrderCountlimited•Limited
Pending Order Count Pending Order Count! non-nullDeprecated - Anchor to locationslocations•Location
Connection! non-nullDeprecated - Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Location
Key Sort Keys Default:NAME Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
- Anchor to default•string
Filter by a case-insensitive search of multiple fields in a document.
query=Bob Normanquery=title:green hoodie- Anchor to active•string
- Anchor to address1•string
- Anchor to address2•string
- Anchor to city•string
- Anchor to country•string
- Anchor to created_at•time
- Anchor to geolocated•boolean
- Anchor to legacy•boolean
- Anchor to location_id•id
- Anchor to name•string
- Anchor to pickup_in_store•string
enableddisabled- Anchor to province•string
- Anchor to zip•string
Example:
Valid values:
- Anchor to includeLegacyinclude•Boolean
Legacy Default:false Whether to include the legacy locations of fulfillment services.
- Anchor to includeInactiveinclude•Boolean
Inactive Default:false Whether to include the locations that are deactivated.
Arguments
- Anchor to metafieldDefinitionsmetafield•Metafield
Definitions Definition Connection! non-nullDeprecated - Anchor to namespacenamespace•String
Filter metafield definitions by namespace.
- Anchor to pinnedStatuspinned•Metafield
Status Definition Pinned Status Default:ANY Filter by the definition's pinned status.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Metafield
Key Definition Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
- Anchor to default•string
Filter by a case-insensitive search of multiple fields in a document.
query=Bob Normanquery=title:green hoodie- Anchor to created_at•time
Filter by the date and time when the metafield definition was created.
created_at:>2020-10-21T23:39:20Zcreated_at:<nowcreated_at:<=2024- Anchor to namespace•string
Filter by the metafield definition
namespacefield.namespace:some-namespace- Anchor to type•string
Filter by the metafield definition
typefield.type:single_line_text_field- Anchor to updated_at•time
Filter by the date and time when the metafield definition was last updated.
updated_at:>2020-10-21T23:39:20Zupdated_at:<nowupdated_at:<=2024
Example:
Example:
Example:
Example:
Example:
Arguments
- Anchor to ordersorders•Order
Connection! non-nullDeprecated - Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Order
Key Sort Keys Default:PROCESSED_AT Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
- Anchor to default•string
Filter by a case-insensitive search of multiple fields in a document.
query=Bob Normanquery=title:green hoodie- Anchor to cart_token•string
Filter by the cart token's unique value to track abandoned cart conversions or troubleshoot checkout issues. The token references the cart that's associated with an order.
cart_token:abc123- Anchor to channel•string
Filter by the channel information
handle() field.channel:webchannel:web,pos- Anchor to chargeback_status•string
Filter by the order's chargeback status. A chargeback occurs when a customer questions the legitimacy of a charge with their financial institution.
acceptedcharge_refundedlostneeds_responseunder_reviewwonchargeback_status:accepted- Anchor to checkout_token•string
Filter by the checkout token's unique value to analyze conversion funnels or resolve payment issues. The checkout token's value references the checkout that's associated with an order.
checkout_token:abc123- Anchor to confirmation_number•string
Filter by the randomly generated alpha-numeric identifier for an order that can be displayed to the customer instead of the sequential order name. This value isn't guaranteed to be unique.
confirmation_number:ABC123- Anchor to created_at•time
Filter by the date and time when the order was created in Shopify's system.
created_at:2020-10-21T23:39:20Zcreated_at:<nowcreated_at:<=2024- Anchor to credit_card_last4•string
Filter by the last four digits of the payment card that was used to pay for the order. This filter matches only the last four digits of the card for heightened security.
credit_card_last4:1234- Anchor to current_total_price•float
Filter by the current total price of the order in the shop currency, including any returns/refunds/removals. This filter supports both exact values and ranges.
current_total_price:10current_total_price:>=5.00 current_total_price:<=20.99- Anchor to delivery_method•string
shippingpick-upretaillocalpickup-pointnonedelivery_method:shipping- Anchor to discount_code•string
Filter by the case-insensitive discount code that was applied to the order at checkout. Limited to the first discount code used on an order. Maximum characters: 255.
discount_code:ABC123- Anchor to email•string
Filter by the email address that's associated with the order to provide customer support or analyze purchasing patterns.
email:example@shopify.com- Anchor to financial_status•string
paidpendingauthorizedpartially_paidpartially_refundedrefundedvoidedexpiredfinancial_status:authorized- Anchor to fraud_protection_level•string
Filter by the level of fraud protection that's applied to the order. Use this filter to manage risk or handle disputes.
fully_protectedpartially_protectednot_protectedpendingnot_eligiblenot_availablefraud_protection_level:fully_protected- Anchor to fulfillment_location_id•id
Filter by the fulfillment location
id(Fulfillment.location.id) field.fulfillment_location_id:123- Anchor to fulfillment_status•string
unshippedshippedfulfilledpartialscheduledon_holdunfulfilledrequest_declinedfulfillment_status:fulfilled- Anchor to location_id•id
Filter by the location
idthat's associated with the order to view and manage orders for specific locations. For POS orders, locations must be defined in the Shopify admin under Settings > Locations. If no ID is provided, then the primary location of the shop is returned.location_id:123- Anchor to metafields.{namespace}.{key}•mixed
Filters resources by metafield value. Format:
metafields.{namespace}.{key}:{value}. Learn more about querying by metafield value.metafields.custom.on_sale:truemetafields.product.material:"gid://shopify/Metaobject/43458085"- Anchor to payment_id•string
Filter by the payment ID that's associated with the order to reconcile financial records or troubleshoot payment issues.
payment_id:abc123- Anchor to payment_provider_id•id
Filter by the ID of the payment provider that's associated with the order to manage payment methods or troubleshoot transactions.
payment_provider_id:123- Anchor to reference_location_id•id
Filter by the ID of a location that's associated with the order, such as locations from fulfillments, refunds, or the shop's primary location.
reference_location_id:123- Anchor to return_status•string
return_requestedin_progressinspection_completereturnedreturn_failedno_returnreturn_status:in_progress- Anchor to sales_channel•string
Filter by the sales channel where the order was made to analyze performance or manage fulfillment processes.
sales_channel: some_sales_channel- Anchor to shipping_address_validation_result_summary•string
Filter by the validation status of the shipping address. Learn more about validating addresses.
has_issuesno_issuesnot_validatedshipping_address_validation_result_summary:no_issues- Anchor to sku•string
Filter by the product variant
skufield. Learn more about SKUs.sku:ABC123- Anchor to source_identifier•string
Filter by the ID of the order placed on the originating platform, such as a unique POS or third-party identifier. This value doesn't correspond to the Shopify ID that's generated from a completed draft order.
source_identifier:1234-12-1000- Anchor to source_name•string
Filter by the platform where the order was placed to distinguish between web orders, POS sales, draft orders, or third-party channels. Use this filter to analyze sales performance across different ordering methods.
source_name:websource_name:shopify_draft_order- Anchor to status•string
Filter by the order's status to manage workflows or analyze the order lifecycle.
openclosedcancellednot_closedstatus:open- Anchor to subtotal_line_items_quantity•string
Filter by the total number of items across all line items in an order. This filter supports both exact values and ranges, and is useful for identifying bulk orders or analyzing purchase volume patterns.
subtotal_line_items_quantity:10subtotal_line_items_quantity:5..20- Anchor to tag_not•string
Filter by objects that don’t have the specified tag.
tag_not:my_tag- Anchor to test•boolean
Filter by test orders. Test orders are made using the Shopify Bogus Gateway or a payment provider with test mode enabled.
test:true- Anchor to total_weight•string
Filter by the order weight. This filter supports both exact values and ranges, and is to be used to filter orders by the total weight of all items (excluding packaging). It takes a unit of measurement as a suffix. It accepts the following units: g, kg, lb, oz.
total_weight:10.5kgtotal_weight:>=5g total_weight:<=20gtotal_weight:.5 lb- Anchor to updated_at•time
Filter by the date and time when the order was last updated in Shopify's system.
updated_at:2020-10-21T23:39:20Zupdated_at:<nowupdated_at:<=2024
Example:
Example:
Example:
Valid values:
Example:
Example:
Example:
Example:
Example:
Example:
Valid values:
Example:
Example:
Example:
Valid values:
Example:
Valid values:
Example:
Example:
Valid values:
Example:
Example:
Example:
Example:
Example:
Example:
Valid values:
Example:
Example:
Valid values:
Example:
Example:
Example:
Example:
Valid values:
Example:
Example:
Example:
Example:
Example:
Example:
Arguments
- Anchor to productImagesproduct•Image
Images Connection! non-nullDeprecated - Anchor to maxWidthmax•Int
Width Deprecated - Anchor to maxHeightmax•Int
Height Deprecated - Anchor to cropcrop•Crop
Region Deprecated - Anchor to scalescale•IntDeprecatedDefault:1
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Product
Key Image Sort Keys Default:CREATED_AT Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
Arguments
- Anchor to productsproducts•Product
Connection! non-nullDeprecated - Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Product
Key Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
- Anchor to default•string
Filter by a case-insensitive search of multiple fields in a document.
query=Bob Normanquery=title:green hoodie- Anchor to bundles•boolean
Filter by a product bundle. A product bundle is a set of two or more related products, which are commonly offered at a discount.
bundles:true- Anchor to category_id•string
Filter by the product category ID (
product.category.id). A product category is the category of a product from Shopify's Standard Product Taxonomy.category_id:sg-4-17-2-17- Anchor to combined_listing_role•string
Filter by the role of the product in a combined listing.
parentchildno_rolecombined_listing_role:parent- Anchor to created_at•time
Filter by the date and time when the product was created.
created_at:>'2020-10-21T23:39:20Z'created_at:<nowcreated_at:<='2024'- Anchor to delivery_profile_id•id
Filter by the delivery profile
idfield.delivery_profile_id:108179161409- Anchor to error_feedback•string
Filter by products with publishing errors.
- Anchor to handle•string
Filter by a comma-separated list of product handles.
handle:the-minimal-snowboard- Anchor to has_only_composites•boolean
Filter by products that have only composite variants.
has_only_composites:true- Anchor to has_only_default_variant•boolean
Filter by products that have only a default variant. A default variant is the only variant if no other variants are specified.
has_only_default_variant:true- Anchor to has_variant_with_components•boolean
Filter by products that have variants with associated components.
has_variant_with_components:true- Anchor to inventory_total•integer
Filter by inventory count.
inventory_total:0inventory_total:>150inventory_total:>=200- Anchor to metafields.{namespace}.{key}•mixed
Filters resources by metafield value. Format:
metafields.{namespace}.{key}:{value}. Learn more about querying by metafield value.metafields.custom.on_sale:truemetafields.product.material:"gid://shopify/Metaobject/43458085"- Anchor to out_of_stock_somewhere•boolean
Filter by products that are out of stock in at least one location.
out_of_stock_somewhere:true- Anchor to product_configuration_owner•string
Filter by the app
idfield.product_configuration_owner:10001- Anchor to product_publication_status•string
Filter by the publication status of the resource on a channel, such as the online store. The value is a composite of the channel
appID (Channel.app.id) and one of the valid values.approvedrejectedneeds_actionawaiting_reviewpublisheddemotedscheduledprovisionally_publishedproduct_publication_status:189769876-approved- Anchor to product_type•string
Filter by a comma-separated list of product types.
product_type:snowboard- Anchor to publication_ids•string
Filter by a comma-separated list of publication IDs that are associated with the product.
publication_ids:184111530305,184111694145- Anchor to publishable_status•string
Filter by the publishable status of the resource on a channel, such as the online store. The value is a composite of either the channel
appID (Channel.app.id) or channelnameand one of the valid values.online_store_channelpublishedunpublishedvisibleunavailablehiddenintendedvisiblepublishable_status:publishedpublishable_status:189769876-visiblepublishable_status:pos-hidden- Anchor to published_at•time
Filter by the date and time when the product was published to the online store and other sales channels.
published_at:>2020-10-21T23:39:20Zpublished_at:<nowpublished_at:<=2024- Anchor to published_status•string
Filter by the published status of the resource on a channel, such as the online store.
unsetpendingapprovednot approvedpublished_status:approved- Anchor to sku•string
Filter by the product variant
skufield. Learn more about SKUs.sku:XYZ-12345- Anchor to status•string
Filter by a comma-separated list of statuses. You can use statuses to manage inventory. Shopify only displays products with an
status in online stores, sales channels, and apps.activeDefaultarchiveddraftstatus:active,draft- Anchor to tag_not•string
Filter by objects that don’t have the specified tag.
tag_not:my_tag- Anchor to updated_at•time
Filter by the date and time when the product was last updated.
updated_at:>'2020-10-21T23:39:20Z'updated_at:<nowupdated_at:<='2024'- Anchor to variant_title•string
Filter by the product variant
titlefield.variant_title:'Special ski wax'- Anchor to vendor•string
Filter by the origin or source of the product. Learn more about vendors and managing vendor information.
vendor:Snowdevilvendor:Snowdevil OR vendor:Icedevil
Example:
Example:
Example:
Valid values:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Valid values:
Example:
Example:
Example:
Valid values:
Example:
Example:
Valid values:
Example:
Example:
Valid values:
Example:
Example:
Example:
Example:
Example:
- Anchor to savedSearchIdsaved•ID
Search Id The ID of a saved search. The search’s query string is used as the query argument.
Arguments
- Anchor to productTagsproduct•String
Tags Connection! non-nullDeprecated - Anchor to firstfirst•Int!required
The first
nelements from the paginated list.
Arguments
- Anchor to productTypesproduct•String
Types Connection! non-nullDeprecated - Anchor to firstfirst•Int!required
The first
nelements from the paginated list.
Arguments
- Anchor to productVariantsproduct•Product
Variants Variant Connection! non-nullDeprecated - Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Product
Key Variant Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
- Anchor to default•string
Filter by a case-insensitive search of multiple fields in a document.
query=Bob Normanquery=title:green hoodie- Anchor to collection•string
Filter by the ID of the collection that the product variant belongs to.
collection:465903092033- Anchor to delivery_profile_id•id
Filter by the product variant delivery profile ID (
).delivery_profile_id:108179161409- Anchor to exclude_composite•boolean
Filter by product variants that aren't composites.
exclude_composite:true- Anchor to exclude_variants_with_components•boolean
Filter by whether there are components that are associated with the product variants in a bundle.
exclude_variants_with_components:true- Anchor to inventory_quantity•integer
Filter by an aggregate of inventory across all locations where the product variant is stocked.
inventory_quantity:10- Anchor to location_id•id
Filter by the location ID for the product variant.
location_id:88511152449- Anchor to managed•boolean
Filter by whether there is fulfillment service tracking associated with the product variants.
managed:true- Anchor to managed_by•string
Filter by the fulfillment service that tracks the number of items in stock for the product variant.
managed_by:shopify- Anchor to option1•string
Filter by a custom property that a shop owner uses to define product variants.
option1:small- Anchor to option2•string
Filter by a custom property that a shop owner uses to define product variants.
option2:medium- Anchor to option3•string
Filter by a custom property that a shop owner uses to define product variants.
option3:large- Anchor to product_ids•string
Filter by a comma-separated list of product IDs.
product_ids:8474977763649,8474977796417- Anchor to product_publication_status•string
Filter by the publication status of the resource on a channel, such as the online store. The value is a composite of the channel
appID (Channel.app.id) and one of the valid values.approvedrejectedneeds_actionawaiting_reviewpublisheddemotedscheduledprovisionally_publishedproduct_publication_status:189769876-approved- Anchor to product_status•string
Filter by a comma-separated list of product statuses.
product_status:ACTIVE,DRAFT- Anchor to product_type•string
Filter by the product type that's associated with the product variants.
product_type:snowboard- Anchor to publishable_status•string
Filter by the publishable status of the resource on a channel, such as the online store. The value is a composite of either the channel
appID (Channel.app.id) or channelnameand one of the valid values.online_store_channelpublishedunpublishedvisibleunavailablehiddenintendedvisiblepublishable_status:publishedpublishable_status:189769876-visiblepublishable_status:pos-hidden- Anchor to published_status•string
Filter by the published status of the resource on a channel, such as the online store.
unsetpendingapprovednot approvedpublished_status:approved- Anchor to requires_components•boolean
Filter by whether the product variant can only be purchased with components. Learn more.
requires_components:true- Anchor to sku•string
Filter by the product variant
skufield. Learn more about SKUs.sku:XYZ-12345- Anchor to tag_not•string
Filter by objects that don’t have the specified tag.
tag_not:my_tag- Anchor to updated_at•time
Filter by date and time when the product variant was updated.
updated_at:>2020-10-21T23:39:20Zupdated_at:<nowupdated_at:<=2024- Anchor to vendor•string
Filter by the origin or source of the product variant. Learn more about vendors and managing vendor information.
vendor:Snowdevilvendor:Snowdevil OR vendor:Icedevil
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Example:
Valid values:
Example:
Example:
Example:
Valid values:
Example:
Valid values:
Example:
Example:
Example:
Example:
Example:
Example:
Arguments
- Anchor to productVendorsproduct•String
Vendors Connection! non-nullDeprecated - Anchor to firstfirst•Int!required
The first
nelements from the paginated list.
Arguments
- Anchor to publicationCountpublication•Int!
Count non-nullDeprecated - Anchor to staffMembersstaff•Staff
Members Member Connection! non-nullDeprecated - Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to storefrontUrlstorefront•URL!
Url non-nullDeprecated
Anchor to QueriesQueries
- •query
Returns the Shop resource corresponding to the access token used in the request. The Shop resource contains business and store management settings for the shop.
Anchor to MutationsMutations
- •mutation
Deletes a collection and removes it permanently from the store. This operation cannot be undone and will remove the collection from all sales channels where it was published.
For example, when merchants discontinue seasonal promotions or reorganize their catalog structure, they can delete outdated collections like "Back to School 2023" to keep their store organized.
Use
to:- Remove outdated or unused collections from stores
- Clean up collection structures during catalog reorganization
- Implement collection management tools with deletion capabilities
Products within the deleted collection remain in the store but are no longer grouped under that collection.
Learn more about collection management.
- Anchor to inputinput•Collection
Delete Input! required The collection to delete.
Arguments
- •mutation
Deletes a
Customerfrom the store. You can only delete customers who haven't placed any orders.Apps using protected customer data must meet Shopify's protected customer data requirements.
- Anchor to inputinput•Customer
Delete Input! required Specifies the customer to delete.
Arguments
- •mutation
Creates a
with a subset of the parent token's permissions.Delegate access tokens enable secure permission delegation to subsystems or services that need limited access to shop resources. Each token inherits only the scopes you specify, ensuring subsystems operate with minimal required permissions rather than full app access.
Learn more about delegating access tokens to subsystems.
- Anchor to inputinput•Delegate
Access Token Input! required The input fields for creating a delegate access token.
Arguments
- •mutation
Destroys a delegate access token.
- Anchor to accessTokenaccess•String!
Token required Provides the delegate access token to destroy.
Arguments
- •mutation
Creates a product with attributes such as title, description, vendor, and media.
The
mutation helps you create many products at once, avoiding the tedious or time-consuming process of adding them one by one in the Shopify admin. Common examples include creating products for a new collection, launching a new product line, or adding seasonal products.You can define product options and values, allowing you to create products with different variations like sizes or colors. You can also associate media files to your products, including images and videos.
The
mutation only supports creating a product with its initial product variant. To create multiple product variants for a single product and manage prices, use themutation.NoteThe
mutation has a throttle that takes effect when a store has 50,000 product variants. After this threshold is reached, no more than 1,000 new product variants can be created per day.After you create a product, you can make subsequent edits to the product using one of the following mutations:
: Used to publish the product and make it available to customers. Themutation creates products in an unpublished state by default, so you must perform a separate operation to publish the product.: Used to update a single product, such as changing the product's title, description, vendor, or associated media.: Used to perform multiple operations on products, such as creating or modifying product options and variants.
Learn more about the product model and adding product data.
- Anchor to productPreferencesproduct•Product
Preferences Preferences Input The default preferences in the product create form.
- Anchor to inputinput•Product
Input Deprecated - Anchor to productproduct•Product
Create Input The attributes of the new product.
- Anchor to mediamedia•[Create
Media Input!] The media to add to the product.
Arguments
- •mutation
Permanently deletes a product and all its associated data, including variants, media, publications, and inventory items.
Use the
mutation to programmatically remove products from your store when they need to be permanently deleted from your catalog, such as when removing discontinued items, cleaning up test data, or synchronizing with external inventory management systems.The
mutation removes the product from all associated collections, and removes all associated data for the product, including:- All product variants and their inventory items
- Product media (images, videos) that are not referenced by other products
- Product options and option values
- Product publications across all sales channels
- Product tags and metadata associations
The
mutation also has the following effects on existing orders and transactions:- Draft orders: Existing draft orders that reference this product will retain the product information as stored data, but the product reference will be removed. Draft orders can still be completed with the stored product details.
- Completed orders and refunds: Previously completed orders that included this product aren't affected. The product information in completed orders is preserved for record-keeping, and existing refunds for this product remain valid and processable.
CautionProduct deletion is irreversible. After a product is deleted, it can't be recovered. Consider archiving or unpublishing products instead if you might need to restore them later.
If you need to delete a large product, such as one that has many variants that are active at several locations, you might encounter timeout errors. To avoid these timeout errors, you can set the
synchronousparameter tofalseto run the deletion asynchronously, which returns athat you can monitor for completion status.If you need more granular control over product cleanup, consider using these alternative mutations:
: Update the product status to archived or unpublished instead of deleting.: Delete specific variants while keeping the product.: Delete the choices available for a product, such as size, color, or material.
Learn more about the product model.
- Anchor to inputinput•Product
Delete Input! required Specifies the product to delete by its ID.
- Anchor to synchronoussynchronous•BooleanDefault:true
Specifies whether or not to run the mutation synchronously.
Arguments
- •mutation
Duplicates a product.
If you need to duplicate a large product, such as one that has many variants that are active at several locations, you might encounter timeout errors.
To avoid these timeout errors, you can instead duplicate the product asynchronously.
In API version 2024-10 and higher, include
synchronous: falseargument in this mutation to perform the duplication asynchronously.In API version 2024-07 and lower, use the asynchronous
.Metafield values are not duplicated if the unique values capability is enabled.
- Anchor to productIdproduct•ID!
Id required The ID of the product to be duplicated.
- Anchor to newTitlenew•String!
Title required The new title of the product.
- Anchor to newStatusnew•Product
Status Status The new status of the product. If no value is provided the status will be inherited from the original product.
- Anchor to includeImagesinclude•Boolean
Images Default:false Specifies whether or not to duplicate images.
- Anchor to includeTranslationsinclude•Boolean
Translations Default:false Specifies whether or not to duplicate translations.
- Anchor to synchronoussynchronous•BooleanDefault:true
Specifies whether or not to run the mutation synchronously.
Arguments
- •mutation
Publishes a resource, such as a
ProductorCollection, to one or more publications.For products to be visible in a channel, they must have an active
. Products sold exclusively on subscription () can only be published to online stores.You can schedule future publication by providing a publish date. Only online store channels support scheduled publishing.
- •ID!required
The resource to create or update publications for.
- Anchor to inputinput•[Publication
Input!]! required Specifies the input fields required to publish a resource.
Arguments
- •ID!
- •mutation
Publishes a resource to the current
Channelassociated with the requesting app. The system determines the current channel by the app's API client ID. Resources includeProductandCollectionobjects that implement thePublishableinterface.For products to be visible in the channel, they must have an active
. Products sold exclusively on subscription (:true) can only be published to online stores.- •ID!required
The resource to create or update publications for.
Arguments
- •ID!
- •mutation
Unpublishes a resource, such as a
ProductorCollection, from one or more publications. The resource remains in your store but becomes unavailable to customers.For products to be visible in a channel, they must have an active
.- •ID!required
The resource to delete or update publications for.
- Anchor to inputinput•[Publication
Input!]! required Specifies the input fields required to unpublish a resource.
Arguments
- •ID!
- •mutation
Unpublishes a resource from the current channel. If the resource is a product, then it's visible in the channel only if the product status is
active.- •ID!required
The resource to delete or update publications for.
Arguments
- •ID!
- •mutation
Delete a saved search.
- Anchor to inputinput•Saved
Search Delete Input! required The input fields to delete a saved search.
Arguments
- •mutation
Creates a storefront access token that delegates unauthenticated access scopes to clients using the Storefront API. The token provides public access to storefront resources without requiring customer authentication.
Each shop can have up to 100 active
objects. Headless storefronts, mobile apps, and other client applications typically use these tokens to access public storefront data.Learn more about building with the Storefront API.
- Anchor to inputinput•Storefront
Access Token Input! required Provides the input fields for creating a storefront access token.
Arguments
Deprecated mutations
- •mutationDeprecated
- Anchor to inputinput•Collection
Publish Input! required Specify a collection to publish and the sales channels to publish it to.
Arguments
- •mutationDeprecated
- Anchor to inputinput•Collection
Unpublish Input! required Specify a collection to unpublish and the sales channels to remove it from.
Arguments
- •mutationDeprecated
- Anchor to inputinput•Product
Publish Input! required Specifies the product to publish and the channels to publish it to.
Arguments
- •mutationDeprecated
- Anchor to inputinput•Product
Unpublish Input! required Specifies the product to unpublish and the channel to unpublish it from.
Arguments