The contractor_contracted
event will send details regarding a newly contracted contractor.
Response Schema:
String event_type ## Event type will be "contractors/events/contract_activated"
String id
Integer contractor_numeric_id
String account_id
String client_id
String of_id
String contract_id
String contractor_guid
String enrollment_id
String company_name
String first_name
String last_name
String middle_name
String email
String external_id
String date_of_birth
String address1
String address2
String city
String state
String country
String postal_code
String department_of_transportation_number
String motor_carrier_number
String profile_photo_uri
String drivers_license_number
String drivers_license_state
String drivers_license_expiration_date
String termination_date
String contracted_on
String location
String insured_id
String expected_termination_date
String tin
## Status Options (1: "ACTIVE", 2: "INACTIVE", 4: "CANCELLED", 5: "IN PROCESS")
Integer status
Object phones
Object deposit_options
Object enrollment_data
Sample Json Response
{
"data":
{
"termination_date": null,
"client_id": "00000000-0000-0000-0000-000000000000",
"deposit_options":
[],
"first_name": "FirstName",
"contractor_guid": "00000000-0000-0000-0000-000000000000",
"phones":
[
{
"extension": "",
"number": "0000000000",
"type": "Mobile"
}
],
"date_of_birth": "1900-01-01T00:00:00",
"company_name": null,
"address2": null,
"contracted_on": "2023-03-28T00:00:00",
"last_name": "LastName",
"id": "00000000-0000-0000-0000-000000000000",
"drivers_license_number": "123456789",
"country": "USA",
"middle_name": null,
"external_id": "9999",
"locations":
[
"Phoenix"
],
"master_contract_id": null,
"drivers_license_expiration_date": null,
"contract_id": "00000000-0000-0000-0000-000000000000",
"tin": "",
"department_of_transportation_number": "44110",
"modified_at": "2023-03-24T12:27:28.323",
"status": 1,
"location": "Phoenix",
"insured_id": null,
"profile_photo_uri": null,
"state": "OR",
"drivers_license_state": "AZ",
"address1": "123 FAKE STREET",
"city": "PHOENIX",
"expected_termination_date": null,
"email": "[email protected]",
"of_id": "1000",
"account_id": "00000000-0000-0000-0000-000000000000",
"motor_carrier_number": null,
"enrollment_data":
{
"business_dot_number": "44110",
"business_type": "Individual",
"individual_sex": "female"
},
"enrollment_id": "00000000-0000-0000-0000-000000000000",
"postal_code": "85310",
"contractor_numeric_id": 1000000
},
"event_type": "contractors/events/contract_activated"
}