Get Cart Items

If a Cart does not exist with a provided reference, one will be created and an empty cart items array will be returned.

Get Cart Items by Cart reference

GET https://api.moltin.com/v2/carts/:reference/items

Path Parameters

NameTypeDescription

reference

string

A custom reference for this cart created by you

Query Parameters

NameTypeDescription

include

string

tax_items

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": "0001-01-01T00:00:00Z",
            "updated_at": "0001-01-01T00:00:00Z"
        }
    }
}
curl -X GET https://api.moltin.com/v2/carts/:reference/items \
     -H "Authorization: Bearer XXXX"

Last updated