Creates a new employer for the authenticated organization. Requires employer name, legal name, EIN, email, and address information. Returns the created employer with its assigned ID.
Parameters
Create employer
import os
from vitable_connect import VitableConnect
client = VitableConnect(
api_key=os.environ.get("VITABLE_CONNECT_API_KEY"), # This is the default and can be omitted
)
employer_response = client.employers.create(
address={
"address_line_1": "789 Business Blvd",
"address_line_2": "Floor 5",
"city": "Seattle",
"state": "WA",
"zipcode": "98101",
},
ein="12-3456789",
email="hr@newco.com",
legal_name="NewCo Industries LLC",
name="NewCo Industries",
phone_number="2065550100",
reference_id="partner-emp-001",
)
print(employer_response.data){
"data": {
"id": "empr_new123abc",
"organization_id": "org_xyz789",
"name": "NewCo Industries",
"legal_name": "NewCo Industries LLC",
"ein": "XX-XXX6789",
"reference_id": null,
"email": "hr@newco.com",
"phone_number": "2065550100",
"active": true,
"address": {
"address_line_1": "789 Business Blvd",
"address_line_2": "Floor 5",
"city": "Seattle",
"state": "WA",
"zipcode": "98101"
},
"eligibility_policy_id": null,
"created_at": "2024-11-26T10:00:00Z",
"updated_at": "2024-11-26T10:00:00Z"
}
}Returns Examples
{
"data": {
"id": "empr_new123abc",
"organization_id": "org_xyz789",
"name": "NewCo Industries",
"legal_name": "NewCo Industries LLC",
"ein": "XX-XXX6789",
"reference_id": null,
"email": "hr@newco.com",
"phone_number": "2065550100",
"active": true,
"address": {
"address_line_1": "789 Business Blvd",
"address_line_2": "Floor 5",
"city": "Seattle",
"state": "WA",
"zipcode": "98101"
},
"eligibility_policy_id": null,
"created_at": "2024-11-26T10:00:00Z",
"updated_at": "2024-11-26T10:00:00Z"
}
}