Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How should I handle an internal error in canceling the fulfillment API response

How should I handle an internal error in canceling the fulfillment API response

AndyChou
Shopify Partner
11 0 0

curl -d '{}' \
-X POST "https://88cd85.myshopify.com/admin/api/2024-07/fulfillments/1069019896/cancel.json" \
-H "X-Shopify-Access-Token: {access_token}" \
-H "Content-Type: application/json"


Response:       {"errors":"Internal Server Error"}


curl -X POST \
https://88cd85.myshopify.com/admin/api/2024-07/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '{
"query": "mutation fulfillmentCancel($id: ID!) { fulfillmentCancel(id: $id) { fulfillment { id status } userErrors { field message } } }",
"variables": {
"id": "gid://shopify/Fulfillment/1069019896"
}
}'

Response:       {"errors":[{"message":"Internal error. Looks like something went wrong on our end.\nRequest ID: 25e89808-c95b-48c7-b9e9-2f2203a94d82-1718347246 (include this in support requests).","extensions":{"code":"INTERNAL_SERVER_ERROR","requestId":"25e89808-c95b-48c7-b9e9-2f2203a94d82-1718347246"}}]}

Reply 1 (1)

toolstr
Shopify Partner
6 0 0

Looks like an error from the Shopify side. You should contact Shopify partner support and share the Request ID mentioned in the response.