Subscription links guide

How to find a Shopify selling plan ID

What you’ll need

  • Your store’s address

  • A product with a subscription plan (from Shopify Subscriptions or your subscription app)

Read plan IDs from your product

Where the ID lives

The product’s .js page is public storefront data. A product sold on subscription has selling_plan_groups (the plans and their names) and, for each variant, selling_plan_allocations (which plans that variant is in, with its price on each plan).

Part of /products/HANDLE.js
"selling_plan_allocations": [
  { "price": 1620, "compare_at_price": 1800, "selling_plan_id": 690012345, "selling_plan_group_id": … }
]

Read it without squinting

  1. Paste the .js page into the link builder.
  2. The plan list shows every plan by name, with its ID and the price for the chosen variant.

Watch out for

  • Prices in the .js data are in cents (1620 = 16.20) and in the shopper’s currency.
  • A variant with an empty selling_plan_allocations list isn’t in any plan, even if other variants are.
  • Group IDs are very long numbers; copy them as text, not from a spreadsheet.

More guides