Contracts

The contract register, filtered

Changed on

Every contract of the workspace with its status, dates, annual value, direction (sell, buy or internal, derived on read from the parties the documents name against the workspace's own company names), document count, next open key date, open process summary and the Price Baseline and Money Found links. Without page, limit or offset the whole register is returned in one array, ordered by counterparty, then contract key; the array is written as it is read, so a failure after the response has started ends it early (an incomplete body) instead of answering an error status. With any of them the answer is one page of one view, with total, page and limit.

get/v1/contracts

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Query parameters

q, string

Case-insensitive substring over contract key, title and counterparty.

status, 'draft' | 'active' | 'expired' | 'terminated' | 'unknown'

Exact status.

key, string

Exact contract key.

view, string

Paged only: one register view (all, active, notice_soon, customer_exit, auto_renewal, open_ended, ended, review, money). An unknown view is a 400.

sort, string

Paged only: contract, counterparty, status, ends, next, value or money. An unknown sort is a 400.

dir, 'asc' | 'desc'
due, string date

Paged only: contracts whose exit falls in the week starting on this calendar day. Not a real day is a 400.

page, integer

The page to return (1-based).

limit, integer

Rows per page; capped at the configured most (500 by default).

offset, integer

The first row of the page (0-based); wins over page. Ask from the rows already held so a row that moved meanwhile is not skipped.

issues, '0' | '1'

Paged only: 1 attaches each row's open issues in any view (the review view always carries them).

Response

The matching contracts; one page with total when paged.

object required
data, ContractsListItem[]
total, integer

Paged only: rows of the view after the filters.

page, integer
limit, integer

Changes

    • info

      added the new optional query request parameter dir

    • info

      added the new optional query request parameter due

    • info

      added the new optional query request parameter issues

    9 more changes in this revision