invoices / #48
- fromUserId
- 124
- toUserId
- 75
- invoiceNumber
- INV-2025-0048
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 3726.26
- tax
- 558.94
- total
- 4285.2
- currency
- EUR
- lineItems
-
[ { "description": "Legal review", "quantity": 17, "unitPrice": 36.27, "lineTotal": 616.59 }, { "description": "Software development", "quantity": 29, "unitPrice": 107.23, "lineTotal": 3109.67 } ] - createdAt
Component variants
Medium
#48
#48
Small
invoices/48 curl -sS \
"https://example-data.com/api/v1/invoices/48" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/48"
);
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/48"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/48"
)
invoice = res.json() {
"id": 48,
"fromUserId": 124,
"toUserId": 75,
"invoiceNumber": "INV-2025-0048",
"status": "paid",
"issuedAt": "2025-08-23T00:08:50.095Z",
"dueAt": "2025-09-19T00:08:50.095Z",
"paidAt": "2025-09-13T21:24:18.689Z",
"subtotal": 3726.26,
"tax": 558.94,
"total": 4285.2,
"currency": "EUR",
"lineItems": [
{
"description": "Legal review",
"quantity": 17,
"unitPrice": 36.27,
"lineTotal": 616.59
},
{
"description": "Software development",
"quantity": 29,
"unitPrice": 107.23,
"lineTotal": 3109.67
}
],
"createdAt": "2025-08-22T22:12:48.257Z"
}