List payroll cycles

Use this endpoint to retrieve a list of payroll events for a specified legal entity. Token scopes: legal-entity:read

Authentication

AuthorizationBearer
## Authentication The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail. ```curl curl -X GET 'https://api.letsdeel.com/rest/v2/contracts' \ -H 'Authorization: Bearer YOUR-TOKEN-HERE' ``` [Learn more about authentication](/api/authentication)
OR
AuthorizationBearer
Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/

Path parameters

legal_entity_idstringRequiredformat: "uuid"

The unique identifier (public ID) for the legal entity.

Query parameters

date_startstringOptionalformat: "date"

Start date in the format ‘YYYY-MM-DD’. Must not be earlier than 5 years ago.

date_endstringOptionalformat: "date"

End date in the format ‘YYYY-MM-DD’. Must not exceed 5 years in the future.

limitintegerOptional1-100Defaults to 20
Maximum number of items to return.
cursorstringOptional
Pagination cursor, CUID or UUID format.

Response

Successful operation.
datalist of objects
has_moreboolean
Indicates whether more pages are available.
items_per_pageinteger
The number of items per page.
next_cursorstring or null
Pagination cursor to fetch the next page of results.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error