Delete a contractor
Permanently deletes a contractor. It cannot be undone. Also immediately cancels any active policies connected with the contractor.
Body
-
The ID of the contractor to be deleted.
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)"
}