The accepted solution below:
Solved: Get all transactions of a given order in graphQL - Shopify Community
{
order(id: "gid://shopify/Order/450789469") {
transactions(first: 100) {
edges {
node {
id
kind
status
amountSet {
shopMoney {
amount
currencyCode
}
presentmentMoney {
amount
currencyCode
}
}
}
}
}
}
}
returns:
âmessageâ: âField âedgesâ doesnât exist on type âOrderTransactionââ,
I tried:
{
order(id:"gid://shopify/Order/5670403899463") {
transactions {
id
accountNumber
amountSet{
presentmentMoney{
amount
currencyCode
}
shopMoney{
amount
currencyCode
}
}
authorizationCode
authorizationExpiresAt
createdAt
errorCode
fees {
id
amount {
amount
currencyCode
}
flatFee {
amount
currencyCode
}
flatFeeName
rate
rateName
taxAmount {
amount
currencyCode
}
type
}
gateway
kind
maximumRefundableV2 {
amount
currencyCode
}
order{
id
}
parentTransaction {
accountNumber
}
paymentDetails{
...on CardPaymentDetails{
avsResultCode
name
company
expirationMonth
expirationYear
bin
}
}
paymentIcon{
altText
height
width
id
url
}
paymentId
processedAt
receiptJson
settlementCurrency
settlementCurrencyRate
status
test
totalUnsettledSet{
presentmentMoney{
amount
currencyCode
}
shopMoney{
amount
currencyCode
}
}
}
}
}
That works.
Is it possible to use a criteria as: id:>âgid://shopify/Order/5670403899463â
to reduce the number of calls when collecting a group of orders.
this works on an order connection
orders (first: 10, query: âid:>1â ) {
but this does not:
order(first: 10, query: "id" > 5670403899463) {
transactions {
id
accountNumber
Thank you.