<div class="doc-version" data-version="unstable"> <p>Represents a product variant.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-unstable"> Fields </a> </li> <li> <a href="#implements-unstable"> Implements </a> </li> </ul> </div> <h2 id="fields-unstable"> Fields </h2> <ul class="fields"> <li> <div class="field" id="id-unstable"> <div class="field-name"> id (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#id-unstable"><code>ID!</code></a>) </div> <div> <p>A globally-unique identifier.</p> </div> </div> </li> <li> <div class="field" id="metafield-unstable"> <div class="field-name"> metafield (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/metafield"><code>Metafield</code></a>) </div> <div> <p>Returns a metafield by namespace and key that belongs to the resource.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>key</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-unstable"> <code>String!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The key for the metafield.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>namespace</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-unstable"> <code>String</code> </a>) </td> <td class="argument-description"> <p>The container the metafield belongs to. If omitted, the app-reserved namespace will be used.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="product-unstable"> <div class="field-name"> product (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/product"><code>Product!</code></a>) </div> <div> <p>The product that this variant belongs to.</p> </div> </div> </li> <li> <div class="field" id="requiresshipping-unstable"> <div class="field-name"> requiresShipping (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#boolean-unstable"><code>Boolean!</code></a>) </div> <div> <p>Whether the merchandise requires shipping.</p> </div> </div> </li> <li> <div class="field" id="sku-unstable"> <div class="field-name"> sku (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-unstable"><code>String</code></a>) </div> <div> <p>An identifier for the product variant in the shop. Required in order to connect to a fulfillment service.</p> </div> </div> </li> <li> <div class="field" id="title-unstable"> <div class="field-name"> title (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-unstable"><code>String</code></a>) </div> <div> <p>The localized title of the product variant in the customer’s locale.</p> </div> </div> </li> <li> <div class="field" id="weight-unstable"> <div class="field-name"> weight (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#float-unstable"><code>Float</code></a>) </div> <div> <p>The weight of the product variant in the unit system specified with <code>weight_unit</code>.</p> </div> </div> </li> <li> <div class="field" id="weightunit-unstable"> <div class="field-name"> weightUnit (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/weightunit"><code>WeightUnit!</code></a>) </div> <div> <p>Unit of measurement for weight.</p> </div> </div> </li> </ul> <h2 id="implements-unstable">Implements</h2> <ul> <li> <a href="/api/functions/reference/shipping-discounts/graphql/common-objects/hasmetafields"> <code>HasMetafields</code> </a> </li> </ul> </div><div class="doc-version doc-version--rc" data-version="2025-04"> <p>Represents a product variant.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-2025-04"> Fields </a> </li> <li> <a href="#implements-2025-04"> Implements </a> </li> </ul> </div> <h2 id="fields-2025-04"> Fields </h2> <ul class="fields"> <li> <div class="field" id="id-2025-04"> <div class="field-name"> id (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#id-2025-04"><code>ID!</code></a>) </div> <div> <p>A globally-unique identifier.</p> </div> </div> </li> <li> <div class="field" id="metafield-2025-04"> <div class="field-name"> metafield (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/metafield"><code>Metafield</code></a>) </div> <div> <p>Returns a metafield by namespace and key that belongs to the resource.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>key</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2025-04"> <code>String!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The key for the metafield.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>namespace</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2025-04"> <code>String</code> </a>) </td> <td class="argument-description"> <p>The container the metafield belongs to. If omitted, the app-reserved namespace will be used.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="product-2025-04"> <div class="field-name"> product (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/product"><code>Product!</code></a>) </div> <div> <p>The product that this variant belongs to.</p> </div> </div> </li> <li> <div class="field" id="requiresshipping-2025-04"> <div class="field-name"> requiresShipping (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#boolean-2025-04"><code>Boolean!</code></a>) </div> <div> <p>Whether the merchandise requires shipping.</p> </div> </div> </li> <li> <div class="field" id="sku-2025-04"> <div class="field-name"> sku (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2025-04"><code>String</code></a>) </div> <div> <p>An identifier for the product variant in the shop. Required in order to connect to a fulfillment service.</p> </div> </div> </li> <li> <div class="field" id="title-2025-04"> <div class="field-name"> title (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2025-04"><code>String</code></a>) </div> <div> <p>The localized title of the product variant in the customer’s locale.</p> </div> </div> </li> <li> <div class="field" id="weight-2025-04"> <div class="field-name"> weight (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#float-2025-04"><code>Float</code></a>) </div> <div> <p>The weight of the product variant in the unit system specified with <code>weight_unit</code>.</p> </div> </div> </li> <li> <div class="field" id="weightunit-2025-04"> <div class="field-name"> weightUnit (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/weightunit"><code>WeightUnit!</code></a>) </div> <div> <p>Unit of measurement for weight.</p> </div> </div> </li> </ul> <h2 id="implements-2025-04">Implements</h2> <ul> <li> <a href="/api/functions/reference/shipping-discounts/graphql/common-objects/hasmetafields"> <code>HasMetafields</code> </a> </li> </ul> </div><div class="doc-version doc-version--latest selected" data-version="2025-01"> <p>Represents a product variant.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-2025-01"> Fields </a> </li> <li> <a href="#implements-2025-01"> Implements </a> </li> </ul> </div> <h2 id="fields-2025-01"> Fields </h2> <ul class="fields"> <li> <div class="field" id="id-2025-01"> <div class="field-name"> id (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#id-2025-01"><code>ID!</code></a>) </div> <div> <p>A globally-unique identifier.</p> </div> </div> </li> <li> <div class="field" id="metafield-2025-01"> <div class="field-name"> metafield (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/metafield"><code>Metafield</code></a>) </div> <div> <p>Returns a metafield by namespace and key that belongs to the resource.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>key</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2025-01"> <code>String!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The key for the metafield.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>namespace</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2025-01"> <code>String</code> </a>) </td> <td class="argument-description"> <p>The container the metafield belongs to. If omitted, the app-reserved namespace will be used.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="product-2025-01"> <div class="field-name"> product (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/product"><code>Product!</code></a>) </div> <div> <p>The product that this variant belongs to.</p> </div> </div> </li> <li> <div class="field" id="requiresshipping-2025-01"> <div class="field-name"> requiresShipping (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#boolean-2025-01"><code>Boolean!</code></a>) </div> <div> <p>Whether the merchandise requires shipping.</p> </div> </div> </li> <li> <div class="field" id="sku-2025-01"> <div class="field-name"> sku (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2025-01"><code>String</code></a>) </div> <div> <p>An identifier for the product variant in the shop. Required in order to connect to a fulfillment service.</p> </div> </div> </li> <li> <div class="field" id="title-2025-01"> <div class="field-name"> title (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2025-01"><code>String</code></a>) </div> <div> <p>The localized title of the product variant in the customer’s locale.</p> </div> </div> </li> <li> <div class="field" id="weight-2025-01"> <div class="field-name"> weight (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#float-2025-01"><code>Float</code></a>) </div> <div> <p>The weight of the product variant in the unit system specified with <code>weight_unit</code>.</p> </div> </div> </li> <li> <div class="field" id="weightunit-2025-01"> <div class="field-name"> weightUnit (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/weightunit"><code>WeightUnit!</code></a>) </div> <div> <p>Unit of measurement for weight.</p> </div> </div> </li> </ul> <h2 id="implements-2025-01">Implements</h2> <ul> <li> <a href="/api/functions/reference/shipping-discounts/graphql/common-objects/hasmetafields"> <code>HasMetafields</code> </a> </li> </ul> </div><div class="doc-version" data-version="2024-10"> <p>Represents a product variant.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-2024-10"> Fields </a> </li> <li> <a href="#implements-2024-10"> Implements </a> </li> </ul> </div> <h2 id="fields-2024-10"> Fields </h2> <ul class="fields"> <li> <div class="field" id="id-2024-10"> <div class="field-name"> id (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#id-2024-10"><code>ID!</code></a>) </div> <div> <p>A globally-unique identifier.</p> </div> </div> </li> <li> <div class="field" id="metafield-2024-10"> <div class="field-name"> metafield (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/metafield"><code>Metafield</code></a>) </div> <div> <p>Returns a metafield by namespace and key that belongs to the resource.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>key</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-10"> <code>String!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The key for the metafield.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>namespace</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-10"> <code>String</code> </a>) </td> <td class="argument-description"> <p>The container the metafield belongs to. If omitted, the app-reserved namespace will be used.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="product-2024-10"> <div class="field-name"> product (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/product"><code>Product!</code></a>) </div> <div> <p>The product that this variant belongs to.</p> </div> </div> </li> <li> <div class="field" id="requiresshipping-2024-10"> <div class="field-name"> requiresShipping (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#boolean-2024-10"><code>Boolean!</code></a>) </div> <div> <p>Whether the merchandise requires shipping.</p> </div> </div> </li> <li> <div class="field" id="sku-2024-10"> <div class="field-name"> sku (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-10"><code>String</code></a>) </div> <div> <p>An identifier for the product variant in the shop. Required in order to connect to a fulfillment service.</p> </div> </div> </li> <li> <div class="field" id="title-2024-10"> <div class="field-name"> title (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-10"><code>String</code></a>) </div> <div> <p>The localized title of the product variant in the customer’s locale.</p> </div> </div> </li> <li> <div class="field" id="weight-2024-10"> <div class="field-name"> weight (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#float-2024-10"><code>Float</code></a>) </div> <div> <p>The weight of the product variant in the unit system specified with <code>weight_unit</code>.</p> </div> </div> </li> <li> <div class="field" id="weightunit-2024-10"> <div class="field-name"> weightUnit (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/weightunit"><code>WeightUnit!</code></a>) </div> <div> <p>Unit of measurement for weight.</p> </div> </div> </li> </ul> <h2 id="implements-2024-10">Implements</h2> <ul> <li> <a href="/api/functions/reference/shipping-discounts/graphql/common-objects/hasmetafields"> <code>HasMetafields</code> </a> </li> </ul> </div><div class="doc-version" data-version="2024-07"> <p>Represents a product variant.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-2024-07"> Fields </a> </li> <li> <a href="#implements-2024-07"> Implements </a> </li> </ul> </div> <h2 id="fields-2024-07"> Fields </h2> <ul class="fields"> <li> <div class="field" id="id-2024-07"> <div class="field-name"> id (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#id-2024-07"><code>ID!</code></a>) </div> <div> <p>A globally-unique identifier.</p> </div> </div> </li> <li> <div class="field" id="metafield-2024-07"> <div class="field-name"> metafield (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/metafield"><code>Metafield</code></a>) </div> <div> <p>Returns a metafield by namespace and key that belongs to the resource.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>key</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-07"> <code>String!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The key for the metafield.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>namespace</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-07"> <code>String</code> </a>) </td> <td class="argument-description"> <p>The container the metafield belongs to. If omitted, the app-reserved namespace will be used.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="product-2024-07"> <div class="field-name"> product (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/product"><code>Product!</code></a>) </div> <div> <p>The product that this variant belongs to.</p> </div> </div> </li> <li> <div class="field" id="requiresshipping-2024-07"> <div class="field-name"> requiresShipping (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#boolean-2024-07"><code>Boolean!</code></a>) </div> <div> <p>Whether the merchandise requires shipping.</p> </div> </div> </li> <li> <div class="field" id="sku-2024-07"> <div class="field-name"> sku (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-07"><code>String</code></a>) </div> <div> <p>An identifier for the product variant in the shop. Required in order to connect to a fulfillment service.</p> </div> </div> </li> <li> <div class="field" id="title-2024-07"> <div class="field-name"> title (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-07"><code>String</code></a>) </div> <div> <p>The localized title of the product variant in the customer’s locale.</p> </div> </div> </li> <li> <div class="field" id="weight-2024-07"> <div class="field-name"> weight (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#float-2024-07"><code>Float</code></a>) </div> <div> <p>The weight of the product variant in the unit system specified with <code>weight_unit</code>.</p> </div> </div> </li> <li> <div class="field" id="weightunit-2024-07"> <div class="field-name"> weightUnit (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/weightunit"><code>WeightUnit!</code></a>) </div> <div> <p>Unit of measurement for weight.</p> </div> </div> </li> </ul> <h2 id="implements-2024-07">Implements</h2> <ul> <li> <a href="/api/functions/reference/shipping-discounts/graphql/common-objects/hasmetafields"> <code>HasMetafields</code> </a> </li> </ul> </div><div class="doc-version" data-version="2024-04"> <p>Represents a product variant.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-2024-04"> Fields </a> </li> <li> <a href="#implements-2024-04"> Implements </a> </li> </ul> </div> <h2 id="fields-2024-04"> Fields </h2> <ul class="fields"> <li> <div class="field" id="id-2024-04"> <div class="field-name"> id (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#id-2024-04"><code>ID!</code></a>) </div> <div> <p>A globally-unique identifier.</p> </div> </div> </li> <li> <div class="field" id="metafield-2024-04"> <div class="field-name"> metafield (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/metafield"><code>Metafield</code></a>) </div> <div> <p>Returns a metafield by namespace and key that belongs to the resource.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>key</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-04"> <code>String!</code> </a>) <span class="heading-flag">required</span> </td> <td class="argument-description"> <p>The key for the metafield.</p> </td> </tr> <tr class="field-argument"> <td class="argument-name"> <code>namespace</code> (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-04"> <code>String</code> </a>) </td> <td class="argument-description"> <p>The container the metafield belongs to. If omitted, the app-reserved namespace will be used.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="product-2024-04"> <div class="field-name"> product (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/product"><code>Product!</code></a>) </div> <div> <p>The product that this variant belongs to.</p> </div> </div> </li> <li> <div class="field" id="requiresshipping-2024-04"> <div class="field-name"> requiresShipping (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#boolean-2024-04"><code>Boolean!</code></a>) </div> <div> <p>Whether the merchandise requires shipping.</p> </div> </div> </li> <li> <div class="field" id="sku-2024-04"> <div class="field-name"> sku (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-04"><code>String</code></a>) </div> <div> <p>An identifier for the product variant in the shop. Required in order to connect to a fulfillment service.</p> </div> </div> </li> <li> <div class="field" id="title-2024-04"> <div class="field-name"> title (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#string-2024-04"><code>String</code></a>) </div> <div> <p>The localized title of the product variant in the customer’s locale.</p> </div> </div> </li> <li> <div class="field" id="weight-2024-04"> <div class="field-name"> weight (<a href="/api/functions/reference/shipping-discounts/graphql/scalar#float-2024-04"><code>Float</code></a>) </div> <div> <p>The weight of the product variant in the unit system specified with <code>weight_unit</code>.</p> </div> </div> </li> <li> <div class="field" id="weightunit-2024-04"> <div class="field-name"> weightUnit (<a href="/api/functions/reference/shipping-discounts/graphql/common-objects/weightunit"><code>WeightUnit!</code></a>) </div> <div> <p>Unit of measurement for weight.</p> </div> </div> </li> </ul> <h2 id="implements-2024-04">Implements</h2> <ul> <li> <a href="/api/functions/reference/shipping-discounts/graphql/common-objects/hasmetafields"> <code>HasMetafields</code> </a> </li> </ul> </div>