contracts

List of contracts

Changed on

Lists contract summaries for the organization, for finding contracts that match given criteria or browsing them in bulk. Use GET /contracts/{contract_id} instead when you need the full details of one contract.

Token scopes: contracts:read

get/contracts

Request

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

Query parameters

after_cursor, string

Return next page of results after the given cursor.

limit, string

Return a page of results with the given number of records.

order_direction, 'asc' | 'desc'

Order direction of results; ascending or descending.

types, ContractsGetParametersTypesSchemaItems[]

Filter contracts by type. A contract is included in the results if its type is in this list.

statuses, ContractsGetParametersStatusesSchemaItems[]

Filter contracts by current status. A contract is included in the results if its status is in this list.

team_id, union
string
OR
string[]

Filter contracts for the given team ID(s). A contract is included in the results if its team is in this list.

legal_entity_id, union
string
OR
string[]

Filter contracts for the given legal entity ID(s). A contract is included in the results if its legal entity is in this list.

external_id, string

Filter contracts for the given external ID.

external_id_absent, string

Filter contracts by external ID presence. When true, returns contracts without an external ID. When false, returns contracts with an external ID. Cannot be used with external_id query param when set to true.

countries, string[]

Filter contracts by country codes.

currencies, string[]

Filter contracts by currency codes.

search, string

Include a contract if its name or the contractor's name contains the given search term.

sort_by, 'contract_title' | 'worker_name' | 'termination_date'

Sort contracts by the given field name. termination_date orders by the contract's termination date; contracts without one come last in either direction.

expand, ContractsGetParametersExpandSchemaItems[]

Include additional fields in the response. Multiple values can be passed as comma-separated list.

Response

Successful operation.

ContractsGetContractsResponse200 required
data, ContractsGetResponsesContentApplicationJsonSchemaDataItems[] required

Array of contract objects.

page, ContractsGetResponsesContentApplicationJsonSchemaPage required

Pagination information for the response.

Changes

    • warning

      added the new EAG enum value to the data/items/type response property for the response status

    • warning

      added the new IMPLEMENTATION_PROJECT_MANAGEMENT_FEE enum value to the data/items/type response property for the response status

    • warning

      added the new PAYGROUP enum value to the data/items/type response property for the response status

    71 more changes in this revision