Skip to content
Back to skills

Shopify Knowledge Patch

ASecurity

Shopify

  • 25 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
developmentjavascripttypescriptjavareactnodeapibackend

Works with

  • terminal
  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill shopify-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shopify Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shopify Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-shopify-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-shopify-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shopify-knowledge-patch
description: Shopify
version: null
license: MIT
metadata:
  author: Nevaberry
---


# Shopify Knowledge Patch

Load this skill when updating Shopify API integrations, app access, Functions,
UI extensions, or storefront behavior. Use the topic references for complete
migration details, examples, limits, and preview-specific guidance.

## Reference index

| Reference | Topics |
| --- | --- |
| [API Versioning and Access](references/api-versioning-and-access.md) | API lifecycle, tokens, IP allowlists, network declarations, permissions, app distribution |
| [Catalog, Inventory, and Fulfillment](references/catalog-inventory-and-fulfillment.md) | Product queries, barcodes, inventory, transfers, holds, Catalog MCP |
| [Custom Data and Events](references/custom-data-and-events.md) | Metafields, metaobjects, analytics, ShopifyQL, Events, webhooks, Rollouts |
| [Functions, Extensions, and Tooling](references/functions-extensions-and-tooling.md) | Function inputs, UI extension configuration, POS, Polaris, App Home, Sidekick, CLI, Flow |
| [Orders, Customers, and Subscriptions](references/orders-customers-and-subscriptions.md) | Draft orders, order edits, customer consent, B2B access, subscription calculations |
| [Payments, Discounts, and Delivery](references/payments-discounts-and-delivery.md) | Discount migrations, POS amounts, payment authentication, gift cards, taxes, shipping, app pricing |
| [Storefront, Checkout, and Markets](references/storefront-checkout-and-markets.md) | Cart and checkout, branding, markets, Hydrogen, Oxygen, themes, UCP |

## Access requirements and enforcement

All public apps must use expiring offline access tokens starting January 1, 2027.
Noncompliant existing public apps are delisted and blocked from new installs that
day, trigger merchant warnings on January 15, and receive Admin API HTTP `403`
on affected requests starting April 1. Migrate background jobs using non-expiring
tokens and ensure they can refresh credentials. Partner-created and merchant-created custom apps created from
December 1, 2026 must also use expiring offline tokens; earlier custom apps can
keep their existing offline tokens.

For new custom apps, send `expiring=1` with the authorization code grant or token
exchange and store the refresh token, or use client credentials or application-only
access, which already issue expiring tokens. To recover a lost migration response,
retry the same sessionless exchange within seven days using the original
non-expiring token and client credentials;
recovery ends early if the issued pair is refreshed or replaced.

Enable an Admin API IP allowlist in the Dev Dashboard. Requests using the app's
tokens that do not match its IP/CIDR or ASN entries return HTTP `403`. Allowlists support
up to 250 IP addresses or CIDR ranges and 10 ASNs; the optional country restriction
applies only to ASN matches. The access reference gives the separate public-app
and external-custom-app enforcement deadlines.

Public apps and custom apps installed outside the owning organization must declare
`[network_access].allowed_sources` when using theme app blocks or embeds, Online
Store script tags, an app proxy, `write_themes`, or a web pixel with
`write_open_pixels`. Use `allowed_sources = []` if no external servers are contacted.
Missing declarations block deploys and public App Store submissions on December 8,
2026. Starting January 1, 2027, they cause public app delisting and block new public
installs; all external custom app installs are blocked until every in-scope app complies.

Partner-built public and custom apps must enable `bulkOperationRunQuery` and
`bulkOperationRunMutation` separately under the Partner Dashboard's API access
requests and re-enable a type after 31 days without use. Merchant-created custom
apps also have to enable each type in their Dev Dashboard Settings as of November 19.

Abandoned checkout recovery URLs require level 2 approval for name, email, phone,
and address across supported Admin API versions and `unstable`. The approval
deadlines are before December 1, 2026 for public apps and January 1, 2027 for
partner custom apps that use the URL.

## Schema removals and deprecated integrations

- Replace `DraftOrderLineItem.grams` with `weight { value unit }` in Admin GraphQL
  `2026-07`; interpret the value using the returned unit.
- In Admin GraphQL `2026-10`, replace `DraftOrderDiscountNotAppliedWarning.priceRule`
  selections with `discountTitle` and `discountCode`. The legacy `PriceRule` object
  and related types leave the public schema.
- Customer Account API `2026-10` removes `Customer.lastIncompleteCheckout` and
  the `Checkout` types. Remove these query and generated-type references.
- Admin GraphQL `2027-01` removes `automaticDiscounts` and its connection and edge
  types. Use `discountNodes` with `method:automatic` and fragments under
  `nodes.discount`; `automaticDiscountNodes` is also deprecated.
- Replace `marketCurrencySettingsUpdate` with currency settings passed directly
  to `marketCreate` or `marketUpdate` before upgrading to Admin GraphQL `2027-01`.
- For collection source conditions, replace `metafieldInteger` writes with
  `metafieldInt` using string values and read fragments with
  `CollectionSourceInclusionConditionMetafieldInt`. Replacements are available in
  `2026-10`; the old input, object, and relation enum are removed in `2027-01`.
- Remove extensions targeting `purchase.discounts-allocator.run` before
  `shopify app deploy`, which rejects the entire deployment if the target is present.
  The preview ended; use the Discount Function API to create discounts.
- Online Store script tags stop running on March 1, 2027. Replace storefront
  behavior that still depends on them before that date.
- Global Catalog REST stopped serving traffic on November 2, 2026. Migrate calls
  to Global Catalog MCP over UCP.
- Replace deprecated Storefront MCP cart calls with UCP Cart MCP. Replace
  `search_shop_policies_and_faqs` with `ask_business` by January 15, 2027; the
  storefront reference includes its profile, request, and response requirements.

## UI extension and POS migrations

The CLI blocks deployment of Admin, Checkout, Customer Account, and POS UI
extensions targeting versions older than 12 months. Older deployed extensions
continue to run. Checkout and Customer Account extensions can declare `owner_type`
in metafield configuration on `2026-10`; deploys targeting `2027-01` or later require
it on every declaration. Repeat a namespace and key for each owner type used.

POS 11.5 applies custom fixed-amount line discounts per unit: $5.00 across three
units rounds to $1.67 per unit, totaling $5.01. On POS UI extension API `2026-04`
or earlier, extensions should pass the total line discount to `setLineItemDiscount` and
`bulkSetLineItemDiscounts` for `FixedAmount`; POS converts it automatically.
Starting with `2026-07`, pass the per-unit amount.

POS 11.15 returns the percentage in `Discount.amount` for `type: 'Percentage'`
on every POS extension API version. Branch on `Discount.type`; percentage-based
codes exposed as `Code` follow the code path.

In POS UI Extensions `2026-10`, cart mutations reject unconfirmed writes:

- On `POS refused the cart update. The cart was not changed.`, retry when cart
  editing resumes.
- On `POS could not confirm the cart update.`, reread the cart before retrying;
  some changes may already have applied.

In POS UI Extensions `2026-10`, replace removed `session.currentSession.staffMemberId` with
`session.staffMember.value?.id` and subscribe to staff changes. Receipt targets
expose their staff ID through `BaseData.session.staffMemberId`.

On `customer-account.page.render` and `customer-account.order.page.render` in
`2027-01`, `currententrychange` supplies
the previous entry in `event.from`. Read `shopify.navigation.currentEntry.url` for
the destination; it is available on `2025-10` and later.

## Custom data, Events, and synchronization

- In `2025-01`, migrate `PrivateMetafield` to app-data metafields or use app-reserved
  namespaces for data attached to individual resources. Read storefront visibility from `MetafieldDefinition.access` and
  update it with `metafieldDefinitionUpdate`.
- Replace removed `metafieldDelete` with `metafieldsDelete`, passing the resource
  GID as `ownerId` with the metafield's `namespace` and `key`.
- `metafieldsSet` costs 10 points plus each owner type's weight times its distinct
  owner count. Multiple writes to the same owner count its weight once per request.
- Malformed metafields used as Function input-query variables fail execution with
  `InvalidVariableValueError` in `2025-01`. Validate stored values before execution.
- Events is generally available with API `2026-10`. Use CLI `4.83` or later for new
  setups; migrate preview configurations by setting `api_version = "2026-10"`
  under `[events]` and updating subscription overrides.
- Parse `fields_changed` as `added`, `updated`, and `removed` path arrays in an
  object. Parent triggers need terminal wildcards; `update` subscriptions need at
  least one trigger. Events subscription queries have a 100-point cost cap and
  execute outside the app's ordinary API rate limit.
- `carts/update` fires only when contents or properties change. Use the operation's
  response when an acknowledgment is needed for every write.
- EventBridge delivers payloads inline up to 1,000,000 UTF-8 bytes. Retain handling
  for larger classic webhook `{"id": ...}` fallbacks and Events stubs with
  `payload_url`, `payload_size_bytes`, and `expires_at`.

Starting in Admin GraphQL `2026-10`, exclusive second-precision timestamp filters
exclude the entire second. When syncing from a returned timestamp, use an inclusive
bound such as `created_at:>='2026-09-15T12:00:02Z'` and deduplicate by ID.

## Orders, inventory, and subscriptions

`ProductVariant.barcodes` supports up to 20 barcodes per variant, each up to 255
characters. Writes to `barcodes` replace the whole list. Supply only one of `barcode` and
`barcodes`; the deprecated singular field reads or replaces the first entry.

Inventory held for drafts and transfers or shipments is moving from `reserved`
to `committed`. Update stock reconciliation accordingly. Use `includeInactive: true`
with `inventoryLevels` or `inventoryLevel` to include inactive levels, and read
`InventoryLevel.isActive`; `inventoryActivate` preserves existing `available` quantity.

In Admin GraphQL `2027-01`, `orderCreate` line items can use `variantIdentifier`
with exactly one of a variant GID in `id` or a `customId` backed by a readable
variant metafield of type `id`. Combining it with
`variantId` or `productId` yields `INVALID`; an unmatched identifier prevents
order creation with `VARIANT_IDENTIFIER_NOT_FOUND`.

Across supported Admin API versions, staff using `draftOrderCreate` or
`draftOrderUpdate` to add discount codes or enable automatic discounts need
`apply_discounts_to_draft_orders`. Staff can keep or remove existing discounts,
and offline calls are exempt from the staff check. Refusal leaves the draft unsaved,
returns `draftOrder: null`, and identifies rejected fields in `userErrors`.

For subscription edits needing checkout Functions in Admin GraphQL `2026-10`,
move from `SubscriptionDraft` to `SubscriptionContractCalculation`. Calculations
run cart transforms and delivery customizations and preview totals, delivery
options, and warnings before saving.

In Admin GraphQL `2027-01`, `paymentConfiguration: {allowStoreCredit: true}` enables credit-first
subscription renewals after buyer opt-in at checkout, with the remainder charged
to the saved method. It defaults to `false`. A contract must have at least one line,
and every line must have no selling plan or a recurring plan allowing credit.
Handle `INVALID` in calculations and on draft commit; verify the calculated value
before committing. The subscription reference covers the writable inputs and
read-only Customer Account field.

## Storefront and extension features

Hydrogen `2026-10` can add commerce to an existing JavaScript framework and run
on the chosen host. Use `npx @shopify/hydrogen@latest setup` to add it and
`npx @shopify/hydrogen skills sync` after upgrades for version-matched skills.

Use `polaris-2.js` for stable 2.x or `polaris-2.0.js` to pin the minor release.
With `@shopify/shopify-app-react-router` 2.1.0 or later, set the same `polarisUrl`
on `AppProvider` and server `shopifyApp` configuration; use
`@shopify/polaris-types@^2.0.0` for TypeScript.

Checkout and Customer Account UI Extensions `2027-01` can send analytics with
`shopify.appEvents.emit(handle, attributes)`; keep billing events on the backend.
Events wait for analytics consent and are dropped on refusal or page exit. The
custom-data reference distinguishes extension and shared admin-tab rate limits.

Across API versions, Storefront API, Liquid, and Functions resolve shared
metafields from equally specific matching markets using the lowest market handle.
In Storefront API `2027-01`, `Market.metafields(identifiers: ...)` matches keys
case-insensitively; use consistent casing across overlapping markets.

Files in this skill

  • SKILL.md8.6 KB
  • coverage.json461 B
  • references/api-versioning-and-access.md2 KB
  • references/catalog-inventory-and-fulfillment.md3.1 KB
  • references/custom-data-and-events.md2.9 KB
  • references/functions-extensions-and-tooling.md2 KB
  • references/orders-customers-and-subscriptions.md3 KB
  • references/payments-discounts-and-delivery.md2.4 KB
  • references/storefront-checkout-and-markets.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.