Creating a key
- Sign in to the store’s customer dashboard with the email you’re an affiliate under
- Open Affiliates, then API keys
- Click Create key, name it, and optionally restrict it to your server’s IP addresses
- Copy the key
What a key can read
Every endpoint reads the account the key belongs to. None of them takes a store or affiliate ID, and no key can read another affiliate’s data.Advertising your discount
Your account has a headline discount rate, but the store can give each product its own rate or turn the discount off for it. Advertise whatGET /affiliate/discounts returns, not the headline. It is calculated exactly the way checkout calculates it, so it is what your buyers will see taken off.
The affiliate discount is applied after any coupon, to the amount the coupon leaves.
When authentication fails
Both return the standard error envelope, with
code set to AccessDenied. See Responses & Errors.