cart-items #162
- cartId
- carts/59
- productId
-
Practical Marble Towels USD337.79
- quantity
- 2
- unitPrice
- 337.79
- addedAt
Overview
cart-items / #162
#162
#162
Request
curl example
curl -sS \ "https://example-data.com/api/v1/cart-items/162" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/cart-items/162" ); const cartItem = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/cart-items.d.ts https://example-data.com/types/cart-items.d.ts
import type { CartItem } from "./types/cart-items";
const res = await fetch(
"https://example-data.com/api/v1/cart-items/162"
);
const cartItem = (await res.json()) as CartItem; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/cart-items/162"
)
cart_item = res.json() Response
{
"id": 162,
"cartId": 59,
"productId": 81,
"quantity": 2,
"unitPrice": 337.79,
"addedAt": "2025-10-10T17:28:36.900Z"
}