# Shopify-linked materials

Materials that are real Shopify variants. Shopify owns the stock; Assemblified writes what it consumes back through the Admin API, per location.

import { Steps, Aside } from '@astrojs/starlight/components';
import DocUpdated from '~/components/DocUpdated.astro';

A **Shopify-linked material** is a real Shopify variant — a SKU that exists in your catalogue and
has its own inventory. Shopify owns the stock; Assemblified writes what a build or an order consumes
back through the Shopify Admin API. Multi-location works out of the box, because Shopify already
manages it.

This is the default kind of material — what you'll create most often.

## On this page

- Registering a Shopify variant as a material
- What Shopify owns and what Assemblified owns
- How consumption reaches Shopify
- Multi-location
- When stock changes in Shopify
- The history trail
- Common scenarios

## Registering a Shopify variant

<Steps>

1. Go to **Materials**. There is no separate Shopify list — Shopify-linked materials sit beside
   virtual ones in every view, and a small link beside the name opens the product in your Shopify
   admin. To see only them, add the **Virtual material** filter and set it to **No**, or add the
   **Origin** column from **Display options**.
2. In the title bar, open **More actions** and choose **Add from Shopify**. Shopify's own product
   picker opens.
3. Pick one or more variants. Assemblified copies the product and variant name, the SKU, the price,
   the current stock, the image, the unit cost and the physical
   [weight](/features/raw-materials/weight/) from each one.
4. The material is registered as Shopify-backed and is ready to use as a component.
5. Optionally open **Edit** to set the things Shopify doesn't own: the unit, the specifications, the
   product type and category, and whether the material is
   [non-essential](/features/raw-materials/non-essential/). You can also put it in a
   [group](/features/groups/).

</Steps>

<Aside type="note">
The product picker is Shopify's own, so it's only available while Assemblified is open inside the
Shopify admin. Outside it, use **Create virtual material** or the importer instead.
</Aside>

You don't have to register a variant here first. Picking a Shopify variant as a component on a bill
of materials or an assembly BOM, in a work order, in bulk material edit, or bringing it in through
an import registers it the same way: the unit cost, weight, product type and category come straight
from Shopify. Draft products work like active ones. If you pick a variant that is already a material,
its unit cost and weight are refreshed from Shopify. Its product type and category are refreshed too
when you pick it on a bill or in a work order; bulk material edit and imports leave the ones you set
alone.

If a variant has no cost in Shopify, the material starts at a unit cost of **0** — set the cost on
the variant in Shopify and it follows automatically.

## What Shopify owns, and what Assemblified owns

On a Shopify-linked material the two systems split the fields between them, and the edit dialog
marks Shopify's side **Managed in Shopify** rather than letting you type into it:

| Owned by Shopify (mirrored, read-only here) | Owned by Assemblified (yours to edit) |
|---|---|
| Product name, variant name, SKU | Unit |
| Price and unit cost | Specifications |
| Physical weight | Product type and category |
| Stock quantity | Non-essential |

**Refresh from Shopify** — on the Attributes card of the material page, in its title bar, in the row
menu and as a bulk action — re-reads Shopify's side on demand.

## How consumption reaches Shopify

When a bill containing a Shopify-linked material executes, Assemblified writes the change through
the Shopify Admin API:

- **Order created:** the consumed quantity comes off what is available.
- **Order cancelled or refunded:** it goes back, when the cascade restores components.

Several materials in the same order are written together where possible.

If Shopify refuses the write — a rate limit, a network failure, a location that cannot take it — the
failure is recorded on that order's execution log. Assemblified does **not** roll back its own state:
shelf drawdown and other internal updates are committed before the Shopify call. The fix is
[Reconcile inventory](/features/raw-materials/inventory-tracking/#the-local-index-and-reconcile-inventory)
or a [restock](/features/raw-materials/restocking/).

If Shopify rejects the write **permanently** — the variant was deleted, or inventory tracking was
switched off — the material is flagged instead. See
[Binding refused](/features/raw-materials/binding-refused/).

## Multi-location

Shopify-linked materials use Shopify's location model directly:

- The material has stock at every Shopify location it is activated at.
- A BOM line can pin the material to one location; if it does, that's always where it comes from,
  and every component underneath a pinned assembly follows the same pin.
- Otherwise the order's own location is used when **Settings → General → Respect order and
  fulfillment locations when available** is on, and your default location otherwise.

See [Inventory tracking → Multi-location rules](/features/raw-materials/inventory-tracking/#multi-location-rules).

## When stock changes in Shopify

When you adjust a material's stock in the Shopify admin, or another app does:

1. Shopify's **product update** reaches Assemblified, and the material's mirrored figures are
   refreshed — name, SKU, price, unit cost, stock quantity, product type and vendor.
2. If the quantity actually moved **and Settings → General → Auto-update on inventory change is
   switched on**, Assemblified recalculates every finished good that uses this material, so its
   displayed availability follows. With the setting off, the figure is refreshed but no
   recalculation runs.

A change to the variant's **cost, weight or inventory tracking** arrives on a separate path and
refreshes the mirrored cost, SKU and weight. A cost change also recalculates the stored cost of every
assembly BOM and bill of materials that uses the material, directly or through an assembly BOM. Weight is mirrored one way only — Assemblified never
writes a weight back to Shopify.

## The history trail

Every movement of a material — from an order, a work-order pick, a restock, a reconcile or an
external change — is recorded on the material page's **History** tab, newest first, with what caused
it and a link to the order where there is one. You can filter it by location.

It's the first place to look when the question is "where did my stock go?".

## Common scenarios

**A material you also sell on its own.** Nothing special is needed. The material keeps its own
Shopify product page, and using it as a component draws on the same stock. Customers buying it
directly and customers buying something built from it compete for the same units — that's the point.

**A material at several Shopify locations.** Pin the BOM line to one location if the material
should always come from there. Otherwise leave it blank and let the order's own location decide.

**Negative stock.** Shopify allows negatives where the location is configured to. Assemblified passes
the change through; if Shopify takes it below zero, that's Shopify's behaviour. Lock it down at the
Shopify location if you don't want it.

## Where to next

- [Inventory tracking](/features/raw-materials/inventory-tracking/) — the five kinds of stock, the local index and the multi-location rules.
- [Virtual materials](/features/raw-materials/virtual-materials/) — the other kind of material.
- [BOM Composition](/features/bill-of-materials/composition/) — using materials in a bill.
- [Safety-stock reservations](/features/bill-of-materials/safety-stock-reservations/) — holding stock back for a buildable buffer.

<DocUpdated date="2026-10-19" />