Get Raw Statement Data
This endpoint returns a full monthly statement report for a specified financial account in structured JSON format. The report includes account holder details, a summary of financial activity, and a list of individual transactions for the requested period. The period parameter must be set to the first day of the target month.
Endpoint
GET /netevia/rawStatements
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint when you need to programmatically retrieve a customer's monthly bank statement data — for example, to render custom statement PDFs, feed data into accounting integrations, or populate reporting dashboards. This is preferable to the PDF statement endpoint when downstream processing or display customization is required. Pass the first day of the target month as the period value.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| financialAccountId | string | No | The unique identifier of the financial account whose statement is being requested |
| period | string (date-time) | No | The first day of the target month in ISO 8601 date-time format (e.g., 2024-01-01T00:00:00Z). Data will be returned for the full calendar month. |
Response
200 OK
Top-level statementreport object:
| Field | Type | Description |
|---|---|---|
| period | string (date-time) | The statement period (first day of the month) |
| accountHolderName | string | Full name of the account holder |
| accountHolderAddress | string | Primary address line of the account holder |
| accountHolderAddressLine2 | string | Secondary address line (unit, suite, etc.) |
| accountNumber | string | The account number associated with the financial account |
| routingNumber | string | The routing number for the financial account |
| isBusiness | boolean | true if the account belongs to a business customer |
| financialActivities | array | List of individual financial activity records for the period (see below) |
| accountSummary | object | Aggregated summary totals for the period (see below) |
| financialAccountId | string | The unique identifier of the financial account |
accountSummary object:
| Field | Type | Description |
|---|---|---|
| beginningBalance | integer (int64) | Account balance at the start of the period, in cents |
| endingBalance | integer (int64) | Account balance at the end of the period, in cents |
| deposit | integer (int64) | Total deposits received during the period, in cents |
| withdrawal | integer (int64) | Total withdrawals made during the period, in cents |
| fees | integer (int64) | Total fees charged during the period, in cents |
| cardTransactions | integer (int64) | Total card transaction spend during the period, in cents |
financialActivities array item:
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier for the activity record |
| type | integer (int32) | Activity type code (0–24; see activity type enumeration) |
| description | string | Human-readable description of the transaction |
| amount | integer (int64) | Transaction amount in cents |
| balance | integer (int64) | Account balance after the transaction, in cents |
| negative | boolean | true if the transaction reduced the account balance |
| date | string (date-time) | Date and time the transaction occurred |
| typename | string | Display name of the activity type |
| memo | string | Optional memo or note associated with the transaction |
| fromFinancialAccountId | string | Source financial account ID (for transfers) |
| toFinancialAccountId | string | Destination financial account ID (for transfers) |
| isMineTransfer | boolean | true if the transfer was between the customer's own accounts |
| fee | object | Associated fee activity record, if applicable (same structure as this object) |
| amountOut | integer (int64) | Amount debited from the account, in cents |
| amountIn | integer (int64) | Amount credited to the account, in cents |
| purpose | string | Purpose or category label for the transaction |
| merchantCategory | string | Merchant category code (MCC) description |
| processingType | string | Payment processing type (e.g., ACH, card, wire) |
| ledgerEntryId | string | Internal ledger entry reference identifier |
{
"period": "2024-03-01T00:00:00Z",
"accountHolderName": "Acme Corporation",
"accountHolderAddress": "123 Business Ave",
"accountHolderAddressLine2": "Suite 400",
"accountNumber": "XXXXXXXXXX",
"routingNumber": "021000021",
"isBusiness": true,
"financialAccountId": "fa_9b1c2d3e4f5a6b7c",
"accountSummary": {
"beginningBalance": 500000,
"endingBalance": 612500,
"deposit": 250000,
"withdrawal": 100000,
"fees": 2500,
"cardTransactions": 35000
},
"financialActivities": [
{
"id": "act_a1b2c3d4e5f6",
"type": 1,
"description": "ACH Deposit - Payroll",
"amount": 250000,
"balance": 750000,
"negative": false,
"date": "2024-03-05T14:32:00Z",
"typename": "Deposit",
"memo": "March payroll funding",
"fromFinancialAccountId": null,
"toFinancialAccountId": "fa_9b1c2d3e4f5a6b7c",
"isMineTransfer": false,
"fee": null,
"amountOut": 0,
"amountIn": 250000,
"purpose": "Payroll",
"merchantCategory": null,
"processingType": "ACH",
"ledgerEntryId": "led_x1y2z3w4v5"
},
{
"id": "act_b7c8d9e0f1a2",
"type": 4,
"description": "Card Purchase - Office Supplies",
"amount": 12500,
"balance": 737500,
"negative": true,
"date": "2024-03-08T09:15:00Z",
"typename": "CardTransaction",
"memo": null,
"fromFinancialAccountId": "fa_9b1c2d3e4f5a6b7c",
"toFinancialAccountId": null,
"isMineTransfer": false,
"fee": null,
"amountOut": 12500,
"amountIn": 0,
"purpose": "Office Supplies",
"merchantCategory": "Office Supply Stores",
"processingType": "Card",
"ledgerEntryId": "led_p9q8r7s6t5"
}
]
}Error Codes
| Code | When it happens |
|---|---|
| 400 | Missing required fields or invalid parameter format (e.g., malformed date-time) |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions to access the specified financial account |
| 404 | Financial account not found |
| 500 | Internal server error |
Common Mistakes
- Providing a
perioddate that is not the first day of the month — the API expects the month start date (e.g.,2024-03-01T00:00:00Z), not a mid-month date or end-of-month date. - Omitting the
financialAccountIdwhen the authenticated user has multiple financial accounts, which may return unexpected or empty results. - Interpreting
amount,balance,amountIn, andamountOutas dollars — all monetary values are returned in cents (integer); divide by 100 for display. - Using the
negativeflag alone to determine debit direction — always cross-reference withamountOutandamountInfor accurate accounting.
Related Endpoints
GET /netevia/statements— Retrieve statement data in PDF format for a financial accountGET /netevia/financialAccounts— List all financial accounts for the authenticated customerGET /netevia/financialActivities— Retrieve individual transaction activity records outside of a statement context
Example
curl -X GET "https://api.banking.netevia.dev/netevia/rawStatements?financialAccountId=fa_9b1c2d3e4f5a6b7c&period=2024-03-01T00%3A00%3A00Z" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"