x

Orders API not returning last order

Using the orders api call shown below, I am returned _all_ pending orders EXCEPT the latest one.

I have confirmed I have a pending order in Weebly. And the returned orders are correct - except I am missing one.

I am not using any date filters, only status, and sortby.

Suggestions, ideas, did something happen in the last day or so?

This call has been in use for months.

url $ site $ '/store/orders?filterby=order_status&filterfor=pending&sortby=order_date&sortdir=asc

Tags (1)
2,082 Views
Message 1 of 3
Report
2 REPLIES 2

Hey @wmgilligan

This could be related to the paginated response data.

Could you try adjusting the `sortdir` query parameter to "desc" instead of "asc"?

Let me know if this helps, or not please.

2,062 Views
Message 2 of 3
Report

Any update if you were able to get this resolved please?

2,005 Views
Message 3 of 3
Report