cart-items
cart-items
Page 12 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": 265,
"cartId": 91,
"productId": 122,
"quantity": 4,
"unitPrice": 44.85,
"addedAt": "2026-05-08T04:38:29.370Z"
},
{
"id": 266,
"cartId": 91,
"productId": 25,
"quantity": 3,
"unitPrice": 226.49,
"addedAt": "2025-08-26T15:45:45.041Z"
},
{
"id": 267,
"cartId": 91,
"productId": 76,
"quantity": 4,
"unitPrice": 86.18,
"addedAt": "2025-09-03T13:10:40.692Z"
}
],
"meta": {
"page": 12,
"limit": 24,
"total": 426,
"totalPages": 18
},
"links": {
"self": "/api/v1/cart-items?page=12&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=13&limit=24",
"prev": "/api/v1/cart-items?page=11&limit=24"
}
}