invoices / #54
- fromUserId
- 60
- toUserId
- 10
- invoiceNumber
- INV-2026-0054
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 15801.24
- tax
- 2370.19
- total
- 18171.43
- currency
- USD
- lineItems
-
[ { "description": "Technical support", "quantity": 12, "unitPrice": 491.47, "lineTotal": 5897.64 }, { "description": "Quality assurance", "quantity": 40, "unitPrice": 78.73, "lineTotal": 3149.2 }, { "description": "License fee", "quantity": 11, "unitPrice": 210.15, "lineTotal": 2311.65 }, { "description": "Accounting services", "quantity": 25, "unitPrice": 177.71, "lineTotal": 4442.75 } ] - createdAt
Component variants
Medium
#54
#54
Small
invoices/54 curl -sS \
"https://example-data.com/api/v1/invoices/54" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/54"
);
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/54"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/54"
)
invoice = res.json() {
"id": 54,
"fromUserId": 60,
"toUserId": 10,
"invoiceNumber": "INV-2026-0054",
"status": "sent",
"issuedAt": "2026-05-11T03:25:12.449Z",
"dueAt": "2026-06-26T03:25:12.449Z",
"paidAt": null,
"subtotal": 15801.24,
"tax": 2370.19,
"total": 18171.43,
"currency": "USD",
"lineItems": [
{
"description": "Technical support",
"quantity": 12,
"unitPrice": 491.47,
"lineTotal": 5897.64
},
{
"description": "Quality assurance",
"quantity": 40,
"unitPrice": 78.73,
"lineTotal": 3149.2
},
{
"description": "License fee",
"quantity": 11,
"unitPrice": 210.15,
"lineTotal": 2311.65
},
{
"description": "Accounting services",
"quantity": 25,
"unitPrice": 177.71,
"lineTotal": 4442.75
}
],
"createdAt": "2026-05-10T09:29:53.763Z"
}