How does this Work?
To securely access your customers’ BVN information correctly, follow these steps:- To enable the feature that resolves BVN information, please send an email to hi@flutterwavego.com requesting approval.
- Send the customer’s name and BVN to the initiate-consent endpoint. It will return a hosted page.
- Redirect the customer to the consent page to provide approval to access their BVN data.
- After approval is granted or declined, the customer will be redirected to the
redirect_urlthat was passed in step 1. You can then query the verify consent endpoint to retrieve the customer’s BVN information.
Initiate Owner’s Consent
Before obtaining a customer’s BVN details, you must first obtain their consent. To initiate consent, pass the customer’sfull_name, bvn, and redirect_url to the initiate consent endpoint.
Sample Request
- The customer gives consent to the merchant for the first time: In this case,
data.redirect_urlreturns a valid url. - The customer has given consent to the merchant in the past: This scenario can lead to two different responses:
- A null redirect url returned in the response as
data.redirect_url. - The redirect URL is pointing to the merchant’s redirect URL.
- A null redirect url returned in the response as
Retrieving BVN Information
After a customer gives consent on the NIBSS portal, they will be redirected to yourredirect_url. To obtain the customer’s BVN information, you must call the verify endpoint with the reference returned in the response of the initiate consent API call.
To retrieve BVN data, you should listen for webhooks to receive the data when it becomes available. Alternatively, you can pull the verified consent endpoint.