GraphQL - order metadata and payment details

GraphQL - order metadata and payment details

JW-soh123
Shopify Partner
1 0 0

Hello! 

I am looking to extract a few fields for all my orders using graphQL.

 

I am not sure what is the correct GraphQL query but i am looking at extracting the following metadata and payment method details for each of my orders.

metadata:

transaction_fee_total_amount

payment method details:

description

issuer

 

See screenshot for more context.

JWsoh123_0-1663165930130.png

 

my current bulk operation query looks like this.

which isn't correct.

Would anyone be kind to share what should be the right query to extract those data circled in green please?

Much appreciated.

mutation {
bulkOperationRunQuery(
query: """
{
orders {
edges {
node {
transactions {
id
accountNumber
formattedGateway
gateway
createdAt
kind
paymentMethod
processedAt
status
totalUnsettled
amount
paymentIcon {
altText
}
}
}
}
}
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}

Replies 0 (0)