Status codes
| Field | Type | Description |
|---|---|---|
202 Accepted | success | Processed, including duplicates. Do not retry. |
400 Bad Request | client error | Fix the payload before resending. The body explains the problem in error and, for validation errors, issues. |
401 Unauthorized | client error | Check the affinix-api-key header and that the key belongs to this brand. |
404 Not Found | client error | The host is not a tracking domain, or the path is wrong. |
5xx | server error | Retry with backoff. Failed calls are released, so a retry is processed normally. |
Retries
- Retry timeouts, connection errors and 5xx responses with exponential backoff, for example after 1, 5 and 30 minutes.
- Do not retry 400 or 401 without changing something: the same request will fail the same way.
- Retries are safe. An identical payload that was already processed returns 202 with "duplicate": true.
Idempotency
You never need an idempotency key. Players are unique per brand and user_id, activity is unique per player and hour, and identical payloads are recognised by their content.
Finding a failed call
Every call is listed on the console’s Monitoring page for 30 days, with the brand, status, rows accepted and skipped, the reason for any rejection, and the last four characters of the key used. Personal data in requests is masked.