Build an integration · Follow ordersDocs navigation

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.

Request
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

  1. Keep the largest updated_at you have received. It is a server time.
  2. Ask for orders updated since that value minus a small overlap, such as one minute. Never use your own clock.
  3. Page with page and limit until a page holds fewer orders than limit.
  4. Treat an order you have already seen with the same status and updated_at as a repeat, and skip it.
  5. Save the new largest updated_at and 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

StatusWhat your program does
pendingWait. No payment is confirmed yet
paidWait. Delivery follows
deliveredRead the order if you need what the buyer received
out_of_stockPaid and waiting. Adding stock alone does not deliver it. See Deliver orders
preorderedAdd stock. Waiting pre-orders are delivered first
underpaidLeave it to the shop owner. It can be delivered only from the dashboard
refunded, expired, failedNothing 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.

  1. Add a request step with the header Authorization: Bearer <key>.
  2. Set the address to the order list with updated_since, filled from the last run.
  3. Set the interval, for example once a minute.
  4. Pass each order on to the next step of the tool.

If the docs do not cover it, ask on Telegram or use the contact form.