Skip to main content
POST
/
players
/
{playerId}
/
deduct-cash
Deduct cash from player balance
curl --request POST \
  --url https://mock-api.cevro.ai/v1/players/{playerId}/deduct-cash \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Session-ID: <x-session-id>' \
  --data '
{
  "amount": 50,
  "reason": "Manual by Admin"
}
'
{
  "success": true,
  "message": "<string>",
  "new_cash_balance": 123,
  "transaction_id": "<string>"
}

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
amount
number
required

Amount to deduct (must be greater than 0)

Example:

50

reason
string
Example:

"Manual by Admin"

Response

Cash deducted successfully

success
boolean
message
string
new_cash_balance
number
transaction_id
string