Follow a shop's orders by polling
Your program asks for the orders changed since its last poll. Shoplio does not push order events, so the order list is the call to repeat.
On this page
The request
Call List orders with updated_since, an RFC 3339 time. The list keeps the orders whose updated_at is at or after that time.
GET https://api.shopl.io/api/v1/orders?updated_since=2026-12-01T09:00:00Z&page=1&limit=100
The list is ordered by creation time, newest first, not by updated_at. Read every page of each poll.
A polling loop
- Keep the largest
updated_atyou have received. It is a server time. - Ask for orders updated since that value minus a small overlap, such as one minute. Never use your own clock.
- Page with
pageandlimituntil a page holds fewer orders thanlimit. - Treat an order you have already seen with the same
statusandupdated_atas a repeat, and skip it. - Save the new largest
updated_atand wait for the next poll.
One change that does not move updated_at
A pending order from a payment link whose invoice could not be confirmed is set to expired after 15 minutes without a payment. That write leaves updated_at as it was, so a poll by time never sees it.
To catch it, read again any order you hold as pending once it is older than one hour.
What each status means for you
| Status | What your program does |
|---|---|
pending | Wait. No payment is confirmed yet |
paid | Wait. Delivery follows |
delivered | Read the order if you need what the buyer received |
out_of_stock | Paid and waiting. Adding stock alone does not deliver it. See Deliver orders |
preordered | Add stock. Waiting pre-orders are delivered first |
underpaid | Leave it to the shop owner. It can be delivered only from the dashboard |
refunded, expired, failed | Nothing to deliver |
The meaning of each value is in Status values.
How often
Each key may send 60 requests a minute. One poll every 15 seconds uses 4 of them while the changes fit on one page.
A request over the limit answers 429. See API errors, rate limits and retries.
Reading one order
A list entry never carries the delivered content. Read the single order with Get an order for that.
Use an automation tool
A tool that calls a web address on a schedule can run this poll without a program of your own.
- Add a request step with the header
Authorization: Bearer <key>. - Set the address to the order list with
updated_since, filled from the last run. - Set the interval, for example once a minute.
- Pass each order on to the next step of the tool.