Class: ProductVariantsResource
Hierarchy
default
↳
ProductVariantsResource
Methods
list
▸ list(query?
, customHeaders?
): ResponsePromise
<StoreVariantsListRes
>
Description
Retrieves a list of of Product Variants
Parameters
Name | Type |
---|---|
query? | StoreGetVariantsParams |
customHeaders | Record <string , any > |
Returns
ResponsePromise
<StoreVariantsListRes
>
Defined in
medusa-js/src/resources/product-variants.ts:28
retrieve
▸ retrieve(id
, customHeaders?
): ResponsePromise
<StoreVariantsRes
>
Description
Retrieves a single product variant
Parameters
Name | Type | Description |
---|---|---|
id | string | is required |
customHeaders | Record <string , any > |
Returns
ResponsePromise
<StoreVariantsRes
>