Submit census sync
POST/v1/employers/{employer_id}/census-sync
Submits a census sync payload for the specified employer. The employees in the payload will be queued for processing. Returns an accepted response with the timestamp of acceptance.
Submit census sync
curl https://api.vitablehealth.com/v1/employers/$EMPLOYER_ID/census-sync \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $VITABLE_CONNECT_API_KEY" \
-d '{
"employees": [
{
"date_of_birth": "1990-05-15",
"email": "jane.doe@acme.com",
"first_name": "Jane",
"last_name": "Doe",
"phone": "4155550100",
"address": {
"address_line_1": "123 Main Street",
"city": "San Francisco",
"state": "CA",
"zipcode": "94102",
"address_line_2": "Apt 4B"
},
"compensation_type": "Salary",
"employee_class": "Full Time",
"reference_id": "EMP-001",
"start_date": "2024-01-15"
},
{
"date_of_birth": "1985-11-20",
"email": "john.smith@acme.com",
"first_name": "John",
"last_name": "Smith",
"phone": "4155550101",
"compensation_type": "Hourly",
"employee_class": "Part Time",
"start_date": "2024-03-01"
}
]
}'{
"data": {
"accepted_at": "2019-12-27T18:11:19.117Z",
"employer_id": "employer_id"
}
}Returns Examples
{
"data": {
"accepted_at": "2019-12-27T18:11:19.117Z",
"employer_id": "employer_id"
}
}