internal server error billing api, ex: GET /admin/api/2021-01/recurring_application_charges.json

taggjan
New Member
2 0 0

Shopify billing API doesn't work(GET API) but POST API work fine.

example: 

GET /admin/api/2021-01/recurring_application_charges.json 
GET /admin/api/2021-01/recurring_application_charges/455696195.json
GET /admin/api/2021-01/application_charges.json

 these API return {"errors": "Internal Server Error"} am i missing something?

0 Likes
PublicApps
Shopify Partner
87 4 24

I've just come across this too:

GET /admin/api/2021-04/recurring_application_charges.json
{"errors":"Internal Server Error"}

When I am logged in to my store.

The URL is correct according to the docs.

Just trying to help out.
- If my reply was helpful, please Like it or mark it as Accepted Solution to let me know!
- Need store customizations? Then consider Hiring us.
0 Likes
PublicApps
Shopify Partner
87 4 24

Update 2021-05-08:

I now assume the HTTP 500 response is intended behaviour. When you provide the X-Shopify-Access-Token header, all is fine:

E.g.

 

curl https://<myshop>.myshopify.com/admin/api/2021-04/recurring_application_charges.json -H "X-Shopify-Access-Token: shpat_712345678"

HTTP 200
{"recurring_application_charges":[{"id":1234.... <more data>.

 

I guess this is because app charges are scoped to the app and without the access token the endpoint doesn't know what app the request belongs to.

I do think the 500 Internal Server Error is a somewhat misleading response.

Just trying to help out.
- If my reply was helpful, please Like it or mark it as Accepted Solution to let me know!
- Need store customizations? Then consider Hiring us.
0 Likes
twistedr11
New Member
6 0 0

i have an app that i am paying a subscription to , but i don't know how to find out the app's '

X-Shopify-Access-Token:

or how to specify this parameter in a google browser. can you explain in more details ?

0 Likes