cart-items #233
- cartId
- carts/82
- productId
-
Practical Rubber Car USD180.89
- quantity
- 2
- unitPrice
- 180.89
- addedAt
Overview
cart-items / #233
#233
#233
Request
curl example
curl -sS \ "https://example-data.com/api/v1/cart-items/233" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/cart-items/233" ); 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/233"
);
const cartItem = (await res.json()) as CartItem; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/cart-items/233"
)
cart_item = res.json() Response
{
"id": 233,
"cartId": 82,
"productId": 52,
"quantity": 2,
"unitPrice": 180.89,
"addedAt": "2026-04-01T08:27:16.437Z"
}