Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How do I know if a user has accepted or rejected the subscription?

How do I know if a user has accepted or rejected the subscription?

nikola_seo
Shopify Partner
15 1 3

After I create a subscription and get a confirmation URL, how do I know that the user has confirmed the subscription and not rejected it. Does the `ReturnURL` get some kind of a query parameter to know that it was successful or not? Eg my return url is set to `http://localhost/subscription/confirmed`, how would I know that it was rejected instead?

Reply 1 (1)
nikola_seo
Shopify Partner
15 1 3

What do you mean? I am using the shopify to create subscription, https://shopify.dev/docs/api/admin-graphql/2024-04/mutations/appSubscriptionCreate  , and I redirect the user to `returnURL`