Rules for every walk
Last updated ยท Page 5 of 5
- Send the same parameters on every page; only
cursorchanges. Keep paging untilhasMoreis false: a page can be short, or empty, while more follow. - A page holds at most 100 products (
limit), and 10 when you send none. - Save
lastRefreshAtand stop listing missing products only after a whole walk succeeds. If a walk fails part-way, change nothing and run it again.lastRefreshAtis the final page'stimestamp(the moment the walk began, less two minutes), never your own clock. - Never send
activeon a delta: you need the deactivated rows to stop listing them. - Run one walk at a time: skip a delta that falls due during a resync.
- If a page answers
BAD_REQUESTfor its cursor, discard the cursor and restart the walk. - Your database is a cache. The cart re-checks price and availability live.