example-data.com

carts / #97

userId
Vincenza Zemlak-Collier @vincenza_zemlak-collier
currency
USD
subtotal
772.13
itemCount
5
updatedAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/carts/97"
)
cart = res.json()
{
  "id": 97,
  "userId": 168,
  "currency": "USD",
  "subtotal": 772.13,
  "itemCount": 5,
  "updatedAt": "2025-07-29T03:35:56.595Z",
  "createdAt": "2025-04-17T14:33:26.093Z"
}
Draftbit