carts #127
- userId
-
Wallace Batz @wallace_batz
- currency
- USD
- subtotal
- 2045.77
- itemCount
- 12
- updatedAt
- createdAt
Overview
carts / #127
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/127" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/127" ); 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/127"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/127"
)
cart = res.json() Response
{
"id": 127,
"userId": 229,
"currency": "USD",
"subtotal": 2045.77,
"itemCount": 12,
"updatedAt": "2025-09-16T08:14:03.612Z",
"createdAt": "2025-01-03T09:20:13.569Z"
}