Get Customer API
The Get Customer API will help you in getting the list of existing customer details in the Kapture Database.
Get Customer.
POST
https://devapi.kapturecrm.com/search-customer-by-customer-id.html
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 fetched. Here are the list of parameters. Note: Either of kapture_customer_id,email_id or phone is mandatory to fetch data.
kapture_customer_id
Yes
Number
The Id of the customer which is generated in Kapture Database
email_id
No
String
Email Address of the customer
phone
No
Number
Phone number of the customer
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 updated 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
{"Customer Details": "Information given by you does not exist in our sytsem.","status": "failed"}
Details provided doesn't match with records available in the system.
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