Create Customer
Registers a new customer under your company and validates their BVN with the provider. This does not create a bank account yet — call Generate Customer Account next.
Errors: 400 BVN/email/mobile number already exists for your company, or BVN failed provider validation.
Body (JSON) - checked by Joi (customerSchema, all errors returned together). Fields not listed here are rejected.
Behaviour notes
otherNameis read by the controller, butcustomerSchemadoesn’t list it. Sending it gets"otherName" is not allowedwhen the schema is applied, so leave it out.bvn,emailandmobileNomust each be unique within your company. They are checked in that order and only the first clash is reported.- The BVN is then validated with the provider. A failure returns
400 Invalid BVN, and a provider OTP is sent to the BVN-linked phone, which you use in Generate Customer Account. - Response
datacontains onlyid,firstNameandlastName. - Date-range failures on
dobcome back as the generic Joi text"dob" contains an invalid value, not the custom messages in the schema.
Authentication
AuthorizationBearer
Access token from Generate Access Token (valid 15 minutes).
Request
This endpoint expects an object.
firstName
lastName
email
mobileNo
bvn
dob
Response
Created
status
message
data
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
