updatedAt. To keep your own copy up to date without fetching
everything each time:
- Remember the time you start a sync.
-
Fetch the changes since the start of your previous sync, sorted on
updatedAt: -
Page through all results and save each item by its
id, replacing what you had. - Store the time from step 1 for the next sync.
id handles that.
What changes updatedAt
Run a full sync now and then, for example once a night, to pick up refunds on older orders.