cart-items #364
- cartId
- carts/121
- productId
-
Practical Marble Towels USD337.79
- quantity
- 3
- unitPrice
- 337.79
- addedAt
Overview
cart-items / #364
#364
#364
Request
curl example
curl -sS \ "https://example-data.com/api/v1/cart-items/364" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/cart-items/364" ); 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/364"
);
const cartItem = (await res.json()) as CartItem; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/cart-items/364"
)
cart_item = res.json() Response
{
"id": 364,
"cartId": 121,
"productId": 81,
"quantity": 3,
"unitPrice": 337.79,
"addedAt": "2025-07-29T10:32:25.979Z"
}