Validate Customer

Learn how to validate identification details for your customers

Availability
This is only required you if you're using the Dedicated NUBAN feature.

Introduction

The customer validation endpoint is used to verify identification details provided by your customers. You can validate a customer by sending a POST request to the Validate CustomerAPI endpoint.

Show Response
1curl https://api.paystack.co/customer/{customer_code}/identification
2-H "Authorization: Bearer YOUR_SECRET_KEY"
3-H "Content-Type: application/json"
4-d '{
5 "country": "NG",
6 "type": "bvn",
7 "value": "200123456677",
8 "first_name": "Asta",
9 "last_name": "Lavista"
10}'
11-X POST
1{
2 "status": true,
3 "message": "Customer Identification in progress"
4 }

Testing

Customers can only be validated with live keys. However, for testing purposes during your integration, you can make make use of this credential with your test key:

1{
2 "country": "NG",
3 "type": "bvn",
4 "value": "22222222298",
5 "first_name": "Uchenna",
6 "last_name": "Okoro"
7}
8
Failed Validation
If you make use of any other BVN with your test key, the validation will fail.

Listen for verification status

The verification of the details provided happens asynchronously, and we will send a customeridentification.success or customeridentification.failed event to your webhook URL when the verification is complete.

Prerequisite
You need a basic knowledge of webhooks before proceeding with this section.
1{
2 "event": "customeridentification.success",
3 "data": {
4 "customer_id": "9387490384",
5 "customer_code": "CUS_xnxdt6s1zg1f4nx",
6 "email": "bojac[email protected]",
7 "identification": {
8 "country": "NG",
9 "type": "bvn",
10 "value": "200*****677"
11 }
12 }
13 }
A validated customer's name cannot be updated
When a customer is validated successfully, the customer's first_name and last_name are automatically updated to correspond with the name on their BVN. Once this is set, you'll no longer be able to update the customer's name using the Update CustomerAPI and the customer's name can only be updated by a re-validation.

Reasons to validate a customer

  1. Local regulations require that customer information is validated before creating account numbers on their behalf.
  2. It allows us name the bank account using the name registered to the provided BVN.