example-data.com

order-items / #98

orderId
orders/32
productId
Refined Plastic Keyboard USD379.19
quantity
4
unitPrice
379.19
lineTotal
1516.76

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/order-items/98"
)
order_item = res.json()
{
  "id": 98,
  "orderId": 32,
  "productId": 115,
  "quantity": 4,
  "unitPrice": 379.19,
  "lineTotal": 1516.76
}
Draftbit