invoices / #161
- fromUserId
- 24
- toUserId
- 154
- invoiceNumber
- INV-2024-0161
- status
- overdue
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 23013.86
- tax
- 4602.77
- total
- 27616.63
- currency
- GBP
- lineItems
-
[ { "description": "Implementation services", "quantity": 23, "unitPrice": 469.98, "lineTotal": 10809.54 }, { "description": "Research services", "quantity": 36, "unitPrice": 300.37, "lineTotal": 10813.32 }, { "description": "Legal review", "quantity": 10, "unitPrice": 139.1, "lineTotal": 1391 } ] - createdAt
Component variants
Medium
#161
#161
Small
invoices/161 curl -sS \
"https://example-data.com/api/v1/invoices/161" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/161"
);
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/161"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/161"
)
invoice = res.json() {
"id": 161,
"fromUserId": 24,
"toUserId": 154,
"invoiceNumber": "INV-2024-0161",
"status": "overdue",
"issuedAt": "2024-11-21T18:38:25.395Z",
"dueAt": "2024-12-14T18:38:25.395Z",
"paidAt": null,
"subtotal": 23013.86,
"tax": 4602.77,
"total": 27616.63,
"currency": "GBP",
"lineItems": [
{
"description": "Implementation services",
"quantity": 23,
"unitPrice": 469.98,
"lineTotal": 10809.54
},
{
"description": "Research services",
"quantity": 36,
"unitPrice": 300.37,
"lineTotal": 10813.32
},
{
"description": "Legal review",
"quantity": 10,
"unitPrice": 139.1,
"lineTotal": 1391
}
],
"createdAt": "2024-11-21T14:51:25.455Z"
}