Upload one or more COI certificates and create/update contractor information.
This endpoint accepts one or more PDF certificate files via the 'certificates' parameter and creates or updates contractor information based on the provided details. All certificates will be associated with the same contractor.
Body
-
Business name of the contractor
-
One or more certificate PDF files
-
Whether to create a new contractor (true) or select existing (false). Defaults to false.
-
Email of the contractor
-
First name of the contractor
-
Insurance requirement ID (optional)
-
Last name of the contractor
-
Purchase order contact email (optional)
-
Purchase order contact name (optional)
-
Tracker ID for coverage rules (optional, but either tracker_id or tracker_session_id must be provided)
-
Tracker session ID (optional, but either tracker_id or tracker_session_id must be provided)
curl \
--request POST 'https://api.1099policy.com/api/v1/files/external_certificates/tracker' \
--header "Content-Type: multipart/form-data" \
--form "business_name=string" \
--form "certificates[]=@file" \
--form "create_new_contractor=true" \
--form "email=string" \
--form "first_name=string" \
--form "insurance_requirement_id=string" \
--form "last_name=string" \
--form "purchase_order_contact_email=string" \
--form "purchase_order_contact_name=string" \
--form "tracker_id=string" \
--form "tracker_session_id=string"
{
"assignment": "string",
"certificates": [
{
"filename": "string",
"id": "string"
}
],
"contractor": "string",
"job": "string"
}