cart-items #417
- cartId
- carts/137
- productId
-
Ergonomic Aluminum Soap USD347.26
- quantity
- 4
- unitPrice
- 347.26
- addedAt
Overview
cart-items / #417
#417
#417
Request
curl example
curl -sS \ "https://example-data.com/api/v1/cart-items/417" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/cart-items/417" ); 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/417"
);
const cartItem = (await res.json()) as CartItem; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/cart-items/417"
)
cart_item = res.json() Response
{
"id": 417,
"cartId": 137,
"productId": 145,
"quantity": 4,
"unitPrice": 347.26,
"addedAt": "2026-04-17T01:31:30.531Z"
}