invoices / #215
- fromUserId
- 169
- toUserId
- 179
- invoiceNumber
- INV-2024-0215
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 11259.51
- tax
- 562.98
- total
- 11822.49
- currency
- EUR
- lineItems
-
[ { "description": "Legal review", "quantity": 6, "unitPrice": 408.32, "lineTotal": 2449.92 }, { "description": "Hardware supply", "quantity": 8, "unitPrice": 308.73, "lineTotal": 2469.84 }, { "description": "Training session", "quantity": 8, "unitPrice": 386.37, "lineTotal": 3090.96 }, { "description": "Accounting services", "quantity": 5, "unitPrice": 184.47, "lineTotal": 922.35 }, { "description": "Data analysis", "quantity": 8, "unitPrice": 212.73, "lineTotal": 1701.84 }, { "description": "Project management", "quantity": 3, "unitPrice": 208.2, "lineTotal": 624.6 } ] - createdAt
Component variants
Medium
#215
#215
Small
invoices/215 curl -sS \
"https://example-data.com/api/v1/invoices/215" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/215"
);
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/215"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/215"
)
invoice = res.json() {
"id": 215,
"fromUserId": 169,
"toUserId": 179,
"invoiceNumber": "INV-2024-0215",
"status": "paid",
"issuedAt": "2024-09-09T05:17:39.839Z",
"dueAt": "2024-11-05T05:17:39.839Z",
"paidAt": "2024-10-15T09:38:41.344Z",
"subtotal": 11259.51,
"tax": 562.98,
"total": 11822.49,
"currency": "EUR",
"lineItems": [
{
"description": "Legal review",
"quantity": 6,
"unitPrice": 408.32,
"lineTotal": 2449.92
},
{
"description": "Hardware supply",
"quantity": 8,
"unitPrice": 308.73,
"lineTotal": 2469.84
},
{
"description": "Training session",
"quantity": 8,
"unitPrice": 386.37,
"lineTotal": 3090.96
},
{
"description": "Accounting services",
"quantity": 5,
"unitPrice": 184.47,
"lineTotal": 922.35
},
{
"description": "Data analysis",
"quantity": 8,
"unitPrice": 212.73,
"lineTotal": 1701.84
},
{
"description": "Project management",
"quantity": 3,
"unitPrice": 208.2,
"lineTotal": 624.6
}
],
"createdAt": "2024-09-08T07:46:43.579Z"
}