cart-items
cart-items
Page 13 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": 289,
"cartId": 97,
"productId": 95,
"quantity": 2,
"unitPrice": 102.15,
"addedAt": "2025-12-20T09:32:15.412Z"
},
{
"id": 290,
"cartId": 98,
"productId": 36,
"quantity": 3,
"unitPrice": 93.59,
"addedAt": "2025-08-11T02:22:08.658Z"
},
{
"id": 291,
"cartId": 98,
"productId": 78,
"quantity": 3,
"unitPrice": 315.21,
"addedAt": "2026-03-18T10:47:05.119Z"
}
],
"meta": {
"page": 13,
"limit": 24,
"total": 426,
"totalPages": 18
},
"links": {
"self": "/api/v1/cart-items?page=13&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=14&limit=24",
"prev": "/api/v1/cart-items?page=12&limit=24"
}
}