Show form schema
Changed onReturns 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 type | Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|---|
| Company-scoped access token | Manage 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 token | Manage company resources (company_admin) | - | - |
| Customer API token | Manage company resources (company_admin) | View forms (form:read) | - |
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/tokenScopesform: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/tokenScopesform:read
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:read
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:write
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopeshttps://gateway.remote.com/company.manage
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopescompany_admin
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:read
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:write
- or HTTP bearer
Path parameters
Country code according to ISO 3-digit alphabetic codes
Name of the desired form
Query parameters
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.
Two-letter US state code. Required for global_payroll_state_taxes (e.g. NY).
Required for global_payroll_offboarding_country_details. One of resignation, termination or mutual_agreement.
FOR TESTING PURPOSES ONLY: Include scheduled benefit groups.
Skips the dynamic benefits part of the schema if set. To be used when benefits are set via its own API.
Specific version number
Use latest version
Version of the form schema
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
Object with required and optional fields, its descriptions and suggested presentation
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: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
https://gateway.remote.com/company.managewas added to the endpoint's security schemeOAuth2ClientCredentials
3 more changes in this revision
- info