Enrolment Intents

Create a new enrolment intent

Changed on

Creates a new enrolment_intent to manage the enrolment of an employee into a group. An enrolment intent represents the intention to enrol an employee into a specific group, and tracks the status and progress of that enrolment process.

post/enrolment_intents

Request

  • Base URL
    https://test.api.kota.io
  • URL
    https://test.api.kota.io/enrolment_intents
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring

Unique key to ensure idempotent requests. If the same key is used for multiple identical & successful requests, the same response will be returned. Read more here

Request body

employee_idstring required

Identifier for the employee associated with this enrolment intent. Prefixed with ee_.

group_idstring required

Identifier for the group associated with this enrolment intent. Prefixed with gr_.

force_confirmationboolean required

If set to true, the system will always force the PendingConfirmation state before enrolling the employee, even if no action is required. This can be useful in scenarios where you want to ensure that the employee explicitly confirms their enrolment, regardless of their eligibility or any other factors. Defaults to false.

Example request

{
  "employee_id": "ee_3b1333d87d9d4fd6ad83ba7f6b0e951a",
  "group_id": "gr_3b1333d87d9d4fd6ad83ba7f6b0e951a",
  "policy_configuration": {
    "desired_policy_start_date": "2024-12-01",
    "enrolment_date": "2024-12-01"
  },
  "force_confirmation": true,
  "coverage_selections": [
    {
      "configuration_id": "pc_3b1333d87d9d4fd6ad83ba7f6b0e951a",
      "options": [
        {
          "option_id": "pco_3b1333d87d9d4fd6ad83ba7f6b0e951a"
        }
      ],
      "selection_set_id": "gp_3b1333d87d9d4fd6ad83ba7f6b0e951a"
    }
  ]
}

Response

OK

idstring required

Unique identifier for the enrolment intent. Prefixed with ei_.

employee_idstring required

Identifier for the employee associated with this enrolment intent. Prefixed with ee_.

group_idstring required

Identifier for the group associated with this enrolment intent. Prefixed with gr_.

status'processing' | 'scheduled' | 'action_required' | 'coverage_options_required' | 'pending_confirmation' | 'enrolling' | 'enrolled' | 'not_undertaken' | 'ineligible' | 'rejected' required
force_confirmationboolean required

If set to true, the system will always force the PendingConfirmation state before enrolling the employee, even if no action is required. This can be useful in scenarios where you want to ensure that the employee explicitly confirms their enrolment, regardless of their eligibility or any other factors. Defaults to false.

objectstring

Object type identifier.

Changes

    • warning

      deleted the header request parameter X-Platform-Id

    • warning

      added the new pooled_member_count enum value to the ///////////////////// response property for the response status

    • info

      added the optional property ///////////////// to the response with the status

    • info

      added the required property //////////// to the response with the status