- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
retrieveProductVariant - Product Module Reference
This documentation provides a reference to the retrieveProductVariant
method. This belongs to the Product Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
This method is used to retrieve a product variant by its ID.
Example#
A simple example that retrieves a product variant by its ID:
To specify relations that should be retrieved:
Parameters#
productVariantId
stringThe ID of the product variant to retrieve.
The configurations determining how the product variant is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a product variant.
select
or relations
, accept the
attributes or relations associated with a product variant.Returns#
Promise
Promise<ProductVariantDTO>The retrieved product variant.
Promise
Promise<ProductVariantDTO>Was this page helpful?