Is it possible to cancel orders with the GraphQL API yet? Or is it better to use the refundCreate mutation and refund the order that way? Would that basically cancel the order?
Hello @kishinmanglani ,
You are correct, the GraphQL Admin API don't yet have an `orderCancel` mutation available.
For now, you can use refundCreate to refund the money but note that it wouldn't have the same effects as cancelling the order using the REST Admin API. For example, if you just refund an order the orders/cancelled webhooks won't be sent to apps, merchants will not see the order as cancelled in Shopify Admin, the customer will not receive an Order Cancelled email.
For now, we recommend you cancel orders using the REST Admin API: https://help.shopify.com/en/api/reference/orders/order#cancel-2019-10/.
That's correct @kishinmanglani. We don't have an exact timeline that I can provide with you now, but we are aware it's an example of some missing parity between the REST and GraphQL API. From what I can tell, this feature should be able in GraphQL in the coming months.
Thanks for clarifying that this functionality is only available on the RESTful API. I was digging through the GraphQL API and not finding this mutation was very confusing.
Is there an update on when to expect this to be included?
Are there any updates to the order cancellation capability via the GraphQL API?
It seems a bit silly that everything else is available to do with order via REST, but you can't cancel using GraphQL.
Its been about a year since this was first raised.
I've created a small Rails app to handle this for me, forwarding the requests from my app, to the rails app, to shopify admin api
I cannot believe this isn't supported in Graphql. Just to cancel an Order, I need to setup additional logic for a REST client... Very strange, Shopify
Checking in 2022.
Doesn't seem like the cancel order mutation has been put in yet. If anyone has an update to let us know!