Skip to content
Back to skills

Shopify Knowledge Patch

ASecurity

Shopify

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
developmentgonodeapibackend

Works with

  • terminal
  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 10 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/badge)](https://www.skillsdirectory.com/skills/nevaberry-shopify-knowledge-patch)

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 upgrading Shopify integrations or working on the API,
extension, storefront, and app operations covered below. Use the quick reference
for migration decisions and the topic files for full conditions and examples.

## Reference index

| Reference | Topics |
| --- | --- |
| [API lifecycle and removals](references/api-lifecycle-and-removals.md) | Version selection, offline tokens, IP allowlists, network declarations, bulk access, scopes, request limits |
| [Apps, extensions, and POS](references/apps-extensions-and-pos.md) | Deployment limits, diagnostics, Polaris, POS, intents, app distribution and billing |
| [Custom data and metafields](references/custom-data-and-metafields.md) | Access migrations, definitions, constraints, custom IDs, analytics, extension declarations, market resolution |
| [Customers, orders, and drafts](references/customers-orders-and-drafts.md) | Draft migrations, order creation and edits, returns, consent, customer data, B2B access |
| [Functions, events, and analytics](references/functions-events-and-analytics.md) | Function inputs, network calls, Events subscriptions, App Events, ShopifyQL, Flow |
| [Payments, discounts, and subscriptions](references/payments-discounts-and-subscriptions.md) | Discount queries, Rollouts, vaulting, subscription calculations, gift cards, store credit |
| [Products, inventory, and fulfillment](references/products-inventory-and-fulfillment.md) | Product queries, barcodes, publishing, dimensions, inventory transfers, holds, delivery profiles |
| [Storefront, checkout, and markets](references/storefront-checkout-and-markets.md) | Checkout migrations, carts, Markets, Hydrogen, UCP, MCP, Catalog |

## Breaking changes and deprecations

- Admin GraphQL `2026-07` removes `DraftOrderLineItem.grams`. Replace it with
  `weight { value unit }` and interpret the value using the returned unit.
  Queries still selecting `grams` error once `2026-04` becomes unsupported.
- Admin GraphQL `2026-10` removes `DraftOrderDiscountNotAppliedWarning.priceRule`
  and the public legacy `PriceRule` types. Replace `priceRule.title` with
  `discountTitle` and codes from `priceRule.discountCodes` with `discountCode`.
  Older supported versions expose `priceRule` until end of life.
- Admin GraphQL `2027-01` removes `automaticDiscounts` and its connection and
  edge types. Use `discountNodes` with `method:automatic` and put fragments
  inside `nodes.discount`; `automaticDiscountNodes` is also deprecated.
- Admin GraphQL `2027-01` removes `marketCurrencySettingsUpdate` and its related
  payload and error types. Supply currency settings to `marketCreate` or
  `marketUpdate` instead.
- For collection conditions, replace `metafieldInteger` writes with `metafieldInt`
  using string values and read `CollectionSourceInclusionConditionMetafieldInt`.
  The replacements exist in `2026-10`; the old input, object, and relation enum
  are removed in `2027-01`.
- Customer Account API `2026-10` removes `Customer.lastIncompleteCheckout` and
  `Checkout` types. Remove them from queries and generated types before upgrading.
- Remove extensions targeting `purchase.discounts-allocator.run` before
  `shopify app deploy`: their presence rejects the entire deployment. The preview
  functions were unregistered; use the Discount Function API to create discounts.
- Online Store script tags stop running March 1, 2027. Replace storefront
  behavior that depends on them before that date.
- Global Catalog REST stops serving traffic November 2, 2026. Migrate to
  Global Catalog MCP over UCP. Migrate deprecated Storefront MCP cart calls to
  UCP Cart MCP.
- Replace `search_shop_policies_and_faqs` by January 15, 2027 with `ask_business`
  at `https://{shop-domain}/api/ucp/mcp`. Declare `dev.ucp.common.ask` in the agent
  profile and pass `meta.ucp-agent.profile` on every request.

## API access and app requirements

- Check `X-Shopify-API-Version` on responses and webhooks to confirm which
  version served the payload. The CLI blocks deployments of Admin, Checkout,
  Customer Account, and POS UI extensions targeting versions older than 12 months;
  older deployed extensions continue to run.
- All public apps must use expiring offline access tokens from January 1, 2027.
  Noncompliant existing public apps are delisted and blocked from new installs
  then, trigger merchant warnings 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 use expiring offline tokens for GraphQL and REST Admin API calls. Earlier
  apps can keep existing offline tokens. Send `expiring=1` with an authorization
  code grant or token exchange and store the refresh token, or use client
  credentials or application-only access, which already issue expiring tokens.
- Public apps needed an enabled IP allowlist for bulk operations by November 12,
  2026 at 11:59 p.m. ET and to avoid delisting and blocked new installs by
  November 20 at 11:59 p.m. ET. Existing installs without one work until April 1,
  2027; enabling an allowlist automatically relists the app.
- Partner custom apps installed outside their owning organization require an
  enabled allowlist for new installs from November 20, 2026 at 11:59 p.m. ET and
  existing installs from January 1, 2027 at 11:59 p.m. ET. From January 1, one
  in-scope app without an allowlist blocks the partner's external installs for
  all their apps.
- 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 there are no external
  servers. Missing declarations block deploys and public App Store submissions
  December 8, 2026; January 1, 2027 brings public delisting and blocked new public
  installs, and 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 in Partner Dashboard API access requests,
  re-enabling a type after 31 days without use. Since November 19, merchant-created
  custom apps must also enable each type in their Dev Dashboard Settings.
- Abandoned checkout recovery URLs require level 2 approval for name, email,
  phone, and address across supported Admin API versions and `unstable`.
  Request approval before December 1, 2026 for public apps or January 1, 2027
  for partner custom apps using these URLs.

## POS cart and session behavior

- POS 11.5 applies fixed-amount line discounts per unit: $5.00 across three units
  rounds to $1.67 per unit and $5.01 total. On POS UI Extensions `2026-04` or
  earlier, pass the total line discount to `setLineItemDiscount` and
  `bulkSetLineItemDiscounts` for `FixedAmount`; POS converts it automatically.
  Starting with API `2026-07`, pass the per-unit amount.
- POS 11.15 returns the percentage in `Discount.amount` for `Percentage` on every
  extension API version: 25% of $200 returns `25`, versus `50` through 11.14.
  Branch on `Discount.type`; percentage-based codes exposed as `Code` use that path.
- POS UI Extensions `2026-10` rejects unconfirmed cart writes. For
  `POS refused the cart update. The cart was not changed.`, retry when editing
  resumes. For `POS could not confirm the cart update.`, reread the cart before
  retrying because some changes may already have applied.
- Replace `session.currentSession.staffMemberId` in `2026-10` with
  `session.staffMember.value?.id` and `session.staffMember.subscribe(callback)`.
  Receipt targets expose the staff ID at `BaseData.session.staffMemberId`.

## Events, analytics, and Function inputs

- Events is generally available with API `2026-10`; use CLI `4.83` or later for
  new setups. Migrate preview configurations to `api_version = "2026-10"` under
  `[events]` in `shopify.app.toml` and update subscription overrides.
- Parse `fields_changed` as `added`, `updated`, and `removed` path arrays in an
  object. Parent triggers need terminal wildcards such as `product.variants.*`;
  leaf triggers use exact paths. An `update` subscription requires a trigger.
- Events subscription queries have a 100-point cost cap and run outside the
  ordinary app API rate limit. Split costly queries into subscriptions with their
  own triggers and select the changed resource directly when its ID is supplied.
- Existing EventBridge subscriptions deliver up to 1,000,000 UTF-8 bytes inline.
  Larger classic webhooks use the `{"id": ...}` fallback; Events use `payload_url`,
  `payload_size_bytes`, and `expires_at`. Check downstream target size limits.
- Checkout and Customer Account UI Extensions `2027-01` can use
  `shopify.appEvents.emit(handle, attributes)` for analytics. Events wait for
  consent and are dropped on refusal or page exit; keep billing events on the
  backend. These extensions have a burst of 20 then two events per second each.
- Functions API `2026-10` exposes delivery option metafields on
  `cart.deliveryGroups.deliveryOptions`. Functions can read their own reserved
  and shared namespaces; another app's reserved namespace resolves to `null`.
  Legacy Order Discounts and Product Discounts APIs always return empty groups.

## Custom data and synchronization

- Replace `metafieldDelete` with `metafieldsDelete`, passing the resource GID as
  `ownerId` with `namespace` and `key`. Invalid metafield queries return Admin
  GraphQL errors, separately from successful queries with no matching data.
- Enable the unique-values capability before creating any metafields for the
  definition. It applies to `single_line_text_field`, `number_integer`, `url`,
  and `id`.
- Checkout and Customer Account UI extension metafield declarations can specify
  `owner_type` in `2026-10`; deployments targeting `2027-01` or later require it
  on every declaration. Repeat a namespace and key separately for each owner type.
- Set `capabilities.analytics_queryable = true` in `shopify.app.toml` for eligible
  customer, order, product, or product variant metafield definitions and app-owned
  metaobject definitions, then deploy. Metaobjects need a compatible field and a
  referencing metafield on one of those four resource types for analytics exposure.
- With Admin GraphQL `2026-10`, an exclusive second-precision timestamp bound
  excludes the whole second. Use an inclusive bound and deduplicate by ID when
  synchronizing from a returned timestamp to avoid skipping records in that second.

## Orders, subscriptions, and inventory

- Across supported Admin API versions, staff adding `discountCodes` or enabling
  `acceptAutomaticDiscounts` through `draftOrderCreate` or `draftOrderUpdate`
  need `apply_discounts_to_draft_orders`. Staff may keep or remove existing
  discounts, and offline calls are exempt from the staff check. Refusal leaves
  the draft unsaved, returns `draftOrder: null`, and reports rejected fields.
- In Admin GraphQL `2027-01`, draft order variant lines accept `sellingPlanId`
  for recurring or prepaid subscriptions on non-B2B drafts without line price
  overrides. Use `draftOrderInvoiceSend` for checkout; `draftOrderComplete`
  returns a user error for these drafts.
- In Admin GraphQL `2026-10`, move subscription edits needing checkout Functions
  from `SubscriptionDraft` to `SubscriptionContractCalculation` to run cart
  transforms and delivery customizations and preview totals, options, and warnings.
- Admin GraphQL `2027-01` supports `paymentConfiguration: {allowStoreCredit: true}`
  for renewal store credit after buyer opt-in at checkout. The default is `false`; credit is
  used first and the remainder goes to the saved payment method. A contract needs
  at least one line, and each line needs no selling plan or a recurring plan allowing
  credit. Handle `INVALID` in calculations and on draft commit; verify the calculated
  value before committing. See the subscription reference for input locations.
- `ProductVariant.barcodes` supports up to 20 barcodes of up to 255 characters.
  Writes through `barcodes` replace the whole list; the deprecated `barcode`
  reads or replaces the first entry. Supply only one field per variant input.
- `inventoryActivate` preserves the existing `available` quantity. To read
  inactive inventory levels, use `includeInactive: true` and select `isActive`.

## Storefront and market behavior

- In Shopify Tax managed mode, publishing to Online Store, Headless, Hydrogen,
  or Buy Button requires Shop, including scheduled or draft assignments. Dated
  API versions can repair invalid requests automatically; `unstable` rejects
  them atomically. See the product reference for publication dependencies.
- Across API versions, Storefront API, Liquid, and Functions resolve a shared
  metafield from equally specific matching markets using the lowest market handle.
  Storefront API `2027-01` also matches `Market.metafields` keys case-insensitively.
- On UCP `2026-08-25`, negotiate `dev.ucp.shopping.buyer_consent`, use returned
  purposes, descriptions, and policy links, and send actual buyer choices with
  `source: "platform"`. Omitted consent uses store country defaults, with opt-out
  when the buyer's country is unknown. For `missing_consent_data`, collect the
  required contact detail before retrying completion.
- Storefront API `2027-01` defaults `ProductVariant.storeAvailability` to pickup
  locations. `physicalStorefront: true` adds walk-in storefronts; combine it with
  `pickUpEnabled: false` to list only storefronts. Use the returned flags to label
  locations; walk-in-only locations must be open and able to sell the variant,
  while sold-out pickup locations return `available: false`.

Files in this skill

  • SKILL.md9.4 KB
  • coverage.json462 B
  • references/api-lifecycle-and-removals.md2.2 KB
  • references/apps-extensions-and-pos.md1.4 KB
  • references/custom-data-and-metafields.md2.8 KB
  • references/customers-orders-and-drafts.md2.6 KB
  • references/functions-events-and-analytics.md1.1 KB
  • references/payments-discounts-and-subscriptions.md2.3 KB
  • references/products-inventory-and-fulfillment.md3.4 KB
  • references/storefront-checkout-and-markets.md1.8 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.