Creating transactions using the GraphQL Admin API

Highlighted
New Member
3 0 0

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?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
54 6 8

Hey @evris_k,

Here are some doc links related to order transaction mutations in the GraphQL API (orderCaptureorderCloserefundCreate). 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 

0 Likes