invoices / #152
- fromUserId
- 77
- toUserId
- 133
- invoiceNumber
- INV-2026-0152
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 17783.93
- tax
- 889.2
- total
- 18673.13
- currency
- USD
- lineItems
-
[ { "description": "Research services", "quantity": 37, "unitPrice": 153.33, "lineTotal": 5673.21 }, { "description": "Project management", "quantity": 7, "unitPrice": 232.35, "lineTotal": 1626.45 }, { "description": "System integration", "quantity": 34, "unitPrice": 97.53, "lineTotal": 3316.02 }, { "description": "Software development", "quantity": 37, "unitPrice": 48.44, "lineTotal": 1792.28 }, { "description": "Content writing", "quantity": 27, "unitPrice": 199.11, "lineTotal": 5375.97 } ] - createdAt
Component variants
Medium
#152
#152
Small
invoices/152 curl -sS \
"https://example-data.com/api/v1/invoices/152" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/152"
);
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/152"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/152"
)
invoice = res.json() {
"id": 152,
"fromUserId": 77,
"toUserId": 133,
"invoiceNumber": "INV-2026-0152",
"status": "paid",
"issuedAt": "2026-01-26T14:24:25.224Z",
"dueAt": "2026-02-03T14:24:25.224Z",
"paidAt": "2026-02-03T11:56:38.564Z",
"subtotal": 17783.93,
"tax": 889.2,
"total": 18673.13,
"currency": "USD",
"lineItems": [
{
"description": "Research services",
"quantity": 37,
"unitPrice": 153.33,
"lineTotal": 5673.21
},
{
"description": "Project management",
"quantity": 7,
"unitPrice": 232.35,
"lineTotal": 1626.45
},
{
"description": "System integration",
"quantity": 34,
"unitPrice": 97.53,
"lineTotal": 3316.02
},
{
"description": "Software development",
"quantity": 37,
"unitPrice": 48.44,
"lineTotal": 1792.28
},
{
"description": "Content writing",
"quantity": 27,
"unitPrice": 199.11,
"lineTotal": 5375.97
}
],
"createdAt": "2026-01-25T23:44:51.764Z"
}