Bank Accounts
Bank Accounts are used to get money in and out of a Centrapay Account. Money is moved by creating "Top Up" or "Withdrawal" Funds Transfers .
Bank Accounts must be "direct debit authorized" before they can be used for a Top Up and they must be "verified" before top up funds are released. Bank Accounts do not require "direct debit authorization" or "verification" in order to perform a Withdrawal. A 4-digit code from any recent Centrapay-initiated bank transaction can be used to verify a bank account.
Bank Account Model
Attributes
Bank Account Type
Types of bank accounts to allow access to different Asset Types .
Type | Description |
---|---|
centrapay | Allows topup and withdrawal of the centrapay.nzd asset type. |
quartz | Allows usage of the quartz.nzd asset type. |
Direct Debit Authority Model
A direct-debit authority is required to be able to Top Up a Bank Account. By including directDebitAuthority
, the user accepts our Direct Debit terms and has authority to operate this account.
Attributes
-
phoneNumber
-
fullName
-
emailAddress
Bank Account Approval Type Summary Model
A summary of the Bank Account Approvals for a Bank Account. There is one object per type of Bank Account Approval, which provides a summary of the approval status.
Attributes
-
type
-
status
-
updatedAt
timestamp
Bank Account Balance Model
The Bank Account balance, retrieved using Open Banking flows. The supported Bank Account type is quartz
.
Attributes
-
bankAccountId
-
balance
bignumber -
currency
Create Bank Account
A Bank Account can be created with or without direct debit authorized. By including directDebitAuthority
, the user accepts our Direct Debit terms and has authority to operate this account.
phone
, fullName
and emailAddress
are all required to create a direct-debit authority. This is required to be able to Top Up a Bank Account.
Attributes
-
accountId
-
bankAccountNumber
-
bankAccountName
-
directDebitAuthority
-
type
-
test
Errors
-
BANK_ACCOUNT_LIMIT_EXCEEDED
-
BANK_ACCOUNT_HOLDER_LIMIT_EXCEEDED
-
DUPLICATE_BANK_ACCOUNT
Add Direct Debit Authority to a Bank Account
By using this endpoint, the user accepts our Direct Debit terms and has authority to operate this account.
Attributes
-
phoneNumber
-
fullName
-
emailAddress
Errors
-
DIRECT_DEBIT_ALREADY_AUTHORIZED
-
DIRECT_DEBIT_LIMIT_EXCEEDED
Get Bank Account
This endpoint allows you to retrieve information about a Bank Account.
Get Bank Account Balance
This endpoint allows you to retrieve the balance of a Bank Account.
Verify Bank Account
Verification codes show up on statements when a user makes withdrawals and deposits. To verify an account, you need to direct the user to make a Top Up or Withdrawal and then check their statement.
Attributes
-
verificationCode
Errors
-
BANK_ACCOUNT_ALREADY_VERIFIED
-
VERIFICATION_CODE_INVALID
-
BANK_ACCOUNT_VERIFICATION_ATTEMPTS_EXCEEDED
-
ACCOUNT_MISMATCH
List Bank Accounts
This endpoint allows you to list the Bank Accounts for an account.
Set Preferred Bank Account Name
Errors
-
INVALID_BANK_ACCOUNT_TYPE
Archive Bank Account
Archives the supplied bank account. This endpoint is currently only supported for quartz
bank accounts.
Verify Bank Authority
If you're creating new interfaces, please work with Verify Bank Account .
Attributes
-
verificationCode
Errors
-
BANK_ACCOUNT_ALREADY_VERIFIED
-
VERIFICATION_CODE_INVALID
-
BANK_ACCOUNT_VERIFICATION_ATTEMPTS_EXCEEDED
-
ACCOUNT_MISMATCH
List Bank Authorities
If you're creating new interfaces, please work with List Bank Accounts .
Create Bank Authority
If you're creating new interfaces, please work with Create Bank Account .
Creating a Bank Authority both creates a new Bank Account and a direct debit authority. By using this endpoint, the user accepts our Direct Debit terms and has authority to operate this account.
Attributes
-
accountId
-
fullName
-
phoneNumber
-
emailAddress
-
bankAccountNumber
-
bankAccountName
Errors
-
BANK_AUTHORITY_LIMIT_EXCEEDED
-
BANK_AUTHORITIES_FOR_BANK_ACCOUNT_EXCEEDED
Get Bank Authority
If you're creating new interfaces, please work with Get Bank Account .
Errors
-
BANK_AUTHORITY_LIMIT_EXCEEDED
-
BANK_AUTHORITIES_FOR_BANK_ACCOUNT_EXCEEDED