Statements v3.0.1
- 1 Version Control
- 2 Definition
- 3 Endpoints
- 4 Data Model
- 4.1 UML Diagram
- 4.1.1 OBStatement1
- 4.1.2 OBReadStatement1
- 4.1.3 OBReadStatement2
- 4.2 Notes
- 4.3 Filtering
- 4.3.1 Filtering Examples
- 4.4 Permission Codes
- 4.5 Data Dictionary
- 4.5.1 OBStatement1
- 4.5.2 OBReadStatement1
- 4.5.3 OBReadStatement2
- 4.6 Enumerations
- 4.1 UML Diagram
- 5 Usage Examples
- 5.1 Specific Account
- 5.1.1 Request
- 5.1.1.1 Get Account Statements Request
- 5.1.2 Response
- 5.1.2.1 Get Account Statements Response
- 5.1.1 Request
- 5.2 Bulk
- 5.2.1 Request
- 5.2.1.1 Get Statements Request
- 5.2.2 Response
- 5.2.2.1 Get Statements Response
- 5.2.1 Request
- 5.1 Specific Account
Version Control
Version | Date | Author | Comments |
|---|---|---|---|
3.0.0-draft1 | May 3, 2022 | Payments NZ API Working Group | Baseline |
3.0.0-draft1
| Jun 26, 2022
| Gavin Wong (Unlicensed)
| Updates to Accounts:
|
3.0.0-draft2 | Jan 17, 2023 | Nigel Somerfield | Baseline for v3.0.0-draft2 |
3.0.0-draft2 | Apr 6, 2023 | Nigel Somerfield | Updated length of resource Id fields from 40 to 128 characters as agreed in https://paymentsnz.atlassian.net/wiki/spaces/PaymentsDirectionAPIStandardsDevelopment/pages/1610940428 |
3.0.0-rc1 | May 5, 2023 | Nigel Somerfield | Baselined for release candidate 1 Updated PhoneNumber (used in Phone and Mobile date fields) regular expression as per https://paymentsnz.atlassian.net/wiki/spaces/PaymentsDirectionAPIStandardsDevelopment/pages/1616445441 |
3.0.0-rc1 | Jun 16, 2023 | Nigel Somerfield | Corrected Account examples to match the enumerated values for |
3.0.0-rc2 | Sep 12, 2023 | Nigel Somerfield | Baseline for v3.0.0-rc2 |
3.0.0-rc2 | Sep 25, 2023 | Nigel Somerfield | Updated:
|
3.0.0-rc2 | Oct 9, 2023 | Nigel Somerfield | Updated:
|
3.0.0 | Nov 13, 2023 | Nigel Somerfield | Version 3.0.0 baseline release |
3.0.0 | Jan 31, 2024 | Nigel Somerfield | Updated to reflect OpenAPI release in Github (pull request merge) |
3.0.1 | Jun 6, 2024 | Nigel Somerfield | Patch update to clarify the explanation of BookingDateTime:
was replaced with:
|
Definition
A resource that describes summary details for an account statement period.
For a specific date range - an account (AccountId) may have no statements, or may have multiple statements.
The /statements endpoint (if implemented by the API Provider) must return all statements within the requested date range for all accounts selected during the authorisation of the account-access-consent.
If a Third Party would like to access a specific statement (StatementId) to retrieve a formal statement download or transactions for a specific statement - the Third Party must specify the account (the AccountId) via the URI request path - i.e., via:
GET /accounts/{AccountId}/statements/{StatementId}/file - to download the statement
GET /accounts/{AccountId}/statements/{StatementId}/transactions - to return the transactions relating to a statement
Endpoints
Resource | Endpoint | Mandatory? | Scope | Grant Type | Idempotency Key | Parameters | Request Object | Response Object |
|---|---|---|---|---|---|---|---|---|
statements | GET /accounts/{AccountId}/statements | Mandatory | accounts | Redirect Flow; or Decoupled Flow | No | Pagination Filtering | OBReadStatement1 | |
statements | GET /accounts/{AccountId}/statements/{StatementId} | Mandatory | accounts | Redirect Flow; or Decoupled Flow | No |
| OBReadStatement2 | |
statements | GET /accounts/{AccountId}/statements/{StatementId}/file | Mandatory | accounts | Redirect Flow; or Decoupled Flow | No | |||
transactions | GET /accounts/{AccountId}/statements/{StatementId}/transactions | Mandatory | accounts | Redirect Flow; or Decoupled Flow | No | Pagination Filtering | OBReadTransaction2 | |
statements | GET /statements | Optional | account | Redirect Flow; or Decoupled Flow | No | Pagination Filtering | OBReadStatement1 |
GET /accounts/{AccountId}/statements
The API endpoint allows a Third Party to retrieve the statements for a specific account identified by AccountId.
The Third Party must have an access token issued by the API Provider using an authorization flow (either redirect flow or decoupled flow).