invoices / #224
- fromUserId
- 43
- toUserId
- 19
- invoiceNumber
- INV-2025-0224
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 26777.32
- tax
- 2677.73
- total
- 29455.05
- currency
- CAD
- lineItems
-
[ { "description": "Implementation services", "quantity": 29, "unitPrice": 441.78, "lineTotal": 12811.62 }, { "description": "Data analysis", "quantity": 35, "unitPrice": 399.02, "lineTotal": 13965.7 } ] - createdAt
Component variants
Medium
#224
#224
Small
invoices/224 curl -sS \
"https://example-data.com/api/v1/invoices/224" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/224"
);
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/224"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/224"
)
invoice = res.json() {
"id": 224,
"fromUserId": 43,
"toUserId": 19,
"invoiceNumber": "INV-2025-0224",
"status": "paid",
"issuedAt": "2025-03-23T14:25:06.063Z",
"dueAt": "2025-05-04T14:25:06.063Z",
"paidAt": "2025-04-30T16:00:02.798Z",
"subtotal": 26777.32,
"tax": 2677.73,
"total": 29455.05,
"currency": "CAD",
"lineItems": [
{
"description": "Implementation services",
"quantity": 29,
"unitPrice": 441.78,
"lineTotal": 12811.62
},
{
"description": "Data analysis",
"quantity": 35,
"unitPrice": 399.02,
"lineTotal": 13965.7
}
],
"createdAt": "2025-03-23T09:17:44.253Z"
}