invoices / #11
- fromUserId
- 121
- toUserId
- 199
- invoiceNumber
- INV-2025-0011
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 4011.16
- tax
- 320.89
- total
- 4332.05
- currency
- EUR
- lineItems
-
[ { "description": "Maintenance contract", "quantity": 7, "unitPrice": 385.96, "lineTotal": 2701.72 }, { "description": "Content writing", "quantity": 11, "unitPrice": 119.04, "lineTotal": 1309.44 } ] - createdAt
Component variants
Medium
#11
#11
Small
invoices/11 curl -sS \
"https://example-data.com/api/v1/invoices/11" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/11"
);
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/11"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/11"
)
invoice = res.json() {
"id": 11,
"fromUserId": 121,
"toUserId": 199,
"invoiceNumber": "INV-2025-0011",
"status": "paid",
"issuedAt": "2025-03-31T03:13:01.994Z",
"dueAt": "2025-05-20T03:13:01.994Z",
"paidAt": "2025-04-29T17:29:50.256Z",
"subtotal": 4011.16,
"tax": 320.89,
"total": 4332.05,
"currency": "EUR",
"lineItems": [
{
"description": "Maintenance contract",
"quantity": 7,
"unitPrice": 385.96,
"lineTotal": 2701.72
},
{
"description": "Content writing",
"quantity": 11,
"unitPrice": 119.04,
"lineTotal": 1309.44
}
],
"createdAt": "2025-03-30T08:19:08.236Z"
}