cart-items #408
- cartId
- carts/134
- productId
-
Licensed Rubber Chair USD91.41
- quantity
- 2
- unitPrice
- 91.41
- addedAt
Overview
cart-items / #408
#408
#408
Request
curl example
curl -sS \ "https://example-data.com/api/v1/cart-items/408" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/cart-items/408" ); 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/408"
);
const cartItem = (await res.json()) as CartItem; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/cart-items/408"
)
cart_item = res.json() Response
{
"id": 408,
"cartId": 134,
"productId": 109,
"quantity": 2,
"unitPrice": 91.41,
"addedAt": "2025-10-24T16:35:40.883Z"
}