cart-items
cart-items
Page 15 of 18.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/cart-items?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/cart-items?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/cart-items.d.ts https://example-data.com/types/cart-items.d.ts
import type { CartItem, ListEnvelope } from "./types/cart-items";
const res = await fetch(
"https://example-data.com/api/v1/cart-items?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<CartItem>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/cart-items",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 337,
"cartId": 112,
"productId": 104,
"quantity": 1,
"unitPrice": 154.72,
"addedAt": "2026-03-26T01:08:54.489Z"
},
{
"id": 338,
"cartId": 113,
"productId": 129,
"quantity": 4,
"unitPrice": 418.99,
"addedAt": "2025-07-09T09:19:18.323Z"
},
{
"id": 339,
"cartId": 113,
"productId": 160,
"quantity": 4,
"unitPrice": 82.34,
"addedAt": "2025-05-25T05:39:30.296Z"
}
],
"meta": {
"page": 15,
"limit": 24,
"total": 426,
"totalPages": 18
},
"links": {
"self": "/api/v1/cart-items?page=15&limit=24",
"first": "/api/v1/cart-items?page=1&limit=24",
"last": "/api/v1/cart-items?page=18&limit=24",
"next": "/api/v1/cart-items?page=16&limit=24",
"prev": "/api/v1/cart-items?page=14&limit=24"
}
}