cart-items
cart-items
Page 14 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": 313,
"cartId": 105,
"productId": 71,
"quantity": 2,
"unitPrice": 112.3,
"addedAt": "2025-11-18T10:35:06.976Z"
},
{
"id": 314,
"cartId": 105,
"productId": 158,
"quantity": 1,
"unitPrice": 110.29,
"addedAt": "2026-02-19T15:56:00.540Z"
},
{
"id": 315,
"cartId": 106,
"productId": 143,
"quantity": 4,
"unitPrice": 296.77,
"addedAt": "2025-10-13T06:18:41.743Z"
}
],
"meta": {
"page": 14,
"limit": 24,
"total": 426,
"totalPages": 18
},
"links": {
"self": "/api/v1/cart-items?page=14&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=15&limit=24",
"prev": "/api/v1/cart-items?page=13&limit=24"
}
}