Add `payout_id` Query to `shopifyPaymentsAccount.balanceTransactions` in GraphQL Admin API

For me using the ‘payments_transfer_id’ filter works. For example

query {
  shopifyPaymentsAccount {
    balanceTransactions(first:100, query: "payments_transfer_id:payout_id", reverse:true, hideTransfers: true)
    {
        nodes{
            id
            type,
            adjustmentReason,
            adjustmentsOrders{
                name,
                amount{
                    amount
                }
                orderTransactionId
            }
            sourceType,
            amount{
                amount
            }
            associatedOrder{
                id
                name
            }
            associatedPayout{
                id
            }
            fee{
                amount
            }
            net{
                amount
            }
            sourceId,
            sourceOrderTransactionId
            test
        }
    }
  }
}

I didn’t use the full gid, rather I used only the last segment. (In your example I didn’t use gid://shopify/ShopifyPaymentsPayout/74170105928 rather I used only 74170105928) so you can replace my query string with the following query: "payments_transfer_id:74170105928"

3 Likes