I’m trying to call my shops billing API to setup a test application charge.
But i’m getting the following error:
“It appears that this application is currently owned by a Shop. It must be migrated to the Shopify partners area before it can create charges with the API.”.
I’m using a “developer/test shop” created on my “Shopify Partners profile”. If it is this the problem, how can I test my App that isn’t published?
The Billing API is only available for app’s installed via the Shopify App store, either listed or unlisted app, and thus must be created via the Partner Dashboard. You can retrieve the API Key and credentials for Partner Apps from your Partner Dashboard as well. Here is a Shopify.dev article with more information and direct instructions on how to retrieve, revoke, and refresh your API credentials from the Partner Dashboard.