example-data.com

order-items / #168

orderId
orders/56
productId
Refined Plastic Pants USD93.23
quantity
1
unitPrice
93.23
lineTotal
93.23

Component variants

Related

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

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