carts #100
- userId
-
Elvis Littel-Vandervort @elvis.littel-vandervort28
- currency
- USD
- subtotal
- 2690.02
- itemCount
- 11
- updatedAt
- createdAt
Overview
carts / #100
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/100" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/100" ); 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/100"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/100"
)
cart = res.json() Response
{
"id": 100,
"userId": 175,
"currency": "USD",
"subtotal": 2690.02,
"itemCount": 11,
"updatedAt": "2025-09-16T04:30:05.903Z",
"createdAt": "2025-02-06T12:08:32.527Z"
}