carts
carts
Page 3 of 6.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/carts?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/carts.d.ts https://example-data.com/types/carts.d.ts
import type { Cart, ListEnvelope } from "./types/carts";
const res = await fetch(
"https://example-data.com/api/v1/carts?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Cart>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 49,
"userId": 83,
"currency": "USD",
"subtotal": 540.61,
"itemCount": 5,
"updatedAt": "2025-11-07T17:29:58.297Z",
"createdAt": "2024-12-06T02:35:56.148Z"
},
{
"id": 50,
"userId": 84,
"currency": "USD",
"subtotal": 601.22,
"itemCount": 6,
"updatedAt": "2025-12-08T12:56:38.832Z",
"createdAt": "2025-08-26T18:55:11.851Z"
},
{
"id": 51,
"userId": 85,
"currency": "USD",
"subtotal": 1116.87,
"itemCount": 3,
"updatedAt": "2025-11-10T06:34:16.808Z",
"createdAt": "2024-11-15T02:10:52.086Z"
}
],
"meta": {
"page": 3,
"limit": 24,
"total": 140,
"totalPages": 6
},
"links": {
"self": "/api/v1/carts?page=3&limit=24",
"first": "/api/v1/carts?page=1&limit=24",
"last": "/api/v1/carts?page=6&limit=24",
"next": "/api/v1/carts?page=4&limit=24",
"prev": "/api/v1/carts?page=2&limit=24"
}
}