carts #7
- userId
-
Alvena Emmerich @alvena_emmerich52
- currency
- USD
- subtotal
- 958.74
- itemCount
- 8
- updatedAt
- createdAt
Overview
carts / #7
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/7" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/7" ); 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/7"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/7"
)
cart = res.json() Response
{
"id": 7,
"userId": 8,
"currency": "USD",
"subtotal": 958.74,
"itemCount": 8,
"updatedAt": "2026-03-12T04:26:40.608Z",
"createdAt": "2025-08-11T20:25:07.380Z"
}