# Variant Operations related to variant, including create, get, etc ## Add Variant By Product Code - [POST /api/v3/Variant/Add](https://developer.dealpos.com/openapi/openapi/variant/post-variant-add.md): Add one or more variants for a product code. ## Update Variant by Code - [PUT /api/v3/Variant](https://developer.dealpos.com/openapi/openapi/variant/putvariant.md): Update a variant by its code. Requires the "EDIT" role in the "Products" module. ## Delete a Variant - [DELETE /api/v3/Variant](https://developer.dealpos.com/openapi/openapi/variant/deletevariant.md): Delete Variant By variant code You must have "DELETE" role in "Products" Module ## List Variants - [GET /api/v3/Variant](https://developer.dealpos.com/openapi/openapi/variant/getvariant.md): >Also available as HTTP POST with the same endpoint Get List of Variant existing Required Group Role: "Products" - "VIEW" ## List Variant Data - [GET /api/v3/Variant/Data](https://developer.dealpos.com/openapi/openapi/variant/getvariantdata.md): Get a paginated list of variant data filtered by the provided criteria. Requires the "VIEW" role in the "Products" group. ## Variants Count - [GET /api/v3/Variant/Count](https://developer.dealpos.com/openapi/openapi/variant/getvariantcount.md): Get the total count of variants matching the provided filters. Requires the "VIEW" role in the "Products" group. ## Get a Variant By - [GET /api/v3/Variant/Detail](https://developer.dealpos.com/openapi/openapi/variant/getvariantdetail.md): Get variant information by code or ID. This endpoint does not return OnHand inventory; use the Get Inventory By Code endpoint to retrieve inventory. Requires the "VIEW" role in the "Products" group. ## Get a Variant By Code - [GET /api/v3/Variant/Code](https://developer.dealpos.com/openapi/openapi/variant/getvariantbycode.md): Get variant information by code. This endpoint does not return OnHand inventory; use the Get Inventory By Code endpoint to retrieve inventory. Requires the "VIEW" role in the "Products" group. ## Get a Variant By ID - [GET /api/v3/Variant/ID](https://developer.dealpos.com/openapi/openapi/variant/getvariantbyid.md): Get variant information by ID. Requires the "VIEW" role in the "Products" group. ## Get a Variant ComponentBy ID - [GET /api/v3/Variant/Component](https://developer.dealpos.com/openapi/openapi/variant/getvariantcomponentbyid.md): Get variant component information by ID. Requires the "VIEW" role in the "Products" group. ## Get Variant Code By List ID - [POST /api/v3/Variant/ListID](https://developer.dealpos.com/openapi/openapi/variant/getvariantlistid.md): Get variant codes and prices for a list of product IDs scoped to an outlet. ## Get Variant By List Code - [POST /api/v3/Variant/GetByListCode](https://developer.dealpos.com/openapi/openapi/variant/getvariantbylistcode.md): Get details for a list of variants by their codes (max 100 codes).