cart-items #361
- cartId
- carts/120
- productId
-
Refined Plastic Bacon USD160.19
- quantity
- 1
- unitPrice
- 160.19
- addedAt
Overview
cart-items / #361
#361
#361
Request
curl example
curl -sS \ "https://example-data.com/api/v1/cart-items/361" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/cart-items/361" ); 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/361"
);
const cartItem = (await res.json()) as CartItem; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/cart-items/361"
)
cart_item = res.json() Response
{
"id": 361,
"cartId": 120,
"productId": 4,
"quantity": 1,
"unitPrice": 160.19,
"addedAt": "2025-07-22T23:03:25.185Z"
}