invoices / #23
- fromUserId
- 108
- toUserId
- 67
- invoiceNumber
- INV-2025-0023
- status
- cancelled
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 28532.81
- tax
- 2282.62
- total
- 30815.43
- currency
- CAD
- lineItems
-
[ { "description": "Implementation services", "quantity": 7, "unitPrice": 130.58, "lineTotal": 914.06 }, { "description": "Photography services", "quantity": 36, "unitPrice": 435.39, "lineTotal": 15674.04 }, { "description": "Maintenance contract", "quantity": 37, "unitPrice": 322.83, "lineTotal": 11944.71 } ] - createdAt
Component variants
Medium
#23
#23
Small
invoices/23 curl -sS \
"https://example-data.com/api/v1/invoices/23" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/23"
);
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/23"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/23"
)
invoice = res.json() {
"id": 23,
"fromUserId": 108,
"toUserId": 67,
"invoiceNumber": "INV-2025-0023",
"status": "cancelled",
"issuedAt": "2025-01-27T22:08:56.530Z",
"dueAt": "2025-03-17T22:08:56.530Z",
"paidAt": null,
"subtotal": 28532.81,
"tax": 2282.62,
"total": 30815.43,
"currency": "CAD",
"lineItems": [
{
"description": "Implementation services",
"quantity": 7,
"unitPrice": 130.58,
"lineTotal": 914.06
},
{
"description": "Photography services",
"quantity": 36,
"unitPrice": 435.39,
"lineTotal": 15674.04
},
{
"description": "Maintenance contract",
"quantity": 37,
"unitPrice": 322.83,
"lineTotal": 11944.71
}
],
"createdAt": "2025-01-27T06:08:03.289Z"
}