invoices / #67
- fromUserId
- 106
- toUserId
- 211
- invoiceNumber
- INV-2025-0067
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 35852
- tax
- 3585.2
- total
- 39437.2
- currency
- GBP
- lineItems
-
[ { "description": "Legal review", "quantity": 40, "unitPrice": 447.81, "lineTotal": 17912.4 }, { "description": "Maintenance contract", "quantity": 16, "unitPrice": 383.72, "lineTotal": 6139.52 }, { "description": "Legal review", "quantity": 36, "unitPrice": 327.78, "lineTotal": 11800.08 } ] - createdAt
Component variants
Medium
#67
#67
Small
invoices/67 curl -sS \
"https://example-data.com/api/v1/invoices/67" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/67"
);
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/67"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/67"
)
invoice = res.json() {
"id": 67,
"fromUserId": 106,
"toUserId": 211,
"invoiceNumber": "INV-2025-0067",
"status": "paid",
"issuedAt": "2025-03-02T06:05:03.931Z",
"dueAt": "2025-04-04T06:05:03.931Z",
"paidAt": "2025-03-31T14:45:09.895Z",
"subtotal": 35852,
"tax": 3585.2,
"total": 39437.2,
"currency": "GBP",
"lineItems": [
{
"description": "Legal review",
"quantity": 40,
"unitPrice": 447.81,
"lineTotal": 17912.4
},
{
"description": "Maintenance contract",
"quantity": 16,
"unitPrice": 383.72,
"lineTotal": 6139.52
},
{
"description": "Legal review",
"quantity": 36,
"unitPrice": 327.78,
"lineTotal": 11800.08
}
],
"createdAt": "2025-03-01T15:22:40.604Z"
}