Sub-accounts
List sub-account transactions
Returns a paginated list of billing transactions for the sub-account identified by id, within the requested date range.
get/v1/sub-organizations/{id}/billing/transactions
Path parameters
idinteger required
Example:123
The unique ID of the sub-account.
Query parameters
from_datestring date required
Example:2023-01-01
Start of the date range to query, in YYYY-MM-DD format. Inclusive.
to_datestring date required
Example:2023-12-31
End of the date range to query, in YYYY-MM-DD format. Inclusive.
Example:1
Filters transactions by type. Accepts a single transaction type code or an array of codes.
pageinteger
Example:1
Page number to retrieve. Default 1.
per_pageinteger
Example:25
Number of records to return per page. Default 25.
Response
Returns a paginated list of sub-account transactions.
Example response
{
"transactions": [
{
"amount": 10.5,
"balance_after": 100,
"date": "2023-06-15T10:30:00Z",
"details": "Account top-up",
"status": "committed",
"type": 1
}
],
"pagination": {
"current_page": 2,
"per_page": 25,
"total": 101,
"total_pages": 5
}
}