Product Variants¶
The Product Variants pull reads every product variant in the store. Pair it with a push that updates variants. The pull supplies the ids Shopify needs, and a Map transform sets the new values. For example:
- read the variants, look up each SKU's new price, and update the variants through Products by Variant Id;
- read each variant's
inventory_item_idand set its stock through Inventory Levels v2.
On a reader, select Product Variants as the Shopify Entity.
Reader Options¶
The pull reads the whole catalogue on every run, in the Designer and outside it. It keeps no last run time, and the status, time span and id options have no effect.
API and Timestamps apply as they do to Orders.
The pull asks Shopify only for the fields the transform maps. A transform that maps a few fields reads a large catalogue faster than one that maps them all.
Records¶
The pull returns a Variant record for each variant:
idandproduct_id, the variant's and its product's numeric Shopify ids;sku,barcode,titleandposition;option1tooption3, the variant's option values, such as a size or colour;priceandcompare_at_price;inventory_item_id,inventory_policyandinventory_management;taxable,tax_codeandrequires_shipping;weight,weight_unitandimage_id;created_atandupdated_at.
metafield_1_ to metafield_25_ hold the variant's first 25 metafields. Each set has namespace, key, type and value.
Access Scopes¶
The pull needs read_products and read_inventory. See Access Scopes.
Shopify Reference¶
ProductVariant in Shopify's GraphQL Admin API reference.