# Vendors

Group: Accounting

[Open in the interactive reference](https://docs.api.lensing.ai/lensing/v1/groups/accountingVendors)

A vendor is someone a legal entity buys from and pays.

Each vendor has a business partner with the same name, created with the vendor. Journal entries record the business partner, not the vendor.

A vendor with history can't be deleted. Deactivate it instead.

## Endpoints

- [List vendors](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/vendors.html): `GET /accounting/vendors`
- [Create a vendor](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/createVendor.html): `POST /accounting/vendors`
- [Search vendors](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/searchVendor.html): `POST /accounting/vendors/search`
- [Retrieve a vendor](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/getVendor.html): `GET /accounting/vendors/{id}`
- [Update a vendor](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/updateVendor.html): `PATCH /accounting/vendors/{id}`
- [Delete a vendor](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/deleteVendor.html): `DELETE /accounting/vendors/{id}`
- [Activate a vendor](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/activateVendor.html): `POST /accounting/vendors/{id}/activate`
- [Deactivate a vendor](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/deactivateVendor.html): `POST /accounting/vendors/{id}/deactivate`
- [Mark duplicate vendors](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/markVendorDuplicate.html): `POST /accounting/vendors/{id}/mark-duplicate`
