POST
/
customer
/
add
curl --request POST \
  --url https://waas-staging.cafeone.ng/api/v1/customer/add \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "id": "<string>",
  "organizationId": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "middleName": "<string>",
  "emailAddress": "<string>",
  "mobileNumber": "<string>",
  "dob": "<string>",
  "customerTypeId": "<string>",
  "alias": "<string>",
  "countryId": "<string>",
  "city": "<string>",
  "address": "<string>",
  "dateCreated": "<string>"
}'
{
    "statuscode": "00",
    "message": "Customer successfully profiled",
    "data": {
      "customerId": "7100987614",
    }
    "errors": [],
}

Create Customer

Use this endpoint to create profile for an individual.


Request Parameters

id
string
required
organizationId
string
required
firstName
string
required

The first name of the individual. Example: John

lastName
string
required

The last name of the individual. Example: Doe

middleName
string
required

The middle name of the individual. Example: Michael

emailAddress
string
required

The individual’s email address. Example: john.doe@example.com

mobileNumber
string
required

The individual’s phone number. Example: 08012345678

dob
string
required

The individual’s date of birth in YYYY-MM-DD format. Example: 1980-01-01

customerTypeId
string
required
alias
string
countryId
string
required
city
string
required
address
string
required
dateCreated
string
required
{
    "statuscode": "00",
    "message": "Customer successfully profiled",
    "data": {
      "customerId": "7100987614",
    }
    "errors": [],
}