๐Update Customer
Endpoint
๐ Description
Updates a customer's KYC information based on their customer_id, email, or phone_number. If the customer exists but has incomplete KYC data, this endpoint allows the business to complete or modify their details, including updating files (ID or utility bill).
Request Headers
Authorization
Beaerer {Secrete_KEY}
api-key
{API_KEY}
Content-Type
application/json
๐งพ Request Body
first_name
string
โ
Customer's first name
last_name
string
โ
Customer's last name
email
string
โ
Valid email address
phone_number
string
โ
Nigerian phone number (11 digits)
address
string
โ
Residential address
state
string
โ
State of residence
city
string
โ
City of residence
postal_code
string
โ
Postal code
date_of_birth
string
โ
Must be at least 14 years old (YYYY-MM-DD)
id_type
string
โ
One of: bvn, nin
id_number
string
โ
ID number, validated based on id_type
id_card
file
โ
JPEG, PNG, or PDF file (max: 5MB)
utility_bill
file
โ
JPEG, PNG, or PDF file (max: 5MB)
businessId
string
โ
The business ID this customer belongs to
// Some code
{
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "08012345678",
"address": "10 Market Street",
"state": "Lagos",
"city": "Ikeja",
"postal_code": "100001",
"date_of_birth": "2008-05-01",
"id_type": "bvn",
"id_number": "22123456789",
"businessId": "abc123"
}
๐ Note: Files like
id_cardandutility_billshould be submitted as part of amultipart/form-datarequest.
โ Successful Response
// Some code
{
"status": true,
"message": "Customer created successfully",
"customer": {
"customer_name": "Jane Doe",
"customer_email": "[email protected]",
"customer_id": "9a4c73d7d8ff9..."
}
}
Last updated