Upload a COI certificate using a COI upload session.

POST /api/v1/files/external_certificates/upload

This endpoint accepts a PDF certificate file along with contractor information. If a contractor with the provided email already exists, it will use that contractor. Otherwise, it will create a new contractor with the provided information.

multipart/form-data

Body

  • certificate string(binary) Required

    The certificate PDF file to be uploaded

  • coi_upload_session_id string Required

    COI upload session ID

  • company_name string Required

    Company name of the contractor

  • contractor_id string Required

    ID of existing contractor to update

  • email string Required

    Email of the contractor

  • first_name string Required

    First name of the contractor

  • last_name string Required

    Last name of the contractor

Responses

  • 201 application/json

    Certificate uploaded successfully

    Hide response attributes Show response attributes object
    • contractor string

      The ID of the contractor

    • filename string

      The filename of the uploaded certificate

    • id string

      The ID of the uploaded certificate

POST /api/v1/files/external_certificates/upload
curl \
 --request POST 'https://api.1099policy.com/api/v1/files/external_certificates/upload' \
 --header "Content-Type: multipart/form-data" \
 --form "certificate=@file" \
 --form "coi_upload_session_id=string" \
 --form "company_name=string" \
 --form "contractor_id=string" \
 --form "email=string" \
 --form "first_name=string" \
 --form "last_name=string"
Response examples (201)
{
  "contractor": "string",
  "filename": "string",
  "id": "string"
}