carts #18
- userId
-
Cassidy Christiansen @cassidy_christiansen38
- currency
- USD
- subtotal
- 338.97
- itemCount
- 3
- updatedAt
- createdAt
Overview
carts / #18
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/18" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/18" ); 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/18"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/18"
)
cart = res.json() Response
{
"id": 18,
"userId": 33,
"currency": "USD",
"subtotal": 338.97,
"itemCount": 3,
"updatedAt": "2025-08-18T23:02:45.767Z",
"createdAt": "2025-02-27T07:29:17.068Z"
}