List of contracts

Retrieve a list of contracts. Token scopes: contracts:read

Authentication

AuthorizationBearer
## Authentication Deel API uses API tokens to authenticate requests. A bearer token is required to authenticate all API requests. All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail. ``` curl -X GET 'api.letsdeel.com/rest/v2/contracts' \ -H 'Authorization: Bearer YOUR-TOKEN-HERE' ``` ### Generating Access Tokens 1. Navigate to **Apps & Perks > Developer Center**. 2. Click on the “Generate New Token” button. 3. In the popup, click “Generate Token” button to generate a new token. Your newly generated token is visible on the screen. 4. Make sure to copy and save your token once is generated. You won't be able to see it again!
OR
AuthorizationBearer
Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/

Query parameters

after_cursorstringOptional
Return next page of results after the given cursor.
limitstringOptionalformat: "^[0-9]+$"
Return a page of results with the given number of records.
order_directionenumOptional

Order direction of results; ascending or descending.

Allowed values:
typeslist of enumsOptional
Filter contracts by type. A contract is included in the results if its type is in this list.
statuseslist of enumsOptional
Filter contracts by current status. A contract is included in the results if its status is in this list.
team_idstringOptional

Filter contracts for the given team ID. NOTE: All query parameters are technically strings or arrays of strings.

external_idstringOptional
Filter contracts for the given external ID.
external_id_absentstringOptional

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.

countrieslist of stringsOptional
Filter contracts by country codes.
currencieslist of strings or stringOptional
Filter contracts by currency codes.
searchstringOptional
Include a contract if its name or the contractor's name contains the given search term.
sort_byenumOptional
Sort contracts by the given field name.
Allowed values:
expandenumOptional
Include cost centers in the response.
Allowed values:

Response

Successful operation.
datalist of objects
Array of contract objects.
pageobject
Pagination information for the response.

Errors