Skip to main content
POST
/
players
/
{playerId}
/
bonus
Add bonus to player account
curl --request POST \
  --url https://mock-api.cevro.ai/v1/players/{playerId}/bonus \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Session-ID: <x-session-id>' \
  --data '
{
  "bonus_type_id": "bonus_type_123",
  "amount": 10,
  "reason": "Manual by Admin",
  "added_by": "Admin"
}
'

Authorizations

Authorization
string
header
required

API Bearer token. For this demo, any non-empty string is accepted.

Headers

X-Session-ID
string
required

Path Parameters

playerId
string
required

Body

application/json
bonus_type_id
string
required
Example:

"bonus_type_123"

amount
number
required
Example:

10

reason
string
Example:

"Manual by Admin"

added_by
string
Example:

"Admin"

Response

Bonus added successfully