Getting Started
Countries

Show form schema

Changed on

Returns the json schema of a supported form. Possible form names are:

- address_details 
- administrative_details 
- bank_account_details 
- employment_basic_information 
- contractor_basic_information 
- contractor_contract_details 
- billing_address_details 
- contract_details 
- emergency_contact 
- emergency_contact_details 
- employment_document_details 
- engagement_agreement_details 
- personal_details 
- pricing_plan_details 
- company_basic_information 
- global_payroll_administrative_details 
- global_payroll_bank_account_details 
- global_payroll_basic_information 
- global_payroll_contract_details 
- global_payroll_federal_taxes 
- global_payroll_state_taxes 
- global_payroll_offboarding_country_details 
- global_payroll_personal_details 
- benefit_renewal_request 
- hris_personal_details 

Most forms require a company access token, as they are dependent on certain properties of companies and their current employments. However, the address_details and company_basic_information forms can be accessed using client_credentials authentication (without a company).

The global_payroll_contract_details form requires the employment_id query parameter, because its fields depend on the employment. For example, overtime_eligible is shown and required only when the employment's legal entity is not on Time & Attendance 2.0. A request without employment_id returns 400.

The engagement_agreement_details form takes an optional employment_id. With it, the schema is returned only when that employment's contract takes engagement agreement details (in the Czech Republic and Germany this depends on its hiring model); otherwise the response is 404. A country without this form still returns 422, as for other forms.

The administrative_details form takes an optional employment_id. With it, the schema is tailored to that employment: its legal entity, its status, its contract details and the administrative details already saved for it. For example, in the United Kingdom stored values such as the P45 figures are returned as hidden constants; in France and Italy some Remote legal entities get extra fields; fields that can no longer change for an active employment are returned read-only. The employment must be a full-time EOR employment with an active contract in the requested country, the employments that PUT /v1/employments/{employment_id}/administrative-details saves against this form (otherwise 400). Because the schema carries saved values, the caller needs a role with both the people-employment and the people-sensitive-details read permissions (otherwise 403) whose data scope covers the employment (otherwise 404). Saving the details takes employee-administrative-details update instead, so a role may save them without being able to read this tailored schema.

The global_payroll_offboarding_country_details form returns the country-specific questions for offboarding a Global Payroll employee: the same questions the Remote employer offboarding form asks in its "Country-specific details" step. It requires the offboarding_type query parameter (resignation, termination or mutual_agreement), because some questions apply to one type only; a request without it, or with another value, returns 400. Most countries have no country-specific offboarding questions: for those the response is 422, as for other forms a country doesn't have.

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.
  • Client credentials access token (OAuth2ClientCredentials) — obtained through the Client Credentials flow or the Refresh Token flow. See Authentication for partners.
  • 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 company resources (company_admin)View forms (form:read)-
Company-scoped access token (assertion)Manage company resources (company_admin)View forms (form:read)-
Client credentials access tokenManage company resources (company_admin)--
Customer API tokenManage company resources (company_admin)View forms (form:read)-
get/v1/countries/{country_code}/{form}

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
      Scopesform: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
      Scopesform: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 OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopeshttps://gateway.remote.com/company.manage
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopescompany_admin
    • 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

Path parameters

country_code, string required

Country code according to ISO 3-digit alphabetic codes

form, string required

Name of the desired form

Query parameters

employment_id, string

Required for contract_amendment, global_payroll_contract_details and global_payroll_state_taxes forms. Optional for contract_details and administrative_details, where it tailors the schema to that employment, and for engagement_agreement_details, where the schema is returned only if that employment's contract takes engagement agreement details.

jurisdiction, string

Two-letter US state code. Required for global_payroll_state_taxes (e.g. NY).

offboarding_type, string

Required for global_payroll_offboarding_country_details. One of resignation, termination or mutual_agreement.

only_for_testing_include_scheduled_benefit_groups, boolean

FOR TESTING PURPOSES ONLY: Include scheduled benefit groups.

skip_benefits, boolean

Skips the dynamic benefits part of the schema if set. To be used when benefits are set via its own API.

json_schema_version, union
integer

Specific version number

OR
'latest'

Use latest version

Version of the form schema

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

CountryFormResponse required

Object with required and optional fields, its descriptions and suggested presentation

data, object

Example response

{
  "data": {
    "additionalProperties": false,
    "properties": {
      "address": {
        "description": "Your street name and house number. PO Box addresses are not supported.",
        "maxLength": 255,
        "title": "Address",
        "type": "string"
      },
      "address_line_2": {
        "description": "(Optional) For example, apartment, block, or building number.",
        "maxLength": 255,
        "title": "Address line 2",
        "type": "string"
      },
      "city": {
        "description": "Enter your city",
        "maxLength": 255,
        "title": "City",
        "type": "string"
      },
      "postal_code": {
        "description": "Enter zip or postal code",
        "maxLength": 255,
        "title": "Postal code",
        "type": "string"
      }
    },
    "required": [
      "address",
      "city",
      "postal_code"
    ],
    "type": "object"
  }
}

Changes

    • info

      the security scope form: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 https://gateway.remote.com/company.manage was added to the endpoint's security scheme OAuth2ClientCredentials

    3 more changes in this revision