Create Customer
Create a new individual customer record
POST /external/v1/external/v1/customers
Request
Parameters
None
Request Body
The request body is a JSON object defining the new customer's details.
Content Type: application/json
name
string
The customer's full name.
"Alice Johnson"
Yes
whatsapp_number
string
The customer's WhatsApp contact number.
"2348000000000"
No
source
string
Customer acquisition source (e.g., 'web', 'api', 'whatsapp').
"web"
Yes
ip
string
The customer's IP address.
"192.168.1.1"
No
city
string
The city where the customer is located.
"Accra"
No
country
string
The country where the customer is located.
"Ghana"
No
location
string
A general location description.
"Spintex Road"
No
latitude
string
Geographical latitude.
"5.6037"
No
longitude
string
Geographical longitude.
"0.1870"
No
is_active
boolean
Indicates if the customer account is active.
true
No
company_id
string
The ID of the company the customer is associated with.
"CMP-A9B8"
No
Example Request Body:
Responses
201 Successful Response (Created)
Returns the newly created customer object, including generated IDs and timestamps.
Content Type: application/json
Field
Type
Description
id
integer
The internal database ID of the customer.
customer_id
string
The unique external ID assigned to the customer.
time_created
string (datetime)
The timestamp when the customer record was created.
time_updated
string (datetime)
The timestamp when the customer record was last updated.
organization_id
integer
The organization ID the customer belongs to.
company_id
integer
The company ID the customer is associated with (as an integer).
... other fields
...
All fields from the request body are also returned.
Example Response Body (201):
JSON
422 Validation Error
Returned if the request body is malformed or contains invalid data.
Content Type: application/json
Field
Type
Description
detail
Array of Objects
A list of validation error objects.
Example Response Body (422):
JSON
Last updated