example-data.com

cart-items / #128

cartId
carts/49
productId
Unbranded Bronze Computer USD112.30
quantity
4
unitPrice
112.3
addedAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/cart-items/128" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/cart-items/128"
);
const cartItem = await res.json();
import type { CartItem } from "https://example-data.com/types/cart-items.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/cart-items/128"
);
const cartItem = (await res.json()) as CartItem;
import requests

res = requests.get(
    "https://example-data.com/api/v1/cart-items/128"
)
cart_item = res.json()
{
  "id": 128,
  "cartId": 49,
  "productId": 71,
  "quantity": 4,
  "unitPrice": 112.3,
  "addedAt": "2025-12-04T08:20:37.837Z"
}
Draftbit