carts #4
- userId
-
Webster Skiles @webster_skiles39
- currency
- USD
- subtotal
- 897.56
- itemCount
- 4
- updatedAt
- createdAt
Overview
carts / #4
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/4" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/4" ); 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/4"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/4"
)
cart = res.json() Response
{
"id": 4,
"userId": 5,
"currency": "USD",
"subtotal": 897.56,
"itemCount": 4,
"updatedAt": "2025-09-21T22:23:18.891Z",
"createdAt": "2024-12-28T20:58:39.518Z"
}