Shopify schema
See Management API schema for every domain, the endpoint and authentication.
Queries
shopifyProduct
Reads a Shopify product. Always returns null.
shopifyProduct(input: ShopifyProductInput!): ShopifyProduct @auth @deprecated(reason: "Picked no longer reads Shopify products. Always returns null; will be removed.")shopifyProducts
Lists Shopify products. Always returns an empty page.
shopifyProducts(input: ShopifyProductsInput!): ShopifyProductsResponse! @auth @deprecated(reason: "Picked no longer reads Shopify products. Always returns an empty page; will be removed.")shopifyWebhooks
Lists an organization's Shopify webhooks.
Scope: ORGANIZATION_INTEGRATIONS_READ.
shopifyWebhooks(input: ShopifyWebhooksInput!): [ShopifyWebhook!]! @authshopifyMetafieldConfigs
Lists a project's Shopify metafield configs.
Scope: ORGANIZATION_INTEGRATIONS_READ.
shopifyMetafieldConfigs(input: ShopifyMetafieldConfigsInput!): [ShopifyMetafieldConfig!]! @authorganizationShopifyWebhooks
Lists an organization's Shopify webhooks.
Scope: ORGANIZATION_INTEGRATIONS_READ.
organizationShopifyWebhooks(input: OrganizationShopifyWebhooksInput!): [ShopifyWebhook!]! @auth @deprecated(reason: "Use `shopifyWebhooks` instead")projectShopifyMetafieldConfigs
Lists a project's Shopify metafield configs.
Scope: ORGANIZATION_INTEGRATIONS_READ.
projectShopifyMetafieldConfigs(input: ProjectMetafieldConfigsInput!): [ShopifyMetafieldConfig!]! @auth @deprecated(reason: "Use `shopifyMetafieldConfigs` instead")Mutations
shopifyWebhookCreate
Creates a Shopify webhook for a project and generates its HMAC secret. The result is the only
place the secret appears.
Scope: ORGANIZATION_INTEGRATIONS_CREATE and ORGANIZATION_INTEGRATIONS_READ.
shopifyWebhookCreate(input: ShopifyWebhookCreateInput!): ShopifyWebhookCreatePayload! @authshopifyWebhookUpdate
Updates a Shopify webhook.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
shopifyWebhookUpdate(input: ShopifyWebhookUpdateInput!): Boolean! @authshopifyWebhookDelete
Deletes a Shopify webhook.
Scope: ORGANIZATION_INTEGRATIONS_DELETE.
shopifyWebhookDelete(input: ShopifyWebhookDeleteInput!): Boolean! @authshopifyProductContentUpdate
Updates the content at key of a Shopify product, stored in its app metafield content.<key>.
Keeps up to nine earlier values. The shop must belong to the calling API key's organization.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
shopifyProductContentUpdate(input: ShopifyProductContentUpdateInput!): Boolean! @authshopifyCollectionContentUpdate
Updates the content at key of a Shopify collection, stored in its app metafield content.<key>.
Keeps up to nine earlier values. The shop must belong to the calling API key's organization.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
shopifyCollectionContentUpdate(input: ShopifyCollectionContentUpdateInput!): Boolean! @authshopifyMetafieldConfigCreate
Creates a Shopify metafield config for a project.
Scope: ORGANIZATION_INTEGRATIONS_CREATE.
shopifyMetafieldConfigCreate(input: ShopifyMetafieldConfigCreateInput!): ShopifyMetafieldConfig! @authshopifyMetafieldConfigUpdate
Updates a Shopify metafield config.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
shopifyMetafieldConfigUpdate(input: ShopifyMetafieldConfigUpdateInput!): Boolean! @authshopifyMetafieldConfigDelete
Deletes a Shopify metafield config.
Scope: ORGANIZATION_INTEGRATIONS_DELETE.
shopifyMetafieldConfigDelete(input: ShopifyMetafieldConfigDeleteInput!): Boolean! @authcreateShopifyWebhook
Creates a Shopify webhook for a project and generates its HMAC secret. The result is the only
place the secret appears.
Scope: ORGANIZATION_INTEGRATIONS_CREATE and ORGANIZATION_INTEGRATIONS_READ.
createShopifyWebhook(input: CreateShopifyWebhookInput!): CreateShopifyWebhookResponse! @auth @deprecated(reason: "Use `shopifyWebhookCreate` instead")updateShopifyWebhook
Updates a Shopify webhook.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
updateShopifyWebhook(input: UpdateShopifyWebhookInput!): Boolean! @auth @deprecated(reason: "Use `shopifyWebhookUpdate` instead")deleteShopifyWebhook
Deletes a Shopify webhook.
Scope: ORGANIZATION_INTEGRATIONS_DELETE.
deleteShopifyWebhook(input: DeleteShopifyWebhookInput!): Boolean! @auth @deprecated(reason: "Use `shopifyWebhookDelete` instead")updateShopifyProductContent
Updates the content at key of a Shopify product, stored in its app metafield content.<key>.
Keeps up to nine earlier values. The shop must belong to the calling API key's organization.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
updateShopifyProductContent(input: UpdateShopifyProductContentInput!): Boolean! @auth @deprecated(reason: "Use `shopifyProductContentUpdate` instead")updateShopifyCollectionContent
Updates the content at key of a Shopify collection, stored in its app metafield content.<key>.
Keeps up to nine earlier values. The shop must belong to the calling API key's organization.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
updateShopifyCollectionContent(input: UpdateShopifyCollectionContentInput!): Boolean! @auth @deprecated(reason: "Use `shopifyCollectionContentUpdate` instead")createShopifyMetafieldConfig
Creates a Shopify metafield config for a project.
Scope: ORGANIZATION_INTEGRATIONS_CREATE.
createShopifyMetafieldConfig(input: CreateShopifyMetafieldConfigInput!): ShopifyMetafieldConfig! @auth @deprecated(reason: "Use `shopifyMetafieldConfigCreate` instead")updateShopifyMetafieldConfig
Updates a Shopify metafield config.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
updateShopifyMetafieldConfig(input: UpdateShopifyMetafieldConfigInput!): Boolean! @auth @deprecated(reason: "Use `shopifyMetafieldConfigUpdate` instead")deleteShopifyMetafieldConfig
Deletes a Shopify metafield config.
Scope: ORGANIZATION_INTEGRATIONS_DELETE.
deleteShopifyMetafieldConfig(input: DeleteShopifyMetafieldConfigInput!): Boolean! @auth @deprecated(reason: "Use `shopifyMetafieldConfigDelete` instead")Types
ShopifyProductOption
"""An option of a Shopify product, such as `Color` or `Size`."""
type ShopifyProductOption {
"""The ID of the option."""
id: ID
"""The ID of the product the option belongs to."""
productId: ID
"""The option's name, such as `Color`."""
name: String
"""The option's position in the product's options."""
position: Int
"""The option's values, such as `["Red", "Blue"]`."""
values: [String!]
}ShopifyImage
"""An image of a Shopify product."""
type ShopifyImage {
"""The ID of the image."""
id: ID
"""The ID of the product the image belongs to."""
productId: ID
"""The image's position in the product's images."""
position: Int
"""When the image was created, as an ISO 8601 string."""
createdAt: String
"""When the image last changed, as an ISO 8601 string."""
updatedAt: String
"""The width in pixels."""
width: Int
"""The height in pixels."""
height: Int
"""The image URL."""
src: String
"""The image as Base64. Null except on upload."""
attachment: String
"""The file name."""
filename: String
"""The alt text."""
alt: String
"""The IDs of the variants that show the image."""
variantIds: [ID!]
"""The image's Shopify Admin GraphQL API ID."""
adminGraphqlApiId: String
}ShopifyVariant
"""A variant of a Shopify product."""
type ShopifyVariant {
"""The ID of the variant."""
id: ID
"""The ID of the product the variant belongs to."""
productId: ID
"""The variant's title, usually its option values, such as `Red / Small`."""
title: String
"""The stock keeping unit."""
sku: String
"""The variant's position in the product's variants."""
position: Int
"""The weight in grams."""
grams: Int
"""What happens when the variant is out of stock: `deny` or `continue`."""
inventoryPolicy: String
"""The price, in the shop's currency."""
price: String
"""The compare-at price."""
compareAtPrice: String
"""The fulfilment service."""
fulfillmentService: String
"""The inventory management service."""
inventoryManagement: String
"""The ID of the inventory item."""
inventoryItemId: ID
"""The value of the first option."""
option1: String
"""The value of the second option."""
option2: String
"""The value of the third option."""
option3: String
"""When the variant was created, as an ISO 8601 string."""
createdAt: String
"""When the variant last changed, as an ISO 8601 string."""
updatedAt: String
"""Whether the variant is taxable."""
taxable: Boolean
"""The tax code."""
taxCode: String
"""The barcode."""
barcode: String
"""The ID of the variant's image."""
imageId: ID
"""The inventory quantity."""
inventoryQuantity: Int
"""The weight, in `weightUnit`."""
weight: String
"""The unit of `weight`."""
weightUnit: String
"""The inventory quantity before the last change."""
oldInventoryQuantity: Int
"""Whether the variant needs shipping."""
requireShipping: Boolean
"""The variant's Shopify Admin GraphQL API ID."""
adminGraphqlApiId: String
}ShopifyMetafield
"""
A Shopify metafield: structured data attached to a product, variant or other resource.
"""
type ShopifyMetafield {
"""The ID of the metafield."""
id: ID
"""The metafield's namespace, such as `custom`."""
namespace: String
"""The metafield's key, unique within its namespace."""
key: String
"""The value, encoded as `type` defines."""
value: String
"""The value type, such as `single_line_text_field`."""
type: String
"""The metafield's description."""
description: String
"""The ID of the resource the metafield belongs to."""
ownerId: ID
"""The type of the resource the metafield belongs to, such as `Product`."""
ownerResource: String
"""When the metafield was created, as an ISO 8601 string."""
createdAt: String
"""When the metafield last changed, as an ISO 8601 string."""
updatedAt: String
"""The metafield's Shopify Admin GraphQL API ID."""
adminGraphqlApiId: String
}ShopifyProduct
"""A Shopify product."""
type ShopifyProduct {
"""The ID of the product."""
id: ID
"""The product's title."""
title: String
"""The product's description, as HTML."""
bodyHtml: String
"""The vendor."""
vendor: String
"""The product type."""
productType: String
"""The product's handle in URLs."""
handle: String
"""When the product was created, as an ISO 8601 string."""
createdAt: String
"""When the product last changed, as an ISO 8601 string."""
updatedAt: String
"""When the product was published, as an ISO 8601 string."""
publishedAt: String
"""Where the product is published: `web` or `global`."""
publishedScope: String
"""The product's tags, comma-separated."""
tags: String
"""The product's status: `active`, `draft` or `archived`."""
status: String
"""The product's options."""
options: [ShopifyProductOption!]
"""The product's variants."""
variants: [ShopifyVariant!]
"""The product's main image."""
image: ShopifyImage
"""The product's images."""
images: [ShopifyImage!]
"""The suffix of the product's theme template."""
templateSuffix: String
"""The title meta tag."""
metafieldsGlobalTitleTag: String
"""The description meta tag."""
metafieldsGlobalDescriptionTag: String
"""The product's metafields."""
metafields: [ShopifyMetafield!]
"""The product's Shopify Admin GraphQL API ID."""
adminGraphqlApiId: String
}ShopifyProductsResponse
"""A page of Shopify products."""
type ShopifyProductsResponse {
"""The products in the page."""
products: [ShopifyProduct!]!
"""The number of products in all pages."""
totalCount: Int!
"""The page number, from 1."""
currentPage: Int!
"""The number of pages."""
totalPages: Int!
"""Whether a later page exists."""
hasNextPage: Boolean!
"""Whether an earlier page exists."""
hasPreviousPage: Boolean!
}ShopifyProductInput
"""The input of `shopifyProduct`. Set `productId` or `handle`."""
input ShopifyProductInput {
"""The shop's `myshopify.com` domain."""
shopId: String!
"""The ID of the product."""
productId: String
"""The product's handle."""
handle: String
}ShopifyProductsInput
"""The input of `shopifyProducts`."""
input ShopifyProductsInput {
"""The shop's `myshopify.com` domain."""
shopId: String!
"""The number of products in a page."""
limit: Int
"""The page number, from 1."""
page: Int
}ShopifyWebhook
"""
A webhook endpoint configured for a project's Shopify integration, with the API key and delivery
settings it uses.
"""
type ShopifyWebhook {
"""The ID of the webhook."""
id: ID!
"""The ID of the organization the webhook belongs to."""
organizationId: ID!
"""The ID of the project the webhook belongs to."""
projectId: ID!
"""The ID of the API key the webhook uses."""
apiKeyId: ID!
"""The webhook's name."""
name: String!
"""The webhook's description. Null when it has none."""
description: String
"""The URL that receives the webhook's requests."""
endpointUrl: String!
"""Whether the webhook is active."""
isActive: Boolean!
"""The request timeout in milliseconds."""
timeoutMs: Int!
"""The number of retries after a failed request."""
retryCount: Int!
"""The name of the API key. Null when the key is deleted."""
apiKeyName: String
"""The prefix of the API key. Null when the key is deleted."""
apiKeyPrefix: String
"""When the webhook was created, as an ISO 8601 string."""
createdAt: String!
"""When the webhook last changed, as an ISO 8601 string."""
updatedAt: String!
}ShopifyWebhookCreatePayload
"""
The result of `shopifyWebhookCreate`. `webhookSecret` is returned only here, once.
"""
type ShopifyWebhookCreatePayload {
"""The created webhook."""
webhook: ShopifyWebhook!
"""
The HMAC secret for verifying the webhook's payloads. Returned only once.
"""
webhookSecret: String!
}ShopifyWebhooksInput
"""The input of `shopifyWebhooks`."""
input ShopifyWebhooksInput {
"""The ID of the organization."""
organizationId: ID!
}ShopifyWebhookCreateInput
"""The input of `shopifyWebhookCreate`."""
input ShopifyWebhookCreateInput {
"""The ID of the project's organization."""
organizationId: ID!
"""The ID of the project."""
projectId: ID!
"""The ID of an API key of the organization for the webhook to use."""
apiKeyId: ID!
"""The webhook's name. Not blank."""
name: String!
"""The webhook's description."""
description: String
"""
The URL that receives the webhook's requests. Starts with `http://` or `https://`.
"""
endpointUrl: String!
"""
The request timeout in milliseconds, from 1000 to 60000. Defaults to 30000.
"""
timeoutMs: Int
"""
The number of retries after a failed request, from 0 to 10. Defaults to 3.
"""
retryCount: Int
}ShopifyWebhookUpdateInput
"""The input of `shopifyWebhookUpdate`. Omit a field to keep its value."""
input ShopifyWebhookUpdateInput {
"""The ID of the webhook."""
webhookId: ID!
"""
The ID of the webhook's organization. Not read: the webhook's own organization applies.
"""
organizationId: ID!
"""The webhook's name."""
name: String
"""The webhook's description."""
description: String
"""
The URL that receives the webhook's requests. Starts with `http://` or `https://`.
"""
endpointUrl: String
"""Whether the webhook is active."""
isActive: Boolean
"""The ID of an API key of the organization for the webhook to use."""
apiKeyId: ID
"""The request timeout in milliseconds, from 1000 to 60000."""
timeoutMs: Int
"""The number of retries after a failed request, from 0 to 10."""
retryCount: Int
}ShopifyWebhookDeleteInput
"""The input of `shopifyWebhookDelete`."""
input ShopifyWebhookDeleteInput {
"""The ID of the webhook."""
webhookId: ID!
"""
The ID of the webhook's organization. Not read: the webhook's own organization applies.
"""
organizationId: ID!
}CreateShopifyWebhookResponse
"""
The result of `createShopifyWebhook`. Superseded by `ShopifyWebhookCreatePayload`.
"""
type CreateShopifyWebhookResponse {
"""The created webhook."""
webhook: ShopifyWebhook!
"""
The HMAC secret for verifying the webhook's payloads. Returned only once.
"""
webhookSecret: String!
}CreateShopifyWebhookInput
"""
The input of `createShopifyWebhook`. Superseded by `ShopifyWebhookCreateInput`.
"""
input CreateShopifyWebhookInput {
"""The ID of the project's organization."""
organizationId: ID!
"""The ID of the project."""
projectId: ID!
"""The ID of an API key of the organization for the webhook to use."""
apiKeyId: ID!
"""The webhook's name. Not blank."""
name: String!
"""The webhook's description."""
description: String
"""
The URL that receives the webhook's requests. Starts with `http://` or `https://`.
"""
endpointUrl: String!
"""
The request timeout in milliseconds, from 1000 to 60000. Defaults to 30000.
"""
timeoutMs: Int
"""
The number of retries after a failed request, from 0 to 10. Defaults to 3.
"""
retryCount: Int
}UpdateShopifyWebhookInput
"""
The input of `updateShopifyWebhook`. Superseded by `ShopifyWebhookUpdateInput`. Omit a field to
keep its value.
"""
input UpdateShopifyWebhookInput {
"""The ID of the webhook."""
webhookId: ID!
"""
The ID of the webhook's organization. Not read: the webhook's own organization applies.
"""
organizationId: ID!
"""The webhook's name."""
name: String
"""The webhook's description."""
description: String
"""
The URL that receives the webhook's requests. Starts with `http://` or `https://`.
"""
endpointUrl: String
"""Whether the webhook is active."""
isActive: Boolean
"""The ID of an API key of the organization for the webhook to use."""
apiKeyId: ID
"""The request timeout in milliseconds, from 1000 to 60000."""
timeoutMs: Int
"""The number of retries after a failed request, from 0 to 10."""
retryCount: Int
}DeleteShopifyWebhookInput
"""
The input of `deleteShopifyWebhook`. Superseded by `ShopifyWebhookDeleteInput`.
"""
input DeleteShopifyWebhookInput {
"""The ID of the webhook."""
webhookId: ID!
"""
The ID of the webhook's organization. Not read: the webhook's own organization applies.
"""
organizationId: ID!
}OrganizationShopifyWebhooksInput
"""
The input of `organizationShopifyWebhooks`. Superseded by `ShopifyWebhooksInput`.
"""
input OrganizationShopifyWebhooksInput {
"""The ID of the organization."""
organizationId: ID!
}ShopifyMetafieldConfig
"""
A project's setting for syncing the Shopify metafields of one namespace.
"""
type ShopifyMetafieldConfig {
"""The ID of the config."""
id: ID!
"""The ID of the project the config belongs to."""
projectId: String!
"""The metafield namespace, such as `custom`."""
namespace: String!
"""The most metafields to sync for each resource."""
maxMetafields: Int!
"""
The metafield keys to sync. Null when every key in the namespace syncs.
"""
keys: [String!]
"""When the config was created, as an ISO 8601 string."""
createdAt: String!
"""When the config last changed, as an ISO 8601 string."""
updatedAt: String!
}ShopifyMetafieldConfigsInput
"""The input of `shopifyMetafieldConfigs`."""
input ShopifyMetafieldConfigsInput {
"""The ID of the project."""
projectId: ID!
}ShopifyMetafieldConfigCreateInput
"""The input of `shopifyMetafieldConfigCreate`."""
input ShopifyMetafieldConfigCreateInput {
"""The ID of the project."""
projectId: ID!
"""The metafield namespace: letters, digits, `_`, `-` and `$`."""
namespace: String!
"""The most metafields to sync for each resource, from 1 to 100."""
maxMetafields: Int!
"""
The metafield keys to sync. At least one when set. Omit to sync every key.
"""
keys: [String!]
}ShopifyMetafieldConfigUpdateInput
"""
The input of `shopifyMetafieldConfigUpdate`. Omit a field to keep its value. Set at least one of
`maxMetafields` and `keys`.
"""
input ShopifyMetafieldConfigUpdateInput {
"""The ID of the config."""
id: ID!
"""The most metafields to sync for each resource, from 1 to 100."""
maxMetafields: Int
"""The metafield keys to sync. An empty list syncs every key."""
keys: [String!]
}ShopifyMetafieldConfigDeleteInput
"""The input of `shopifyMetafieldConfigDelete`."""
input ShopifyMetafieldConfigDeleteInput {
"""The ID of the config."""
id: ID!
}ProjectMetafieldConfigsInput
"""
The input of `projectShopifyMetafieldConfigs`. Superseded by `ShopifyMetafieldConfigsInput`.
"""
input ProjectMetafieldConfigsInput {
"""The ID of the project."""
projectId: ID!
}CreateShopifyMetafieldConfigInput
"""
The input of `createShopifyMetafieldConfig`. Superseded by `ShopifyMetafieldConfigCreateInput`.
"""
input CreateShopifyMetafieldConfigInput {
"""The ID of the project."""
projectId: ID!
"""The metafield namespace: letters, digits, `_`, `-` and `$`."""
namespace: String!
"""The most metafields to sync for each resource, from 1 to 100."""
maxMetafields: Int!
"""
The metafield keys to sync. At least one when set. Omit to sync every key.
"""
keys: [String!]
}UpdateShopifyMetafieldConfigInput
"""
The input of `updateShopifyMetafieldConfig`. Superseded by `ShopifyMetafieldConfigUpdateInput`.
Omit a field to keep its value. Set at least one of `maxMetafields` and `keys`.
"""
input UpdateShopifyMetafieldConfigInput {
"""The ID of the config."""
id: ID!
"""The most metafields to sync for each resource, from 1 to 100."""
maxMetafields: Int
"""The metafield keys to sync. An empty list syncs every key."""
keys: [String!]
}DeleteShopifyMetafieldConfigInput
"""
The input of `deleteShopifyMetafieldConfig`. Superseded by `ShopifyMetafieldConfigDeleteInput`.
"""
input DeleteShopifyMetafieldConfigInput {
"""The ID of the config."""
id: ID!
}ShopifyProductContentUpdateInput
"""The input of `shopifyProductContentUpdate`. Every field is required."""
input ShopifyProductContentUpdateInput {
"""The shop's `myshopify.com` domain."""
shopId: String!
"""The ID of the product, numeric or as a Shopify GID."""
productId: String!
"""The content key."""
key: String!
"""The content to store at `key`."""
content: JSON!
}ShopifyCollectionContentUpdateInput
"""
The input of `shopifyCollectionContentUpdate`. Every field is required.
"""
input ShopifyCollectionContentUpdateInput {
"""The shop's `myshopify.com` domain."""
shopId: String!
"""The ID of the collection, numeric or as a Shopify GID."""
collectionId: String!
"""The content key."""
key: String!
"""The content to store at `key`."""
content: JSON!
}UpdateShopifyProductContentInput
"""
The input of `updateShopifyProductContent`. Superseded by `ShopifyProductContentUpdateInput`.
"""
input UpdateShopifyProductContentInput {
"""The shop's `myshopify.com` domain."""
shopId: String!
"""The ID of the product, numeric or as a Shopify GID."""
productId: String!
"""The content key."""
key: String!
"""The content to store at `key`."""
content: JSON!
}UpdateShopifyCollectionContentInput
"""
The input of `updateShopifyCollectionContent`. Superseded by
`ShopifyCollectionContentUpdateInput`.
"""
input UpdateShopifyCollectionContentInput {
"""The shop's `myshopify.com` domain."""
shopId: String!
"""The ID of the collection, numeric or as a Shopify GID."""
collectionId: String!
"""The content key."""
key: String!
"""The content to store at `key`."""
content: JSON!
}