invoices / #77
- fromUserId
- 102
- toUserId
- 2
- invoiceNumber
- INV-2024-0077
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 30244.28
- tax
- 6048.86
- total
- 36293.14
- currency
- GBP
- lineItems
-
[ { "description": "Design work", "quantity": 8, "unitPrice": 390.68, "lineTotal": 3125.44 }, { "description": "Data analysis", "quantity": 26, "unitPrice": 416.53, "lineTotal": 10829.78 }, { "description": "Research services", "quantity": 37, "unitPrice": 433.86, "lineTotal": 16052.82 }, { "description": "Accounting services", "quantity": 2, "unitPrice": 118.12, "lineTotal": 236.24 } ] - createdAt
Component variants
Medium
#77
#77
Small
invoices/77 curl -sS \
"https://example-data.com/api/v1/invoices/77" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/77"
);
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/77"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/77"
)
invoice = res.json() {
"id": 77,
"fromUserId": 102,
"toUserId": 2,
"invoiceNumber": "INV-2024-0077",
"status": "paid",
"issuedAt": "2024-07-31T00:36:20.266Z",
"dueAt": "2024-08-09T00:36:20.266Z",
"paidAt": "2024-08-04T07:03:25.476Z",
"subtotal": 30244.28,
"tax": 6048.86,
"total": 36293.14,
"currency": "GBP",
"lineItems": [
{
"description": "Design work",
"quantity": 8,
"unitPrice": 390.68,
"lineTotal": 3125.44
},
{
"description": "Data analysis",
"quantity": 26,
"unitPrice": 416.53,
"lineTotal": 10829.78
},
{
"description": "Research services",
"quantity": 37,
"unitPrice": 433.86,
"lineTotal": 16052.82
},
{
"description": "Accounting services",
"quantity": 2,
"unitPrice": 118.12,
"lineTotal": 236.24
}
],
"createdAt": "2024-07-30T15:15:33.123Z"
}