carts #35
- userId
-
Simeon Robel @simeon_robel12
- currency
- USD
- subtotal
- 2683.83
- itemCount
- 9
- updatedAt
- createdAt
Overview
carts / #35
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/35" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/35" ); 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/35"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/35"
)
cart = res.json() Response
{
"id": 35,
"userId": 55,
"currency": "USD",
"subtotal": 2683.83,
"itemCount": 9,
"updatedAt": "2025-08-14T15:20:16.362Z",
"createdAt": "2024-08-17T18:16:16.061Z"
}