invoices / #111
- fromUserId
- 182
- toUserId
- 201
- invoiceNumber
- INV-2026-0111
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 12682.24
- tax
- 1268.22
- total
- 13950.46
- currency
- AUD
- lineItems
-
[ { "description": "Implementation services", "quantity": 17, "unitPrice": 211.66, "lineTotal": 3598.22 }, { "description": "Data analysis", "quantity": 1, "unitPrice": 373.82, "lineTotal": 373.82 }, { "description": "License fee", "quantity": 36, "unitPrice": 241.95, "lineTotal": 8710.2 } ] - createdAt
Component variants
Medium
#111
#111
Small
invoices/111 curl -sS \
"https://example-data.com/api/v1/invoices/111" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/111"
);
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/111"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/111"
)
invoice = res.json() {
"id": 111,
"fromUserId": 182,
"toUserId": 201,
"invoiceNumber": "INV-2026-0111",
"status": "paid",
"issuedAt": "2026-02-23T19:01:11.829Z",
"dueAt": "2026-03-07T19:01:11.829Z",
"paidAt": "2026-02-28T19:48:15.042Z",
"subtotal": 12682.24,
"tax": 1268.22,
"total": 13950.46,
"currency": "AUD",
"lineItems": [
{
"description": "Implementation services",
"quantity": 17,
"unitPrice": 211.66,
"lineTotal": 3598.22
},
{
"description": "Data analysis",
"quantity": 1,
"unitPrice": 373.82,
"lineTotal": 373.82
},
{
"description": "License fee",
"quantity": 36,
"unitPrice": 241.95,
"lineTotal": 8710.2
}
],
"createdAt": "2026-02-23T17:45:24.267Z"
}