LineItemsResource
line-items.LineItemsResource
Methods
create
create(cart_id, payload, customHeaders?): ResponsePromise<StoreCartsRes>
Creates a line-item for a cart
Parameters
cart_idstringRequiredid of cart
details needed to create a line-item
customHeadersRecord<string, any>RequiredDefault: `{}`
Returns
ResponsePromise<StoreCartsRes>
delete
delete(cart_id, line_id, customHeaders?): ResponsePromise<StoreCartsRes>
Remove a line-item from a cart
Parameters
cart_idstringRequiredid of cart
line_idstringRequiredid of item to remove
customHeadersRecord<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_idstringRequiredid of cart
line_idstringRequiredid of item to update
details needed to update a line-item
customHeadersRecord<string, any>RequiredDefault: `{}`
Returns
ResponsePromise<StoreCartsRes>
Was this section helpful?