Coins

PUT /coins

Add or subtract a value from a given player's coin balance

Endpoint

PUT/coins

Request Body

{
  "playerId": "string"
  "establishmentId": "string"
  "change": "integer"
  "operation": "string"
  "campaign": "string"
}
AttributeType
playerIdstring
establishmentIdstring
changeinteger
operationstring
campaignstring

Responses

200

Coin balance updated successfully.

{
  "message": "Coin balance updated"
  "attributes": "[object Object]"
}

400

Bad request when parameters are missing or the operation is invalid.

{
  "message": "Missing parameters"
}

500

Internal server error when the update fails.

{
  "message": "Failed to update coin balance"
  "error": "Error details"
}