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