POST

WorkingTime.List

Return working-time rows with customer/team/date filters, paging, and a maximum page size of 25.

Permissions

  • User must be logged in with a valid bearer token.
  • Returned or changed records are limited by the user permissions, team access, folder access, and account settings.

Action

  • Returns WorkingTime rows as JSON.
  • Supports the documented filters and paging fields.
  • List responses are capped at 25 rows per call.

Push Service

No push is sent because this function only reads data or returns helper information.

Automation

No automation is run for this function.

Special Instructions

  • Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
  • Send parameters as POST body fields exactly as documented.
  • For paging, do not request more than 25 rows.
  • For total rows, call the matching Count function with the same filters.

Required Parameters

No body parameters are required for this function.

Optional Parameters

NameTypeSampleWhat it gives
customer_id
post
int123Filters rows by customer.
contactus_id
post
int123Filters rows by customer using the stored field name.
team_member_id
post
int44Filters rows by team member.
team_memberid
post
int44Filters rows by team member using the stored field name.
is_telemarketing
post
int0Filters telemarketing/non-telemarketing rows when stored.
list_id
post
int5Filters rows by list id when stored.
from_date
post
date2026-07-01Filters rows from this date. Send date filters and date values as UTC Y-m-d H:i:s when the route accepts date/time; date-only table columns store the Y-m-d date part.
to_date
post
date2026-07-31Filters rows until this date. Send date filters and date values as UTC Y-m-d H:i:s when the route accepts date/time; date-only table columns store the Y-m-d date part.
limit
post
int25Limits returned rows. Values above 25 are capped.
offset
post
int0Skips rows for paging.
order
post
stringid_descOrders rows. Supported values include id_desc and id_asc.
start
post
int0First row offset for paging.
length
post
int25Maximum number of rows to return. Values above 25 are capped to 25.
per_page
post
int25Alternative page-size field. Values above 25 are capped to 25.
draw
post
int1Optional DataTables draw counter.
search
post
stringjohnSearch text for list routes when supported.
search[value]
post
stringjohnDataTables search text when supported.
filter_data
post
stringjohnLegacy/general filter text when supported.
date_field
post
stringdate_createdDate column selector when supported, such as date_created, last_updated, updated, or followup.
created_from
post
date2026-07-01Filters rows created from this date when supported. Send date filters and date values as UTC Y-m-d H:i:s when the route accepts date/time; date-only table columns store the Y-m-d date part.
created_to
post
date2026-07-17Filters rows created until this date when supported. Send date filters and date values as UTC Y-m-d H:i:s when the route accepts date/time; date-only table columns store the Y-m-d date part.
updated_from
post
date2026-07-01Filters rows updated from this date when supported. Send date filters and date values as UTC Y-m-d H:i:s when the route accepts date/time; date-only table columns store the Y-m-d date part.
updated_to
post
date2026-07-17Filters rows updated until this date when supported. Send date filters and date values as UTC Y-m-d H:i:s when the route accepts date/time; date-only table columns store the Y-m-d date part.
order_by
post
stringdate_createdColumn/key to order by when supported.
sort
post
stringdate_descSort preset when supported.
order_dir
post
stringdescOrder direction: asc or desc.
order[0][column]
post
int0DataTables column index to order by when supported.
order[0][dir]
post
stringdescDataTables order direction: asc or desc.
folder_id
post
mixed1Folder filter when the list supports folders.
folder
post
mixed1,2One or more folder ids/names when the list supports folders.
status_id
post
mixed1Status filter when the list supports statuses.
tag
post
mixed1Tag filter when the list supports tags.
tag_id
post
mixed1Tag id filter when the list supports tags.
source
post
mixedwebsiteSource filter when the list supports source values.
custom_field
post
stringvip_levelCustom field name for list filtering when supported.
custom_field_value
post
mixedgoldCustom field value paired with custom_field when supported.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/WorkingTime.List",
    "method": "POST",
    "body": {
        "customer_id": "123",
        "limit": "25"
    },
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/WorkingTime.List",
    "url_domain": "https:\/\/{domain}\/app\/WorkingTime.List"
}

Endpoint

POST /app/WorkingTime.List
POST https://{user}.bull36.com/app/WorkingTime.List
POST https://{domain}/app/WorkingTime.List

Sample Output

{
    "success": 1,
    "data": [
        {
            "id": "55",
            "contactus_id": "123",
            "start": "2026-07-17 09:00:00"
        }
    ],
    "limit": 25,
    "offset": 0
}

Count Only

Use the matching count route with the same filters when the UI only needs total rows for paging.

{
    "url": "\/app\/WorkingTime.Count",
    "url_user": "https:\/\/{user}.bull36.com\/app\/WorkingTime.Count",
    "url_domain": "https:\/\/{domain}\/app\/WorkingTime.Count",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "customer_id": "123"
    },
    "sample_output": {
        "success": 1,
        "count": 123
    },
    "notes": {
        "route": "WorkingTime.Count",
        "max_limit": 25
    }
}

Count JavaScript

const token = 'YOUR TOKEN';
const body = new URLSearchParams();
body.set('customer_id', '123');

const res = await fetch('https://{domain}/app/WorkingTime.Count', {
  method: 'POST',
  headers: { Authorization: `Bearer ${token}` },
  body
});
const data = await res.json();
console.log(data.count);

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams();
// Fill body fields from the Sample Request JSON above.
const res = await fetch('/app/WorkingTime.List', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
const data = await res.json();
console.log(data);

Error Example

{
    "success": "0",
    "error": "bearer_token_required",
    "message": "Authorization bearer token is required. Send header: Authorization: Bearer YOUR TOKEN"
}