List employment files
Changed onLists files associated with a specific employment.
Supports filtering by file type and sub_type.
Authentication
This endpoint accepts any one of the following token types:
- Company-scoped access token (OAuth2AuthorizationCode) — obtained through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
- Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page. See Authorization for customers.
Scopes
| Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|
| Manage employment documents (employment_documents) | View documents (document:read) | Manage documents (document:write) |
Request
- Base URL: https://gateway.remote.com
- URL: https://gateway.remote.com/v1/employments/{employment_id}/files
- Auth: HTTP bearer and OAuth 2 (authorization code, authorization URL /auth/oauth2/authorize, token URL /auth/oauth2/token, scopes: https://gateway.remote.com/company.manage, document:read, document:write, employment_documents, all:write, all:read)
Path parameters
Employment ID
Query parameters
Filter by file type (optional)
Filter by file sub_type (optional)
Starts fetching records after the given page
Number of items per page
Response
Success
Example response
{
"current_page": 1,
"files": [
{
"id": "9880b711-file-id-ecf8f551bd78",
"inserted_at": "2021-07-15T18:18:17Z",
"name": "id.pdf",
"sub_type": "personal_id",
"type": "id"
}
],
"total_count": 1,
"total_pages": 1
}Changes
- warning
added the new
portugal_training_certificateenum value to the///response property for the response status
- warning
- warning
added the new
annual_leaveenum value to the///response property for the response status - warning
added the new
bereavement_leaveenum value to the///response property for the response status - warning
added the new
marriage_leaveenum value to the///response property for the response status - warning
added the new
maternity_leaveenum value to the///response property for the response status - warning
added the new
parental_leaveenum value to the///response property for the response status - warning
added the new
paternity_leaveenum value to the///response property for the response status - warning
added the new
sick_leaveenum value to the///response property for the response status - warning
added the new
unpaid_leaveenum value to the///response property for the response status
- warning