**Version: 202607**

# Variant

Manage product variants (SKUs) including price, inventory, and attributes

A variant represents a specific SKU under a product, distinguished by options such as size or color, and carries its own price, inventory, and identifiers.

Provides endpoints to create, retrieve, update, list, delete, and count variants under a product, as well as update and list variants by SKU.

- [List variants](/api/variants) `GET /openapi/2026-07/products/:product_id/variants`: Retrieve a list of all variants for a specific product.

- [Create variant](/api/variant-create) `POST /openapi/2026-07/products/:product_id/variants`: Create a new product variant with the specified details.

- [Get variant](/api/variant-detail) `GET /openapi/2026-07/variants/:variant_id`: Retrieve a product variant by its ID.

- [Update variant](/api/variant-update) `PUT /openapi/2026-07/variants/:variant_id`: Update an existing product variant with the provided details.

- [Delete variant](/api/variant-delete) `DELETE /openapi/2026-07/products/:product_id/variants/:variant_id`: Delete a product variant by its ID.

- [Count variants](/api/variant-count) `GET /openapi/2026-07/products/:product_id/variants/count`: Count the number of variants for a specific product.

- [Update variant by SKU](/api/variant-update-by-sku) `PUT /openapi/2026-07/variants/sku/:sku`: Update a product variant by its SKU.

- [List variants by SKU](/api/variants-by-sku) `GET /openapi/2026-07/products/sku/:sku/variants`: Retrieve a list of all variants for a specific SKU.
