carts #57
- userId
-
Velma Jerde @velma.jerde56
- currency
- USD
- subtotal
- 2191.32
- itemCount
- 8
- updatedAt
- createdAt
Overview
carts / #57
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/57" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/57" ); 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/57"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/57"
)
cart = res.json() Response
{
"id": 57,
"userId": 93,
"currency": "USD",
"subtotal": 2191.32,
"itemCount": 8,
"updatedAt": "2025-08-18T02:01:01.313Z",
"createdAt": "2025-03-01T00:05:19.160Z"
}