Employments
Employment Management

List employments

Changed on

Lists 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 typeCategoryRead only ScopeWrite only Scope (read access implicit)
Company-scoped access tokenManage 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 tokenManage employments (employments)View employments (employment:read)Manage employments (employment:write)
get/v1/employments

Request

  • Base URL
    https://gateway.remote.com
  • Auth
    • OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopeshttps://gateway.remote.com/company.manage
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopesemployment:read
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopesall:read
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopesall:write
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesemployment:read
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:read
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:write
    • or HTTP bearer

Query parameters

company_id, string

Company ID

email, string

Filters the results by employments whose login email matches the value

name, string

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".

status, string

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.

employment_type, string

Filters the results by employments whose employment product type matches the value

employment_model, 'global_payroll' | 'peo' | 'eor'

Filters the results by employments whose employment model matches the value. Possible values: global_payroll, peo, eor

short_id, string

Filters the results by the employment's short ID. Returns at most one result.

partner_external_id, string

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.

page, integer

Starts fetching records after the given page

page_size, integer

Number of items per page

Headers

Authorization, string required

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

ListEmploymentsResponse required

Response schema listing many employments

data, object

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:read was added to the endpoint's security scheme OAuth2CompanyManagerAssertion

    • info

      the security scope https://gateway.remote.com/company.manage was added to the endpoint's security scheme OAuth2AuthorizationCode

    • info

      the security scope all:write was removed from the endpoint's security scheme OAuth2AuthorizationCode

    1 more change in this revision