appSubscriptionCancel errors with Apps without a public distribution cannot use the Billing API"

Hi,

On a development app, we can create test charges using Shopify billing API (REST).
Next, trying to cancel that test charge with appSubscriptionCancel mutation gives error with “Apps without a public distribution cannot use the Billing API”
It should allow us, so that we can test functionality before publishing, similar to test charges.

Is your app custom app or public app?

You can’t test billing API on custom app. As I known, there is no way to convert custom app into public app.
You will need create new public app(draft) to test billing API.

It’s a newly created app (for testing locally before pushing changes to live public app), no distribution chosen yet. I see this in Overview page:
When you’re ready, choose to distribute your app either on the Shopify App Store or by single-merchant install link.

The REST billing API works fine to create a paid or test charge. It’s just the GraphQL API to cancel the created subscription that gives this error.

Hey Mark,

Currently the appSubscriptionCancel mutation will only work on active app subscriptions - so not test charges. I’ll connect with the team that own this resource however to raise this as a feature request.

Does this REST endpoint work on test charges?

1 Like

Thanks Liam for the feature request. Yes, the REST works, but: The REST Admin API is a legacy API as of October 1, 2024