Public app recurring_application_charges 403 forbidden

I’m working on the plans page of my shopify app. It’s a public app and has the listing status ‘draft’.

When sending a post request to recurring_application_charges.json, using the rest api, I get the error ‘403 Forbidden’. The store I’m testing this out on is a development store. I’m sending the necessary parameters ‘name’, ‘price’, and ‘return_url’ (test is set to true)

Here is the x-request-id:
486540b5-be45-4495-b053-9bbe3796d8cd-1734862393

Any help is much appreciated!

I am having the same issue, since we went public with the app.

POST https://XXXXX-XX.myshopify.com/admin/recurring_application_charges.json resulted in a 403 Forbidden

@SC_dev , Let me know if you find a solution please

URL should be something like:

/admin/api/2024-10/recurring_application_charges.json

i doubt this the issue, it used to work in development, error only starting happening when we made the app public to submit it for review

Hey @Edward_Ilies

We commonly encounter a 403 error when the URL is incorrect or the X-Shopify-Access-Token header (maybe something hardcoded?) value is invalid.

You may want to reach out to support from here: https://help.shopify.com/en/support/partners

You can also test graphql version of the app subscription to see if the issue with permissions or not.

Not sure if this might be the case or if that would be the expected error in this case, but you may want to double check that the app is set up for ‘Manual pricing’ and not ‘Managed pricing’.

If the app is set for managed pricing, you would not be able to create subscription charges through the API.

1 Like

@Merchbees Thanks, testing with graphql gave me a better undertsanding of the issue
Message : Managed Pricing Apps cannot use the Billing API (to create charges).

@Brett Thanks for the reply, that was the issue

1 Like

@Edward_Ilies it’s better to invest in GraphQL since Shopify is deprecating REST nowadays.

2 Likes