3etDevelopers
AMS API / Players

Create playerPOST

Creates a player directly under parentAgentId.

POSThttps://api.3et.ams.com/ams/v1/api/player
Requires apiToken

AMS generates the account id from the agent's family id, sets the status to Active, copies the agent's default bet limits, position taking and rebates, then registers the player on the betting platform.

Body

FieldTypeRequiredNotes
nickNamestringyesLogin name
parentAgentIdlongyesAgent the player is created under; unknown id returns 400 "No agency found"
passwordstringyesNot stored in AMS
person.first-name, person.last-namestringyesperson.middle-name optional
person.date-of-birthstringyesFormat dd/MM/yyyy
person.emailstringyes
person.phone-prefix, person.phone-numberstringyes
person.nationality-idlongyes
person.address.address1, person.address.citystringyesOther address lines are ignored
person.address.country-idlongyesUnknown id returns 400 "The country does not exist"
currency.idlongyesCurrency used to copy the agent's limits

Request

curl -X POST "https://api.3et.ams.com/ams/v1/api/player" \
  -H "apiToken: $(printenv 3ET_API_TOKEN)" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "nickName": "player_demo01",
  "parentAgentId": 678,
  "password": "<initial-password>",
  "person": {
    "first-name": "Jane",
    "last-name": "Doe",
    "date-of-birth": "01/01/1990",
    "email": "jane.doe@example.com",
    "phone-prefix": "+353",
    "phone-number": "000000000",
    "nationality-id": 105,
    "address": {
      "address1": "1 Example Street",
      "city": "Dublin",
      "country-id": 105
    }
  },
  "currency": {
    "id": 1
  }
}'

Response 201

Returns 201 when the player is created successfully.

Errors

400 (unknown agent or country, betting-platform failure), 401, 403, 500, 503.