example-data.com

carts / #44

userId
Ryan Conroy @ryan_conroy
currency
USD
subtotal
473.93
itemCount
5
updatedAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/carts/44"
)
cart = res.json()
{
  "id": 44,
  "userId": 73,
  "currency": "USD",
  "subtotal": 473.93,
  "itemCount": 5,
  "updatedAt": "2025-05-24T01:57:04.871Z",
  "createdAt": "2025-02-26T14:24:03.104Z"
}
Draftbit