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
13 1 1

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
13 1 1

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`