invoices / #130
- fromUserId
- 169
- toUserId
- 79
- invoiceNumber
- INV-2025-0130
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 6738.14
- tax
- 1347.63
- total
- 8085.77
- currency
- AUD
- lineItems
-
[ { "description": "Legal review", "quantity": 39, "unitPrice": 141.76, "lineTotal": 5528.64 }, { "description": "Consulting services", "quantity": 25, "unitPrice": 48.38, "lineTotal": 1209.5 } ] - createdAt
Component variants
Medium
#130
#130
Small
invoices/130 curl -sS \
"https://example-data.com/api/v1/invoices/130" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/130"
);
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/130"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/130"
)
invoice = res.json() {
"id": 130,
"fromUserId": 169,
"toUserId": 79,
"invoiceNumber": "INV-2025-0130",
"status": "sent",
"issuedAt": "2025-10-01T21:26:39.758Z",
"dueAt": "2025-10-20T21:26:39.758Z",
"paidAt": null,
"subtotal": 6738.14,
"tax": 1347.63,
"total": 8085.77,
"currency": "AUD",
"lineItems": [
{
"description": "Legal review",
"quantity": 39,
"unitPrice": 141.76,
"lineTotal": 5528.64
},
{
"description": "Consulting services",
"quantity": 25,
"unitPrice": 48.38,
"lineTotal": 1209.5
}
],
"createdAt": "2025-10-01T14:36:14.111Z"
}