List

Note

Keep in mind: the items in the list are returned according to the access level of the token owner.

About rights: access rights

Paginated list of clients

POST https://do.workzeal.com/common/list/paging/1?columns=id,name

Path Parameters

Name Type Description
/1* Int Module code

Query Parameters

Name Type Description
sorting_direction Int Sorting 0 Asc 1 Desc
sorting_column String Sort column
page int Page number
records_onpage Int Records per page, but no more than 500
columns* String List of columns

Headers

Name Type Description
Authorization* String Bearer XXXXX-XXXXXXX-XXXXX
Content-Type String application/json
{
  "status": "success",
  "error": "",
  "code": null,
  "rows": 1,
  "pages": 1,
  "page": 1,
  "value": "[
       {"id":1,"name":"Apple"}
  ]"
{
    // Response
}

Example

curl --location --request
POST 'https://do.workzeal.com/common/list/paging/1
?columns=id,name
&records_onpage=1000
&sorting_direction=0
&sorting_column=id
&user_ids=37' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer XXXXXX.XXXXXXX.XXXXXX' \
--data-raw ''
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://do.workzeal.com/common/list/paging/1
  ?columns=id,name
  &records_onpage=1000
  &sorting_direction=0
  &sorting_column=id&user_ids=37',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer XXXXX.XXXXX.XXXXX'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://do.workzeal.com/common/list/paging/1
  ?columns=id,name
  &records_onpage=1000
  &sorting_direction=0
  &sorting_column=id
  &user_ids=37',
  'headers': {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer XXXXXX.XXXXXX.XXXXXX'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
})

Columns

NameDescription
idClient ID
nameName. Client name
addressAddress. Client address
createdDate and time created. Date and time the client was added
cityCity. Client's city
regionRegion. Client's region
countryCountry. Client's country
activity_typeActivity. Client's line of business
property_formOwnership type. Client's form of ownership
type_idClient type ID
type
created_byUser name or the way the client was added
info_sourceSource. Client's information source
first_nameFirst name (of an individual)
middle_nameMiddle name (of an individual)
last_nameLast name (of an individual)
urlWebsite. Client's website
user_idResponsible. ID of the responsible user
user_nameResponsible. Name of the responsible user
personLegal entity / individual flag
noteNote
external_codeExternal code
category_idClient category ID
categoryClient category
status_idClient status ID
statusClient status
agent_idAgent ID
agentAgent
tax_idTax ID from the list of company details
which_site_sourceLead source website
which_host_sourceLead source web host
which_link_sourceFull lead source web link
utm_campaignUTM campaign
utm_sourceUTM source
utm_mediumUTM medium
utm_contentUTM content
utm_termUTM term
ADD_{name} Custom fields

Custom fields

Filtering

Note

Note: you can use 2 filtering methods. Standard filtering by columns. By the ID of a saved filter that was created inside the application, see: filters in the application ⚡️

Filter columns


?id=1
?name=apple
?email=xxx@gmail.com
?phone=+1 890 745 66 89
?tax_id=7811505326
?user_ids=1 or ?user_ids=1,3,4
?page=1 - Number of the page to get

// id - Company code
// name - Name, partial match search
// email - Email of the client or its contact persons
// phone - Phone of the client or its contact persons
// tax_id - Tax ID from the list of company details
// user_ids - Code of the user responsible for the client
// page - Number of the page to get

⚡️ tax_id
A default item must be selected in the list of company details: Client card → Payment details

⚡️ user_ids
User codes can be found in the Users section

Users

Saved custom filters

?user_filter_ids = 1
or
?user_filter_ids=1,2

// user_filter_ids - custom filter ID

⚡️ user_filter_ids

Filter codes can be found in the Filters section

Filters

Previous
Next