invoices / #147
- fromUserId
- 160
- toUserId
- 62
- invoiceNumber
- INV-2025-0147
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 20924.44
- tax
- 0
- total
- 20924.44
- currency
- AUD
- lineItems
-
[ { "description": "Design work", "quantity": 12, "unitPrice": 465.61, "lineTotal": 5587.32 }, { "description": "Technical support", "quantity": 37, "unitPrice": 118.96, "lineTotal": 4401.52 }, { "description": "Implementation services", "quantity": 26, "unitPrice": 420.6, "lineTotal": 10935.6 } ] - createdAt
Component variants
Medium
#147
#147
Small
invoices/147 curl -sS \
"https://example-data.com/api/v1/invoices/147" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/147"
);
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/147"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/147"
)
invoice = res.json() {
"id": 147,
"fromUserId": 160,
"toUserId": 62,
"invoiceNumber": "INV-2025-0147",
"status": "paid",
"issuedAt": "2025-02-19T01:12:25.989Z",
"dueAt": "2025-03-09T01:12:25.989Z",
"paidAt": "2025-02-23T22:49:16.046Z",
"subtotal": 20924.44,
"tax": 0,
"total": 20924.44,
"currency": "AUD",
"lineItems": [
{
"description": "Design work",
"quantity": 12,
"unitPrice": 465.61,
"lineTotal": 5587.32
},
{
"description": "Technical support",
"quantity": 37,
"unitPrice": 118.96,
"lineTotal": 4401.52
},
{
"description": "Implementation services",
"quantity": 26,
"unitPrice": 420.6,
"lineTotal": 10935.6
}
],
"createdAt": "2025-02-18T04:42:07.725Z"
}