3etDevelopers
AMS API / Players

Set credit amountPOST

Sets the player's credit amount in one currency, then returns the full player.

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

Body

FieldTypeNotes
playerIdlongPlayer whose credit is updated
currencyIdlongCurrency of the credit line
creditAmountdecimalNew 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.