ING Australia Banking Account Direct Debits API
Banking Account Direct Debit endpoints
Banking Account Direct Debit endpoints
openapi: 3.0.3
info:
title: CDR Banking Banking Account Balances Banking Account Direct Debits API
version: 1.36.0
description: Specifications for resource endpoints applicable to data holders in the Banking sector.
license:
name: MIT License
url: https://opensource.org/licenses/MIT
contact:
name: Data Standards Body
email: contact@dsb.gov.au
url: https://dsb.gov.au/
servers:
- description: MTLS
url: https://mtls.dh.example.com/cds-au/v1
tags:
- name: Banking Account Direct Debits
x-shortName: Direct Debits
description: Banking Account Direct Debit endpoints
paths:
/banking/accounts/{accountId}/direct-debits:
get:
tags:
- Banking Account Direct Debits
summary: Get Direct Debits For Account
description: Obtain direct debit authorisations for a specific account.
operationId: listDirectDebits
parameters:
- $ref: '#/components/parameters/PathAccountId'
- $ref: '#/components/parameters/QueryPage'
- $ref: '#/components/parameters/QueryPageSize'
- $ref: '#/components/parameters/HeaderXV'
- $ref: '#/components/parameters/HeaderXMinV'
- $ref: '#/components/parameters/HeaderXFAPIInteractionId'
- $ref: '#/components/parameters/HeaderXFAPIAuthDate'
- $ref: '#/components/parameters/HeaderXFAPICustomerIPAddress'
- $ref: '#/components/parameters/HeaderXCDSClientHeaders'
responses:
'200':
$ref: '#/components/responses/ListDirectDebits200'
'400':
$ref: '#/components/responses/ListDirectDebits400'
'404':
$ref: '#/components/responses/ListDirectDebits404'
'406':
$ref: '#/components/responses/ListDirectDebits406'
'422':
$ref: '#/components/responses/ListDirectDebits422'
x-scopes:
- bank:regular_payments:read
x-version: '1'
/banking/accounts/direct-debits:
get:
tags:
- Banking Account Direct Debits
summary: Get Bulk Direct Debits
description: 'Obtain direct debit authorisations for multiple, filtered accounts.
Obsolete versions: [v1](includes/obsolete/get-bulk-direct-debits-v1.html).'
operationId: listDirectDebitsBulk
parameters:
- $ref: '#/components/parameters/QueryBankingProductCategory'
- $ref: '#/components/parameters/QueryBankingAccountOpenStatus'
- $ref: '#/components/parameters/QueryBankingAccountIsOwned'
- $ref: '#/components/parameters/QueryPage'
- $ref: '#/components/parameters/QueryPageSize'
- $ref: '#/components/parameters/HeaderXV'
- $ref: '#/components/parameters/HeaderXMinV'
- $ref: '#/components/parameters/HeaderXFAPIInteractionId'
- $ref: '#/components/parameters/HeaderXFAPIAuthDate'
- $ref: '#/components/parameters/HeaderXFAPICustomerIPAddress'
- $ref: '#/components/parameters/HeaderXCDSClientHeaders'
responses:
'200':
$ref: '#/components/responses/ListDirectDebitsBulk200'
'400':
$ref: '#/components/responses/ListDirectDebitsBulk400'
'406':
$ref: '#/components/responses/ListDirectDebitsBulk406'
'422':
$ref: '#/components/responses/ListDirectDebitsBulk422'
x-scopes:
- bank:regular_payments:read
x-version: '2'
post:
tags:
- Banking Account Direct Debits
summary: Get Direct Debits For Specific Accounts
description: Obtain direct debit authorisations for a specified list of accounts.
operationId: listDirectDebitsSpecificAccounts
parameters:
- $ref: '#/components/parameters/QueryPage'
- $ref: '#/components/parameters/QueryPageSize'
- $ref: '#/components/parameters/HeaderXV'
- $ref: '#/components/parameters/HeaderXMinV'
- $ref: '#/components/parameters/HeaderXFAPIInteractionId'
- $ref: '#/components/parameters/HeaderXFAPIAuthDate'
- $ref: '#/components/parameters/HeaderXFAPICustomerIPAddress'
- $ref: '#/components/parameters/HeaderXCDSClientHeaders'
requestBody:
$ref: '#/components/requestBodies/RequestAccountIds'
responses:
'200':
$ref: '#/components/responses/ListDirectDebitsSpecificAccounts200'
'400':
$ref: '#/components/responses/ListDirectDebitsSpecificAccounts400'
'406':
$ref: '#/components/responses/ListDirectDebitsSpecificAccounts406'
'422':
$ref: '#/components/responses/ListDirectDebitsSpecificAccounts422'
x-scopes:
- bank:regular_payments:read
x-version: '1'
components:
responses:
ListDirectDebitsSpecificAccounts406:
description: The following error codes **MUST** be supported:<br/><ul class="error-code-list"><li>[406 - Unsupported Version](#error-406-header-unsupported-version)</li></ul>
headers:
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseErrorListV2'
ListDirectDebits400:
description: The following error codes **MUST** be supported:<br/><ul class="error-code-list"><li>[400 - Invalid Field](#error-400-field-invalid)</li><li>[400 - Missing Required Field](#error-400-field-missing)</li><li>[400 - Missing Required Header](#error-400-header-missing)</li><li>[400 - Invalid Version](#error-400-header-invalid-version)</li><li>[400 - Invalid Page Size](#error-400-field-invalid-page-size)</li></ul>
headers:
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseErrorListV2'
ListDirectDebitsSpecificAccounts422:
description: The following error codes **MUST** be supported:<br/><ul class="error-code-list"><li>[422 - Invalid Page](#error-422-field-invalid-page)</li><li>[422 - Unavailable Banking Account](#error-422-authorisation-unavailable-banking-account)</li><li>[422 - Invalid Banking Account](#error-422-authorisation-invalid-banking-account)</li></ul>
headers:
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseErrorListV2'
ListDirectDebitsBulk406:
description: The following error codes **MUST** be supported:<br/><ul class="error-code-list"><li>[406 - Unsupported Version](#error-406-header-unsupported-version)</li></ul>
headers:
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseErrorListV2'
ListDirectDebits404:
description: The following error codes **MUST** be supported:<br/><ul class="error-code-list"><li>[404 - Unavailable Banking Account](#error-404-authorisation-unavailable-banking-account)</li><li>[404 - Invalid Banking Account](#error-404-authorisation-invalid-banking-account)</li></ul>
headers:
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseErrorListV2'
ListDirectDebitsBulk400:
description: The following error codes **MUST** be supported:<br/><ul class="error-code-list"><li>[400 - Invalid Field](#error-400-field-invalid)</li><li>[400 - Missing Required Field](#error-400-field-missing)</li><li>[400 - Missing Required Header](#error-400-header-missing)</li><li>[400 - Invalid Version](#error-400-header-invalid-version)</li><li>[400 - Invalid Page Size](#error-400-field-invalid-page-size)</li></ul>
headers:
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseErrorListV2'
ListDirectDebitsSpecificAccounts200:
description: Successful response
headers:
x-v:
$ref: '#/components/headers/XV'
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseBankingDirectDebitAuthorisationList'
ListDirectDebitsSpecificAccounts400:
description: The following error codes **MUST** be supported:<br/><ul class="error-code-list"><li>[400 - Invalid Field](#error-400-field-invalid)</li><li>[400 - Missing Required Field](#error-400-field-missing)</li><li>[400 - Missing Required Header](#error-400-header-missing)</li><li>[400 - Invalid Version](#error-400-header-invalid-version)</li><li>[400 - Invalid Page Size](#error-400-field-invalid-page-size)</li></ul>
headers:
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseErrorListV2'
ListDirectDebitsBulk422:
description: The following error codes **MUST** be supported:<br/><ul class="error-code-list"><li>[422 - Invalid Page](#error-422-field-invalid-page)</li></ul>
headers:
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseErrorListV2'
ListDirectDebits422:
description: The following error codes **MUST** be supported:<br/><ul class="error-code-list"><li>[422 - Invalid Page](#error-422-field-invalid-page)</li></ul>
headers:
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseErrorListV2'
ListDirectDebits406:
description: The following error codes **MUST** be supported:<br/><ul class="error-code-list"><li>[406 - Unsupported Version](#error-406-header-unsupported-version)</li></ul>
headers:
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseErrorListV2'
ListDirectDebits200:
description: Successful response
headers:
x-v:
$ref: '#/components/headers/XV'
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseBankingDirectDebitAuthorisationList'
ListDirectDebitsBulk200:
description: Successful response
headers:
x-v:
$ref: '#/components/headers/XV'
x-fapi-interaction-id:
$ref: '#/components/headers/XFAPIInteractionId'
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseBankingDirectDebitAuthorisationList'
schemas:
Meta:
type: object
BankingAuthorisedEntity:
type: object
properties:
description:
type: string
description: Description of the authorised entity derived from previously executed direct debits.
financialInstitution:
type: string
description: Name of the financial institution through which the direct debit will be executed. Is required unless the payment is made via a credit card scheme.
abn:
type: string
description: Australian Business Number for the authorised entity.
acn:
type: string
description: Australian Company Number for the authorised entity.
arbn:
type: string
description: Australian Registered Body Number for the authorised entity.
x-conditional:
- financialInstitution
BankingAccountId:
type: string
description: A unique identifier for a Banking account, generated according to [CDR ID Permanence](#id-permanence) requirements.
x-cds-type: ASCIIString
ErrorV2:
type: object
required:
- code
- title
- detail
x-conditional:
- meta
properties:
code:
type: string
description: The code of the error encountered. Where the error is specific to the respondent, an application-specific error code, expressed as a string value. If the error is application-specific, the URN code that the specific error extends must be provided in the _meta_ object. Otherwise, the value is the error code URN.
title:
type: string
description: A short, human-readable summary of the problem that **MUST NOT** change from occurrence to occurrence of the problem represented by the error code.
detail:
type: string
description: A human-readable explanation specific to this occurrence of the problem.
meta:
type: object
x-conditional:
- urn
description: Additional data for customised error codes.
properties:
urn:
type: string
description: The CDR error code URN which the application-specific error code extends. Mandatory if the error _code_ is an application-specific error rather than a standardised error code.
LinksPaginated:
required:
- self
type: object
properties:
self:
type: string
description: Fully qualified link that generated the current response document.
x-cds-type: URIString
first:
type: string
description: URI to the first page of this set. Mandatory if this response is not the first page.
x-cds-type: URIString
prev:
type: string
description: URI to the previous page of this set. Mandatory if this response is not the first page.
x-cds-type: URIString
next:
type: string
description: URI to the next page of this set. Mandatory if this response is not the last page.
x-cds-type: URIString
last:
type: string
description: URI to the last page of this set. Mandatory if this response is not the last page.
x-cds-type: URIString
x-conditional:
- prev
- next
- first
- last
ResponseErrorListV2:
type: object
required:
- errors
properties:
errors:
description: List of errors.
type: array
items:
$ref: '#/components/schemas/ErrorV2'
MetaPaginated:
required:
- totalPages
- totalRecords
type: object
properties:
totalRecords:
type: integer
description: The total number of records in the full set. See [pagination](#pagination).
x-cds-type: NaturalNumber
totalPages:
type: integer
description: The total number of pages in the full set. See [pagination](#pagination).
x-cds-type: NaturalNumber
ResponseBankingDirectDebitAuthorisationList:
required:
- data
- links
- meta
type: object
properties:
data:
required:
- directDebitAuthorisations
type: object
properties:
directDebitAuthorisations:
type: array
description: The list of authorisations returned.
items:
$ref: '#/components/schemas/BankingDirectDebit'
links:
$ref: '#/components/schemas/LinksPaginated'
meta:
$ref: '#/components/schemas/MetaPaginated'
BankingProductCategoryV2:
type: string
description: The category to which a product or account belongs. See [here](#product-categories) for more details.
enum:
- BUSINESS_LOANS
- BUY_NOW_PAY_LATER
- CRED_AND_CHRG_CARDS
- LEASES
- MARGIN_LOANS
- OVERDRAFTS
- PERS_LOANS
- REGULATED_TRUST_ACCOUNTS
- RESIDENTIAL_MORTGAGES
- TERM_DEPOSITS
- TRADE_FINANCE
- TRANS_AND_SAVINGS_ACCOUNTS
- TRAVEL_CARDS
RequestAccountIdListV1:
type: object
required:
- data
properties:
data:
type: object
required:
- accountIds
properties:
accountIds:
type: array
description: Array of _accountId_ values to obtain data for.
items:
$ref: '#/components/schemas/BankingAccountId'
meta:
$ref: '#/components/schemas/Meta'
BankingDirectDebit:
required:
- accountId
- authorisedEntity
type: object
properties:
accountId:
description: Unique identifier for the account.
allOf:
- $ref: '#/components/schemas/BankingAccountId'
authorisedEntity:
$ref: '#/components/schemas/BankingAuthorisedEntity'
lastDebitDateTime:
type: string
description: The date and time of the last debit executed under this authorisation.
x-cds-type: DateTimeString
lastDebitAmount:
type: string
description: The amount of the last debit executed under this authorisation.
x-cds-type: AmountString
parameters:
HeaderXV:
name: x-v
in: header
description: Version of the API endpoint requested by the client. Must be set to a positive integer. The endpoint should respond with the highest supported version between [_x-min-v_](#request-headers) and [_x-v_](#request-headers). If the value of [_x-min-v_](#request-headers) is equal to or higher than the value of [_x-v_](#request-headers) then the [_x-min-v_](#request-headers) header should be treated as absent. If all versions requested are not supported then the endpoint **MUST** respond with a `406 Not Acceptable`. See [HTTP Headers](#request-headers).
required: true
schema:
type: string
HeaderXFAPIInteractionId:
name: x-fapi-interaction-id
in: header
description: An **[[RFC4122]](#nref-RFC4122)** UUID used as a correlation id. If provided, the data holder **MUST** play back this value in the _x-fapi-interaction-id_ response header. If not provided a **[[RFC4122]](#nref-RFC4122)** UUID value is required to be provided in the response header to track the interaction.
schema:
type: string
HeaderXMinV:
name: x-min-v
in: header
description: Minimum version of the API endpoint requested by the client. Must be set to a positive integer if provided. The endpoint should respond with the highest supported version between [_x-min-v_](#request-headers) and [_x-v_](#request-headers). If all versions requested are not supported then the endpoint **MUST** respond with a `406 Not Acceptable`.
schema:
type: string
QueryPageSize:
name: page-size
in: query
description: Page size to request. Default is 25 (standard pagination).
schema:
type: integer
default: 25
x-cds-type: PositiveInteger
QueryBankingAccountIsOwned:
name: is-owned
in: query
description: Filters accounts based on whether they are owned by the authorised customer. `true` for owned accounts, `false` for unowned accounts and absent for all accounts.
schema:
type: boolean
HeaderXFAPIAuthDate:
name: x-fapi-auth-date
in: header
description: The time when the customer last logged in to the Data Recipient Software Product as described in **[[FAPI-1.0-Baseline]](#nref-FAPI-1-0-Baseline)**. Required for all resource calls (customer present and unattended). Not required for unauthenticated calls.
schema:
type: string
x-conditional: true
QueryPage:
name: page
in: query
description: Page of results to request (standard pagination).
schema:
type: integer
default: 1
x-cds-type: PositiveInteger
PathAccountId:
name: accountId
in: path
description: The _accountId_ to obtain data for. _accountId_ values are returned by account list endpoints.
required: true
schema:
$ref: '#/components/schemas/BankingAccountId'
QueryBankingAccountOpenStatus:
name: open-status
in: query
description: Used to filter results according to open/closed status. Values can be `OPEN`, `CLOSED` or `ALL`. If absent then `ALL` is assumed.
schema:
type: string
default: ALL
enum:
- ALL
- CLOSED
- OPEN
HeaderXCDSClientHeaders:
name: x-cds-client-headers
in: header
description: The customer's original standard http headers [Base64](#common-field-types) encoded, including the original User-Agent header, if the customer is currently logged in to the Data Recipient Software Product. Mandatory for customer present calls. Not required for unattended or unauthenticated calls.
schema:
type: string
x-conditional: true
x-cds-type: Base64
HeaderXFAPICustomerIPAddress:
name: x-fapi-customer-ip-address
in: header
description: The customer's original IP address if the customer is currently logged in to the Data Recipient Software Product. The presence of this header indicates that the API is being called in a customer present context. Not to be included for unauthenticated calls.
schema:
type: string
QueryBankingProductCategory:
name: product-category
in: query
description: Used to filter results on the _productCategory_ field applicable to accounts. Any one of the valid values for this field can be supplied. If absent then all accounts returned.
schema:
$ref: '#/components/schemas/BankingProductCategoryV2'
requestBodies:
RequestAccountIds:
description: Request payload containing a list of _accountId_ values to obtain data for.
content:
application/json:
schema:
$ref: '#/components/schemas/RequestAccountIdListV1'
required: true
headers:
XV:
description: The [payload version](#response-headers) that the endpoint has responded with.
required: true
schema:
type: string
XFAPIInteractionId:
description: An **[[RFC4122]](#nref-RFC4122)** UUID used as a correlation id. If provided, the data holder **MUST** play back this value in the _x-fapi-interaction-id_ response header. If not provided a **[[RFC4122]](#nref-RFC4122)** UUID value is required to be provided in the response header to track the interaction.
required: true
schema:
type: string