cart-items #119
- cartId
- carts/45
- productId
-
Handcrafted Granite Soap USD296.77
- quantity
- 1
- unitPrice
- 296.77
- addedAt
Overview
cart-items / #119
#119
#119
Request
curl example
curl -sS \ "https://example-data.com/api/v1/cart-items/119" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/cart-items/119" ); 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/119"
);
const cartItem = (await res.json()) as CartItem; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/cart-items/119"
)
cart_item = res.json() Response
{
"id": 119,
"cartId": 45,
"productId": 143,
"quantity": 1,
"unitPrice": 296.77,
"addedAt": "2025-12-27T14:20:54.004Z"
}