Skip to main content
POST
https://api.tensormesh.ai
/
v1
/
admin
/
billing
/
balances:add
Add User Balance
curl --request POST \
  --url https://api.tensormesh.ai/v1/admin/billing/balances:add \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>",
  "targetUserId": "<string>",
  "amount": {
    "currencyCode": "<string>",
    "units": "<string>",
    "nanos": 123
  }
}
'
{
  "balance": {
    "currencyCode": "<string>",
    "units": "<string>",
    "nanos": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication using an access token. Format: Bearer <access_token>

Body

application/json

AddUserBalanceRequest is the request to add credit to a user's balance.

userId
string

The unique ID of the operator user.

targetUserId
string

The unique ID of the target user.

amount
object

Represents an amount of money with its currency type.

Response

A successful response.

AddUserBalanceResponse is the response after adding credit.

balance
object

Represents an amount of money with its currency type.