# Purchase Types

Group: Accounting

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

A purchase type classifies purchase orders, for example 'New purchase' or 'Additional licence'.

A purchase order can carry one purchase type, and approval policies can use it as a criterion. To stop offering a type for new orders, set its status to 'inactive'. Orders that already carry it keep it.

## Endpoints

- [List purchase types](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/purchaseTypes.html): `GET /accounting/purchase-types`
- [Create a purchase type](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/createPurchaseType.html): `POST /accounting/purchase-types`
- [Search purchase types](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/searchPurchaseType.html): `POST /accounting/purchase-types/search`
- [Retrieve a purchase type](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/getPurchaseType.html): `GET /accounting/purchase-types/{id}`
- [Update a purchase type](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/updatePurchaseType.html): `PATCH /accounting/purchase-types/{id}`
- [Delete a purchase type](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/deletePurchaseType.html): `DELETE /accounting/purchase-types/{id}`
- [Activate a purchase type](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/activatePurchaseType.html): `POST /accounting/purchase-types/{id}/activate`
- [Deactivate a purchase type](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/deactivatePurchaseType.html): `POST /accounting/purchase-types/{id}/deactivate`
