invoices / #102
- fromUserId
- 146
- toUserId
- 38
- invoiceNumber
- INV-2024-0102
- status
- draft
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 25734.22
- tax
- 2058.74
- total
- 27792.96
- currency
- EUR
- lineItems
-
[ { "description": "Software development", "quantity": 38, "unitPrice": 42.77, "lineTotal": 1625.26 }, { "description": "Hardware supply", "quantity": 6, "unitPrice": 246.47, "lineTotal": 1478.82 }, { "description": "Content writing", "quantity": 12, "unitPrice": 190.74, "lineTotal": 2288.88 }, { "description": "Accounting services", "quantity": 22, "unitPrice": 55.32, "lineTotal": 1217.04 }, { "description": "Software development", "quantity": 36, "unitPrice": 343.44, "lineTotal": 12363.84 }, { "description": "License fee", "quantity": 22, "unitPrice": 307.29, "lineTotal": 6760.38 } ] - createdAt
Component variants
Medium
#102
#102
Small
invoices/102 curl -sS \
"https://example-data.com/api/v1/invoices/102" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/102"
);
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/102"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/102"
)
invoice = res.json() {
"id": 102,
"fromUserId": 146,
"toUserId": 38,
"invoiceNumber": "INV-2024-0102",
"status": "draft",
"issuedAt": "2024-12-26T02:48:34.603Z",
"dueAt": "2025-02-18T02:48:34.603Z",
"paidAt": null,
"subtotal": 25734.22,
"tax": 2058.74,
"total": 27792.96,
"currency": "EUR",
"lineItems": [
{
"description": "Software development",
"quantity": 38,
"unitPrice": 42.77,
"lineTotal": 1625.26
},
{
"description": "Hardware supply",
"quantity": 6,
"unitPrice": 246.47,
"lineTotal": 1478.82
},
{
"description": "Content writing",
"quantity": 12,
"unitPrice": 190.74,
"lineTotal": 2288.88
},
{
"description": "Accounting services",
"quantity": 22,
"unitPrice": 55.32,
"lineTotal": 1217.04
},
{
"description": "Software development",
"quantity": 36,
"unitPrice": 343.44,
"lineTotal": 12363.84
},
{
"description": "License fee",
"quantity": 22,
"unitPrice": 307.29,
"lineTotal": 6760.38
}
],
"createdAt": "2024-12-26T00:55:00.779Z"
}