invoices / #125
- fromUserId
- 26
- toUserId
- 74
- invoiceNumber
- INV-2026-0125
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 18681.92
- tax
- 1868.19
- total
- 20550.11
- currency
- USD
- lineItems
-
[ { "description": "Photography services", "quantity": 5, "unitPrice": 122.28, "lineTotal": 611.4 }, { "description": "License fee", "quantity": 32, "unitPrice": 241.92, "lineTotal": 7741.44 }, { "description": "Hardware supply", "quantity": 11, "unitPrice": 20.08, "lineTotal": 220.88 }, { "description": "Training session", "quantity": 30, "unitPrice": 336.94, "lineTotal": 10108.2 } ] - createdAt
Component variants
Medium
#125
#125
Small
invoices/125 curl -sS \
"https://example-data.com/api/v1/invoices/125" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/125"
);
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/125"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/125"
)
invoice = res.json() {
"id": 125,
"fromUserId": 26,
"toUserId": 74,
"invoiceNumber": "INV-2026-0125",
"status": "paid",
"issuedAt": "2026-02-25T14:28:28.953Z",
"dueAt": "2026-03-19T14:28:28.953Z",
"paidAt": "2026-03-05T04:28:32.247Z",
"subtotal": 18681.92,
"tax": 1868.19,
"total": 20550.11,
"currency": "USD",
"lineItems": [
{
"description": "Photography services",
"quantity": 5,
"unitPrice": 122.28,
"lineTotal": 611.4
},
{
"description": "License fee",
"quantity": 32,
"unitPrice": 241.92,
"lineTotal": 7741.44
},
{
"description": "Hardware supply",
"quantity": 11,
"unitPrice": 20.08,
"lineTotal": 220.88
},
{
"description": "Training session",
"quantity": 30,
"unitPrice": 336.94,
"lineTotal": 10108.2
}
],
"createdAt": "2026-02-25T02:52:18.618Z"
}