carts #41
- userId
-
Jewell Olson @jewell_olson2
- currency
- USD
- subtotal
- 3897.16
- itemCount
- 14
- updatedAt
- createdAt
Overview
carts / #41
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/41" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/41" ); 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/41"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/41"
)
cart = res.json() Response
{
"id": 41,
"userId": 68,
"currency": "USD",
"subtotal": 3897.16,
"itemCount": 14,
"updatedAt": "2025-07-01T06:25:41.280Z",
"createdAt": "2024-09-12T05:07:59.668Z"
}