Cart / Line Items
Remove a Line Item
Removes a line item from the cart by deleting the line item.
After deleting the line item, the system will re-calculate taxes, promotions, shipments etc.
DELETE
/
api
/
v2
/
storefront
/
cart
/
remove_line_item
/
{id}
Authorizations
X-Spree-Order-Token
string
headerrequiredOrder token to authorize Cart and Checkout requests.
Path Parameters
id
string
requiredThe ID of the line_item
you wish to remove.
Query Parameters
include
string
Specify the related resources you would like to receive in the response body. More Information.
fields[cart]
string
Specify the fields you would like returned in the response body. More information.
Response
200 - application/vnd.api+json
data
object
requiredThe Cart provides a central place to collect information about an order, including line items, adjustments, payments, addresses, and shipments. Read more in Spree docs
included
object[]
Was this page helpful?