Heya,
I was wondering how to access a store credit Transaction linked to a return/exchange? I am on version 2025-07 of API.
for example, I am targeting an order that has a return and store credit on it like this:
query Order {
order(id: "gid://shopify/Order/XXXXXXXXXX") {
returns(first: 10) {
nodes {
closedAt
createdAt
id
name
requestApprovedAt
status
totalQuantity
refunds(first: 10) {
nodes {
createdAt
id
legacyResourceId
note
updatedAt
totalRefunded {
amount
currencyCode
}
transactions(first: 10) {
nodes {
accountNumber
amount
authorizationCode
authorizationExpiresAt
createdAt
errorCode
formattedGateway
gateway
id
kind
manualPaymentGateway
manuallyCapturable
maximumRefundable
multiCapturable
paymentDetails
paymentId
paymentMethod
processedAt
receiptJson
settlementCurrency
settlementCurrencyRate
status
test
totalUnsettled
}
}
}
}
exchangeLineItems(includeRemovedItems: null, first: 10) {
nodes {
id
processableQuantity
processedQuantity
quantity
unprocessedQuantity
lineItem {
canRestock
currentQuantity
discountedTotal
discountedUnitPrice
fulfillableQuantity
fulfillmentStatus
id
isGiftCard
merchantEditable
name
nonFulfillableQuantity
originalTotal
originalUnitPrice
quantity
refundableQuantity
requiresShipping
restockable
sku
taxable
title
totalDiscount
unfulfilledDiscountedTotal
unfulfilledOriginalTotal
unfulfilledQuantity
variantTitle
vendor
}
}
}
reverseFulfillmentOrders(first: 10) {
nodes {
id
status
}
}
}
}
}
}
But the TotalRefunded is = 0.00, whereas on the order it is saying a store credit has been issued for 234.00