carts #138
- userId
-
Santa Corwin @santa.corwin59
- currency
- USD
- subtotal
- 193.1
- itemCount
- 1
- updatedAt
- createdAt
Overview
carts / #138
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/138" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/138" ); 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/138"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/138"
)
cart = res.json() Response
{
"id": 138,
"userId": 247,
"currency": "USD",
"subtotal": 193.1,
"itemCount": 1,
"updatedAt": "2025-08-16T17:46:39.238Z",
"createdAt": "2025-08-05T01:24:37.039Z"
}