# SKU

To recognize products in your store and take appropriate properties for them from the supplier feed, Stockeo needs a unique key for each item. The SKU is most commonly used for this.

#### Basic SKU settings

When your supplier provides the SKU in the feed, you can use this value directly. In the following example, the SKU is in the *Code* node.

{% tabs %}
{% tab title="Stockeo SKU settings" %}

<figure><img src="/files/IEmSGAZp614fUhQJedNA" alt="SKU settings in Stockeo for Shopify"><figcaption><p>SKU settings in Stockeo</p></figcaption></figure>
{% endtab %}

{% tab title="Supplier feed" %}

```xml
<Product>
<Code>192330</Code>
<Title>
Pack Of 3 Energy Saving Candle Bulbs 7W (35W Equiv)
</Title>
<Price>2.25</Price>
<RRP>2.95</RRP>
<AvailableStock>29</AvailableStock>
<Barcode>5050140001004</Barcode>
<Categories>Lighting > Bulbs and Accessories</Categories>
<Colour>WHITE</Colour>
<Material>GLASS</Material>
<Description>
Pack of 3 energy saving candle bulbs wth a power of 7 watts, saving energy. These are 40 watt equivalent bulbs
</Description>
</Product>
```

{% endtab %}
{% endtabs %}

#### Add a prefix to the SKU

Use this option if you would like to add a prefix to your SKU easily in the Create mode or in the Update mode when SKUs in your store contain a prefix which does not appear in the feed SKUs.

<figure><img src="/files/SSXbSP97YXzwsgq4rwgg" alt="Add a prefix to products SKU in Stockeo annotated"><figcaption><p>Add a prefix to products SKU in Stockeo</p></figcaption></figure>

#### Generate SKU with the Liquid formula

It may also happen that no field in the feed can be used as the SKU. In this case, use a combination of several fields to create a unique id for each product. To do this enter the Liquid formula directly in the SKU field:

{% tabs %}
{% tab title="Stockeo SKU settings" %}

<figure><img src="/files/CY2tdhlkMBxq1enk8UIM" alt=""><figcaption><p>Sku settings with a Liquid formula in Stockeo</p></figcaption></figure>
{% endtab %}

{% tab title="Supplier feed" %}

<pre class="language-xml"><code class="lang-xml"><strong>&#x3C;item>
</strong>    &#x3C;id>187&#x3C;/id>
    &#x3C;model>PF112&#x3C;/model>
    &#x3C;name>Ernesto leather wallet&#x3C;/name>
    &#x3C;option>Colour Dark Blue&#x3C;/option>
    &#x3C;quantity>34&#x3C;/quantity>
&#x3C;/item>
&#x3C;item>
    &#x3C;id>187&#x3C;/id>
    &#x3C;model>PF112&#x3C;/model>
    &#x3C;name>Ernesto leather wallet&#x3C;/name>
    &#x3C;option>Colour Brown&#x3C;/option>
    &#x3C;quantity>34&#x3C;/quantity>
&#x3C;/item>
</code></pre>

{% endtab %}

{% tab title="Copy SKU settings" %}

```liquid
{{ model }}-{{ option | replace: "Colour ", "" | replace: " ", "-" | upcase }}
```

{% endtab %}
{% endtabs %}

The Liquid formula above for items in this example feed gives the following results:

<figure><img src="/files/4Ml31ySILjbBlM16rvsX" alt="Example SKUs generated with SKU Liquid fomula in the Shopify store"><figcaption><p>Example SKUs generated with SKU Liquid formula</p></figcaption></figure>

#### Alternative variant identifiers

You can also use [metafields](/data-mapping/metafields.md) or [barcodes](/data-mapping/barcode.md) to identify variants in Shopify when SKUs are missing from the feed or do not match the SKUs in Shopify. All supported alternative variant identifiers are explained in the following video:

{% embed url="<https://youtu.be/Y-JyC0SsaZQ?si=Bl4EglOt75On_zAx>" %}
Update variants in Shopify by SKU, barcode or metafield
{% endembed %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.stockeo.solvenium.com/data-mapping/sku.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
