Skip to main content
The wallet endpoints let administrators adjust a character’s in-game currency balance. There are two distinct operations depending on the HTTP method you use:
  • PATCH — Sets the wallet’s balance field to an exact absolute value you specify. Use this to correct or override a balance directly.
  • PUT — Applies a transaction by adding (or subtracting) an amount to the current balance. Use this for incremental adjustments such as paying out rewards or deducting fines.
Both operations require the ADMINISTRATOR permission. If the character does not yet have a wallet, PATCH creates one before applying the update.
Both PATCH and PUT require the ADMINISTRATOR permission. Regular users cannot call these endpoints.
Both endpoints only work on characters with an idStatus of approved. Attempting to update the wallet of an unapproved character returns 403.

Endpoint

Path Parameters

string
required
The Snowflake ID of the user account that owns the character.
string
required
The Snowflake ID of the character whose wallet you want to update.

Request Body — PATCH

number
required
The new absolute balance to assign to the wallet. The current balance is overwritten entirely with this value.

Request Body — PUT

number
required
The amount to add to the current wallet balance. Use a positive number to credit the character and a negative number to debit them.

Response

Both methods return 200 OK with the updated wallet object on success:
string
The Snowflake ID of the character this wallet belongs to.
number
The wallet’s balance after the update has been applied.
string
ISO 8601 timestamp of when the wallet was first created.
string
ISO 8601 timestamp of when the wallet was last modified (reflects this update).

Example Requests

PATCH — Set absolute balance
PUT — Apply transaction amount

Example Response

Error Responses