example-data.com

cart-items / #174

cartId
carts/62
productId
Licensed Concrete Bike USD17.10
quantity
4
unitPrice
17.1
addedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/cart-items/174"
)
cart_item = res.json()
{
  "id": 174,
  "cartId": 62,
  "productId": 38,
  "quantity": 4,
  "unitPrice": 17.1,
  "addedAt": "2025-05-30T15:45:55.647Z"
}
Draftbit