I'm trying to call my shops billing API to setup a test application charge, using this url (from a REST console):
"name": "My Application Name",
But i'm getting the following error:
"base": ["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 have migrated my app to the shopify partners area. Am I getting this error because I'm trying to charge the store I created the app on? Does the application have to be listed on the app store in order for it to be charged? Am I missing something?
Thanks in advance.
The url you have in the post looks like it is for a private application not a partner application. There would be no reason to have an application charge on a private app as the error message is trying to indicate. You need to make sure you are making that request with partner app credentials - it will be OAuth so you will have an access token.
I'm trying to call my shops billing API to setup a test recurring application charge for a paid store using the following url:
with the 'X-Shopify-Access-Token' header set.
"name": "super plan",
Date: Mon, 19 May 2014 11:24:56 GMT
Content-Type: application/json; charset=utf-8
Status: 422 Unprocessable Entity
X-XSS-Protection: 1; mode=block
X-ShopId: <shop id>
X-Shopify-Asset-Version: <some value>
X-Stats-ApiClientId: <some id>
X-Stats-ApiPermissionId: <some id>
X-Stats-Validation-Errors: Name can't be blank,Price must be greater than zero
X-Request-Id: <some id>