AMS API / Players
Create playerPOST
Creates a player directly under parentAgentId.
POST
https://api.3et.ams.com/ams/v1/api/player Requires
apiTokenAMS 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
| Field | Type | Required | Notes |
|---|---|---|---|
nickName | string | yes | Login name |
parentAgentId | long | yes | Agent the player is created under; unknown id returns 400 "No agency found" |
password | string | yes | Not stored in AMS |
person.first-name, person.last-name | string | yes | person.middle-name optional |
person.date-of-birth | string | yes | Format dd/MM/yyyy |
person.email | string | yes | |
person.phone-prefix, person.phone-number | string | yes | |
person.nationality-id | long | yes | |
person.address.address1, person.address.city | string | yes | Other address lines are ignored |
person.address.country-id | long | yes | Unknown id returns 400 "The country does not exist" |
currency.id | long | yes | Currency 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.
