Pull only what changed
Listing and cash-offer search return achangeToken alongside the results. Send it back on the
next search and you get only the records that have changed since it was issued, rather than the
whole catalogue again.
Keep pulling while
hasMoreChanges is true, then store the last changeToken and come back on
your normal schedule.
Handle 410 full-pull-required
A delta can only describe records changing. It cannot describe your view changing — and that
happens: your group’s membership changes, a state restriction is switched on, a chain-exclusive
window opens or closes. Records that were invisible become visible, with no change of their own
to report.
When that happens the API refuses the delta rather than returning one that is quietly short:
changeToken at all, and continue from the one that
comes back. An integration that logs the error and retries the same token will keep getting
410 and will never see the records it is missing — see
Errors.
Narrow a search to your own group’s records
createdByMyGroup limits listing and cash-offer search to records your group created, rather
than everything you can see on the marketplace.
false, and search behaves exactly as before. It is a filter on top of your
existing visibility, never a widening of it: it can only ever return records you could already
have read.
See which pharmacies a record is restricted from
Every listing and cash offer in a search result now carries arestrictions object, or null
when nothing restricts it. It is for integrations that show one marketplace to many pharmacies
and need to know, before rendering, that a given customer cannot act on a record.
This tells you what a record requires, not what a particular pharmacy is. Compare it against
the pharmacy you are rendering for. A
chainExclusiveUntil in the past restricts nobody.