invoices / #39
- fromUserId
- 13
- toUserId
- 193
- invoiceNumber
- INV-2025-0039
- status
- cancelled
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 56226.8
- tax
- 11245.36
- total
- 67472.16
- currency
- EUR
- lineItems
-
[ { "description": "Research services", "quantity": 16, "unitPrice": 55.37, "lineTotal": 885.92 }, { "description": "Photography services", "quantity": 38, "unitPrice": 408.32, "lineTotal": 15516.16 }, { "description": "License fee", "quantity": 33, "unitPrice": 490.31, "lineTotal": 16180.23 }, { "description": "Research services", "quantity": 35, "unitPrice": 187.17, "lineTotal": 6550.95 }, { "description": "Research services", "quantity": 38, "unitPrice": 449.83, "lineTotal": 17093.54 } ] - createdAt
Component variants
Medium
#39
#39
Small
invoices/39 curl -sS \
"https://example-data.com/api/v1/invoices/39" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/39"
);
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/39"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/39"
)
invoice = res.json() {
"id": 39,
"fromUserId": 13,
"toUserId": 193,
"invoiceNumber": "INV-2025-0039",
"status": "cancelled",
"issuedAt": "2025-03-20T06:30:13.383Z",
"dueAt": "2025-05-18T06:30:13.383Z",
"paidAt": null,
"subtotal": 56226.8,
"tax": 11245.36,
"total": 67472.16,
"currency": "EUR",
"lineItems": [
{
"description": "Research services",
"quantity": 16,
"unitPrice": 55.37,
"lineTotal": 885.92
},
{
"description": "Photography services",
"quantity": 38,
"unitPrice": 408.32,
"lineTotal": 15516.16
},
{
"description": "License fee",
"quantity": 33,
"unitPrice": 490.31,
"lineTotal": 16180.23
},
{
"description": "Research services",
"quantity": 35,
"unitPrice": 187.17,
"lineTotal": 6550.95
},
{
"description": "Research services",
"quantity": 38,
"unitPrice": 449.83,
"lineTotal": 17093.54
}
],
"createdAt": "2025-03-19T09:12:46.041Z"
}