invoices / #62
- fromUserId
- 204
- toUserId
- 245
- invoiceNumber
- INV-2024-0062
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 18875.94
- tax
- 3775.19
- total
- 22651.13
- currency
- USD
- lineItems
-
[ { "description": "Photography services", "quantity": 37, "unitPrice": 331.93, "lineTotal": 12281.41 }, { "description": "Photography services", "quantity": 16, "unitPrice": 69.18, "lineTotal": 1106.88 }, { "description": "Software development", "quantity": 35, "unitPrice": 156.79, "lineTotal": 5487.65 } ] - createdAt
Component variants
Medium
#62
#62
Small
invoices/62 curl -sS \
"https://example-data.com/api/v1/invoices/62" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/62"
);
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/62"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/62"
)
invoice = res.json() {
"id": 62,
"fromUserId": 204,
"toUserId": 245,
"invoiceNumber": "INV-2024-0062",
"status": "paid",
"issuedAt": "2024-08-09T22:21:30.212Z",
"dueAt": "2024-08-17T22:21:30.212Z",
"paidAt": "2024-08-12T20:52:17.802Z",
"subtotal": 18875.94,
"tax": 3775.19,
"total": 22651.13,
"currency": "USD",
"lineItems": [
{
"description": "Photography services",
"quantity": 37,
"unitPrice": 331.93,
"lineTotal": 12281.41
},
{
"description": "Photography services",
"quantity": 16,
"unitPrice": 69.18,
"lineTotal": 1106.88
},
{
"description": "Software development",
"quantity": 35,
"unitPrice": 156.79,
"lineTotal": 5487.65
}
],
"createdAt": "2024-08-09T17:27:27.043Z"
}