Pass your token
Include your token in theAuthorization header as a Bearer token:
Authentication errors
If your token is missing, malformed, or invalid, the API returns:Authorization header and that the token value is correct.
Endpoint availability
Access to individual endpoints can be restricted per account, so an endpoint described in this documentation may not be available to your account. A request to a restricted endpoint returns403 Forbidden with the error code endpoint_not_enabled, even with a valid token. If you expect to have access to an endpoint and receive a 403, contact your account representative.
Subscription and trial errors
If your account can’t make requests because of its subscription or trial status, the API returns402 Payment Required with one of these error codes:
To keep making requests, start or renew a subscription from app.affiliate.com.
Rate limit errors
Rate limits are measured per API key. Your per-minute limit depends on your subscription. If you receive a
429, wait before retrying. If you receive a 422, you’ve exhausted your plan’s request quota.
Network-specific credentials
Some affiliate networks require additional parameters beyond your API token to return affiliate links. You supply these inside thenetworks object when calling the product search endpoint. If you provide a network object but omit required fields, the API returns a 422 error listing the missing items.
Here’s how to supply network credentials in a product search request:
affiliate_id and optionally sub_id.