Hey Shopify support team,
We are trying to get all order edits for a order,
was wondering if you could help us out. I have tried this query but it still responds with ORDER SalesAgreement.
Could you tell what query keys are respected on the SalesAgreement and Sales objects respectively. This is an obvious area of improvement, you folks at Shopify can bridge. Thanks.
This is the query we are using:
query {
orders(first: 10, reverse: true, query: "updated_at:>2024-01-01") {
edges {
node {
updatedAt
createdAt
agreements(first: 10, query: "reason:ORDER_EDIT") {
edges {
node {
app {
handle
installation {
accessScopes {
handle
}
}
}
reason
id
happenedAt
sales(first: 10) {
edges {
node {
actionType
lineType
quantity
totalAmount {
shopMoney {
amount
}
}
... on ProductSale {
lineItem {
id
name
}
}
}
}
}
}
}
}
}
}
}
}