This endpoint allows you to delete a vendor from your system. Once deleted, the vendor and all its associated data cannot be recovered.
Send a DELETE request to the vendors endpoint with the company ID in the URL path:
DELETE /api/vendors/2
This request will delete the vendor with company_id=2 from your system.
Status Code | Description |
---|---|
204 No Content |
The vendor has been deleted successfully. |
400 Bad Request |
The vendor couldn't be deleted (e.g., it has active products or orders). |
404 Not Found |
The specified vendor doesn't exist. |