Employments
Pre-Onboarding Documents
Find or create a pre-onboarding document for an employment
Changed onFinds an existing unsigned pre-onboarding document for the given requirement, or creates a new one. Idempotent: repeated calls with the same pre_onboarding_document_requirement_slug return the same document until it is signed.
Deprecated: use POST /onboarding/employments/:employment_id/pre-onboarding-requirements/:requirement_slug/documents instead.
Authentication
This endpoint accepts any one of the following token types:
- Company-scoped access token (OAuth2AuthorizationCode) — obtained through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
- Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page. See Authorization for customers.
Scopes
| Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|
| Manage employment documents (employment_documents) | - | Manage documents (document:write) |
post/v1/onboarding/employments/{employment_id}/pre-onboarding-documents
Request
- Base URL: https://gateway.remote.com
- URL: https://gateway.remote.com/v1/onboarding/employments/{employment_id}/pre-onboarding-documents
- Auth: HTTP bearer and OAuth 2 (authorization code, authorization URL /auth/oauth2/authorize, token URL /auth/oauth2/token, scopes: https://gateway.remote.com/company.manage, document:write, employment_documents, all:write)
Path parameters
employment_idstring required
Employment ID
Request body
Example request
{
"pre_onboarding_document_requirement_slug": "663e0b79-c893-45ff-a1b2-f6dcabc098b5"
}Response
Success
Example response
{
"data": {
"pre_onboarding_document": {
"id": "663e0b79-c893-45ff-a1b2-f6dcabc098b5"
}
}
}Changes
- breaking
the
request property type changed from no type tostring, and format from no format touuid - warning
removed from the
request propertyallOflist
- breaking
- breaking
added to the
request propertyallOflist - breaking
the
request property type changed fromstringto no type, and format fromuuidto no format - info
endpoint deprecated
- breaking