I am not seeing a clear way to query the API to get a list of orders that have exchanged line items, is this possible?
Alternatively is there a way to get a list of exchanged line items?
I am not seeing a clear way to query the API to get a list of orders that have exchanged line items, is this possible?
Alternatively is there a way to get a list of exchanged line items?
Use the below to get all orders with expanded lineitems
to find the lineItems
that have "exchanged": true
and filter out all the corresponding orders.
https://apisandbox.dev.clover.com/v3/merchants/xxx/orders?expand=lineItems
...
"lineItems": {
"elements": [
{
"id": "SPTE5T1K030F0",
"orderRef": {
"id": "4K92N359V32V6"
},
"item": {
"id": "WPNTPSH8TANW4"
},
"name": "ball",
"price": 3757,
"printed": false,
"exchangedLineItem": {
"id": "4F15YYTNRD4HP"
},
"createdTime": 1478106021000,
"orderClientCreatedTime": 1478106021000,
--> "exchanged": true,
"refunded": false,
"isRevenue": true
},
...
No one has followed this question yet.