Skip to content

Transaction data services (TDS) is a business service which provides customer financial transaction data to be used by software packages.

Notifications You must be signed in to change notification settings

InlandRevenue/Gateway_Services-Transaction-data-services

Repository files navigation

IRD logo Software Dev

Transaction Data Services (TDS) API

The TDS is a suite of business services that provides access to IR customers transaction data for consumption by software packages. In turn these packages present that data to their users. Financial transaction data includes amounts assessed and associated credits or debits. There is no data sent associated with the details of how an assessment has been calculated

Environment information

About the Emulated Transaction Data Service API

This is an emulated service which emulates the TDS Gateway Service APIs. It provides static responses for a subset of scenarios invoked on each API.

Please note that not all requests and responses are emulated.

TDS API Build Pack

TDS Business use cases

YAML

Reconciliation (Batch) Model

  • Summary Status
  • Summary
  • Transactions/Batch

Realtime Model

  • Financials
  • Transactions/Realtime

Mock environment information

The hosted service is available at: https://tds-api.test.services.ird.govt.nz (IP Address whitlisting is required)

Mind Map

The mind map for the emulated service View larger image Mock Scenarios

Mock environment authentication

  • Consumers of this mock service must be authenticated for the Realtime Model.
  • Access delegation/restriction is not emulated, and any authenticated user has access to the test data.
    • OAuth
      • OAuth token issued by the mock OAuth service. Any valid token issued by the mock OAuth service can be used to access this service.
      • Please consult the mock OAuth service documentation for further details about the authentication process.
      • The OAuth token should be provided in the 'Authorization' request header as follows:
      Authorization: Bearer {OAuthAccessToken}
      

Test Data

Summary - Retrieve account summary

clientListId linked account filing periods
139702328 INC 2019-03-31, 2021-03-31
139723834 INC 2021-03-31
customerId linked account filing periods
139476387 FBT 2021-12-31, 2022-03-31
GST 2021-12-31, 2022-03-31
INC 2019-03-31, 2021-03-31
139723848 INC 2021-03-31
139724348 INC 2020-03-31, 2021-03-31
accountId filing periods
139476387FBT005 2021-12-31, 2022-03-31
139476387GST004 2021-12-31, 2022-03-31
139476387INC002 2019-03-31, 2021-03-31
139723848INC002 2021-03-31
139724348INC002 2020-03-31, 2021-03-31

TransactionsBatch / TransactionsRealtime - Retrieve transactions

accountId linked account filing periods
139476387INC002 INC 2019-03-31, 2021-03-31

Financials - Retrieve financials

customerId account filing periods
139476387 FBT 2021-12-31, 2022-03-31
GST 2021-12-31, 2022-03-31
INC 2019-03-31, 2021-03-31

Example JSON requests and responses

/Summary

/Transactions

/Financials

Mock Test Report Templates

Digital Testing Environment information

Test Report Templates

Production Environment information:

PLEASE NOTE: IR requires DSP’s to provide a separate mutual TLS certificate which will be used exclusively for the TDS API /Summary and /transaction/batch.

Supporting services

About

Transaction data services (TDS) is a business service which provides customer financial transaction data to be used by software packages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •