AdminVariantsResource
admin/variants.AdminVariantsResource
Methods
getInventory
getInventory(variantId
, customHeaders?
): ResponsePromise
<AdminGetVariantsVariantInventoryRes
>
Parameters
variantId
stringRequiredid of the variant to fetch inventory for
customHeaders
Record<string, any>Requiredcustom headers
Default: `{}`
Returns
ResponsePromise
<AdminGetVariantsVariantInventoryRes
>
list
list(query?
, customHeaders?
): ResponsePromise
<AdminVariantsListRes
>
List product variants
Parameters
Query to filter variants by
customHeaders
Record<string, any>Requiredcustom headers
Default: `{}`
Returns
ResponsePromise
<AdminVariantsListRes
>
A list of variants satisfying the criteria of the query
retrieve
retrieve(id
, query?
, customHeaders?
): ResponsePromise
<AdminVariantsRes
>
Get a product variant
Parameters
id
stringRequiredQuery to filter variants by
customHeaders
Record<string, any>Requiredcustom headers
Default: `{}`
Returns
ResponsePromise
<AdminVariantsRes
>
A list of variants satisfying the criteria of the query
Was this section helpful?