carts #23
- userId
-
Gwendolyn Wyman @gwendolyn.wyman87
- currency
- USD
- subtotal
- 2934.22
- itemCount
- 10
- updatedAt
- createdAt
Overview
carts / #23
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/23" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/23" ); 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/23"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/23"
)
cart = res.json() Response
{
"id": 23,
"userId": 40,
"currency": "USD",
"subtotal": 2934.22,
"itemCount": 10,
"updatedAt": "2025-08-26T12:41:01.310Z",
"createdAt": "2025-06-02T15:12:13.562Z"
}