AdminProductsResource
admin/products.AdminProductsResource
Methods
addOption
addOption(id
, payload
, customHeaders?
): ResponsePromise
<AdminProductsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsRes
>
create
create(payload
, customHeaders?
): ResponsePromise
<AdminProductsRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsRes
>
createVariant
createVariant(id
, payload
, customHeaders?
): ResponsePromise
<AdminProductsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsRes
>
delete
delete(id
, customHeaders?
): ResponsePromise
<AdminProductsDeleteRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsDeleteRes
>
deleteOption
deleteOption(id
, optionId
, customHeaders?
): ResponsePromise
<AdminProductsDeleteOptionRes
>
Parameters
id
stringRequiredoptionId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsDeleteOptionRes
>
deleteVariant
deleteVariant(id
, variantId
, customHeaders?
): ResponsePromise
<AdminProductsDeleteVariantRes
>
Parameters
id
stringRequiredvariantId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsDeleteVariantRes
>
list
list(query?
, customHeaders?
): ResponsePromise
<AdminProductsListRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsListRes
>
listTags
listTags(customHeaders?
): ResponsePromise
<AdminProductsListTagsRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsListTagsRes
>
listTypes
listTypes(customHeaders?
): ResponsePromise
<AdminProductsListTypesRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsListTypesRes
>
Deprecated
Use AdminProductTypesResource.list instead.
retrieve
retrieve(id
, customHeaders?
): ResponsePromise
<AdminProductsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsRes
>
setMetadata
setMetadata(id
, payload
, customHeaders?
): ResponsePromise
<AdminProductsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsRes
>
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminProductsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsRes
>
updateOption
updateOption(id
, optionId
, payload
, customHeaders?
): ResponsePromise
<AdminProductsRes
>
Parameters
id
stringRequiredoptionId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsRes
>
updateVariant
updateVariant(id
, variantId
, payload
, customHeaders?
): ResponsePromise
<AdminProductsRes
>
Parameters
id
stringRequiredvariantId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminProductsRes
>