I want to fetch details of all orders that are closed/paid for.
I am using the following endpoint but it only returns details of orders where paymentState is open:
url = environment + "v3/merchants/"+muid+"/orders?expand=lineItems&expand=lineItems.modifications"
Is there any way to achieve the same? I tried filtering in the endpoint but seems like filtering by paymentState isn't supported. Or please let me know if there is a different endpoint for the same.