Get date of line item was added to an order by using Shopify API

I believe you can use the agreements object within orders in the GraphQL API.

{ orders(first: 1, query: "name:#5019") { edges { node { name id agreements(first: 10) { edges { node { id happenedAt reason sales(first: 10) { edges { node { lineType actionType quantity totalAmount{shopMoney{amount}} ... on ProductSale { lineItem{id} } } } } } } } } } } }
1 Like