LineItemsResource
line-items.LineItemsResource
Methods
create
create(cart_id
, payload
, customHeaders?
): ResponsePromise
<StoreCartsRes
>
Creates a line-item for a cart
Parameters
cart_id
stringRequiredid of cart
details needed to create a line-item
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<StoreCartsRes
>
delete
delete(cart_id
, line_id
, customHeaders?
): ResponsePromise
<StoreCartsRes
>
Remove a line-item from a cart
Parameters
cart_id
stringRequiredid of cart
line_id
stringRequiredid of item to remove
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<StoreCartsRes
>
update
update(cart_id
, line_id
, payload
, customHeaders?
): ResponsePromise
<StoreCartsRes
>
Updates a line-item. Only quantity updates are allowed
Parameters
cart_id
stringRequiredid of cart
line_id
stringRequiredid of item to update
details needed to update a line-item
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<StoreCartsRes
>
Was this section helpful?