List employments
Changed onLists all employments, except for the deleted ones.
This endpoint requires and returns country-specific data. The exact required and returned fields will vary depending on which country the employment is in. To see the list of parameters for each country, see the Show form schema endpoint under the Countries category.
Please note that the compliance requirements for each country are subject to change according to local laws. Given its continual updates, using Remote's json-schema-form should be considered in order to avoid compliance issues and to have the latest version of a country requirements.
If you are using this endpoint to build an integration, make sure you are dynamically collecting or displaying the latest parameters for each country by querying the "Show form schema" endpoint.
For more information on JSON Schemas, see the How JSON Schemas work documentation.
To learn how you can dynamically generate forms to display in your UI, see the documentation for the json-schema-form tool.
Authentication
This endpoint accepts any one of the following token types:
- Company-scoped access token (OAuth2AuthorizationCode) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
- Company-scoped access token (assertion) (OAuth2CompanyManagerAssertion) — obtained through the urn:ietf:params:oauth:grant-type:jwt-bearer grant for a company manager. See OAuth Assertion.
- Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page, with the scopes they choose there. See Authorization for customers.
Scopes
Any one of the scopes in a token type's row is enough. all:read and all:write work too.
| Token type | Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|---|
| Company-scoped access token | Manage employments (employments) | View employments (employment:read) | Manage employments (employment:write) |
| Company-scoped access token (assertion) | Manage employments (employments) | View employments (employment:read) | Manage employments (employment:write) |
| Customer API token | Manage employments (employments) | View employments (employment:read) | Manage employments (employment:write) |
Request
- Base URLhttps://gateway.remote.com
- Auth
- OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopeshttps://gateway.remote.com/company.manage
- or OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopesemployment:read
- or OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopesall:read
- or OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopesall:write
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesemployment:read
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:read
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:write
- or HTTP bearer
Query parameters
Company ID
Filters the results by employments whose login email matches the value
Filters the results by the employee's name. Each whitespace-separated word is matched partially, ignoring casing and accents, so grace hop matches "Gráce Brewster Murray Hopper".
Filters the results by employments whose status matches the value. Supports multiple values separated by commas. Also supports the value incomplete to get all employments that are not onboarded yet.
Allowed values: active, created, created_awaiting_reserve, created_reserve_paid, initiated, invited, pending, pre_hire, review, job_title_review, pending_post_self_enrollment_actions, archived, incomplete. Any other value returns a 422. Offboarded employments have the status archived.
Filters the results by employments whose employment product type matches the value
Filters the results by employments whose employment model matches the value. Possible values: global_payroll, peo, eor
Filters the results by the employment's short ID. Returns at most one result.
Filters the results by the partner_external_id value the calling integration holds for the employment; another integration's identifiers are never matched. Matching is exact, including case. The same value may be set on several employments (for example a rehire), so several results may be returned. See Your own IDs on Remote records.
Starts fetching records after the given page
Number of items per page
Headers
An access token of one of the types listed in this endpoint's Authentication section, as Bearer <ACCESS TOKEN>.
A token from the Refresh Token flow is of the same type as the token issued with that refresh token.
Response
Success
Response schema listing many employments
Example response
{
"current_page": 1,
"employments": [
{
"country": {
"alpha_2_code": "PT",
"code": "PRT",
"contractor_products_available": [
"standard",
"plus",
"cor"
],
"country_subdivisions": [
{
"code": "PT-06",
"name": "Coimbra",
"subdivision_type": "District"
},
{
"code": "PT-11",
"name": "Lisboa",
"subdivision_type": "District"
}
],
"employment_agreement_preview_available": true,
"eor_onboarding": true,
"global_payroll_supported": true,
"locked_benefits": "after_first_hire",
"name": "Portugal",
"region": "Europe",
"subregion": "Southern Europe",
"supported_json_schemas": [
"additional_documents",
"address_details",
"administrative_details",
"employment-basic-information",
"bank_account_details",
"contract_details",
"emergency_contact"
]
},
"department": null,
"department_id": null,
"employment_lifecycle_stage": "employment_creation",
"employment_model": "eor",
"external_id": "1234567890",
"full_name": "Jane Smith",
"id": "add736b8-employment-id-a76ccae2abe8",
"job_title": "Engineer",
"login_email": "janesmith@company.com",
"partner_external_id": "EMP-1234",
"personal_email": "janesmith@company.com",
"short_id": "1234567890",
"status": "created",
"type": "employee",
"work_address_details": {},
"work_email": "janesmith@company.com"
}
],
"total_count": 1,
"total_pages": 1
}Changes
- info
the security scope
employment:readwas added to the endpoint's security schemeOAuth2CompanyManagerAssertion - info
the security scope
https://gateway.remote.com/company.managewas added to the endpoint's security schemeOAuth2AuthorizationCode - info
the security scope
all:writewas removed from the endpoint's security schemeOAuth2AuthorizationCode
1 more change in this revision
- info