Offboarding an Employee

curl --location --request POST 'https://gateway.remote-sandbox.com/v1/offboardings' \
--header 'Authorization: Bearer <your company access token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "termination",
    "employment_id": "223cd6ab-e51a-4a70-a4f8-fc81eec23eae",
    "termination_details": {
        "confidential": true,
        "employee_awareness": {"date": "2023-12-12", "note": "optional text to add details"},
        "reason_description": "detailed description to complement the termination reason",
        "additional_comments": "additional comments regarding the termination reason",
        "proposed_termination_date": "2023-12-20",
        "termination_reason": "workforce_reduction",
        "risk_assessment_reasons": ["pregnant_or_breastfeeding", "family_leave"],
        "will_challenge_termination": true,
        "will_challenge_termination_description": "additional details"
    }
}'

And then, add them to the request, as shown in the following example:

$ base64 -i path/to/file.pdf
JVBERi0xLjQKJcOkw7zDtsP922jjaA+hXY1Wh1aNVo...Kc3RhcnR4cmVmCjEyNzg3CiUlRU9GCg==