carts / #2
- userId
-
Conner Bernhard @conner.bernhard33
- currency
- USD
- subtotal
- 1905.37
- itemCount
- 8
- updatedAt
- createdAt
Component variants
Related
References
Referenced by
curl -sS \
"https://example-data.com/api/v1/carts/2" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/carts/2"
);
const cart = await res.json();import type { Cart } from "https://example-data.com/types/carts.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/carts/2"
);
const cart = (await res.json()) as Cart;import requests
res = requests.get(
"https://example-data.com/api/v1/carts/2"
)
cart = res.json() {
"id": 2,
"userId": 3,
"currency": "USD",
"subtotal": 1905.37,
"itemCount": 8,
"updatedAt": "2025-11-03T11:43:02.981Z",
"createdAt": "2024-11-29T19:41:51.515Z"
}