example-data.com

cart-items

cart-items

Page 2 of 10.

curl -sS \
  "https://example-data.com/api/v1/cart-items?limit=25"
const res = await fetch(
  "https://example-data.com/api/v1/cart-items?limit=25"
);
const { data, meta } = await res.json();
import type { CartItem, ListEnvelope } from "https://example-data.com/types/cart-items.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/cart-items?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<CartItem>;
import requests

res = requests.get(
    "https://example-data.com/api/v1/cart-items",
    params={"limit": 25},
)
data = res.json()
{
  "data": [
    {
      "id": 25,
      "cartId": 10,
      "productId": 20,
      "quantity": 2,
      "unitPrice": 59.59,
      "addedAt": "2025-11-07T09:34:37.134Z"
    },
    {
      "id": 26,
      "cartId": 10,
      "productId": 193,
      "quantity": 1,
      "unitPrice": 113.33,
      "addedAt": "2025-12-17T17:02:39.298Z"
    },
    {
      "id": 27,
      "cartId": 11,
      "productId": 102,
      "quantity": 1,
      "unitPrice": 54.3,
      "addedAt": "2026-02-16T05:44:01.622Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 426,
    "totalPages": 18
  },
  "links": {
    "self": "/api/v1/cart-items?page=2",
    "next": "/api/v1/cart-items?page=3",
    "prev": "/api/v1/cart-items?page=1"
  }
}
Draftbit