Skip to content

Responses, errors and retries

Status codes, error bodies, duplicates and when to retry.

Status codes

FieldTypeDescription
202 AcceptedsuccessProcessed, including duplicates. Do not retry.
400 Bad Requestclient errorFix the payload before resending. The body explains the problem in error and, for validation errors, issues.
401 Unauthorizedclient errorCheck the affinix-api-key header and that the key belongs to this brand.
404 Not Foundclient errorThe host is not a tracking domain, or the path is wrong.
5xxserver errorRetry 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.

Stuck? Email hello@affinix360.com with your brand name and the time of the call.