Get Customer API
The Get Customer API will help you in getting the list of existing customer details in the Kapture Database.
Last updated
{
"Customer Details": {
"id": 191121684,
"cmId": 1000298,
"isOrganization": true,
"name": "Sashank",
"website": "",
"address": " ",
"state": "",
"city": "",
"country": "",
"latitude": "",
"longitude": "",
"currentStatus": "N",
"generationDate": "May 2, 2024 4:15:42 PM",
"creatorId": 0,
"channelPartnerId": 0,
"remarks": "",
"ratePlanId": 0,
"customerCode": "",
"isChannelPartner": false,
"pinCode": "",
"campaignId": 0,
"campaignItemId": 0,
"campaignActivityId": 0,
"totalNoOfEnquiries": 1,
"feedbackOnCustomer": "0",
"contacts": [
{
"id": 209432475,
"cmId": 1000298,
"leadId": 191121684,
"contactPerson": "Sashank",
"gender": " ",
"phone": "9380491326",
"additionalPhone": "",
"email": "sashank@gmail.com",
"isPrimaryContact": true,
"isActive": true,
"generationDate": {
"year": 2024,
"month": 4,
"dayOfMonth": 2,
"hourOfDay": 16,
"minute": 15,
"second": 42
},
"parentContactId": 0,
"subOfficeId": 0,
"creatorId": 0,
"age": 0,
"maritalStatus": " ",
"isGuest": false,
"phoneCountryCode": "",
"enquiryId": 0,
"orderId": 0,
"isMergeEnable": false,
"isMobileMasked": false,
"isEmailMasked": false,
"showBirthYear": false
}
],
"imageReferenceId": "CUS_2024-05-02 16:15:42.249",
"classification": "",
"customerType": "",
"customerLevel": 0,
"zone": 0,
"companyParentId": 0,
"assignedToId": 0,
"maxCreditAmt": 0.0,
"maxCreditPeriod": 0,
"historyEmpId": 0,
"channelPartnerEmpId": 0,
"deleted": false,
"companyStatus": "A",
"isExistingCustomer": false,
"isExistingContact": false,
"syncStatus": false,
"syncdLocationId": "0",
"crossRemarks": "",
"syncedStepNumber": 0,
"outStandingAmount": 0.0,
"salesAdminZone": 0,
"referralId": 0,
"isApi": false
},
"status": "success"
}curl --location 'https://devapi.kapturecrm.com/search-customer-by-customer-id.html' \
--header 'Authorization: Basic <Your Token>' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=; _KAPTURECRM_SESSION=' \
--data-raw '[
{
"kapture_customer_id": "191121684",
"email_id": "xyz@gmail.com",
"phone": "1234567890"
}
]'import requests
import json
url = "https://devapi.kapturecrm.com/search-customer-by-customer-id.html"
payload = json.dumps([
{
"kapture_customer_id": "191121684",
"email_id": "xyz@gmail.com",
"phone": "1234567890"
}
])
headers = {
'Authorization': 'Basic <Your Token>',
'Content-Type': 'application/json',
'Cookie': 'JSESSIONID=; _KAPTURECRM_SESSION='
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)var request = require('request');
var options = {
'method': 'POST',
'url': 'https://devapi.kapturecrm.com/search-customer-by-customer-id.html',
'headers': {
'Authorization': 'Basic <Your Token>',
'Content-Type': 'application/json',
'Cookie': 'JSESSIONID=; _KAPTURECRM_SESSION='
},
body: JSON.stringify([
{
"kapture_customer_id": "191121684",
"email_id": "xyz@gmail.com",
"phone": "1234567890"
}
])
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});