invoices / #4
- fromUserId
- 212
- toUserId
- 126
- invoiceNumber
- INV-2026-0004
- status
- overdue
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 9516.56
- tax
- 0
- total
- 9516.56
- currency
- AUD
- lineItems
-
[ { "description": "Photography services", "quantity": 1, "unitPrice": 201.92, "lineTotal": 201.92 }, { "description": "Documentation", "quantity": 10, "unitPrice": 267.59, "lineTotal": 2675.9 }, { "description": "Data analysis", "quantity": 14, "unitPrice": 450.28, "lineTotal": 6303.92 }, { "description": "Quality assurance", "quantity": 2, "unitPrice": 167.41, "lineTotal": 334.82 } ] - createdAt
Component variants
Medium
#4
#4
Small
invoices/4 curl -sS \
"https://example-data.com/api/v1/invoices/4" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/4"
);
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/4"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/4"
)
invoice = res.json() {
"id": 4,
"fromUserId": 212,
"toUserId": 126,
"invoiceNumber": "INV-2026-0004",
"status": "overdue",
"issuedAt": "2026-04-07T06:00:33.691Z",
"dueAt": "2026-05-06T06:00:33.691Z",
"paidAt": null,
"subtotal": 9516.56,
"tax": 0,
"total": 9516.56,
"currency": "AUD",
"lineItems": [
{
"description": "Photography services",
"quantity": 1,
"unitPrice": 201.92,
"lineTotal": 201.92
},
{
"description": "Documentation",
"quantity": 10,
"unitPrice": 267.59,
"lineTotal": 2675.9
},
{
"description": "Data analysis",
"quantity": 14,
"unitPrice": 450.28,
"lineTotal": 6303.92
},
{
"description": "Quality assurance",
"quantity": 2,
"unitPrice": 167.41,
"lineTotal": 334.82
}
],
"createdAt": "2026-04-06T21:13:51.678Z"
}