You have some items in your shopping cart and you want to remove one of them.
Removing a product (SKU) from your shopping cart means deleting an existing line item. To do that, send a
DELETE request to the
The following request removes the line item identified by the "aBmNkPQRst" ID from your shopping cart:
curl -X DELETE \http://yourdomain.commercelayer.io/api/line_items/aBmNkPQRst \-H 'Accept: application/vnd.api+json' \-H 'Authorization: Bearer your-access-token' \-H 'Content-Type: application/vnd.api+json' \
On success, the API responds with a
204 No Content status code.
See our API reference if you need more information on how to delete a line item.