example-data.com
Menu
Browse docs and collections

Overview

carts / #80

carts #80

userId
Porter Dooley @porter.dooley
currency
USD
subtotal
614.17
itemCount
4
updatedAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 80,
  "userId": 135,
  "currency": "USD",
  "subtotal": 614.17,
  "itemCount": 4,
  "updatedAt": "2025-09-14T17:55:34.457Z",
  "createdAt": "2025-04-26T11:28:01.398Z"
}