invoices / #174
- fromUserId
- 36
- toUserId
- 219
- invoiceNumber
- INV-2025-0174
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 27619.19
- tax
- 0
- total
- 27619.19
- currency
- GBP
- lineItems
-
[ { "description": "Documentation", "quantity": 10, "unitPrice": 238.22, "lineTotal": 2382.2 }, { "description": "Design work", "quantity": 11, "unitPrice": 487.37, "lineTotal": 5361.07 }, { "description": "Implementation services", "quantity": 12, "unitPrice": 376.99, "lineTotal": 4523.88 }, { "description": "Content writing", "quantity": 37, "unitPrice": 414.92, "lineTotal": 15352.04 } ] - createdAt
Component variants
Medium
#174
#174
Small
invoices/174 curl -sS \
"https://example-data.com/api/v1/invoices/174" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/174"
);
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/174"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/174"
)
invoice = res.json() {
"id": 174,
"fromUserId": 36,
"toUserId": 219,
"invoiceNumber": "INV-2025-0174",
"status": "paid",
"issuedAt": "2025-03-11T22:27:17.689Z",
"dueAt": "2025-04-03T22:27:17.689Z",
"paidAt": "2025-04-02T03:30:23.682Z",
"subtotal": 27619.19,
"tax": 0,
"total": 27619.19,
"currency": "GBP",
"lineItems": [
{
"description": "Documentation",
"quantity": 10,
"unitPrice": 238.22,
"lineTotal": 2382.2
},
{
"description": "Design work",
"quantity": 11,
"unitPrice": 487.37,
"lineTotal": 5361.07
},
{
"description": "Implementation services",
"quantity": 12,
"unitPrice": 376.99,
"lineTotal": 4523.88
},
{
"description": "Content writing",
"quantity": 37,
"unitPrice": 414.92,
"lineTotal": 15352.04
}
],
"createdAt": "2025-03-11T14:59:35.211Z"
}