cart-items #107
- cartId
- carts/41
- productId
-
Rustic Plastic Towels USD377.65
- quantity
- 3
- unitPrice
- 377.65
- addedAt
Overview
cart-items / #107
#107
#107
Request
curl example
curl -sS \ "https://example-data.com/api/v1/cart-items/107" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/cart-items/107" ); 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/107"
);
const cartItem = (await res.json()) as CartItem; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/cart-items/107"
)
cart_item = res.json() Response
{
"id": 107,
"cartId": 41,
"productId": 107,
"quantity": 3,
"unitPrice": 377.65,
"addedAt": "2025-10-25T06:20:07.439Z"
}