Get Organization (Circle) Balances
GET/balances
ATTENTION, this endpoint is only enabled when the tenant distribution account type is CIRCLE
.
Responses
- 200
- 400
- 401
Returns the organization's Circle balances
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
account
object
required
The address of the distribution account, present when the account type is STELLAR
.
The ID of the Circle wallet, present when the account type is CIRCLE
.
Possible values: [DISTRIBUTION_ACCOUNT.STELLAR.ENV
, DISTRIBUTION_ACCOUNT.STELLAR.DB_VAULT
, DISTRIBUTION_ACCOUNT.CIRCLE.DB_VAULT
]
The type of the distribution account.
Possible values: [ACTIVE
, PENDING_USER_ACTIVATION
]
balances
object[]
required
The organization's Circle balances
The asset code of the balance in the Stellar network.
The asset issuer of the balance in the Stellar network.
The amount of the balance.
{
"account": {
"address": "GCXAJ3XJ3VK3JFH3QMDFOSKM2NMMZBSO3VIT6EUPQWSDW2J74M23RRSL",
"circle_wallet_id": "1000646072",
"type": "DISTRIBUTION_ACCOUNT.STELLAR.DB_VAULT",
"status": "ACTIVE"
},
"balances": [
{
"asset_code": "USDC",
"asset_issuer": "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5",
"amount": "100.00"
}
]
}
Bad request, not supported when the distribution account is not of the CIRCLE type.
- */*
- Schema
- Example (from schema)
Schema
Details about the error
extras
object
{
"error": "Invalid input",
"extras": {
"field_foo": "field_foo is required",
"field_bar": "field_bar needs to be an integer"
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
extras
object
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}