example-data.com

order-items / #35

orderId
orders/13
productId
Sleek Plastic Shoes USD60.49
quantity
3
unitPrice
60.49
lineTotal
181.47

Component variants

Related

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

const res = await fetch(
  "https://example-data.com/api/v1/order-items/35"
);
const orderItem = (await res.json()) as OrderItem;
import requests

res = requests.get(
    "https://example-data.com/api/v1/order-items/35"
)
order_item = res.json()
{
  "id": 35,
  "orderId": 13,
  "productId": 33,
  "quantity": 3,
  "unitPrice": 60.49,
  "lineTotal": 181.47
}
Draftbit