example-data.com

cart-items / #25

cartId
carts/10
productId
Ergonomic Metal Fish USD59.59
quantity
2
unitPrice
59.59
addedAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/cart-items/25" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/cart-items/25"
);
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/25"
);
const cartItem = (await res.json()) as CartItem;
import requests

res = requests.get(
    "https://example-data.com/api/v1/cart-items/25"
)
cart_item = res.json()
{
  "id": 25,
  "cartId": 10,
  "productId": 20,
  "quantity": 2,
  "unitPrice": 59.59,
  "addedAt": "2025-11-07T09:34:37.134Z"
}
Draftbit