invoices / #82
- fromUserId
- 237
- toUserId
- 186
- invoiceNumber
- INV-2025-0082
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 42488.39
- tax
- 4248.84
- total
- 46737.23
- currency
- CAD
- lineItems
-
[ { "description": "Design work", "quantity": 32, "unitPrice": 113.97, "lineTotal": 3647.04 }, { "description": "Documentation", "quantity": 33, "unitPrice": 399, "lineTotal": 13167 }, { "description": "Implementation services", "quantity": 1, "unitPrice": 235.33, "lineTotal": 235.33 }, { "description": "System integration", "quantity": 37, "unitPrice": 453.21, "lineTotal": 16768.77 }, { "description": "Software development", "quantity": 25, "unitPrice": 346.81, "lineTotal": 8670.25 } ] - createdAt
Component variants
Medium
#82
#82
Small
invoices/82 curl -sS \
"https://example-data.com/api/v1/invoices/82" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/82"
);
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/82"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/82"
)
invoice = res.json() {
"id": 82,
"fromUserId": 237,
"toUserId": 186,
"invoiceNumber": "INV-2025-0082",
"status": "sent",
"issuedAt": "2025-03-07T03:08:07.673Z",
"dueAt": "2025-05-04T03:08:07.673Z",
"paidAt": null,
"subtotal": 42488.39,
"tax": 4248.84,
"total": 46737.23,
"currency": "CAD",
"lineItems": [
{
"description": "Design work",
"quantity": 32,
"unitPrice": 113.97,
"lineTotal": 3647.04
},
{
"description": "Documentation",
"quantity": 33,
"unitPrice": 399,
"lineTotal": 13167
},
{
"description": "Implementation services",
"quantity": 1,
"unitPrice": 235.33,
"lineTotal": 235.33
},
{
"description": "System integration",
"quantity": 37,
"unitPrice": 453.21,
"lineTotal": 16768.77
},
{
"description": "Software development",
"quantity": 25,
"unitPrice": 346.81,
"lineTotal": 8670.25
}
],
"createdAt": "2025-03-06T14:36:40.148Z"
}