Delete a Vendor

Overview

This endpoint allows you to delete a vendor from your system. Once deleted, the vendor and all its associated data cannot be recovered.

DELETE /api/vendors/{company_id}/

Request Format

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.

Important: Before deleting a vendor, ensure that all products, orders, and other data associated with this vendor have been properly handled. Deleting a vendor with active products or orders may cause system inconsistencies.

Response Format

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.
Note: If you need to temporarily disable a vendor instead of deleting it, consider using the Update Vendor endpoint to change its status.