I need to get all sold items in time interval. So in this case I have to get all payments and refunds.
I tested to refund order using
POST https://scl-sandbox.dev.clover.com/v1/orders/{orderId}/returns
and this one refunds the whole order.
So when I GET list of refunds https://sandbox.dev.clover.com/v3/merchants/{ {merchant_Id}}/refunds?expand=lineItems.item or a refund with expanded lineItems then the list is empty. Is this normal and is this list going to be populated some time?
Also when I get returned order with expanded lineItems then "refunded": false and "refund": null. Are this flags going to be populated with the right values and when?
Unfortunately I can't test returning only one item, because receive an error:
So the only way is to be checked the "paymentState" of the Order and if "REFUNDED" to be get the lineItems from the order, not from Refund object?
Thanks!