AMS API / Players
Set credit amountPOST
Sets the player's credit amount in one currency, then returns the full player.
POST
https://api.3et.ams.com/ams/v1/api/player/{playerId}/creditAmount Requires
apiTokenBody
| Field | Type | Notes |
|---|---|---|
playerId | long | Player whose credit is updated |
currencyId | long | Currency of the credit line |
creditAmount | decimal | New credit amount |
Request
curl -X POST "https://api.3et.ams.com/ams/v1/api/player/12345/creditAmount" \
-H "apiToken: $(printenv 3ET_API_TOKEN)" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"playerId": 12345,
"currencyId": 1,
"creditAmount": 500
}'Response 200
The player, same shape as Get player, with the new value in currencyLimits[].credit-amount. The update uses playerId from the body; the response is built from {playerId} in the path — keep them identical.
Errors
400 (validation or betting-platform failure), 401, 403, 500, 503.
