Retrieves detailed information for a specific employer by ID. The employer must belong to the authenticated organization.
Get 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.retrieve(
"empr_abc123def456",
)
print(employer_response.data){
"data": {
"id": "empr_abc123def456",
"organization_id": "org_xyz789",
"name": "Acme Corporation",
"legal_name": "Acme Corporation Inc.",
"ein": "XX-XXX1234",
"reference_id": "partner-emp-001",
"email": "hr@acme.com",
"phone_number": "4155550100",
"active": true,
"address": {
"address_line_1": "123 Main Street",
"address_line_2": "Suite 100",
"city": "San Francisco",
"state": "CA",
"zipcode": "94102"
},
"eligibility_policy_id": "epol_policy123",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-06-20T14:45:00Z"
}
}Returns Examples
{
"data": {
"id": "empr_abc123def456",
"organization_id": "org_xyz789",
"name": "Acme Corporation",
"legal_name": "Acme Corporation Inc.",
"ein": "XX-XXX1234",
"reference_id": "partner-emp-001",
"email": "hr@acme.com",
"phone_number": "4155550100",
"active": true,
"address": {
"address_line_1": "123 Main Street",
"address_line_2": "Suite 100",
"city": "San Francisco",
"state": "CA",
"zipcode": "94102"
},
"eligibility_policy_id": "epol_policy123",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-06-20T14:45:00Z"
}
}