List documents
Changed onThe company's paperwork, oldest first, paged on a cursor.
Both kinds of document. party is employee for a document about one of your people and counterparty for one a counterparty signs. Filter with party=employee or party=counterparty; leave it out for both.
signature.state is derived, because there is no column for it. none when nobody has to sign, then rejected, revoked, pending in that order of precedence, and signed only when every signer has. Refusal outranks an outstanding signature, so a document one person refused reads rejected even while others are still pending. completed_at is set only for signed, and is when the last signer signed.
Dates are three shapes in one payload. start_date, end_date and expiration_date are plain YYYY-MM-DD — they are date columns and carry no time or zone. created_at is an instant with an offset.
expires_after and expires_before are a plain range of dates.
effective_from and effective_to select documents valid during a window: a document starts on or before your effective_to and either has no end date or ends on or after your effective_from. Both are required together. A document with no start_date never matches — a row with no interval cannot overlap one.
locations, departments, positions and user_filters all reach the document through the person it is about, so a document with no user_id matches none of them. The web app files company-level documents that way.
updated_since reads only what changed, as an instant rather than a date so a caller polling every few minutes can say which minute. Two things it will not show you, and both are ours rather than yours: a document changed by a path inside the product that writes the row directly keeps its old timestamp, and so does one the back office modifies. Signature progress is the common case of the second — a signature completed through the web app does not move updated_at. Re-read with overlap if you depend on catching those.
Documents the product files for its own machinery are never listed.
Request
- Base URL: https://api.clockster.com
- URL: https://api.clockster.com/company/v3/documents
- Auth: HTTP bearer
Query parameters
How many rows one page holds. Defaults to 50.
The meta.next_cursor of the previous page. Omit it for the first. A cursor is bound to the filters it was issued under — change them and start again.
Whose side of the document to read.
Only rows carrying these keys of yours. The other half of an upsert: write with your key, read back with it.
Only rows belonging to these people, by id.
Only these locations, by id.
Only these departments, by id.
Only these positions, by id.
Only these user filters, by id.
Only rows of these types.
Only documents covering these employment terms.
Free text over the names the section lists.
Only rows changed at or after this instant (ISO 8601). The cheap way to sync: ask for what moved, not for everything.
Expiring after this date (YYYY-MM-DD) — how you find what is about to lapse.
Expiring before this date (YYYY-MM-DD).
In force at or after this date (YYYY-MM-DD).
In force at or before this date (YYYY-MM-DD).
Relations to load, comma-separated. Anything not named is absent from the answer rather than null.
Response
Success
Changes
- info
the endpoint scheme security
companyTokenwas added to the API - info
for the
queryrequest parametertypes, the maxItems was increased from32to49 - info
added the enum value
asp_certificateto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
attorneyto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
disability_certificateto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
hunterto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
insurance_policyto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
large_family_certificateto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
lbg_cardto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
oralmanto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
pcr_certificateto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
pensionto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
rk_passportto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
social_idto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
srtsto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
student_cardto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
tech_passportto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
vaccinationto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
vnzhto the propertyitems/of thequeryrequest parametertypes
- info
- info
for the
queryrequest parametertypes, the maxItems was increased from27to32 - info
added the enum value
birth_certificateto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
change_fio_certificateto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
divorce_certificateto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
driver_licenseto the propertyitems/of thequeryrequest parametertypes - info
added the enum value
marriage_certificateto the propertyitems/of thequeryrequest parametertypes
- info