Server SDK
The server SDK runs on your backend, with the site’s secret key. It keeps your catalogue in sync with Rankrake and can send purchases straight from your order system.
Log in with the secret key
Section titled “Log in with the secret key”TODO docs: loginRankrakeServerClient, and restoreRankrakeServerClient to reuse a client without
logging in on every request.
Sync your catalogue
Section titled “Sync your catalogue”TODO docs: upserting entities in batches (at most 500, all or nothing), entity ids derived from your own ids so the same item always gets the same id, and marking items inactive or deleted.
Send purchases
Section titled “Send purchases”TODO docs: sending a whole order from the server, with the visitor’s identity taken from the cart.