When cancelling an order, you do need to wrap the request body in “order”. This has been an issue for several years now. The documentation does not appear to be accurate. If you try and call the endpoint exactly as it is described in the documentation, you’ll receive a 422 Unprocessable Entity response from Shopify. I’ve reached out to the Shopify team, and I’ll update with their reply.