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
require "vitable_connect"
vitable_connect = VitableConnect::Client.new(
api_key: "My API Key",
environment: "environment_1" # defaults to "production"
)
employer_response = vitable_connect.employers.create(
address: {address_line_1: "789 Business Blvd", city: "Seattle", state: "WA", zipcode: "98101"},
ein: "12-3456789",
email: "hr@newco.com",
legal_name: "NewCo Industries LLC",
name: "NewCo Industries"
)
puts(employer_response){
"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"
}
}