example-data.com

carts / #127

userId
Wallace Batz @wallace_batz
currency
USD
subtotal
2045.77
itemCount
12
updatedAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/carts/127"
)
cart = res.json()
{
  "id": 127,
  "userId": 229,
  "currency": "USD",
  "subtotal": 2045.77,
  "itemCount": 12,
  "updatedAt": "2025-09-16T08:14:03.612Z",
  "createdAt": "2025-01-03T09:20:13.569Z"
}
Draftbit