A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello,
I am trying to create a transaction using the GraphQL API. I know that you can create one using the REST API https://shopify.dev/docs/admin-api/rest/reference/orders/transaction#create-2020-07 , but I cannot find a mutation to create one using GraphQL. Also I found an order transaction input object https://shopify.dev/docs/admin-api/graphql/reference/mutation/input-object/ordertransactioninput so I assume that a mutation used to exist or is in development. Is there something I am missing?
Hey @evris_k,
Here are some doc links related to order transaction mutations in the GraphQL API (orderCapture, orderClose, refundCreate). It isn't possible to cancel an order via GraphQL as it is in REST at the moment, but there are plans to add this functionality in the future (previous thread here).
CalD | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Facing a similar problem. Were you able to identify any mutation or any workaround for this?