v1

latestOpenAPI 3.1.02026-07-24120106.5 KB

Create A Bank Payment Method Token

Creates a new bank payment method and returns an auto-generated token.

post/paymentmethodtokens/bank

Request body

accountHolderNamestring required

The name of the person or business that owns this bank account.

accountNumberstring required

The account number of this bank account.

bankNumberstring required

The bank number of the bank.

branchNumberstring required

The branch number of the bank.

suffixNumberstring required

The suffix number of the bank.

termAndConditionAgreedstring required

Specify if the account holder has accepted Ezypay's Terms and Conditions. Supported values are true or false.

countryCodestring required

The 2-letter country code of this payment method.

Response

200

typestring
paymentMethodTokenstring

Example response

{
  "type": "BANK",
  "bank": {
    "accountHolderName": "John Smith",
    "last4": "1534",
    "bankNumber": "062140",
    "branchNumber": "2140",
    "suffixNumber": "06",
    "countryCode": "AU",
    "bankTransferType": "LOCAL"
  },
  "paymentMethodToken": "1260c427-2c91-437c-9bac-18cb72cf39bf"
}
All 12 operations