List payroll migration imports for a legal entity

List the payroll migration imports submitted for a legal entity, newest first, alongside the period the entity's payroll data on the Deel side already covers. Paginated: while pagination.has_more is true, pass pagination.next_cursor back as cursor. Error codes: 400 BAD_REQUEST (unresolvable cursor), 401 UNAUTHORIZED, 403 FORBIDDEN, 403 PAYROLL_MIGRATION_IMPORT_DISABLED, 404 NOT_FOUND, 500 INTERNAL_SERVER_ERROR. **Token scopes**: `global-payroll: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.deel.training/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 of the legal entity whose payroll migration imports to list.

Query parameters

limitintegerOptional1-50Defaults to 20
The maximum number of imports to return, between 1 and 50. Defaults to 20.
cursorstringOptional1-255 characters

An opaque cursor from the previous page’s pagination.next_cursor. Omit it for the first page.

Response

OK
dataobject
The legal entity's payroll migration imports and the payroll data Deel already holds.
paginationobject
Pagination metadata for the page of imports returned.

Errors

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