question

jharna27 avatar image
jharna27 asked ·

Order details for PaymentState not open

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.

Orders
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered ·

That endpoint returns orders that are paid for, but there is a bug and paymentState won't be accurate unless you expand all of the necessary fields, please see - https://community.clover.com/questions/23985/same-order-id-having-different-paymentstate.html for an explanation and work-around.

Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community