example-data.com

carts / #40

userId
Enos Hamill @enos_hamill
currency
USD
subtotal
2365.89
itemCount
9
updatedAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/carts/40"
)
cart = res.json()
{
  "id": 40,
  "userId": 65,
  "currency": "USD",
  "subtotal": 2365.89,
  "itemCount": 9,
  "updatedAt": "2025-08-07T20:18:49.104Z",
  "createdAt": "2024-09-05T02:49:52.471Z"
}
Draftbit