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?
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).
Callum | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution