List custodial balances
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/balances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Gryphem-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/balances';const options = { method: 'GET', headers: {'Gryphem-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/balances \ --header 'Authorization: Bearer <token>' \ --header 'Gryphem-Environment: test'Funds received through the platform’s Bitcart account 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.
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.
Responses
Section titled “Responses”Balances per asset.
object
object
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
Live payments are processed through the platform Bitcart account.
Withdrawals are enabled on the platform.
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 } ]}Missing or invalid credentials.
object
object
Example
{ "error": { "type": "invalid_request_error" }}Authenticated but not permitted.
object
object
Example
{ "error": { "type": "invalid_request_error" }}Too many requests. See Retry-After.
object
object
Example
{ "error": { "type": "invalid_request_error" }}