Customers

List all users.

get
Responses
200Success
application/json
get
GET /v1/crm/customers HTTP/1.1
Host: 
Accept: */*
200Success
{
  "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": {}
  }
}

Creates a new user.

post
Body
Responses
200Success
application/json
post
POST /v1/crm/customers HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 227

{
  "params": {
    "firstName": "text",
    "lastName": "text",
    "email": "text",
    "phone": "text",
    "phoneCallingCode": "text",
    "cityId": "text",
    "birthDate": "text",
    "gender": 1,
    "passcode": "text",
    "number": "text",
    "unsubscribed": true,
    "internalNote": "text"
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true,
    "id": "text"
  }
}

Returns a specific user.

get
Path parameters
idstringRequired
Responses
200Success
application/json
get
GET /v1/crm/customers/{id} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "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"
    }
  }
}

Deletes a new user.

delete
Path parameters
idstringRequired
Responses
200Success
application/json
delete
DELETE /v1/crm/customers/{id} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true
  }
}

Updates a specific user.

patch
Path parameters
idstringRequired
Body
Responses
200Success
application/json
patch
PATCH /v1/crm/customers/{id} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 213

{
  "params": {
    "id": "text",
    "firstName": "text",
    "lastName": "text",
    "email": "text",
    "phone": "text",
    "cityId": "text",
    "birthDate": "text",
    "gender": 1,
    "passcode": "text",
    "number": "text",
    "unsubscribed": true,
    "internalNote": "text"
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true
  }
}

Exports all users with support for incremental fetching.

get
Path parameters
updatedSincestringRequired
offsetstringRequired
Responses
200Success
application/json
get
GET /v1/crm/customers/export HTTP/1.1
Host: 
Accept: */*
200Success
{
  "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"
  }
}

Was this helpful?