example-data.com

cart-items

cart-items

Page 6 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": 121,
      "cartId": 45,
      "productId": 125,
      "quantity": 1,
      "unitPrice": 6.81,
      "addedAt": "2025-05-30T20:01:06.825Z"
    },
    {
      "id": 122,
      "cartId": 46,
      "productId": 41,
      "quantity": 3,
      "unitPrice": 247.99,
      "addedAt": "2025-08-24T09:16:30.736Z"
    },
    {
      "id": 123,
      "cartId": 46,
      "productId": 117,
      "quantity": 2,
      "unitPrice": 249.25,
      "addedAt": "2025-06-20T11:36:59.181Z"
    }
  ],
  "meta": {
    "page": 6,
    "limit": 24,
    "total": 426,
    "totalPages": 18
  },
  "links": {
    "self": "/api/v1/cart-items?page=6",
    "next": "/api/v1/cart-items?page=7",
    "prev": "/api/v1/cart-items?page=5"
  }
}
Draftbit