Products and product variants.
Queries
productVariantsByIds
A list of ProductVariants by IDs
Arguments
ids([ID!]!) — The IDs of the ProductVariants
Returns: [ProductVariant]!
searchProductVariants
Searches ProductVariants
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)filters([SearchFilterInput!]) — A set of filters to applyfirst(Int) — The number of results to fetch when searching forward (only include first & after or last & before)last(Int) — The number of results to fetch when searching backward (only include first & after or last & before)search(String) — A search query to filter resultssortBy(SortProductVariantsBy) — The sort keysortDir(SortDirection) — The sort direction
Returns: ProductVariantConnection! — A connection to a list of items.
Objects
DraftProductContent
Fields
id(ID!) — The ID of the Contentin_signature(Boolean!) — Whether the Content is in the signatureinitial(Boolean!) — Whether the Content is the initial Contentproduct(DraftProductContentData!)template_id(ID) — The ID of Template to attribute the content to
DraftProductContentData
Fields
height(PositiveInt) — The height of the productid(ID!) — The ID of the Contentin_signature(Boolean!) — Whether the Content is in the signatureinitial(Boolean!) — Whether the Content is the initial Contentlink_url(URL) — A URL to view the product — 🚧 Deprecated: Useview_urlinsteadpreview_url(URL!) — The thumbnail URL of the productproduct(Product) — The Product of the producttemplate_id(ID) — The ID of Template to attribute the content totitle(String!) — The title of the producturl(URL) — The source URL of the product — 🚧 Deprecated: Uselink_urlinsteadview_url(URL) — A URL to view the productwidth(PositiveInt) — The width of the product
DraftProductsContent
Fields
id(ID!) — The ID of the Contentin_signature(Boolean!) — Whether the Content is in the signatureinitial(Boolean!) — Whether the Content is the initial Contentitems([DraftProductContent!]!)products([DraftProductContentData!]!) — 🚧 Deprecated: Useitemsinsteadtemplate_id(ID) — The ID of Template to attribute the content to
Product
Fields
description_html(String) — The description of the Productexternal_id(ID!) — The unique identifier of the Productid(ID!) — The unique identifier of the Productimage(ProductMediaImage) — The image of the Productintegration(Integration!) — The integration of the Productmedia([ProductMediaImage!]!) — The media of the Productsku(String) — The SKU of the Productslug(String) — The slug of the Producttags([String!]!) — The tags of the Producttitle(String) — The title of the Producttype([String!]!) — The type of the Producturl(URL) — The slug of the Productvendor(String) — The vendor of the Product
ProductMediaImage
Fields
alt(String) — The alt of the ProductMediaImageheight(Float) — The height of the ProductMediaImageid(ID) — The ID of the ProductMediaImageoriginal_source(String!) — The orignal source URL of the ProductMediaImagesource(String!) — The source URL of the ProductMediaImagesource_set(String!) — The source URL of the ProductMediaImagewidth(Float) — The width of the ProductMediaImage
ProductVariant
Fields
barcode(String) — The barcode of the ProductVariantcreated_at(DateTime!) — The date the ProductVariant was createdcurrent_price(Money) — The current price of the ProductVariantdeleted_at(DateTime) — The date the ProductVariant was deleteddescription_html(String) — The description of the ProductVariantexternal_id(ID!) — The unique identifier of the ProductVariantid(ID!) — The unique identifier of the ProductVariantimage(ProductMediaImage) — The image of the ProductVariantintegration(Integration!) — The integration of the ProductVariantoptions([ProductVariantOption!]!) — The options of the ProductVariantproduct(Product!) — The Product that this ProductVariant belongs tosku(String) — The SKU of the ProductVariantsubtitle(String) — The subtitle of the ProductVarianttags([String!]!) — The tags of the ProductVarianttitle(String) — The title of the ProductVariant — 🚧 Deprecated: Use thesubtitlefield insteadtype([String!]!) — The type of the ProductVariantupdated_at(DateTime!) — The date the ProductVariant was last updatedvendor(String) — The vendor of the ProductVariant
ProductVariantConnection
A connection to a list of items.
Fields
edges([ProductVariantEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.total(Int)
ProductVariantEdge
An edge in a connection.
Fields
cursor(String!) — A cursor for use in paginationnode(ProductVariant) — The item at the end of the edge
ProductVariantOption
Fields
key(ID!) — The key of the ProductVariantOptionvalues([String!]!) — The values of the ProductVariantOption
StoryItemProduct
Fields
Input Objects
ExternalProductImageInput
An ExternalProductImage to be added/updated
Fields
alt(String) — The alt text of the ExternalProductImageid(ID!) — The unique identifier of the ExternalProductImagesrc(URL!) — The source URL of the ExternalProductImage
ExternalProductInput
An ExternalProduct to be added/updated
Fields
available_for_sale(Boolean!) — Whether the ExternalProduct is available for salecreated_at(DateTime) — The date the ExternalProduct was createddeleted_at(DateTime) — The date the ExternalProduct was deleteddescription_html(String) — The description of the ExternalProductid(ID!) — The unique identifier of the ExternalProductimage_id(ID) — The unique identifier of the image media that is the main image of the ExternalProductmedia([ExternalProductImageInput!]) — The media of the ExternalProductsku(String) — The SKU of the ExternalProductslug(String) — The slug of the ExternalProduct (if set, url will be ignored)tags([String!]) — The tags of the ExternalProducttitle(String!) — The title of the ExternalProducttype([String!]) — The type of the ExternalProductupdated_at(DateTime) — The date the ExternalProduct was last updatedurl(URL) — The url of the ExternalProduct (ignored if slug is set)vendor(String) — The vendor of the ExternalProduct
ExternalProductVariantInput
An ExternalProductVariant to be added/updated
Fields
barcode(String) — The barcode of the ExternalProductVariantcompare_at_price(MoneyInput) — The original price of the ExternalProductVariant (must be greater than or equal to the current_price)created_at(DateTime) — The date the ExternalProductVariant was createdcurrent_price(MoneyInput!) — The current price of the ExternalProductVariantdeleted_at(DateTime) — The date the ExternalProductVariant was deleteddescription_html(String) — The description of the ExternalProductVariantid(ID!) — The unique identifier of the ExternalProductVariantimage_id(ID) — The unique identifier of the image in the ExternalProduct associated with the ExternalProductVariantoptions([ExternalProductVariantOptionInput!]) — The options of the ExternalProductVariantproduct_id(ID!) — The unique identifier of the ExternalProduct associated with the ExternalProductVariantquantity(NonNegativeInt) — The quantity of the ExternalProductVariantsku(String) — The SKU of the ExternalProductVarianttags([String!]) — The tags of the ExternalProductVarianttitle(String!) — The title of the ExternalProductVarianttype([String!]) — The type of the ExternalProductVariantupdated_at(DateTime) — The date the ExternalProductVariant was last updatedvendor(String) — The vendor of the ExternalProductVariant
ExternalProductVariantOptionInput
An ExternalProductVariantOption to be added/updated
Fields
key(ID!) — The key of the ExternalProductVariantOptionvalues([String!]!) — The values of the ExternalProductVariantOption
Enums
SortProductVariantsBy
The available keys to sort ProductVariants
Values
CREATED_ATRELEVANCEUPDATED_AT
