invoices / #198
- fromUserId
- 102
- toUserId
- 131
- invoiceNumber
- INV-2026-0198
- status
- viewed
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 48160.11
- tax
- 0
- total
- 48160.11
- currency
- GBP
- lineItems
-
[ { "description": "System integration", "quantity": 21, "unitPrice": 373.66, "lineTotal": 7846.86 }, { "description": "Software development", "quantity": 37, "unitPrice": 439.6, "lineTotal": 16265.2 }, { "description": "Maintenance contract", "quantity": 28, "unitPrice": 383.95, "lineTotal": 10750.6 }, { "description": "System integration", "quantity": 20, "unitPrice": 442.76, "lineTotal": 8855.2 }, { "description": "Documentation", "quantity": 15, "unitPrice": 296.15, "lineTotal": 4442.25 } ] - createdAt
Component variants
Medium
#198
#198
Small
invoices/198 curl -sS \
"https://example-data.com/api/v1/invoices/198" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/198"
);
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/198"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/198"
)
invoice = res.json() {
"id": 198,
"fromUserId": 102,
"toUserId": 131,
"invoiceNumber": "INV-2026-0198",
"status": "viewed",
"issuedAt": "2026-04-15T00:30:29.873Z",
"dueAt": "2026-05-25T00:30:29.873Z",
"paidAt": null,
"subtotal": 48160.11,
"tax": 0,
"total": 48160.11,
"currency": "GBP",
"lineItems": [
{
"description": "System integration",
"quantity": 21,
"unitPrice": 373.66,
"lineTotal": 7846.86
},
{
"description": "Software development",
"quantity": 37,
"unitPrice": 439.6,
"lineTotal": 16265.2
},
{
"description": "Maintenance contract",
"quantity": 28,
"unitPrice": 383.95,
"lineTotal": 10750.6
},
{
"description": "System integration",
"quantity": 20,
"unitPrice": 442.76,
"lineTotal": 8855.2
},
{
"description": "Documentation",
"quantity": 15,
"unitPrice": 296.15,
"lineTotal": 4442.25
}
],
"createdAt": "2026-04-14T17:58:10.975Z"
}