Statement of the custodial balance
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/balance-movements?limit=25"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("FeitPay-Environment", "test") req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/balance-movements?limit=25';const options = { method: 'GET', headers: {'FeitPay-Environment': 'test', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).
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.
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Movements, newest first.
object
object
Signed decimal string (negative = out of the balance). Never a float.
Signed integer amount in the asset’s smallest unit.
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).
The other FeitPay account of a transfer movement (present only on transfer movements).
object
The account’s username when the transfer was made (null if it had none).
The account’s name when the transfer was made.
Example
{ "object": "list", "data": [ { "id": "mov_1042", "object": "balance_movement", "kind": "sale", "object_type": "payment_intent" } ]}Missing or invalid credentials.
object
object
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.
Human-readable explanation in English.
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.
object
object
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.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Validation failed.
object
object
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.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Too many requests. See Retry-After.
object
object
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.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}