Skip to content

Statement of the custodial balance

GET
/v1/balance-movements
curl --request GET \
--url 'https://api.feitpay.com/v1/balance-movements?limit=25' \
--header 'Authorization: Bearer <token>' \
--header 'FeitPay-Environment: test'

Every movement of the custodial balance, newest first: sales credited, deposits, payouts held (the gross amount, fees included) and returned, exchanges out and in, and legacy fees. Signed exact amounts per asset.

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.

asset
string
<= 40 characters
limit
integer
default: 25 >= 1 <= 100
starting_after
string

Movements, newest first.

Media typeapplication/json
object
object
required
string
Allowed value: list
data
required
Array<object>
object
id
required
string
object
required
string
Allowed value: balance_movement
asset
required
string
amount
required

Signed decimal string (negative = out of the balance). Never a float.

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

Signed integer amount in the asset’s smallest unit.

string
/^-?[0-9]+$/
divisibility
required
integer
kind
required

Sale (a payment credited), deposit (a balance deposit credited), payout (the gross amount held for a payout, fees included), payout_returned (a canceled, rejected or released payout), exchange_out / exchange_in / exchange_returned (an exchange between coins), transfer_out / transfer_in / transfer_returned (a transfer sent to or received from another FeitPay account, or a canceled one), fee (legacy FeitPay fee deducted at credit), dispute / dispute_returned (a PIX dispute (MED) holding the amount of a PIX payment, and its release when decided for the merchant).

string
Allowed values: sale deposit payout payout_returned exchange_out exchange_in exchange_returned transfer_out transfer_in transfer_returned fee dispute dispute_returned
object_type
required
string
Allowed values: payment_intent balance_deposit payout conversion internal_transfer other
object_id
required
string
counterparty

The other FeitPay account of a transfer movement (present only on transfer movements).

object
handle
required

The account’s username when the transfer was made (null if it had none).

string | null
display_name
required

The account’s name when the transfer was made.

string
created_at
required
string format: date-time
has_more
required
boolean
next_cursor
required
string | null

Example

{
"object": "list",
"data": [
{
"id": "mov_1042",
"object": "balance_movement",
"kind": "sale",
"object_type": "payment_intent"
}
]
}

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"
}
}

Validation failed.

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