invoices / #104
- fromUserId
- 62
- toUserId
- 176
- invoiceNumber
- INV-2025-0104
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 28463.78
- tax
- 0
- total
- 28463.78
- currency
- CAD
- lineItems
-
[ { "description": "Implementation services", "quantity": 17, "unitPrice": 126.62, "lineTotal": 2152.54 }, { "description": "Maintenance contract", "quantity": 22, "unitPrice": 413.05, "lineTotal": 9087.1 }, { "description": "Implementation services", "quantity": 33, "unitPrice": 129.16, "lineTotal": 4262.28 }, { "description": "Research services", "quantity": 9, "unitPrice": 50.28, "lineTotal": 452.52 }, { "description": "Photography services", "quantity": 34, "unitPrice": 354.87, "lineTotal": 12065.58 }, { "description": "Implementation services", "quantity": 3, "unitPrice": 147.92, "lineTotal": 443.76 } ] - createdAt
Component variants
Medium
#104
#104
Small
invoices/104 curl -sS \
"https://example-data.com/api/v1/invoices/104" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/104"
);
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/104"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/104"
)
invoice = res.json() {
"id": 104,
"fromUserId": 62,
"toUserId": 176,
"invoiceNumber": "INV-2025-0104",
"status": "paid",
"issuedAt": "2025-01-02T10:55:51.365Z",
"dueAt": "2025-01-26T10:55:51.365Z",
"paidAt": "2025-01-18T02:02:03.887Z",
"subtotal": 28463.78,
"tax": 0,
"total": 28463.78,
"currency": "CAD",
"lineItems": [
{
"description": "Implementation services",
"quantity": 17,
"unitPrice": 126.62,
"lineTotal": 2152.54
},
{
"description": "Maintenance contract",
"quantity": 22,
"unitPrice": 413.05,
"lineTotal": 9087.1
},
{
"description": "Implementation services",
"quantity": 33,
"unitPrice": 129.16,
"lineTotal": 4262.28
},
{
"description": "Research services",
"quantity": 9,
"unitPrice": 50.28,
"lineTotal": 452.52
},
{
"description": "Photography services",
"quantity": 34,
"unitPrice": 354.87,
"lineTotal": 12065.58
},
{
"description": "Implementation services",
"quantity": 3,
"unitPrice": 147.92,
"lineTotal": 443.76
}
],
"createdAt": "2025-01-01T21:30:08.438Z"
}