invoices / #193
- fromUserId
- 249
- toUserId
- 126
- invoiceNumber
- INV-2025-0193
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 20916.2
- tax
- 1045.81
- total
- 21962.01
- currency
- GBP
- lineItems
-
[ { "description": "Hardware supply", "quantity": 37, "unitPrice": 195.87, "lineTotal": 7247.19 }, { "description": "Training session", "quantity": 9, "unitPrice": 389.93, "lineTotal": 3509.37 }, { "description": "Hardware supply", "quantity": 38, "unitPrice": 247.36, "lineTotal": 9399.68 }, { "description": "Software development", "quantity": 6, "unitPrice": 126.66, "lineTotal": 759.96 } ] - createdAt
Component variants
Medium
#193
#193
Small
invoices/193 curl -sS \
"https://example-data.com/api/v1/invoices/193" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/193"
);
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/193"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/193"
)
invoice = res.json() {
"id": 193,
"fromUserId": 249,
"toUserId": 126,
"invoiceNumber": "INV-2025-0193",
"status": "sent",
"issuedAt": "2025-12-15T02:40:35.736Z",
"dueAt": "2026-02-06T02:40:35.736Z",
"paidAt": null,
"subtotal": 20916.2,
"tax": 1045.81,
"total": 21962.01,
"currency": "GBP",
"lineItems": [
{
"description": "Hardware supply",
"quantity": 37,
"unitPrice": 195.87,
"lineTotal": 7247.19
},
{
"description": "Training session",
"quantity": 9,
"unitPrice": 389.93,
"lineTotal": 3509.37
},
{
"description": "Hardware supply",
"quantity": 38,
"unitPrice": 247.36,
"lineTotal": 9399.68
},
{
"description": "Software development",
"quantity": 6,
"unitPrice": 126.66,
"lineTotal": 759.96
}
],
"createdAt": "2025-12-15T00:49:39.539Z"
}