example-data.com

carts / #23

userId
Gwendolyn Wyman @gwendolyn.wyman87
currency
USD
subtotal
2934.22
itemCount
10
updatedAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/carts/23"
)
cart = res.json()
{
  "id": 23,
  "userId": 40,
  "currency": "USD",
  "subtotal": 2934.22,
  "itemCount": 10,
  "updatedAt": "2025-08-26T12:41:01.310Z",
  "createdAt": "2025-06-02T15:12:13.562Z"
}
Draftbit