Delete a contractor

DELETE /api/v1/contractors/{contractor_id}

Permanently deletes a contractor. It cannot be undone. Also immediately cancels any active policies connected with the contractor.

application/json

Body

  • contractor string Required

    The ID of the contractor to be deleted.

Responses

  • 200 application/json

    Returns an object with a deleted parameter on success. If the contractor ID does not exist, this call returns an error.

    Hide response attributes Show response attributes object
DELETE /api/v1/contractors/{contractor_id}
curl \
 -X DELETE https://api.1099policy.com/api/v1/contractors/{contractor_id} \
 -H "Content-Type: application/json" \
 -d '{"contractor":"cn_Ehb3bYa"}'
Request example
{
  "contractor": "cn_Ehb3bYa"
}
Response examples (200)
{
  "id": "cn_Ehb3bYa",
  "object": "contractor",
  "deleted": true,
  "deleted_at": "(utcnow)"
}