Hi there
Try using order agreements fields. pls refer to below code: Hope this can help
query {
order(id: "gid://shopify/Order/116757651") {
agreements(first: 10) {
edges {
node {
id
happenedAt
sales(first: 10) {
edges {
node {
actionType
lineType
quantity
totalAmount {
shopMoney {
amount
}
}
... on ProductSale {
lineItem {
id
name
}
}
}
}
}
}
}
}
}
}