invoices / #135
- fromUserId
- 153
- toUserId
- 128
- invoiceNumber
- INV-2025-0135
- status
- draft
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 28861.87
- tax
- 2308.95
- total
- 31170.82
- currency
- AUD
- lineItems
-
[ { "description": "Data analysis", "quantity": 18, "unitPrice": 172.35, "lineTotal": 3102.3 }, { "description": "License fee", "quantity": 25, "unitPrice": 11.1, "lineTotal": 277.5 }, { "description": "Implementation services", "quantity": 17, "unitPrice": 200.11, "lineTotal": 3401.87 }, { "description": "License fee", "quantity": 30, "unitPrice": 339.9, "lineTotal": 10197 }, { "description": "Documentation", "quantity": 35, "unitPrice": 339.52, "lineTotal": 11883.2 } ] - createdAt
Component variants
Medium
#135
#135
Small
invoices/135 curl -sS \
"https://example-data.com/api/v1/invoices/135" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/135"
);
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/135"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/135"
)
invoice = res.json() {
"id": 135,
"fromUserId": 153,
"toUserId": 128,
"invoiceNumber": "INV-2025-0135",
"status": "draft",
"issuedAt": "2025-07-05T20:56:31.963Z",
"dueAt": "2025-07-23T20:56:31.963Z",
"paidAt": null,
"subtotal": 28861.87,
"tax": 2308.95,
"total": 31170.82,
"currency": "AUD",
"lineItems": [
{
"description": "Data analysis",
"quantity": 18,
"unitPrice": 172.35,
"lineTotal": 3102.3
},
{
"description": "License fee",
"quantity": 25,
"unitPrice": 11.1,
"lineTotal": 277.5
},
{
"description": "Implementation services",
"quantity": 17,
"unitPrice": 200.11,
"lineTotal": 3401.87
},
{
"description": "License fee",
"quantity": 30,
"unitPrice": 339.9,
"lineTotal": 10197
},
{
"description": "Documentation",
"quantity": 35,
"unitPrice": 339.52,
"lineTotal": 11883.2
}
],
"createdAt": "2025-07-05T08:03:16.434Z"
}