API - New Orders, Limit and Offset


#1

Should this return 30 orders, starting at 30?

/usr/bin/curl -s --user "nn@nnn.com:nnnnnn" --header “Content-Type: application/json” https://api.ordoro.com/order/?status=new&limit=30&offset=30

How can I get the next 30 new jobs, starting at 30? I think it’s returning new orders, but the offset is zero and the limit is 10.

Thanks


#2

Hi,

Your curl should return 30 orders starting at 30. If you want the next 30, start at offset=60.

You probably want to enclose the url in quotes so that everything beyond the first & separator is included in the curl.

Try this out:
/usr/bin/curl -s --user "nn@nnn.com:nnnnnn" --header "Content-Type: application/json" "https://api.ordoro.com/order/?status=new&limit=30&offset=30"

Let us know if you have any other issues or if this doesn’t resolve it,
Sophie


#3

Thank you - not enclosing the URL in quotes was apparently the problem.