Statements v2.3.3

Statements v2.3.3

Version Control

Version

Date

Author

Comments

Version

Date

Author

Comments

2.0.0

Apr 30, 2020

Payments NZ API Working Group

Baseline

2.1-draft1

Jun 15, 2020 

Gavin Wong (Unlicensed)

Updated:

Removed:

2.1-rc2

Sep 29, 2020

Gavin Wong (Unlicensed)

Updated:

  • Scope definition based on Business WG feedback

2.2-draft1

Nov 4, 2021

Gavin Wong (Unlicensed)

Updated:

  • Updated statements and party endpoints to be mandatory as per v2.2 scope

2.3.1

Nov 5, 2022

Nigel Somerfield

Patch update to Swagger specification to BECSRemittance - DebtorReference and CreditorReference - specify additionalProperties: false

2.3.2

Oct 26, 2023

Nigel Somerfield

Patch update to Swagger to reflect https://paymentsnz.atlassian.net/wiki/spaces/PaymentsDirectionAPIStandardsDevelopment/pages/1455358006, which determined that the standard error response body should be included in all non-success HTTP responses.

2.3.3

Jun 6, 2024

Nigel Somerfield

Patch update to clarify the explanation of BookingDateTime:

  • The BookingDateTime is the date the transaction is booked (or posted)
    and becomes immutable - which is not the date the transaction took place

was replaced with:

  • The BookingDateTime is the date the transaction is booked (or posted)
    and becomes immutable - which is not necessarily the date the transaction
    took place

 

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

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

Pagination

Filtering



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). 

GET /accounts/{AccountId}/statements/{StatementId}