example-data.com

cart-items / #75

cartId
carts/28
productId
Oriental Rubber Shirt USD24.35
quantity
2
unitPrice
24.35
addedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/cart-items/75"
)
cart_item = res.json()
{
  "id": 75,
  "cartId": 28,
  "productId": 42,
  "quantity": 2,
  "unitPrice": 24.35,
  "addedAt": "2026-01-01T09:12:35.893Z"
}
Draftbit