invoices / #103
- fromUserId
- 186
- toUserId
- 14
- invoiceNumber
- INV-2024-0103
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 15996.26
- tax
- 799.81
- total
- 16796.07
- currency
- USD
- lineItems
-
[ { "description": "Photography services", "quantity": 18, "unitPrice": 332.58, "lineTotal": 5986.44 }, { "description": "Implementation services", "quantity": 10, "unitPrice": 51.53, "lineTotal": 515.3 }, { "description": "Design work", "quantity": 18, "unitPrice": 262.36, "lineTotal": 4722.48 }, { "description": "Content writing", "quantity": 19, "unitPrice": 251.16, "lineTotal": 4772.04 } ] - createdAt
Component variants
Medium
#103
#103
Small
invoices/103 curl -sS \
"https://example-data.com/api/v1/invoices/103" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/103"
);
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/103"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/103"
)
invoice = res.json() {
"id": 103,
"fromUserId": 186,
"toUserId": 14,
"invoiceNumber": "INV-2024-0103",
"status": "paid",
"issuedAt": "2024-11-04T21:25:05.565Z",
"dueAt": "2024-12-01T21:25:05.565Z",
"paidAt": "2024-11-30T08:13:36.521Z",
"subtotal": 15996.26,
"tax": 799.81,
"total": 16796.07,
"currency": "USD",
"lineItems": [
{
"description": "Photography services",
"quantity": 18,
"unitPrice": 332.58,
"lineTotal": 5986.44
},
{
"description": "Implementation services",
"quantity": 10,
"unitPrice": 51.53,
"lineTotal": 515.3
},
{
"description": "Design work",
"quantity": 18,
"unitPrice": 262.36,
"lineTotal": 4722.48
},
{
"description": "Content writing",
"quantity": 19,
"unitPrice": 251.16,
"lineTotal": 4772.04
}
],
"createdAt": "2024-11-04T14:34:00.680Z"
}