invoices / #200
- fromUserId
- 236
- toUserId
- 235
- invoiceNumber
- INV-2025-0200
- status
- overdue
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 8003.82
- tax
- 640.31
- total
- 8644.13
- currency
- CAD
- lineItems
-
[ { "description": "System integration", "quantity": 12, "unitPrice": 437.25, "lineTotal": 5247 }, { "description": "Hardware supply", "quantity": 11, "unitPrice": 76.71, "lineTotal": 843.81 }, { "description": "Software development", "quantity": 17, "unitPrice": 112.53, "lineTotal": 1913.01 } ] - createdAt
Component variants
Medium
#200
#200
Small
invoices/200 curl -sS \
"https://example-data.com/api/v1/invoices/200" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/200"
);
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/200"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/200"
)
invoice = res.json() {
"id": 200,
"fromUserId": 236,
"toUserId": 235,
"invoiceNumber": "INV-2025-0200",
"status": "overdue",
"issuedAt": "2025-01-14T20:47:45.971Z",
"dueAt": "2025-02-19T20:47:45.971Z",
"paidAt": null,
"subtotal": 8003.82,
"tax": 640.31,
"total": 8644.13,
"currency": "CAD",
"lineItems": [
{
"description": "System integration",
"quantity": 12,
"unitPrice": 437.25,
"lineTotal": 5247
},
{
"description": "Hardware supply",
"quantity": 11,
"unitPrice": 76.71,
"lineTotal": 843.81
},
{
"description": "Software development",
"quantity": 17,
"unitPrice": 112.53,
"lineTotal": 1913.01
}
],
"createdAt": "2025-01-13T23:05:34.555Z"
}