invoices / #129
- fromUserId
- 49
- toUserId
- 19
- invoiceNumber
- INV-2024-0129
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 41352.23
- tax
- 2067.61
- total
- 43419.84
- currency
- AUD
- lineItems
-
[ { "description": "Marketing services", "quantity": 29, "unitPrice": 493.45, "lineTotal": 14310.05 }, { "description": "Design work", "quantity": 30, "unitPrice": 305.38, "lineTotal": 9161.4 }, { "description": "Documentation", "quantity": 39, "unitPrice": 206.58, "lineTotal": 8056.62 }, { "description": "Research services", "quantity": 12, "unitPrice": 285.82, "lineTotal": 3429.84 }, { "description": "Marketing services", "quantity": 36, "unitPrice": 177.62, "lineTotal": 6394.32 } ] - createdAt
Component variants
Medium
#129
#129
Small
invoices/129 curl -sS \
"https://example-data.com/api/v1/invoices/129" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/129"
);
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/129"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/129"
)
invoice = res.json() {
"id": 129,
"fromUserId": 49,
"toUserId": 19,
"invoiceNumber": "INV-2024-0129",
"status": "paid",
"issuedAt": "2024-12-17T07:17:18.850Z",
"dueAt": "2025-02-02T07:17:18.850Z",
"paidAt": "2024-12-25T19:57:03.890Z",
"subtotal": 41352.23,
"tax": 2067.61,
"total": 43419.84,
"currency": "AUD",
"lineItems": [
{
"description": "Marketing services",
"quantity": 29,
"unitPrice": 493.45,
"lineTotal": 14310.05
},
{
"description": "Design work",
"quantity": 30,
"unitPrice": 305.38,
"lineTotal": 9161.4
},
{
"description": "Documentation",
"quantity": 39,
"unitPrice": 206.58,
"lineTotal": 8056.62
},
{
"description": "Research services",
"quantity": 12,
"unitPrice": 285.82,
"lineTotal": 3429.84
},
{
"description": "Marketing services",
"quantity": 36,
"unitPrice": 177.62,
"lineTotal": 6394.32
}
],
"createdAt": "2024-12-16T12:26:23.495Z"
}