Skip to content

Delete Supplier

This endpoint soft-deletes a supplier. The record is marked as deleted but is not removed.

DELETE /v1/suppliers/suppliers/:id

Include your API key in the x-api-key header. See Authentication.

suppliers:write
ParameterTypeRequiredDescription
idstringYesSupplier ID.

This endpoint does not accept a request body.

Terminal window
curl -X DELETE "https://api.crewsum.com/v1/suppliers/suppliers/supplier-stu123vwx4567890" \
-H "x-api-key: $CREWSUM_API_KEY"

On success, the API returns HTTP 200 OK.

{
"message": "Successfully deleted supplier supplier-stu123vwx4567890"
}
  • This is a soft delete. The API sets isDeleted to true and keeps the record.
  • Deleted suppliers no longer appear in List Suppliers. Get Supplier still returns them, with "isDeleted": true.
  • The supplier’s contacts are not deleted.
  • The API cannot undo a delete.
  • An unknown ID still returns 200, and no webhook is sent.
  • After an existing supplier is deleted, Crewsum sends the suppliers.deleted webhook event. The payload is { "suppliers": [<supplier>] }, with "isDeleted": true.
StatusMeaning
400The ID path segment was empty (for example, a trailing slash). Message: SupplierID not supplied.
500Crewsum could not delete the supplier. Message: Error deleting supplier <id>.

Authentication and scope failures are described in Errors.