Credits (adds) an amount to the authenticated player’s balance for the specified currency.
The balance is looked up internally using the player ID (from JWT token), currency ID (from path parameter), and app ID (from API key).
Players can only credit their own balances. The balance must exist within the player’s app context.
Authentication requires both an API key (for app identification) and a valid JWT token (for player identification).
API key authentication for accessing platform resources.
To authenticate, include your app's API key in the 'apikey' header.
Each API key is associated with a specific app and organization. The API key determines which organization and app context your requests operate within.
Example: apikey: tgc_public_1234567890abcdef
JWT token authentication for player-specific operations.
Obtain a JWT token by calling /players/login or /players/register. Include the token in the Authorization header.
Example: Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Unique identifier of the currency
Amount to credit as decimal string
^\d+(\.\d{1,2})?$"50.00"
Successfully credited the balance