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

Topic summary

A developer is encountering an “Internal Server Error” when attempting to cancel a fulfillment using Shopify’s API. They’ve tried both the REST API endpoint (/fulfillments/{id}/cancel.json) and the GraphQL mutation (fulfillmentCancel), but both return internal server errors.

Error Details:

  • REST API returns: {"errors":"Internal Server Error"}
  • GraphQL returns an internal error message with Request ID: 1764234816-22f0a3d94-28d4-9e9b-c95b-89808e25

Recommended Action:
Another user suggests this appears to be a Shopify-side issue and recommends contacting Shopify Partner Support, including the Request ID from the error response to help with troubleshooting.

Status: Unresolved; awaiting Shopify support investigation.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

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”}}]}

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