invoices / #136
- fromUserId
- 138
- toUserId
- 107
- invoiceNumber
- INV-2025-0136
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 40287.66
- tax
- 8057.53
- total
- 48345.19
- currency
- EUR
- lineItems
-
[ { "description": "Implementation services", "quantity": 38, "unitPrice": 254.81, "lineTotal": 9682.78 }, { "description": "Maintenance contract", "quantity": 20, "unitPrice": 442.38, "lineTotal": 8847.6 }, { "description": "Maintenance contract", "quantity": 25, "unitPrice": 481.49, "lineTotal": 12037.25 }, { "description": "Maintenance contract", "quantity": 23, "unitPrice": 422.61, "lineTotal": 9720.03 } ] - createdAt
Component variants
Medium
#136
#136
Small
invoices/136 curl -sS \
"https://example-data.com/api/v1/invoices/136" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/136"
);
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/136"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/136"
)
invoice = res.json() {
"id": 136,
"fromUserId": 138,
"toUserId": 107,
"invoiceNumber": "INV-2025-0136",
"status": "paid",
"issuedAt": "2025-01-27T02:15:16.658Z",
"dueAt": "2025-03-19T02:15:16.658Z",
"paidAt": "2025-02-02T00:16:26.903Z",
"subtotal": 40287.66,
"tax": 8057.53,
"total": 48345.19,
"currency": "EUR",
"lineItems": [
{
"description": "Implementation services",
"quantity": 38,
"unitPrice": 254.81,
"lineTotal": 9682.78
},
{
"description": "Maintenance contract",
"quantity": 20,
"unitPrice": 442.38,
"lineTotal": 8847.6
},
{
"description": "Maintenance contract",
"quantity": 25,
"unitPrice": 481.49,
"lineTotal": 12037.25
},
{
"description": "Maintenance contract",
"quantity": 23,
"unitPrice": 422.61,
"lineTotal": 9720.03
}
],
"createdAt": "2025-01-26T14:52:47.805Z"
}