carts #58
- userId
-
Ethyl Auer @ethyl_auer89
- currency
- USD
- subtotal
- 465.48
- itemCount
- 9
- updatedAt
- createdAt
Overview
carts / #58
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/58" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/58" ); 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/58"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/58"
)
cart = res.json() Response
{
"id": 58,
"userId": 95,
"currency": "USD",
"subtotal": 465.48,
"itemCount": 9,
"updatedAt": "2026-03-29T01:48:20.902Z",
"createdAt": "2026-01-18T10:25:01.351Z"
}