example-data.com
Menu
Browse docs and collections

Overview

carts / #65

carts #65

userId
Elva Roberts @elva.roberts48
currency
USD
subtotal
691.38
itemCount
2
updatedAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/carts/65"
);
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/65"
);
const cart = (await res.json()) as Cart;

Python example

import requests

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

Response

{
  "id": 65,
  "userId": 107,
  "currency": "USD",
  "subtotal": 691.38,
  "itemCount": 2,
  "updatedAt": "2025-09-14T08:36:34.966Z",
  "createdAt": "2025-03-13T03:03:21.274Z"
}