invoices / #70
- fromUserId
- 165
- toUserId
- 150
- invoiceNumber
- INV-2026-0070
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 7835.03
- tax
- 626.8
- total
- 8461.83
- currency
- USD
- lineItems
-
[ { "description": "Design work", "quantity": 9, "unitPrice": 43.48, "lineTotal": 391.32 }, { "description": "System integration", "quantity": 18, "unitPrice": 273.52, "lineTotal": 4923.36 }, { "description": "Software development", "quantity": 35, "unitPrice": 72.01, "lineTotal": 2520.35 } ] - createdAt
Component variants
Medium
#70
#70
Small
invoices/70 curl -sS \
"https://example-data.com/api/v1/invoices/70" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/70"
);
const invoice = await res.json();import type { Invoice } from "https://example-data.com/types/invoices.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/invoices/70"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/70"
)
invoice = res.json() {
"id": 70,
"fromUserId": 165,
"toUserId": 150,
"invoiceNumber": "INV-2026-0070",
"status": "sent",
"issuedAt": "2026-05-03T04:58:35.194Z",
"dueAt": "2026-05-11T04:58:35.194Z",
"paidAt": null,
"subtotal": 7835.03,
"tax": 626.8,
"total": 8461.83,
"currency": "USD",
"lineItems": [
{
"description": "Design work",
"quantity": 9,
"unitPrice": 43.48,
"lineTotal": 391.32
},
{
"description": "System integration",
"quantity": 18,
"unitPrice": 273.52,
"lineTotal": 4923.36
},
{
"description": "Software development",
"quantity": 35,
"unitPrice": 72.01,
"lineTotal": 2520.35
}
],
"createdAt": "2026-05-02T17:20:40.020Z"
}