[Cancel Recurring App Charge API] Internal_Server_Error returned when applying the provided API

[Cancel Recurring App Charge API] Internal_Server_Error returned when applying the provided API

vypham23
Shopify Partner
1 0 0

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

 

 

 

Reply 1 (1)

ahmedwohlig
Shopify Partner
1 0 0

Hi, Vypham

We are also facing this same issue did you find any solution?