example-data.com

order-items / #42

orderId
orders/16
productId
Unbranded Plastic Chicken USD376.25
quantity
1
unitPrice
376.25
lineTotal
376.25

Component variants

Related

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

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