example-data.com

invoices / #210

fromUserId
205
toUserId
154
invoiceNumber
INV-2026-0210
status
paid
issuedAt
dueAt
paidAt
subtotal
29380.66
tax
4407.1
total
33787.76
currency
CAD
lineItems
[
  {
    "description": "Implementation services",
    "quantity": 40,
    "unitPrice": 415.85,
    "lineTotal": 16634
  },
  {
    "description": "Content writing",
    "quantity": 29,
    "unitPrice": 439.54,
    "lineTotal": 12746.66
  }
]
createdAt

Component variants

curl -sS \
  "https://example-data.com/api/v1/invoices/210" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/invoices/210"
);
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/210"
);
const invoice = (await res.json()) as Invoice;
import requests

res = requests.get(
    "https://example-data.com/api/v1/invoices/210"
)
invoice = res.json()
{
  "id": 210,
  "fromUserId": 205,
  "toUserId": 154,
  "invoiceNumber": "INV-2026-0210",
  "status": "paid",
  "issuedAt": "2026-02-18T02:21:59.633Z",
  "dueAt": "2026-03-03T02:21:59.633Z",
  "paidAt": "2026-02-19T03:28:16.622Z",
  "subtotal": 29380.66,
  "tax": 4407.1,
  "total": 33787.76,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Implementation services",
      "quantity": 40,
      "unitPrice": 415.85,
      "lineTotal": 16634
    },
    {
      "description": "Content writing",
      "quantity": 29,
      "unitPrice": 439.54,
      "lineTotal": 12746.66
    }
  ],
  "createdAt": "2026-02-17T02:44:33.059Z"
}
Draftbit