invoices / #227
- fromUserId
- 96
- toUserId
- 196
- invoiceNumber
- INV-2025-0227
- status
- overdue
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 27622.13
- tax
- 2209.77
- total
- 29831.9
- currency
- USD
- lineItems
-
[ { "description": "Data analysis", "quantity": 38, "unitPrice": 269.68, "lineTotal": 10247.84 }, { "description": "Implementation services", "quantity": 21, "unitPrice": 128.55, "lineTotal": 2699.55 }, { "description": "Project management", "quantity": 14, "unitPrice": 155.03, "lineTotal": 2170.42 }, { "description": "Data analysis", "quantity": 32, "unitPrice": 390.76, "lineTotal": 12504.32 } ] - createdAt
Component variants
Medium
#227
#227
Small
invoices/227 curl -sS \
"https://example-data.com/api/v1/invoices/227" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/227"
);
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/227"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/227"
)
invoice = res.json() {
"id": 227,
"fromUserId": 96,
"toUserId": 196,
"invoiceNumber": "INV-2025-0227",
"status": "overdue",
"issuedAt": "2025-07-07T01:47:01.887Z",
"dueAt": "2025-07-18T01:47:01.887Z",
"paidAt": null,
"subtotal": 27622.13,
"tax": 2209.77,
"total": 29831.9,
"currency": "USD",
"lineItems": [
{
"description": "Data analysis",
"quantity": 38,
"unitPrice": 269.68,
"lineTotal": 10247.84
},
{
"description": "Implementation services",
"quantity": 21,
"unitPrice": 128.55,
"lineTotal": 2699.55
},
{
"description": "Project management",
"quantity": 14,
"unitPrice": 155.03,
"lineTotal": 2170.42
},
{
"description": "Data analysis",
"quantity": 32,
"unitPrice": 390.76,
"lineTotal": 12504.32
}
],
"createdAt": "2025-07-06T17:49:55.932Z"
}