invoices / #190
- fromUserId
- 196
- toUserId
- 185
- invoiceNumber
- INV-2025-0190
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 8673.16
- tax
- 433.66
- total
- 9106.82
- currency
- EUR
- lineItems
-
[ { "description": "Hardware supply", "quantity": 20, "unitPrice": 361.67, "lineTotal": 7233.4 }, { "description": "Research services", "quantity": 6, "unitPrice": 239.96, "lineTotal": 1439.76 } ] - createdAt
Component variants
Medium
#190
#190
Small
invoices/190 curl -sS \
"https://example-data.com/api/v1/invoices/190" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/190"
);
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/190"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/190"
)
invoice = res.json() {
"id": 190,
"fromUserId": 196,
"toUserId": 185,
"invoiceNumber": "INV-2025-0190",
"status": "paid",
"issuedAt": "2025-07-14T02:04:32.982Z",
"dueAt": "2025-08-04T02:04:32.982Z",
"paidAt": "2025-08-02T18:32:54.434Z",
"subtotal": 8673.16,
"tax": 433.66,
"total": 9106.82,
"currency": "EUR",
"lineItems": [
{
"description": "Hardware supply",
"quantity": 20,
"unitPrice": 361.67,
"lineTotal": 7233.4
},
{
"description": "Research services",
"quantity": 6,
"unitPrice": 239.96,
"lineTotal": 1439.76
}
],
"createdAt": "2025-07-13T17:34:27.977Z"
}