Create a customer account

Changed on

This Api helps to create a virtual card customer account

post/profile/customers

Request

Request body

identifierstring required

An identifier is a name that identifies (that is, labels the identity of) either a unique object or a unique class of objects

businessstring required

Your business id

emailstring required

Email address. kindly note that it must be a unique email address

firstNamestring required

The customer's first name.

lastNamestring required

The customer's last name. This is required to create a virtual card account

dobstring required

The birthdate of the customer(YYYY-MM-DD )

phoneobject required

This contains the country code and phone number of the customer

addressobject required
documentsobject required

Response

200

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Customer created successfully",
  "data": {
    "isActive": true,
    "phone": {
      "countryCode": "+234",
      "number": "08142986562",
      "_id": "639910de41664f80e1eedb20"
    },
    "address": {
      "country": "NG",
      "state": "Lagos State",
      "zip": "100000",
      "city": "Amuwo",
      "street": "No 4 Babawa Street",
      "_id": "639910de41664f41a1eedb21"
    },
    "_id": "639910de41664fdaf9eedb1f",
    "identifier": "Tq",
    "business": "63408b05cb018460343c52de",
    "email": "taofeek2suree@gmail.com",
    "firstName": "Harry",
    "lastName": "Attat",
    "dob": "Wed Oct 10 1990 00:00:00 GMT+0000 (Coordinated Universal Time)",
    "documents": [
      {
        "image": "https://wiki.nimc.gov.ng/mobile_userguide/pins_female.png",
        "type": "passport",
        "number": "A08511194",
        "issuedCountryCode": "NG",
        "issuedDate": "2022-10-10T00:00:00.000Z",
        "expirationDate": "2027-10-10T00:00:00.000Z",
        "_id": "639910de41664f3695eedb22"
      }
    ],
    "cid": "60febd3c-157a-4ae4-aeed-863c5530ec42",
    "createdAt": "2022-12-13T23:55:10.566Z",
    "updatedAt": "2022-12-13T23:55:10.566Z"
  }
}

Changes