Subscription links guide

How to make a Shopify checkout link that keeps the subscription

What you’ll need

  • Your store’s address

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

Build a subscription link

Shopify’s cart permalinks (/cart/VARIANT:QTY) and the newer Cart and Checkout Permalinks both list selling plans as not supported. They add a one-time purchase, and for a subscription-only product they fail.

The format that does

The storefront’s /cart/add accepts a selling_plan for each item. So the link empties the cart, adds the items with their plans, then sends the shopper to checkout.

Subscription checkout link
https://yourstore.com/cart/clear?return_to=/cart/add?items[][id]=VARIANT_ID%26items[][quantity]=1%26items[][selling_plan]=SELLING_PLAN_ID%26return_to=/checkout

Make one in a minute

  1. Open your product on the online store and add .js to the end of the address (yourstore.com/products/coffee.js).
  2. Copy everything on that page and paste it into the builder.
  3. Pick the variant, the subscription plan and the quantity.
  4. Copy the link (or the QR code), then open it once in a private window to check checkout shows the plan.

What can break it later

  • A plan that’s deleted and recreated gets a new ID. Re-check old links every few months.
  • A variant that’s deleted or sold out makes the link show an error.
  • Typing & instead of %26 inside return_to loses the plan: the store reads it as part of /cart/clear.

More guides