curl --request PUT \
--url https://api.cadanapay.com/v1/persons/{personId}/type \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"newType": "CONTRACTOR"
}
'{
"code": "invalid_request_body",
"message": "The request body provided is not valid",
"params": {
"field": "Value is invalid."
}
}Switch a person’s employment type between employee and contractor. The person must be in Active status. Salaried employees cannot be converted to contractors — update their compensation type first.
curl --request PUT \
--url https://api.cadanapay.com/v1/persons/{personId}/type \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"newType": "CONTRACTOR"
}
'{
"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 new employment type for the person
EMPLOYEE, CONTRACTOR "CONTRACTOR"
Person type updated successfully