cart-items #250
- cartId
- carts/88
- productId
-
Handmade Cotton Sausages USD38.49
- quantity
- 4
- unitPrice
- 38.49
- addedAt
Overview
cart-items / #250
#250
#250
Request
curl example
curl -sS \ "https://example-data.com/api/v1/cart-items/250" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/cart-items/250" ); 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/250"
);
const cartItem = (await res.json()) as CartItem; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/cart-items/250"
)
cart_item = res.json() Response
{
"id": 250,
"cartId": 88,
"productId": 179,
"quantity": 4,
"unitPrice": 38.49,
"addedAt": "2025-11-15T02:28:49.560Z"
}