Skip to content

supplier-contacts.deleted

Crewsum sends supplier-contacts.deleted when a supplier contact is deleted.

supplier-contacts.deleted
  • The Delete Supplier Contact API endpoint (DELETE /v1/supplier-contacts/supplier-contacts/:id).
  • Deleting a supplier contact in the Crewsum app.

Crewsum sends the event only after the change is saved. A request that fails or is rejected sends no event. See Delivery for timing and retries.

data.contacts is an array. Each item has the supplier and the supplierContact, sent with isDeleted: true.

{
"event": "supplier-contacts.deleted",
"data": {
"contacts": [
{
"supplier": {
"id": "supplier-stu123vwx4567890",
"name": "Atlas Staffing",
"description": "Contract technician agency",
"isArchived": false,
"isDeleted": false,
"createdAt": "2026-09-28T14:05:12.000Z",
"updatedAt": "2026-09-28T14:05:12.000Z"
},
"supplierContact": {
"id": "suppliercontact-vwx123yza4567890",
"supplierId": "supplier-stu123vwx4567890",
"supplierName": "Atlas Staffing",
"name": "Marcus Lee",
"description": "Account manager",
"email": "marcus.lee@example.com",
"isArchived": false,
"isDeleted": true,
"createdAt": "2026-09-28T14:05:12.000Z",
"updatedAt": "2026-09-30T09:41:27.000Z"
}
}
]
}
}

If the API request names a supplier contact ID that does not exist, the request still succeeds and Crewsum sends this event with an empty contacts array. Ignore events with an empty list.