curl --request POST \
--url https://api.cadanapay.com/v1/persons/{personId}/offboard \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"exitDate": "2025-06-30",
"reason": "Voluntary resignation",
"compensation": {
"type": "net",
"salary": {
"amount": 10000,
"currency": "USD"
},
"frequency": "monthly"
},
"includeInRegularPayroll": true
}
'{
"code": "invalid_request_body",
"message": "The request body provided is not valid",
"params": {
"field": "Value is invalid."
}
}Schedule a person for offboarding on a given exit date
curl --request POST \
--url https://api.cadanapay.com/v1/persons/{personId}/offboard \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"exitDate": "2025-06-30",
"reason": "Voluntary resignation",
"compensation": {
"type": "net",
"salary": {
"amount": 10000,
"currency": "USD"
},
"frequency": "monthly"
},
"includeInRegularPayroll": true
}
'{
"code": "invalid_request_body",
"message": "The request body provided is not valid",
"params": {
"field": "Value is invalid."
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Required when using a Platform API token. The tenant key identifying which business to operate on.
The unique identifier for the person
The date the person will exit the organization
"2025-06-30"
The reason for offboarding
"Voluntary resignation"
Person's compensation information, how much will they get paid, currency and frequency
Show child attributes
Whether to include the person in the regular payroll run for their exit period
true
Offboarding scheduled successfully