AMS API / Get started
Errors
Every error is an RFC 7807 problem detail.
Error bodies contain title, status, detail and instance (type is always removed). Business errors from AMS or the betting platform return 400 with the reason in detail.
| Status | When |
|---|---|
400 Bad Request | Validation failed, unknown agent or country, limits outside the parent agent's, betting-platform error |
401 Unauthorized | apiToken missing, invalid or expired |
403 Forbidden | Player is not under the caller's account |
413 Payload Too Large | Upload over the size limit |
500 Internal Server Error | Unexpected failure |
503 Service Unavailable | Site in maintenance ("splashed") |
{
"title": "Bad Request",
"status": 400,
"detail": "The country does not exist. Please contact support.",
"instance": "/ams/v1/api/player"
}