example-data.com

carts / #118

userId
Jadon Nicolas @jadon.nicolas
currency
USD
subtotal
2589.02
itemCount
10
updatedAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/carts/118"
)
cart = res.json()
{
  "id": 118,
  "userId": 213,
  "currency": "USD",
  "subtotal": 2589.02,
  "itemCount": 10,
  "updatedAt": "2025-10-06T23:06:02.668Z",
  "createdAt": "2025-07-04T02:47:21.987Z"
}
Draftbit