2027-01 or later, orderCreate accepts variantIdentifier.customId for a variant metafield of type id. That lets an external order feed reference its own listing ID without a separate variant-ID lookup. This is a release-candidate feature as of November 2026; production integrations on 2026-10 must keep their existing mapping.On this page
Why an order importer needs a better key
Traditional import workflows join ERP or marketplace SKUs to Shopify variant IDs before creating an order. SKU is useful operationally, but Shopify does not enforce global SKU uniqueness. A renamed SKU, duplicated SKU, or stale mapping can attach the wrong variant. Third-party import tutorials often describe matching by SKU or barcode; those are application-level lookup rules, not proof that the Admin API accepts arbitrary external IDs as variant IDs.
What changed on November 6, 2026
Shopify announced that OrderCreateLineItemInput.variantIdentifier, previously available only on unstable, is included in the 2027-01 release candidate. It accepts exactly one of id (Shopify variant GID) or customId (a namespace, key and value from a variant id metafield). Do not combine variantIdentifier with the legacy variantId or productId on the same line: Shopify returns an INVALID user error. Legacy variantId remains usable.
Implement the external-ID path
- Create a product variant metafield definition of type
id, for examplecustom.listing_id. Populate each eligible variant with its unique external listing identifier and confirm the app can read the metafield. - Keep your source-system identifier separate from the SKU. Reject empty or duplicated identifiers during catalog synchronization.
- On a development store using API
2027-01, submit an order withvariantIdentifier.customId. Preserve the rest of your existing order fields, idempotency checks and payment/fulfillment handling. - Inspect
userErrorsbefore marking the source order imported. Do not silently fall back to another SKU when the custom ID cannot be resolved.
mutation {
orderCreate(order: {
lineItems: [{
variantIdentifier: {
customId: {
namespace: "custom"
key: "listing_id"
value: "LST-10045"
}
}
quantity: 1
}]
}) {
order {
id
lineItems(first: 1) {
nodes { variant { id } }
}
}
userErrors { field code message }
}
}
The example is deliberately minimal. Your production order-create mutation still needs the appropriate customer, addresses, financial and other order inputs. A missing metafield definition produces INVALID; an unmatched value produces VARIANT_IDENTIFIER_NOT_FOUND and no order.
variantId, and it is not equivalent to searching by SKU. The variant must have a readable metafield definition with type id; this is not a general-purpose free-text lookup.- Use a development store and explicitly request Admin GraphQL
2027-01. - Create two variants with distinct
custom.listing_idvalues; verify the definition type isid. - Create an order for the known identifier; verify the resulting line item points to the expected Shopify variant GID.
- Repeat with a nonexistent identifier; expect
VARIANT_IDENTIFIER_NOT_FOUNDand no new order. - Repeat without the definition, then with both
variantIdandvariantIdentifier; verify explicit errors. - Run the same importer against
2026-10to confirm your current production fallback remains intact.
- Shopify changelog: orderCreate line items support custom IDs (November 6, 2026)
- Admin GraphQL: orderCreate
- Example of older third-party SKU-based order-import matching (background only; not a specification for the new API).

