Employments
Employment Management

Set contract origin for a contractor employment

Changed on

Sets the contract_origin for a contractor employment.

  • remote_contract — Remote provides and manages the contract (a contract document is created)
  • custom_remote_contract — A customised Remote contract is used (a contract document is created)
  • provided_by_customer — The employer provides their own contract (no contract document is created)

When provided_by_customer is selected, the contractor can be invited without completing the contract_details onboarding step.

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:write works too.

Token typeCategoryRead only ScopeWrite only Scope (read access implicit)
Company-scoped access tokenManage employments (employments)-Manage employments (employment:write)
Company-scoped access token (assertion)Manage employments (employments)-Manage employments (employment:write)
Customer API tokenManage employments (employments)-Manage employments (employment:write)
post/v1/employments/{employment_id}/contract-origin

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:write
    • 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:write
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:write
    • or HTTP bearer

Path parameters

employment_id, string required

Employment ID

Request body

object required
contract_origin, 'remote_contract' | 'custom_remote_contract' | 'provided_by_customer' required
template_type, 'contractor_agreement' | 'contractor_services_agreement' | 'contractor_statement_of_work' | 'custom_contractor_agreement' | 'custom_contractor_agreement_v2' required

Required when contract_origin is remote_contract or custom_remote_contract, ignored when provided_by_customer

Example request

{
  "contract_origin": "provided_by_customer",
  "template_type": "contractor_agreement"
}

Response

Success

ContractOriginResponse required

Either data.status (when no contract document is created) or data.slug (when one is), depending on the contract_origin that was set.

data, object required

Example response

{
  "data": {
    "slug": "0073fcb5-b669-4e4a-b963-2a47744e75a1"
  }
}

Changes

    • info

      the security scope employment:write 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