example-data.com

invoices / #196

fromUserId
192
toUserId
166
invoiceNumber
INV-2025-0196
status
paid
issuedAt
dueAt
paidAt
subtotal
6784.29
tax
339.21
total
7123.5
currency
USD
lineItems
[
  {
    "description": "Quality assurance",
    "quantity": 36,
    "unitPrice": 157.18,
    "lineTotal": 5658.48
  },
  {
    "description": "Maintenance contract",
    "quantity": 7,
    "unitPrice": 160.83,
    "lineTotal": 1125.81
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/196"
)
invoice = res.json()
{
  "id": 196,
  "fromUserId": 192,
  "toUserId": 166,
  "invoiceNumber": "INV-2025-0196",
  "status": "paid",
  "issuedAt": "2025-11-21T13:17:59.516Z",
  "dueAt": "2026-01-14T13:17:59.516Z",
  "paidAt": "2026-01-06T16:02:22.035Z",
  "subtotal": 6784.29,
  "tax": 339.21,
  "total": 7123.5,
  "currency": "USD",
  "lineItems": [
    {
      "description": "Quality assurance",
      "quantity": 36,
      "unitPrice": 157.18,
      "lineTotal": 5658.48
    },
    {
      "description": "Maintenance contract",
      "quantity": 7,
      "unitPrice": 160.83,
      "lineTotal": 1125.81
    }
  ],
  "createdAt": "2025-11-20T20:42:45.838Z"
}
Draftbit