Hi guys,
Could someone here please help me regarding cancel recurring app charge coding on shopify payment? as per this guidance https://shopify.dev/api/admin-graphql/2022-04/mutations/appSubscriptionCancel, the api is appSubscriptionCancel with prorate = true but somehow there’s an error occurred: INTERNAL_SERVER_ERROR with warning message Internal error.
Looks like something went wrong on our end. Request ID: 662e8fcb-015c-417f-8fef-819f189d3719 (include this in support requests).
Here is my coding:
curl -X POST \
https://lequanlocal.myshopify.com/admin/api/2022-04/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access token}' \
-d '{
"query": "mutation AppSubscriptionCancel($id: ID!, $prorate: Boolean){ appSubscriptionCancel(id: $id, prorate: $prorate) { userErrors { field message } appSubscription { id status } } }",
"variables": {
"id": "gid://shopify/AppSubscription/23556456656",
"prorate": true
}
}'
then the error message shown up as follow:
{"errors":[{"message":"Internal error. Looks like something went wrong on our end.\nRequest ID: 3a249609-855d-4ade-bb80-54ecf917f975 (include this in support requests).","extensions":{"code":"INTERNAL_SERVER_ERROR","requestId":"3a249609-855d-4ade-bb80-54ecf917f975"}}]}
Please guide me what’s wrong with my coding or where I should research to implement the correct ones.
Thank you in advance!
Vy