invoices / #81
- fromUserId
- 20
- toUserId
- 199
- invoiceNumber
- INV-2025-0081
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 18622.9
- tax
- 2793.43
- total
- 21416.33
- currency
- EUR
- lineItems
-
[ { "description": "Photography services", "quantity": 14, "unitPrice": 129.89, "lineTotal": 1818.46 }, { "description": "License fee", "quantity": 28, "unitPrice": 100.68, "lineTotal": 2819.04 }, { "description": "System integration", "quantity": 33, "unitPrice": 423.8, "lineTotal": 13985.4 } ] - createdAt
Component variants
Medium
#81
#81
Small
invoices/81 curl -sS \
"https://example-data.com/api/v1/invoices/81" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/81"
);
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/81"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/81"
)
invoice = res.json() {
"id": 81,
"fromUserId": 20,
"toUserId": 199,
"invoiceNumber": "INV-2025-0081",
"status": "sent",
"issuedAt": "2025-08-09T12:21:43.258Z",
"dueAt": "2025-09-11T12:21:43.258Z",
"paidAt": null,
"subtotal": 18622.9,
"tax": 2793.43,
"total": 21416.33,
"currency": "EUR",
"lineItems": [
{
"description": "Photography services",
"quantity": 14,
"unitPrice": 129.89,
"lineTotal": 1818.46
},
{
"description": "License fee",
"quantity": 28,
"unitPrice": 100.68,
"lineTotal": 2819.04
},
{
"description": "System integration",
"quantity": 33,
"unitPrice": 423.8,
"lineTotal": 13985.4
}
],
"createdAt": "2025-08-08T22:39:51.327Z"
}