Allows retrieval of up to 2 years' of historical statements for your end-user's consented accounts
The Statements product allows retrieval of statements for your end-user's consented accounts. You may request a date range of up to two years of historical statements (maximum date ranges vary by provider).
Paginated Statement list results include an array of statement information with the end-user's account identifier and details such as statement id, date, description, and status. The results also include links to GET the statement, returned in PDF format. Future file formats could include GIF, JPG, TIFF, and PNG.
Endpoints:
/statements/{version}/{providerId}/{accountId}
/statements/{version}/{providerId}/{accountId}/{statementId}
Name | Type | Description |
accountId | string | Corresponds to accountId in Account entity |
statementId | string | Long-term persistent identity of the statement |
statementDate | dateTime | Date of the statement (ISO 8601 format) |
description | string | Description of statement |
status | string | Defines the status of a document |
link | hateoasLink object array | The statement download link hosted by Akoya |
To get statements for your end-user, first retrieve a list of available statements for the consented account. Your request may include a date range of up to two years of historical statements (maximum date ranges vary by provider).
Endpoint: /statements/{version}/{providerId}/{accountId}
curl --location "https://sandbox-products.ddp.akoya.com/statements/v2/mikomo/513815781465?startTime=2022-02-26T00%3A00%3A00Z&endTime=2023-02-26T00%3A00%3A00Z&offset=0&limit=5" --header "Authorization: Bearer {token}"
{
"links": {
"prev": {
"href": "/statements/v2/mikomo/513815781465?endTime=2023-02-26T00%3A00%3A00Z&limit=5&offset=0&startTime=2022-02-26T00%3A00%3A00Z"
}
},
"statements": [
{
"accountId": "513815781465",
"statementId": "P9CvLPKDaFRMbNDkhu1",
"statementDate": "2022-05-26",
"description": "FFOS Monthly/Quarterly Statement",
"status": "AVAILABLE",
"links": [
{
"href": "https://sandbox-products.ddp.akoya.com/statements/v2/mikomo/513815781465/P9CvLPKDaFRMbNDkhu1",
"action": "GET",
"types": [
"application/pdf",
"image/jpeg",
"image/png"
]
}
]
},
{
"accountId": "513815781465",
"statementId": "P9CvLPKDaFRMbNDkhu2",
"statementDate": "2023-01-02",
"description": "FFOS Year End Investment Report",
"status": "FAILED",
"links": [
{
"href": "https://sandbox-products.ddp.akoya.com/statements/v2/mikomo/513815781465/P9CvLPKDaFRMbNDkhu2",
"action": "GET",
"types": [
"application/pdf",
"image/jpeg",
"image/png"
]
}
]
},
{
"accountId": "513815781465",
"statementId": "P9CvLPKDaFRMbNDkhu3",
"statementDate": "2023-01-05",
"description": "FFOS Monthly/Quarterly Statement",
"status": "PROCESSING",
"links": [
{
"href": "https://sandbox-products.ddp.akoya.com/statements/v2/mikomo/513815781465/P9CvLPKDaFRMbNDkhu3",
"action": "GET",
"types": [
"application/pdf",
"image/jpeg",
"image/png"
]
}
]
},
{
"accountId": "513815781465",
"statementId": "P9CvLPKDaFRMbNDkhu4",
"statementDate": "2023-02-24",
"description": "FFOS Yearly Statement",
"status": "AVAILABLE",
"links": [
{
"href": "https://sandbox-products.ddp.akoya.com/statements/v2/mikomo/513815781465/P9CvLPKDaFRMbNDkhu4",
"action": "GET",
"types": [
"application/pdf",
"image/jpeg",
"image/png"
]
}
]
}
]
}
To provide a consistent way to link each statement provided in the list, Akoya includes the exact API call for retrieving each statement. By providing these calls, Akoya allows a passthrough of the statement since direct connections to providers cannot be made. Akoya also interprets any special characters in statement metadata and tokenizes the statementId.
Please use the href link created in the response.
Note: If you’re testing using Postman, you may use the tokenized statementId value included in statements.links.href.
Endpoint: /statements/{version}/{providerId}/{accountId}/{statementId}
From the statement list response, use statements.links.href as the location in the cURL command. To save the response to pdf, include the output command with a file name.
curl --location "<https://sandbox-products.ddp.akoya.com/statements/v2/mikomo/513815781465/P9CvLPKDaFRMbNDkhu1"> --header "Accept: application/pdf" --header "Authorization: Bearer {token}" --output example.pdf