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](http://localhost/subscription/confirmed), how would I know that it was rejected instead?
Topic summary
Main issue: how to detect whether a merchant accepted or rejected a Shopify app subscription after being sent to the confirmation URL returned by the Admin GraphQL mutation appSubscriptionCreate.
- The app has a configured returnURL (e.g., http://localhost/subscription/confirmed).
- Question: Does Shopify append query parameters or otherwise indicate success vs rejection on the returnURL? How can the app distinguish a declined subscription from a confirmed one if the returnURL is always the same?
Context: The poster creates the subscription via appSubscriptionCreate and redirects the user to the returnURL after the flow.
Outcomes/decisions: None. No technical answers or alternatives (e.g., signals, parameters) were provided.
Status: Unresolved; the user seeks a programmatic way to know whether the subscription was confirmed or rejected.
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