invoices / #133
- fromUserId
- 112
- toUserId
- 22
- invoiceNumber
- INV-2024-0133
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 29771.43
- tax
- 2977.14
- total
- 32748.57
- currency
- EUR
- lineItems
-
[ { "description": "Data analysis", "quantity": 18, "unitPrice": 129.7, "lineTotal": 2334.6 }, { "description": "Implementation services", "quantity": 19, "unitPrice": 384.99, "lineTotal": 7314.81 }, { "description": "Project management", "quantity": 26, "unitPrice": 305.21, "lineTotal": 7935.46 }, { "description": "Marketing services", "quantity": 13, "unitPrice": 303.8, "lineTotal": 3949.4 }, { "description": "Implementation services", "quantity": 24, "unitPrice": 197.38, "lineTotal": 4737.12 }, { "description": "Content writing", "quantity": 12, "unitPrice": 291.67, "lineTotal": 3500.04 } ] - createdAt
Component variants
Medium
#133
#133
Small
invoices/133 curl -sS \
"https://example-data.com/api/v1/invoices/133" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/133"
);
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/133"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/133"
)
invoice = res.json() {
"id": 133,
"fromUserId": 112,
"toUserId": 22,
"invoiceNumber": "INV-2024-0133",
"status": "paid",
"issuedAt": "2024-07-17T12:02:38.961Z",
"dueAt": "2024-07-24T12:02:38.961Z",
"paidAt": "2024-07-20T08:41:10.478Z",
"subtotal": 29771.43,
"tax": 2977.14,
"total": 32748.57,
"currency": "EUR",
"lineItems": [
{
"description": "Data analysis",
"quantity": 18,
"unitPrice": 129.7,
"lineTotal": 2334.6
},
{
"description": "Implementation services",
"quantity": 19,
"unitPrice": 384.99,
"lineTotal": 7314.81
},
{
"description": "Project management",
"quantity": 26,
"unitPrice": 305.21,
"lineTotal": 7935.46
},
{
"description": "Marketing services",
"quantity": 13,
"unitPrice": 303.8,
"lineTotal": 3949.4
},
{
"description": "Implementation services",
"quantity": 24,
"unitPrice": 197.38,
"lineTotal": 4737.12
},
{
"description": "Content writing",
"quantity": 12,
"unitPrice": 291.67,
"lineTotal": 3500.04
}
],
"createdAt": "2024-07-17T04:31:18.894Z"
}