carts #71
- userId
-
Daren Lockman @daren_lockman67
- currency
- USD
- subtotal
- 2084.06
- itemCount
- 10
- updatedAt
- createdAt
Overview
carts / #71
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/71" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/71" ); 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/71"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/71"
)
cart = res.json() Response
{
"id": 71,
"userId": 116,
"currency": "USD",
"subtotal": 2084.06,
"itemCount": 10,
"updatedAt": "2025-06-10T02:28:43.774Z",
"createdAt": "2024-06-22T04:04:31.109Z"
}