example-data.com

invoices / #58

fromUserId
223
toUserId
232
invoiceNumber
INV-2026-0058
status
paid
issuedAt
dueAt
paidAt
subtotal
29569.59
tax
2956.96
total
32526.55
currency
EUR
lineItems
[
  {
    "description": "Accounting services",
    "quantity": 33,
    "unitPrice": 292.07,
    "lineTotal": 9638.31
  },
  {
    "description": "Data analysis",
    "quantity": 27,
    "unitPrice": 487.44,
    "lineTotal": 13160.88
  },
  {
    "description": "Implementation services",
    "quantity": 24,
    "unitPrice": 282.1,
    "lineTotal": 6770.4
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/58"
)
invoice = res.json()
{
  "id": 58,
  "fromUserId": 223,
  "toUserId": 232,
  "invoiceNumber": "INV-2026-0058",
  "status": "paid",
  "issuedAt": "2026-01-03T09:23:50.506Z",
  "dueAt": "2026-01-11T09:23:50.506Z",
  "paidAt": "2026-01-08T18:02:01.754Z",
  "subtotal": 29569.59,
  "tax": 2956.96,
  "total": 32526.55,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Accounting services",
      "quantity": 33,
      "unitPrice": 292.07,
      "lineTotal": 9638.31
    },
    {
      "description": "Data analysis",
      "quantity": 27,
      "unitPrice": 487.44,
      "lineTotal": 13160.88
    },
    {
      "description": "Implementation services",
      "quantity": 24,
      "unitPrice": 282.1,
      "lineTotal": 6770.4
    }
  ],
  "createdAt": "2026-01-03T07:39:34.232Z"
}
Draftbit