Skip to content

List custodial balances

GET
/v1/balances
curl --request GET \
--url https://api.feitpay.com/v1/balances \
--header 'Authorization: Bearer <token>' \
--header 'FeitPay-Environment: test'

Funds received through FeitPay’s payment processor and owed to the organization, per asset. available excludes amounts held for payouts that were not sent yet. API keys restricted to one store cannot read organization balances.

FeitPay-Organization
string

Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).

FeitPay-Environment
string
default: test
Allowed values: test live

test (default) or live for dashboard sessions. API keys determine the environment. Until the platform is in production, configuration (stores, webhook endpoints, payment links) is live and money movement answers payments_not_enabled.

Balances per asset.

Media typeapplication/json
object
object
required
string
Allowed value: list
data
required
Array<object>
object
object
required
string
Allowed value: balance
asset
required
string
livemode
required
boolean
divisibility
required
integer
available
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
available_units
required

Integer amount in the asset’s smallest unit.

string
/^[0-9]+$/
pending_payouts
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
pending_payouts_units
required

Integer amount in the asset’s smallest unit.

string
/^[0-9]+$/
total_received
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
total_received_units
required

Integer amount in the asset’s smallest unit.

string
/^[0-9]+$/
custodial
required
boolean
has_more
required
boolean
next_cursor
required
string | null
processor_active
required

Live payments are processed through FeitPay’s payment processor.

boolean
payouts_active
required

Withdrawals are enabled on the platform.

boolean
pending_credits

Funds received on payments that ended without completing (partial or late payments) and not in data yet: they are added automatically once their transactions are confirmed on the blockchain (confirming), or after verification (verifying). Newest first, at most 50. Always present.

Array<object>
object
object
required
string
Allowed value: pending_credit
payment_intent_id
required
string
asset
required

Asset key of the paid method (btc, eth, usdt-eth, usdt-trx).

string
amount
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
status
required
string
Allowed values: confirming verifying

Example

{
"object": "list",
"data": [
{
"object": "balance",
"available": "59.90",
"available_units": "99834",
"pending_payouts": "59.90",
"pending_payouts_units": "99834",
"total_received": "59.90",
"total_received_units": "99834",
"custodial": true
}
],
"pending_credits": [
{
"object": "pending_credit",
"amount": "59.90",
"status": "confirming"
}
]
}

Missing or invalid credentials.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Too many requests. See Retry-After.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}
Retry-After
integer