Skip to main content

Class: ProductVariantsResource

Hierarchy

  • default

    ProductVariantsResource

Methods

list

list(query?, customHeaders?): ResponsePromise<StoreVariantsListRes>

Description

Retrieves a list of of Product Variants

Parameters

NameType
query?StoreGetVariantsParams
customHeadersRecord<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

NameTypeDescription
idstringis required
customHeadersRecord<string, any>

Returns

ResponsePromise<StoreVariantsRes>

Defined in

medusa-js/src/resources/product-variants.ts:17

Was this page helpful?