carts #17
- userId
-
Kariane Schmitt @kariane.schmitt97
- currency
- USD
- subtotal
- 3769.07
- itemCount
- 12
- updatedAt
- createdAt
Overview
carts / #17
Request
curl example
curl -sS \ "https://example-data.com/api/v1/carts/17" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/carts/17" ); 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/17"
);
const cart = (await res.json()) as Cart; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/carts/17"
)
cart = res.json() Response
{
"id": 17,
"userId": 32,
"currency": "USD",
"subtotal": 3769.07,
"itemCount": 12,
"updatedAt": "2025-07-16T12:37:09.967Z",
"createdAt": "2024-11-19T00:05:28.916Z"
}