PATCH— Sets the wallet’sbalancefield to an exact absolute value you specify. Use this to correct or override a balance directly.PUT— Applies a transaction by adding (or subtracting) anamountto the current balance. Use this for incremental adjustments such as paying out rewards or deducting fines.
ADMINISTRATOR permission. If the character does not yet have a wallet, PATCH creates one before applying the update.
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 return200 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
