Before you start: your credentials
Once we set up your account, your credentials appear in the Aeris console under Affiliate → Integration. You’ll use these five values throughout:| Value | What it’s for |
|---|---|
api_key | Identifies you. Goes in the X-Merchant-Key header on every server call. Looks like mk_ followed by 32 characters. |
hmac_secret | Your signing key. Shown once — copy it into your secret manager right away. We can’t recover it; if you lose it, generate a new one. |
advertiser_id | Your id for the tracking script (the cb('init', …) call). |
s2s_endpoint_base | The base URL for server calls, e.g. https://realry.com/api/v1/direct. |
test_credential | Marks a sandbox key. Orders sent with a sandbox key run through the whole flow but never pay anyone — use it to test safely. |
Quickstart
Three steps. Do them in order and the integration is done.Add the tracking script to every page
Put this in the On your order-confirmation page, also fire a Single-page checkout? Add
<head> of every page on your site:purchase event:cb('config', { auto_spa_pageview: true }); once after init. To debug, add ?cb_debug=1 to any URL and watch the browser console, or run cb('status').Save the click id from the creator's link
When a shopper arrives from a creator, their URL carries a That
cb_aev value:cb_aev is the click id — it’s how we know which creator to credit. The tracking script saves it automatically, but you also need to store it on the order so your server can send it back in Step 3. (Do it yourself because the browser pixel can’t always fire — but your server always can.)