example-data.com

cart-items / #40

cartId
carts/14
productId
Ergonomic Metal Fish USD59.59
quantity
3
unitPrice
59.59
addedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/cart-items/40"
)
cart_item = res.json()
{
  "id": 40,
  "cartId": 14,
  "productId": 20,
  "quantity": 3,
  "unitPrice": 59.59,
  "addedAt": "2026-01-06T22:57:08.796Z"
}
Draftbit