carts #97
- userId
-
Vincenza Zemlak-Collier @vincenza_zemlak-collier
- currency
- USD
- subtotal
- 772.13
- itemCount
- 5
- updatedAt
- createdAt
Overview
carts / #97
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/97" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/97" ); 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/97"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/97"
)
cart = res.json() Response
{
"id": 97,
"userId": 168,
"currency": "USD",
"subtotal": 772.13,
"itemCount": 5,
"updatedAt": "2025-07-29T03:35:56.595Z",
"createdAt": "2025-04-17T14:33:26.093Z"
}