carts #79
- userId
-
Ludwig Stiedemann @ludwig_stiedemann
- currency
- USD
- subtotal
- 625.78
- itemCount
- 2
- updatedAt
- createdAt
Overview
carts / #79
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/79" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/79" ); 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/79"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/79"
)
cart = res.json() Response
{
"id": 79,
"userId": 132,
"currency": "USD",
"subtotal": 625.78,
"itemCount": 2,
"updatedAt": "2025-11-01T13:48:34.455Z",
"createdAt": "2025-07-09T20:08:57.856Z"
}