- Docs
- Api%2Freference%2Febus%2FGetOrganizationBalanceHistory
Retrieve the balance history of an organization
Fetch the balance history of an organization by providing its unique ID. This endpoint returns the historical balance changes for the organization.
AuthorizationBearer <token>
In: header
Path Parameters
organizationId*string
Unique identifier of the organization
Query Parameters
interval?string
Time interval for grouping time-series statistics and analytics data
Default
"week"Value in
"hour" | "day" | "week" | "month" | "year"time_range?string
Time range for filtering statistics and analytics data
Default
"all"Value in
"all" | "today" | "week" | "month" | "year"limit?integer
How many items to return at one time (max 100)
Format
int64when_created[$gt]?string
Format
date-timewhen_created[$lt]?string
Format
date-timewhen_created[$gte]?string
Format
date-timewhen_created[$lte]?string
Format
date-timeResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://api-testnet.dual.network/organizations/string/balance/history"{
"history": [
{
"when": "2019-08-24T14:15:22Z",
"amount": "string"
}
]
}{
"code": 0,
"message": "string",
"details": {}
}{
"code": 0,
"message": "string",
"details": {}
}{
"code": 0,
"message": "string",
"details": {}
}