AdminPriceListResource
admin/price-lists.AdminPriceListResource
Methods
addPrices
addPrices(id
, payload
, customHeaders?
): ResponsePromise
<AdminPriceListRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminPriceListRes
>
create
create(payload
, customHeaders?
): ResponsePromise
<AdminPriceListRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminPriceListRes
>
delete
delete(id
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
deletePrices
deletePrices(id
, payload
, customHeaders?
): ResponsePromise
<AdminPriceListDeleteBatchRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminPriceListDeleteBatchRes
>
deleteProductPrices
deleteProductPrices(priceListId
, productId
, customHeaders?
): ResponsePromise
<AdminPriceListDeleteBatchRes
>
Parameters
priceListId
stringRequiredproductId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminPriceListDeleteBatchRes
>
deleteProductsPrices
deleteProductsPrices(priceListId
, payload
, customHeaders?
): ResponsePromise
<AdminPriceListDeleteBatchRes
>
Parameters
priceListId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminPriceListDeleteBatchRes
>
deleteVariantPrices
deleteVariantPrices(priceListId
, variantId
, customHeaders?
): ResponsePromise
<AdminPriceListDeleteBatchRes
>
Parameters
priceListId
stringRequiredvariantId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminPriceListDeleteBatchRes
>
list
list(query?
, customHeaders?
): ResponsePromise
<AdminPriceListsListRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminPriceListsListRes
>
listProducts
listProducts(id
, query?
, customHeaders?
): ResponsePromise
<any
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<any
>
retrieve
retrieve(id
, customHeaders?
): ResponsePromise
<AdminPriceListRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminPriceListRes
>
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminPriceListRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminPriceListRes
>