carts #121
- userId
-
Dasia Volkman @dasia_volkman65
- currency
- USD
- subtotal
- 5049.63
- itemCount
- 13
- updatedAt
- createdAt
Overview
carts / #121
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/121" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/121" ); 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/121"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/121"
)
cart = res.json() Response
{
"id": 121,
"userId": 219,
"currency": "USD",
"subtotal": 5049.63,
"itemCount": 13,
"updatedAt": "2025-10-27T12:30:45.161Z",
"createdAt": "2025-03-17T11:33:55.905Z"
}