Skip to content
Bank Accounts

Create Bank Account

POST/api/bank-accounts

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.

phoneNumber, fullName and emailAddress are all required to create a direct-debit authority. This is required to be able to Top Up a Bank Account.

Request body

  • accountIdrequired string
    The id of the owning Centrapay Account.
  • bankAccountNamerequired string
    The name on the Bank Account provided by the user.
  • bankAccountNumberrequired string
    The user's Bank Account number.
  • directDebitAuthorityoptional object
    A direct-debit authority. By including directDebitAuthority, the user accepts our Direct Debit terms and has authority to operate this account.
  • testoptional boolean
    A flag which is present if the Bank Account is for testing.
  • typeoptional enum
    The type of the Bank Account. Defaults to centrapay.

    Types of bank accounts to allow access to different Asset Types.

    • centrapay
      Allows topup and withdrawal of the centrapay.nzd asset type.
    • quartz
      Allows usage of the quartz.nzd asset type.

Responses

Request
curl -X POST https://service.centrapay.com/api/bank-accounts \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"accountId": "Jaim1Cu1Q55uooxSens6yk",
"bankAccountName": "John Doe",
"bankAccountNumber": "12-1234-1234567-123",
"directDebitAuthority": {
"emailAddress": "john.doe@gmail.com",
"fullName": "John Doe",
"phoneNumber": "+64212345678"
}
}'