We are trying to update our payouts API calls to using GraphQL and can’t solve one final piece. On TAX_ADJUSTMENT_CREDIT, there is not a link back to the original order - but the admin shows the order. We need to be able to link this TAX_ADJUSTMENT_CREDIT back to the order that adjusted it.
query GetBalanceTransactionsForPayout($payoutId: String!) {
shopifyPaymentsAccount {
balanceTransactions(first: 100, query: $payoutId) {
nodes {
id
transactionDate
type
net {
amount
currencyCode
}
fee {
amount
currencyCode
}
sourceType
sourceId
sourceOrderTransactionId
adjustmentReason
associatedOrder {
id
name
}
adjustmentsOrders {
amount {
amount
currencyCode
}
link
name
orderTransactionId
}
adjustmentReason
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
The Response for a TAX Adjustment
{
"id": "gid://shopify/ShopifyPaymentsBalanceTransaction/123456789",
"transactionDate": "2025-05-15T19:25:19Z",
"type": "TAX_ADJUSTMENT_CREDIT",
"net": {
"amount": "47.25",
"currencyCode": "USD"
},
"fee": {
"amount": "0.0",
"currencyCode": "USD"
},
"sourceType": "ADJUSTMENT",
"sourceId": "123456789",
"sourceOrderTransactionId": null,
"adjustmentReason": "tax_adjustment",
"associatedOrder": null,
"adjustmentsOrders": []
}
I have tried every different way to grab the associatedOrder, but never get a response on these adjustments. I do get the orders on everything else.
Anyone have any ideas?