3etDevelopers
AMS API / Bet limits

Bet limits — singlesPOST

Sets min bet, max bet and max bet per event for single bets, for chosen sport/market pairs and live or pre-match markets.

POSThttps://api.3et.ams.com/ams/v1/api/player/{playerId}/betLimits/singles
Requires apiToken

Body

FieldTypeNotes
playerIdlongTarget player
currencyIdlongCurrency the limits apply to
marketLivebooleantrue = live, false = pre-match
sportMarketsarrayEach item { "sport": { "id": … }, "market": { "id": … } }
minBet, maxBet, maxBetPerEventdecimalNew limits

Request

curl -X POST "https://api.3et.ams.com/ams/v1/api/player/12345/betLimits/singles" \
  -H "apiToken: $(printenv 3ET_API_TOKEN)" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "playerId": 12345,
  "currencyId": 1,
  "marketLive": false,
  "sportMarkets": [
    {
      "sport": {
        "id": 1
      },
      "market": {
        "id": 10
      }
    },
    {
      "sport": {
        "id": 1
      },
      "market": {
        "id": 11
      }
    }
  ],
  "minBet": 1,
  "maxBet": 1000,
  "maxBetPerEvent": 2000
}'

Response 201

json
{
  "currencyId": 1,
  "agentIds": [],
  "playerIds": [
    12345
  ],
  "marketStatus": false,
  "sportMarkets": [
    {
      "sport": {
        "id": 1,
        "sport-name": "Football",
        "status": "Active"
      },
      "market": {
        "id": 10,
        "market-name": "Match Result",
        "status": "Active"
      }
    },
    {
      "sport": {
        "id": 1,
        "sport-name": "Football",
        "status": "Active"
      },
      "market": {
        "id": 11,
        "market-name": "Over/Under",
        "status": "Active"
      }
    }
  ],
  "maxBet": 1000,
  "minBet": 1,
  "maxBetPerEvent": 2000,
  "betType": "SINGLE"
}

Errors

400 (limits outside the parent agent's limits, betting-platform failure), 401, 403, 500, 503.