Create employment
Changed onCreates an employment without provisional_start_date validation.
This endpoint is only available in Sandbox and allows creating employments which provisional_start_date is in the past. This is especially helpful for:
- Testing the Timeoff Balance endpoints
- Testing the Offboarding endpoints
- Testing features around probation periods
This endpoint will respond with a 404 outside of the Sandbox environment.
For creating an employment's parameters outside of testing purposes, use this Employment create endpoint
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.
Request
- Base URLhttps://gateway.remote.com
- Auth
- OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/token
- or OAuth 2Client credentialsToken URL/auth/oauth2/token
- or HTTP bearer
Query parameters
When true, returns tax_servicing_countries grouped into global/regions/subregions instead of a flat list of country names.
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.
Request body
Description of the basic required and onboarding tasks params to create an employment. You do not need to include all onboarding tasks when creating or updating an employment.
Employment basic information. As its properties may vary depending on the country, you must query the Show form schema endpoint passing the country code and employment_basic_information as path parameters.
Id of the legal entity that should be billed for the employment. If omitted, falls back to engaged_by_legal_entity_id. For EOR and Contractor employments this may differ from engaged_by_legal_entity_id. For Global Payroll and Direct (HRIS) employments it must match engaged_by_legal_entity_id.
This optional field is deprecated.
The ISO 3166-1 3-letter country code where the employee will be based (e.g., AUS, GBR, USA).
Deprecated alias for engaged_by_legal_entity_id. Use engaged_by_legal_entity_id instead.
Id of the legal entity that engages the employee or contractor. Required for Global Payroll employees. For EOR and Contractor employments this may differ from bill_to_legal_entity_id. For Global Payroll and Direct (HRIS) employments it must match bill_to_legal_entity_id.
A unique reference code for the employment record in a non-Remote system. This optional field links to external data sources. If not provided, it defaults to null. While uniqueness is recommended, it is not strictly enforced within Remote's system.
A reference code for the employment record in the calling integration's own system. Private to that integration — no other integration can read or overwrite it. Omit the field to leave the value unchanged; send null or an empty string to clear it. At most 64 characters, counting any surrounding whitespace sent; that whitespace is then trimmed off. It can be set at any employment status, and the same value may be used on several employments (for example a rehire). See Your own IDs on Remote records.
If not provided, it will default to employee.
Example request
{
"basic_information": {
"email": "jane@smith.com",
"name": "Jane Smith",
"work_email": "jane.smith@company.com"
},
"bill_to_legal_entity_id": "663e0b79-c893-45ff-a1b2-f6dcabc098b5",
"company_id": "663e0b79-c893-45ff-a1b2-f6dcabc098b5",
"country_code": "AUS",
"engaged_by_legal_entity_id": "663e0b79-c893-45ff-a1b2-f6dcabc098b5",
"type": "global_payroll_employee"
}Response
Success
Example response
{
"data": {
"employment": {
"basic_information": {
"email": "jane@smith.com",
"has_seniority_date": "no",
"job_title": "Engineer",
"login_email": "personal",
"name": "Jane Smith",
"personal_email": "jane@smith.com",
"provisional_start_date": "2022-07-10",
"work_email": "jane.smith@company.com"
},
"company_id": "20a72f86-company-id-20a72f86",
"country_code": "AUS",
"created_at": "2021-07-15T18:18:17Z",
"employment_lifecycle_stage": "employment_creation",
"full_name": "Jane Smith",
"id": "663e0b79-c893-45ff-a1b2-f6dcabc098b5",
"job_title": "Engineer",
"login_email": "jane@smith.com",
"personal_email": "jane@smith.com",
"provisional_start_date": "2022-07-10",
"type": "employee",
"updated_at": "2021-07-15T18:18:17Z"
}
}
}Changes
- info
the
messageresponse's property patternNot Foundwas removed for the status
- info
- info
added the optional property
data/employment/eor_hiring_modelto the response with the status
- info