example-data.com

carts / #104

userId
Lazaro Herzog @lazaro_herzog
currency
USD
subtotal
1112.7
itemCount
3
updatedAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/carts/104"
)
cart = res.json()
{
  "id": 104,
  "userId": 181,
  "currency": "USD",
  "subtotal": 1112.7,
  "itemCount": 3,
  "updatedAt": "2025-05-30T10:42:58.240Z",
  "createdAt": "2025-01-25T22:09:13.521Z"
}
Draftbit