invoices / #107
- fromUserId
- 131
- toUserId
- 150
- invoiceNumber
- INV-2024-0107
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 34650.07
- tax
- 3465.01
- total
- 38115.08
- currency
- CAD
- lineItems
-
[ { "description": "License fee", "quantity": 3, "unitPrice": 38.47, "lineTotal": 115.41 }, { "description": "Project management", "quantity": 33, "unitPrice": 350.34, "lineTotal": 11561.22 }, { "description": "Accounting services", "quantity": 12, "unitPrice": 341.99, "lineTotal": 4103.88 }, { "description": "Legal review", "quantity": 20, "unitPrice": 377.99, "lineTotal": 7559.8 }, { "description": "Quality assurance", "quantity": 19, "unitPrice": 370.71, "lineTotal": 7043.49 }, { "description": "Marketing services", "quantity": 9, "unitPrice": 474.03, "lineTotal": 4266.27 } ] - createdAt
Component variants
Medium
#107
#107
Small
invoices/107 curl -sS \
"https://example-data.com/api/v1/invoices/107" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/107"
);
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/107"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/107"
)
invoice = res.json() {
"id": 107,
"fromUserId": 131,
"toUserId": 150,
"invoiceNumber": "INV-2024-0107",
"status": "paid",
"issuedAt": "2024-05-25T00:15:33.901Z",
"dueAt": "2024-07-19T00:15:33.901Z",
"paidAt": "2024-07-03T16:42:19.541Z",
"subtotal": 34650.07,
"tax": 3465.01,
"total": 38115.08,
"currency": "CAD",
"lineItems": [
{
"description": "License fee",
"quantity": 3,
"unitPrice": 38.47,
"lineTotal": 115.41
},
{
"description": "Project management",
"quantity": 33,
"unitPrice": 350.34,
"lineTotal": 11561.22
},
{
"description": "Accounting services",
"quantity": 12,
"unitPrice": 341.99,
"lineTotal": 4103.88
},
{
"description": "Legal review",
"quantity": 20,
"unitPrice": 377.99,
"lineTotal": 7559.8
},
{
"description": "Quality assurance",
"quantity": 19,
"unitPrice": 370.71,
"lineTotal": 7043.49
},
{
"description": "Marketing services",
"quantity": 9,
"unitPrice": 474.03,
"lineTotal": 4266.27
}
],
"createdAt": "2024-05-24T14:23:17.352Z"
}