example-data.com
Menu
Browse docs and collections

Overview

carts / #84

carts #84

userId
Wendy Borer @wendy_borer
currency
USD
subtotal
2449
itemCount
10
updatedAt
createdAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/carts/84" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/carts/84"
);
const cart = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/carts.d.ts https://example-data.com/types/carts.d.ts
import type { Cart } from "./types/carts";

const res = await fetch(
  "https://example-data.com/api/v1/carts/84"
);
const cart = (await res.json()) as Cart;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/carts/84"
)
cart = res.json()

Response

{
  "id": 84,
  "userId": 141,
  "currency": "USD",
  "subtotal": 2449,
  "itemCount": 10,
  "updatedAt": "2026-03-10T13:07:43.639Z",
  "createdAt": "2025-03-17T16:35:40.114Z"
}