example-data.com

order-items / #37

orderId
orders/14
productId
Intelligent Ceramic Pants USD315.21
quantity
1
unitPrice
315.21
lineTotal
315.21

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/order-items/37"
)
order_item = res.json()
{
  "id": 37,
  "orderId": 14,
  "productId": 78,
  "quantity": 1,
  "unitPrice": 315.21,
  "lineTotal": 315.21
}
Draftbit