invoices / #55
- fromUserId
- 204
- toUserId
- 150
- invoiceNumber
- INV-2024-0055
- status
- viewed
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 41637.96
- tax
- 3331.04
- total
- 44969
- currency
- EUR
- lineItems
-
[ { "description": "License fee", "quantity": 25, "unitPrice": 473.18, "lineTotal": 11829.5 }, { "description": "Software development", "quantity": 21, "unitPrice": 346.21, "lineTotal": 7270.41 }, { "description": "Design work", "quantity": 13, "unitPrice": 231.02, "lineTotal": 3003.26 }, { "description": "Data analysis", "quantity": 15, "unitPrice": 254.14, "lineTotal": 3812.1 }, { "description": "Legal review", "quantity": 15, "unitPrice": 240.35, "lineTotal": 3605.25 }, { "description": "Legal review", "quantity": 32, "unitPrice": 378.67, "lineTotal": 12117.44 } ] - createdAt
Component variants
Medium
#55
#55
Small
invoices/55 curl -sS \
"https://example-data.com/api/v1/invoices/55" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/55"
);
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/55"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/55"
)
invoice = res.json() {
"id": 55,
"fromUserId": 204,
"toUserId": 150,
"invoiceNumber": "INV-2024-0055",
"status": "viewed",
"issuedAt": "2024-10-08T20:13:20.186Z",
"dueAt": "2024-11-11T20:13:20.186Z",
"paidAt": null,
"subtotal": 41637.96,
"tax": 3331.04,
"total": 44969,
"currency": "EUR",
"lineItems": [
{
"description": "License fee",
"quantity": 25,
"unitPrice": 473.18,
"lineTotal": 11829.5
},
{
"description": "Software development",
"quantity": 21,
"unitPrice": 346.21,
"lineTotal": 7270.41
},
{
"description": "Design work",
"quantity": 13,
"unitPrice": 231.02,
"lineTotal": 3003.26
},
{
"description": "Data analysis",
"quantity": 15,
"unitPrice": 254.14,
"lineTotal": 3812.1
},
{
"description": "Legal review",
"quantity": 15,
"unitPrice": 240.35,
"lineTotal": 3605.25
},
{
"description": "Legal review",
"quantity": 32,
"unitPrice": 378.67,
"lineTotal": 12117.44
}
],
"createdAt": "2024-10-08T03:48:02.746Z"
}