Rules for every walk

Last updated ยท Page 5 of 5

  • Send the same parameters on every page; only cursor changes. Keep paging until hasMore is 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 lastRefreshAt and stop listing missing products only after a whole walk succeeds. If a walk fails part-way, change nothing and run it again. lastRefreshAt is the final page's timestamp (the moment the walk began, less two minutes), never your own clock.
  • Never send active on 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_REQUEST for its cursor, discard the cursor and restart the walk.
  • Your database is a cache. The cart re-checks price and availability live.