Account Verification
Your goal is to verify the account number and routing number information that has been retrieved from the end-user. Use the Akoya API endpoints to retrieve the account numbers and routing numbers of a consumer’s account directly from their financial institution’s APIs. Matching the account numbers and routing numbers from the end user with the account numbers and routing numbers from the Akoya API endpoints verifies the account.
Account verification relies on the Akoya Payments product. For more information, see the blog post Instant Account Verification with Akoya.
Prerequisites
The API calls require you to have the account holder’s consent. Each data call requires the end-user’s associated id token.
See Get Authorization Code for the user authorization process
See Token to obtain the bearer token for the API calls
Retrieve account information
The Account Information endpoint is a standalone endpoint that supplies useful account information. You need to retrieve a list of available accounts permissioned by the account holder from this endpoint.
Make the GET request /accounts-info/{version}/{providerId}
The {version} parameter is the Akoya major version number. Use v2.
The {providerId} parameter is the shortened version of the bank data provider name, example, mikomo for Mikomo, Akoya's fictional provider. You can find the providerId for each bank listed under the Data Providers tab of the Data Recipient Hub.
Retrieve account information curl example
BASH
Find accountId
From the results of the retrieve account information call, find the the accountId of the selected account. This is the key for retrieving the payments credentials of the account and routing numbers.
Account information results example
JSON
Retrieve routing and account numbers from bank
The Payments endpoint supplies us with payment information, including the routing and account numbers. We use these numbers to verify the account. Since the bank's APIs directly retrieve this information, this qualifies as a verified account number under the Nacha WEB debit rule.
Make the GET request /payments/{version}/{providerId}/{accountId}/payment-networks.
The {version} parameter is the Akoya major version number. Use v2.
The {providerId} parameter is the shortened version of the bank data provider name
You retrieved the {accountId} with the account information call.
Retrieve payment information curl example
TEXT
Find routing and account numbers
The bankId is the routing number, and the identifier is the account number.
JSON
Compare account and routing numbers
Compare the routing and account numbers submitted by the user with the verified routing and account numbers you obtained from the Akoya endpoints. Matching numbers verify the account.