carts #82
- userId
-
Kathleen Lynch @kathleen_lynch1
- currency
- USD
- subtotal
- 1001.67
- itemCount
- 9
- updatedAt
- createdAt
Overview
carts / #82
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/82" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/82" ); 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/82"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/82"
)
cart = res.json() Response
{
"id": 82,
"userId": 139,
"currency": "USD",
"subtotal": 1001.67,
"itemCount": 9,
"updatedAt": "2025-06-10T17:02:16.476Z",
"createdAt": "2024-09-24T11:24:20.065Z"
}