cart-items #337
- cartId
- carts/112
- productId
-
Small Concrete Sausages USD154.72
- quantity
- 1
- unitPrice
- 154.72
- addedAt
Overview
cart-items / #337
#337
#337
Request
curl example
curl -sS \ "https://example-data.com/api/v1/cart-items/337" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/cart-items/337" ); 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/337"
);
const cartItem = (await res.json()) as CartItem; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/cart-items/337"
)
cart_item = res.json() Response
{
"id": 337,
"cartId": 112,
"productId": 104,
"quantity": 1,
"unitPrice": 154.72,
"addedAt": "2026-03-26T01:08:54.489Z"
}