Product Variants Service

Back

Overview

Product Variants represent distinct purchasable versions of a product.

A variant is a unique combination of attribute values (e.g. a specific option set such as Blue + Small) that results in a distinct stock-keeping unit. Each variant:

The variants model is intentionally flat and closely mirrors the database table. Attributes and images are managed through their own dedicated services and are composed into the full product response by the Products service.

All operations are tenant-aware and scoped to the current tenant.


Endpoints

Back to Catalog

GET

/api/v1/ProductVariants/product/{productId}

Returns all variants for a given product.

Behavior:

Authorization:


GET

/api/v1/ProductVariants/{id}

Returns a single product variant by its identifier.

Behavior:

Authorization:


POST

/api/v1/ProductVariants

Creates a new product variant.

Request body:

Behavior:

Errors:

Authorization:


PUT

/api/v1/ProductVariants/{id}

Updates an existing product variant.

Request:

Behavior:

Errors:

Authorization:


DELETE

/api/v1/ProductVariants/{id}

Deletes a product variant by its identifier.

Behavior:

Errors:

Authorization:


Notes