example-data.com

carts / #28

userId
Lacy Gusikowski @lacy.gusikowski
currency
USD
subtotal
925.06
itemCount
6
updatedAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/carts/28"
)
cart = res.json()
{
  "id": 28,
  "userId": 47,
  "currency": "USD",
  "subtotal": 925.06,
  "itemCount": 6,
  "updatedAt": "2025-08-15T11:32:51.039Z",
  "createdAt": "2025-05-21T07:01:30.706Z"
}
Draftbit