Customers
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
GET /v1/crm/customers HTTP/1.1
Host:
api-key: YOUR_API_KEY
organization-id: text
Accept: */*
{
"app": "text",
"service": "text",
"warnings": [
{}
],
"instanceId": "text",
"requestId": "text",
"data": {
"users": [
{
"firstName": "text",
"lastName": "text",
"email": "text",
"phone": "text",
"phoneCountry": "text",
"phoneCountryCalling": "text",
"number": "text",
"cityId": "text",
"birthDate": "text",
"gender": {},
"unsubscribed": true,
"internalNote": "text",
"archivedAt": "text",
"archivedBy": "text",
"archivedVia": "text",
"createdAt": "text",
"createdVia": "text",
"createdBy": "text",
"updatedAt": "text",
"updatedVia": "text",
"updatedBy": "text",
"id": "text"
}
],
"next": "text",
"query": {}
}
}POST /v1/crm/customers HTTP/1.1
Host:
api-key: YOUR_API_KEY
organization-id: text
Content-Type: application/json
Accept: */*
Content-Length: 229
{
"params": {
"firstName": "text",
"lastName": "text",
"email": "text",
"phone": "text",
"phoneCallingCode": "text",
"cityId": "text",
"birthDate": "text",
"gender": "F",
"passcode": "text",
"number": "text",
"unsubscribed": true,
"internalNote": "text"
}
}{
"app": "text",
"service": "text",
"warnings": [
{}
],
"instanceId": "text",
"requestId": "text",
"data": {
"succeed": true,
"id": "text"
}
}GET /v1/crm/customers/{uid} HTTP/1.1
Host:
api-key: YOUR_API_KEY
organization-id: text
Accept: */*
{
"app": "text",
"service": "text",
"warnings": [
{}
],
"instanceId": "text",
"requestId": "text",
"data": {
"user": {
"firstName": "text",
"lastName": "text",
"email": "text",
"phone": "text",
"phoneCountry": "text",
"phoneCountryCalling": "text",
"number": "text",
"cityId": "text",
"birthDate": "text",
"gender": {},
"unsubscribed": true,
"internalNote": "text",
"archivedAt": "text",
"archivedBy": "text",
"archivedVia": "text",
"createdAt": "text",
"createdVia": "text",
"createdBy": "text",
"updatedAt": "text",
"updatedVia": "text",
"updatedBy": "text",
"id": "text"
}
}
}DELETE /v1/crm/customers/{uid} HTTP/1.1
Host:
api-key: YOUR_API_KEY
organization-id: text
Accept: */*
{
"app": "text",
"service": "text",
"warnings": [
{}
],
"instanceId": "text",
"requestId": "text",
"data": {
"succeed": true
}
}PATCH /v1/crm/customers/{uid} HTTP/1.1
Host:
api-key: YOUR_API_KEY
organization-id: text
Content-Type: application/json
Accept: */*
Content-Length: 215
{
"params": {
"id": "text",
"firstName": "text",
"lastName": "text",
"email": "text",
"phone": "text",
"cityId": "text",
"birthDate": "text",
"gender": "F",
"passcode": "text",
"number": "text",
"unsubscribed": true,
"internalNote": "text"
}
}{
"app": "text",
"service": "text",
"warnings": [
{}
],
"instanceId": "text",
"requestId": "text",
"data": {
"succeed": true
}
}GET /v1/crm/customers/export HTTP/1.1
Host:
api-key: YOUR_API_KEY
organization-id: text
Accept: */*
{
"app": "text",
"service": "text",
"warnings": [
{}
],
"instanceId": "text",
"requestId": "text",
"data": {
"items": [
{
"firstName": "text",
"lastName": "text",
"email": "text",
"phone": "text",
"phoneCountry": "text",
"phoneCountryCalling": "text",
"number": "text",
"cityId": "text",
"birthDate": "text",
"gender": {},
"unsubscribed": true,
"internalNote": "text",
"archivedAt": "text",
"archivedBy": "text",
"archivedVia": "text",
"createdAt": "text",
"createdVia": "text",
"createdBy": "text",
"updatedAt": "text",
"updatedVia": "text",
"updatedBy": "text",
"id": "text"
}
],
"next": "text"
}
}