Employments
Engagement Agreement Details

Upsert engagement agreement details

Changed on

Creates or updates the engagement agreement details for an employment.

In some countries the details apply only to some contracts, depending on the contract's hiring model. For a contract they don't apply to, this returns 404 "Engagement agreement details form not found for this employment's contract."

This endpoint requires country-specific data. The exact required fields will vary depending on which country the employment is in. To see the list of parameters for each country, see the Show form schema endpoint under the Countries category.

Please note that compliance requirements for each country are subject to change according to local laws. Using Remote's json-schema-form is recommended to avoid compliance issues and to have the latest version of a country's requirements.

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}/engagement-agreement-details

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

EmploymentEngagementAgreementDetailsParams required

Engagement agreement details schema compatible params.

engagement_agreement_details, union required

Engagement agreement details params. As its properties may vary depending on the country, you must query the Show form schema endpoint passing the country code and the engagement_agreement_details form name.

Example request

{
  "engagement_agreement_details": {
    "allowances_details": [
      "meal_allowance",
      "transportation_commuter_allowance"
    ],
    "available_pto": 20,
    "break_time_per_day": 1,
    "business_expenses": "Business expenses details",
    "cba": "CBA 1",
    "cba_document": [
      {
        "content": "JVBERi0xLjQKJSBDQkEgZG9jdW1lbnQK",
        "name": "cba_document.pdf"
      }
    ],
    "covenants": [
      "confidentiality",
      "non_compete"
    ],
    "has_allowances": "yes",
    "has_bonus": "yes",
    "has_business_expenses": "yes",
    "has_business_presence": "yes",
    "has_cba": "yes",
    "has_commissions": "yes",
    "has_covenants": "yes",
    "has_illness_remuneration": "yes",
    "has_overtime_compensation": "yes",
    "has_pension_scheme": "yes",
    "has_signing_bonus": "yes",
    "has_similar_roles": "yes",
    "has_similar_work_conditions": "yes",
    "illness_remuneration_details": "Illness remuneration details",
    "max_annual_gross_salary": 100000,
    "min_annual_gross_salary": 50000,
    "overtime_compensation_begins": 10,
    "overtime_compensation_type": "extra_pay",
    "overtime_pay_percentage": 5,
    "pension_scheme": "Pension scheme details",
    "similar_roles": "Role 1, Role 2, Role 3",
    "similar_work_conditions_details": "Similar work conditions details",
    "work_hours_per_week": 40,
    "working_days": [
      "monday",
      "tuesday",
      "wednesday",
      "thursday",
      "friday"
    ]
  }
}

Response

Success

SuccessResponse required

A generic success response returned by operations that don't produce a specific resource (e.g., updates, deletes).

data, object required

Example response

{
  "data": {
    "status": "ok"
  }
}

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