invoices / #53
- fromUserId
- 196
- toUserId
- 234
- invoiceNumber
- INV-2024-0053
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 8342.48
- tax
- 1251.37
- total
- 9593.85
- currency
- GBP
- lineItems
-
[ { "description": "Photography services", "quantity": 15, "unitPrice": 55.08, "lineTotal": 826.2 }, { "description": "Research services", "quantity": 23, "unitPrice": 89.8, "lineTotal": 2065.4 }, { "description": "Software development", "quantity": 5, "unitPrice": 472.32, "lineTotal": 2361.6 }, { "description": "Quality assurance", "quantity": 24, "unitPrice": 128.72, "lineTotal": 3089.28 } ] - createdAt
Component variants
Medium
#53
#53
Small
invoices/53 curl -sS \
"https://example-data.com/api/v1/invoices/53" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/53"
);
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/53"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/53"
)
invoice = res.json() {
"id": 53,
"fromUserId": 196,
"toUserId": 234,
"invoiceNumber": "INV-2024-0053",
"status": "paid",
"issuedAt": "2024-12-21T12:06:01.355Z",
"dueAt": "2025-02-14T12:06:01.355Z",
"paidAt": "2025-01-05T22:47:54.975Z",
"subtotal": 8342.48,
"tax": 1251.37,
"total": 9593.85,
"currency": "GBP",
"lineItems": [
{
"description": "Photography services",
"quantity": 15,
"unitPrice": 55.08,
"lineTotal": 826.2
},
{
"description": "Research services",
"quantity": 23,
"unitPrice": 89.8,
"lineTotal": 2065.4
},
{
"description": "Software development",
"quantity": 5,
"unitPrice": 472.32,
"lineTotal": 2361.6
},
{
"description": "Quality assurance",
"quantity": 24,
"unitPrice": 128.72,
"lineTotal": 3089.28
}
],
"createdAt": "2024-12-20T16:27:57.437Z"
}