Hi Shopify,
I’m using the GraphQL API to get a list of orders to create the invoice. One problem is that some order’s lineItems might contain removed lineItem. It shouldn’t be shown on the invoice but I have no idea to exclude removed lineItems in each order.
Is there any way to get a list orders response that each order’s lineItems doesn’t contain removed lineItems?
GraphQL Orders API response of this order is below, it contains Navy Sports Jackets
{
"pageInfo": {
"hasNextPage": true
},
"edges": [
{
"node": {
"name": "Navy Sports Jacket - xs",
"quantity": 1,
"originalUnitPriceSet": {
"presentmentMoney": {
"amount": "63.00"
}
}
}
},
{
"node": {
"name": "LED High Tops - US 8",
"quantity": 1,
"originalUnitPriceSet": {
"presentmentMoney": {
"amount": "74.50"
}
}
}
},
{
"node": {
"name": "Dark Denim Top - xs",
"quantity": 1,
"originalUnitPriceSet": {
"presentmentMoney": {
"amount": "66.00"
}
}
}
},
{
"node": {
"name": "Classic Leather Jacket - xs",
"quantity": 1,
"originalUnitPriceSet": {
"presentmentMoney": {
"amount": "40.00"
}
}
}
},
{
"node": {
"name": "Chequered Red Shirt - xs",
"quantity": 1,
"originalUnitPriceSet": {
"presentmentMoney": {
"amount": "54.40"
}
}
}
}
]
}
Any idea will be appreciated!
