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_id
The unique identifier (public ID) for the legal entity.
Query parameters
date_start
Start date in the format ‘YYYY-MM-DD’. Must not be earlier than 5 years ago.
date_end
End date in the format ‘YYYY-MM-DD’. Must not exceed 5 years in the future.
limit
Maximum number of items to return.
cursor
Pagination cursor, CUID or UUID format.
Response
Successful operation.
data
has_more
Indicates whether more pages are available.
items_per_page
The number of items per page.
next_cursor
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