carts #113
- userId
-
Selina Flatley @selina_flatley
- currency
- USD
- subtotal
- 3350.59
- itemCount
- 15
- updatedAt
- createdAt
Overview
carts / #113
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/113" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/113" ); 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/113"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/113"
)
cart = res.json() Response
{
"id": 113,
"userId": 193,
"currency": "USD",
"subtotal": 3350.59,
"itemCount": 15,
"updatedAt": "2026-02-07T20:35:16.956Z",
"createdAt": "2025-06-30T11:39:22.575Z"
}