invoices / #228
- fromUserId
- 19
- toUserId
- 68
- invoiceNumber
- INV-2025-0228
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 22822.5
- tax
- 3423.38
- total
- 26245.88
- currency
- CAD
- lineItems
-
[ { "description": "Hardware supply", "quantity": 33, "unitPrice": 65.41, "lineTotal": 2158.53 }, { "description": "Documentation", "quantity": 13, "unitPrice": 80.48, "lineTotal": 1046.24 }, { "description": "Content writing", "quantity": 14, "unitPrice": 138.49, "lineTotal": 1938.86 }, { "description": "Consulting services", "quantity": 2, "unitPrice": 147.06, "lineTotal": 294.12 }, { "description": "Photography services", "quantity": 15, "unitPrice": 220.82, "lineTotal": 3312.3 }, { "description": "Research services", "quantity": 35, "unitPrice": 402.07, "lineTotal": 14072.45 } ] - createdAt
Component variants
Medium
#228
#228
Small
invoices/228 curl -sS \
"https://example-data.com/api/v1/invoices/228" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/228"
);
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/228"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/228"
)
invoice = res.json() {
"id": 228,
"fromUserId": 19,
"toUserId": 68,
"invoiceNumber": "INV-2025-0228",
"status": "paid",
"issuedAt": "2025-07-07T09:00:43.919Z",
"dueAt": "2025-08-08T09:00:43.919Z",
"paidAt": "2025-07-13T03:12:24.068Z",
"subtotal": 22822.5,
"tax": 3423.38,
"total": 26245.88,
"currency": "CAD",
"lineItems": [
{
"description": "Hardware supply",
"quantity": 33,
"unitPrice": 65.41,
"lineTotal": 2158.53
},
{
"description": "Documentation",
"quantity": 13,
"unitPrice": 80.48,
"lineTotal": 1046.24
},
{
"description": "Content writing",
"quantity": 14,
"unitPrice": 138.49,
"lineTotal": 1938.86
},
{
"description": "Consulting services",
"quantity": 2,
"unitPrice": 147.06,
"lineTotal": 294.12
},
{
"description": "Photography services",
"quantity": 15,
"unitPrice": 220.82,
"lineTotal": 3312.3
},
{
"description": "Research services",
"quantity": 35,
"unitPrice": 402.07,
"lineTotal": 14072.45
}
],
"createdAt": "2025-07-07T01:59:46.162Z"
}