Redeem a credit code
credits_redeemRedeems a credit code for the caller, adding its value to their balance. Each account can redeem a given code once. 403 when the code is unknown, expired, revoked or used up; 409 when this account already redeemed it; 412 until the account's email address is confirmed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "credits_redeem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The credit code to redeem, as you were given it, e.g. `ABC123`; case and surrounding spaces don't matter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| balanceMicro | Yes | ||
| creditedMicro | Yes |