Remove Cart Item

You can easily remove items from the Cart. A successful Cart item removal request will return the cart items.

Remove Item from Cart

DELETE https://api.moltin.com/v2/carts/:reference/items/:id

Path Parameters

NameTypeDescription

reference

string

A unique reference for the cart created by you

id

string

The unique identifier for this cart item

Headers

NameTypeDescription

Authorization

string

The Bearer token to grant access to the API

{
    "data": [],
    "meta": {
        "display_price": {
            "with_tax": {
                "amount": 0,
                "currency": "",
                "formatted": "0"
            },
            "without_tax": {
                "amount": 0,
                "currency": "",
                "formatted": "0"
            }
        },
        "timestamps": {
            "created_at": "2018-05-08T10:25:40.02Z",
            "updated_at": "2018-05-08T10:25:40.02Z"
        }
    }
}
curl -X DELETE https://api.moltin.com/v2/carts/:reference/items/:id \
     -H "Authorization: Bearer XXXX"

Last updated