Wallets
Generate report
Changed onCreates a report from a wallet in the specified format and sends it via the preferred delivery method: WEBHOOK or EMAIL.
The report type is determined by the type field in the request body:
- TRANSACTION returns all transactions within a date range (from / to).
- BALANCE returns the wallet balance at a specific point in time (at).
:::note
Reports are delivered instantly but the data has a one-hour lag for the production environment and eight-hour delay in sandbox. For example, a report requested at 9:00 AM will include transactions only up to 8:00 AM.
:::
See the Receive Transactions Report via Webhook guide for more information.
post/ledger/v1/reports
Request
- Base URLhttps://api.sandbox.bvnk.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"walletId": "a:24092328494070:G5i4XZ9:1",
"from": "2023-01-15T10:30:00Z",
"to": "2025-12-15T10:30:00Z",
"at": "2026-05-10T23:59:59",
"format": "JSON",
"deliveryChannel": "EMAIL",
"type": "TRANSACTION"
}Response
PROCESSING
Example response
[
{
"id": 594,
"uuid": "9d1f67f2-a647-404b-9b02-247c77be81d0",
"dateCreated": 1631619489000,
"lastUpdated": 1631619489000,
"expiryDate": 1631619489000,
"status": "PENDING",
"type": "transactions",
"requestData": {
"type": "transactions",
"externalProcessing": "null",
"walletId": "a:24092328494070:G5i4XZ9:1",
"transactionType": "null",
"fromDate": "2023-03-01",
"toDate": "2023-06-30",
"format": "CSV",
"languageTag": "en-US",
"accountName": "null"
}
}
]Changes
- breaking
request property
was restricted to a list of enum values - info
added the new optional request property
- info
added the new
BALANCEenum value to the request property - info
added the new
TRANSACTIONenum value to the request property
- breaking