invoices / #86
- fromUserId
- 10
- toUserId
- 76
- invoiceNumber
- INV-2025-0086
- status
- viewed
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 3334.63
- tax
- 500.19
- total
- 3834.82
- currency
- GBP
- lineItems
-
[ { "description": "Maintenance contract", "quantity": 13, "unitPrice": 28.15, "lineTotal": 365.95 }, { "description": "Maintenance contract", "quantity": 6, "unitPrice": 443.89, "lineTotal": 2663.34 }, { "description": "Maintenance contract", "quantity": 21, "unitPrice": 14.54, "lineTotal": 305.34 } ] - createdAt
Component variants
Medium
#86
#86
Small
invoices/86 curl -sS \
"https://example-data.com/api/v1/invoices/86" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/86"
);
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/86"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/86"
)
invoice = res.json() {
"id": 86,
"fromUserId": 10,
"toUserId": 76,
"invoiceNumber": "INV-2025-0086",
"status": "viewed",
"issuedAt": "2025-12-05T00:21:36.443Z",
"dueAt": "2026-01-26T00:21:36.443Z",
"paidAt": null,
"subtotal": 3334.63,
"tax": 500.19,
"total": 3834.82,
"currency": "GBP",
"lineItems": [
{
"description": "Maintenance contract",
"quantity": 13,
"unitPrice": 28.15,
"lineTotal": 365.95
},
{
"description": "Maintenance contract",
"quantity": 6,
"unitPrice": 443.89,
"lineTotal": 2663.34
},
{
"description": "Maintenance contract",
"quantity": 21,
"unitPrice": 14.54,
"lineTotal": 305.34
}
],
"createdAt": "2025-12-04T12:09:42.067Z"
}