example-data.com
Menu
Browse docs and collections

Overview

carts / #36

carts #36

userId
Niko Wisozk @niko_wisozk
currency
USD
subtotal
262.75
itemCount
1
updatedAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 36,
  "userId": 56,
  "currency": "USD",
  "subtotal": 262.75,
  "itemCount": 1,
  "updatedAt": "2026-03-19T06:25:47.070Z",
  "createdAt": "2026-02-06T17:22:12.703Z"
}