example-data.com

carts / #128

userId
Gudrun Brakus @gudrun_brakus
currency
USD
subtotal
1379.44
itemCount
10
updatedAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/carts/128"
)
cart = res.json()
{
  "id": 128,
  "userId": 230,
  "currency": "USD",
  "subtotal": 1379.44,
  "itemCount": 10,
  "updatedAt": "2025-09-08T16:59:46.865Z",
  "createdAt": "2025-02-09T21:43:41.231Z"
}
Draftbit