Add Customer API
The Add Customer API will help you in creating/adding customer in the Kapture Database.
Add Customer.
POST
https://<sub domain>.kapturecrm.com/ms/customer/customer/api/v1/add-update
Authentication:
To access this API endpoint, you need to include your API key in the request headers. For authentication, use the following header:
Request Body
The request body should be a JSON object containing the details of the customer to be added. Here are the list of parameters. Note:- Combination of name and phone or name and email is required to push customer data.
name
Yes
Text
Name of the Customer
phone
Yes
Number
Phone Number of the customer
Yes
String
Email Address of the customer
contact_person_phone
Yes
Number
One of the contact info is needed among the email and phone inside the contact_info JSON
contact_person_email
Yes
String
One of the contact info is needed among the email and phone inside the contact_info JSON
Please map in the request body if there's any extra associate body according to your use case.
Response Body
The API responds with a JSON object containing the details of the created customer. If successful, the response will include the customer ID and the other relevant information.
{ ..., "status": "success"}
Customer data pushed successfully.
{"message": "Invalid Auth Key","status": "failed"}
Authorization key is either not passed in header, or incorrect, or expired/disabled
{"message": "Name, Email Id, and Phone Number required", "status": "failed"}
name and phone|email are either missing or empty in request body.
Error Codes
400
Bad Request - Invalid parameters or missing data
401
Unauthorized - Invalid or missing API key
403
Forbidden - Insufficient permissions
404
Not Found - Resource or endpoint not found
500
Internal Server Error - Server-side issue
Example of a working curl
Last updated