example-data.com

carts / #123

userId
Loren Schmidt @loren_schmidt
currency
USD
subtotal
2333.27
itemCount
9
updatedAt
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/carts/123" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/carts/123"
);
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/123"
);
const cart = (await res.json()) as Cart;
import requests

res = requests.get(
    "https://example-data.com/api/v1/carts/123"
)
cart = res.json()
{
  "id": 123,
  "userId": 222,
  "currency": "USD",
  "subtotal": 2333.27,
  "itemCount": 9,
  "updatedAt": "2026-04-10T21:48:22.383Z",
  "createdAt": "2025-07-05T04:17:21.428Z"
}
Draftbit