carts #14
- userId
-
Celia D'Amore @celia_damore
- currency
- USD
- subtotal
- 1112
- itemCount
- 8
- updatedAt
- createdAt
Overview
carts / #14
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/14" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/14" ); const cart = 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 } from "./types/carts";
const res = await fetch(
"https://example-data.com/api/v1/carts/14"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/14"
)
cart = res.json() Response
{
"id": 14,
"userId": 24,
"currency": "USD",
"subtotal": 1112,
"itemCount": 8,
"updatedAt": "2025-11-03T05:33:43.932Z",
"createdAt": "2025-06-30T15:55:00.001Z"
}