post https://api.staging.pungle.co/api/v2/tokens/bank_account
The tokenization endpoint allows you to create tokens representing a Bank Account. These tokens can then be used to associate a Bank Account to an Account Holder.
The Tokenization endpoint should only be used for testing purposes, and instead the Berkeley client JavaScript library can be used to create tokens in order to reduce your PCI scope.
Note: When using the Tokenization endpoint you should use the Token
API Key. As this key can be exposed in client side applications.
Create a Bank Account Token
This endpoint allows you to create a token that is specific for a Financial Account
or a bank account (i.e., credit, debit).
Request
Note that all fields must be present in the request. Some field values are optional.
Field | Type | Value | Description |
---|---|---|---|
account_number | string, required | 12341234 | Bank Account Number, between 7 and 12 digits. |
transit_number | string, required | 12345 | Bank Account Transit Number |
institution_number | string, required | 001 | Bank Account Institution |
account_holder_name | string, required | John Smith | Account Holder Name |
currency | string, required | CAN, USD | Bank Account Currency |
country | string, required | CAN, USA | Country of Bank Account |
Response
Field name | Type | Value | Description |
---|---|---|---|
account_number | string, required | 12341234 | Bank Account Number |
transit_number | string, required | 12345 | Bank Account Transit Number |
institution_number | string, required | 001 | Bank Account Institution |
account_holder_name | string, required | John Smith | Account Holder Name |
currency | string, required | CAN, USD | Bank Account Currency |
country | string, required | CAN, USA | Country of Bank Account |
last_four_digits | string, required | 1234 | Last Four Digits of Account Number |
risk_level | string | low; medium; high | Card risk level based on CVV, AVS and Watchlist - Berkeley Use Only (Beta) |
token | (alphanumeric) | random key | encrypted bank account token |
type | string | payment_card or bank_account | The type of financial account being tokenized |