carts #126
- userId
-
Matt Kuhic @matt_kuhic57
- currency
- USD
- subtotal
- 2611.13
- itemCount
- 13
- updatedAt
- createdAt
Overview
carts / #126
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/126" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/126" ); 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/126"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/126"
)
cart = res.json() Response
{
"id": 126,
"userId": 226,
"currency": "USD",
"subtotal": 2611.13,
"itemCount": 13,
"updatedAt": "2025-11-30T09:06:47.317Z",
"createdAt": "2025-07-27T07:03:48.809Z"
}