Generating cancel and skip links for your store
Build authenticated member-portal links for Garde cancel and skip flows.
On Awtomic? You don't need a developer: paste the ready-made snippet from the Install tab into your Shopify theme. See Sending your Awtomic portal's Cancel and Skip buttons to Garde. The rest of this page is for developers who build the links themselves.
Create member-facing Garde links from your authenticated member portal. Every real cancel or skip session requires a valid platform customer token. Customer and membership IDs alone do not grant access.
The cancel and skip links
Use /cancel or /skip on your configured Garde deployment:
/cancel?winery=WINERY&sub=ID#token=TOKEN/skip?winery=WINERY&sub=ID#token=TOKEN
Put the token after #, as shown. Browsers never send the part after # to a server, so the member's token stays out of server and access logs. On arrival Garde removes it from the address bar, so it is not left in the page address, the back/forward history or a copied link. If the member refreshes or comes back with the back button, Garde continues with its own short-lived pass for that browser tab (at most 3 hours, and never longer than the platform token itself).
Links that pass the token as a query parameter (&token=TOKEN before any #) still work, and Garde removes it from the address bar the same way, but the token can then reach request logs on the way in. Switch existing links to #token=.
| Parameter | What it provides |
|---|---|
winery | Recommended: id: followed by your Garde winery ID, or your platform and store: awtomic: followed by your myshopify domain, or commerce7: followed by your Commerce7 tenant ID. Still supported: your Garde winery ID or platform identifier on its own, without a prefix |
token | After #: the current member's platform customer token, URL-encoded |
sub | The Awtomic subscription ID or Commerce7 club membership UUID |
cid | Optional caller hint. Garde derives the customer identity from verified authentication and does not trust this value |
Copy your links from the Member links box on the Install tab of the Cancel flow page. It shows your exact winery value in both recommended forms, already URL-encoded, for example:
/cancel?winery=awtomic%3Ayour-store.myshopify.com&sub=ID#token=TOKEN/skip?winery=commerce7%3Ayour-tenant&sub=ID#token=TOKEN/cancel?winery=id%3Ayour-garde-id&sub=ID#token=TOKEN
A link with a platform prefix only ever matches a winery on that platform, and an id: link only ever matches that Garde winery. The id: form keeps working if your store is later reconnected to a different shop or tenant. A literal : instead of %3A also works.
Links without a prefix keep working as before. Among those, prefer your Garde winery ID (Garde support can confirm it). Garde will not create a second winery whose store identifier equals an existing winery ID, or that would be an ambiguous match for that ID, so this form identifies your winery. The platform identifier (the myshopify domain or Commerce7 tenant ID) on its own also works when it belongs only to you. If it matches more than one Garde winery, Garde refuses the link rather than guess: use a prefixed form instead.
For Commerce7 cancellation, sub may be omitted. Garde verifies the customer, fetches that customer's active memberships and either selects the only membership or asks the member to choose. Skip links require sub.
Platform authentication
For Awtomic, use the member token issued by the authenticated Awtomic portal. Garde verifies it for the selected customer and subscription. The Install tab's Awtomic portal snippet does this for you.
For Commerce7, use the storefront customer token, not an app token or app credentials. Garde verifies it with Commerce7's tenant-scoped /customer/self endpoint and then checks that the membership belongs to the returned customer. The portal integration must obtain the token through Commerce7's supported customer login flow. Installing Garde webhooks does not create this storefront link or establish a logged-in customer session.
Build links dynamically from the signed-in portal context and URL-encode each parameter. Do not publish a reusable link containing a customer's token in an email template, printed card or QR code. Those entry points should link to the member portal so the member can sign in before opening Garde.
Optional presentation parameters
Add these before the #.
| Parameter | What it does | Example |
|---|---|---|
layout | Overrides the layout template | &layout=immersive |
lang | Selects a language for supported flows | &lang=es |
Testing links
Use Preview as member in the Cancel flow editor for demo behavior. Preview requires separate preview authentication; adding preview=true alone does not authorize it. Preview uses placeholder data and cannot validate a real member token, provider read, or subscription change.
Test a real member link only with an authorized test account in the intended environment. QA and production have separate winery configurations. Invalid or expired tokens, a token for another Commerce7 tenant, and memberships that do not belong to the verified customer are rejected. An unavailable identity provider also prevents entry; start again once verification is available.