example-data.com

invoices / #209

fromUserId
225
toUserId
168
invoiceNumber
INV-2025-0209
status
sent
issuedAt
dueAt
paidAt
subtotal
16837.38
tax
1683.74
total
18521.12
currency
GBP
lineItems
[
  {
    "description": "Accounting services",
    "quantity": 11,
    "unitPrice": 229.95,
    "lineTotal": 2529.45
  },
  {
    "description": "Quality assurance",
    "quantity": 3,
    "unitPrice": 68.71,
    "lineTotal": 206.13
  },
  {
    "description": "Project management",
    "quantity": 30,
    "unitPrice": 470.06,
    "lineTotal": 14101.8
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/209"
)
invoice = res.json()
{
  "id": 209,
  "fromUserId": 225,
  "toUserId": 168,
  "invoiceNumber": "INV-2025-0209",
  "status": "sent",
  "issuedAt": "2025-10-23T00:20:56.842Z",
  "dueAt": "2025-11-20T00:20:56.842Z",
  "paidAt": null,
  "subtotal": 16837.38,
  "tax": 1683.74,
  "total": 18521.12,
  "currency": "GBP",
  "lineItems": [
    {
      "description": "Accounting services",
      "quantity": 11,
      "unitPrice": 229.95,
      "lineTotal": 2529.45
    },
    {
      "description": "Quality assurance",
      "quantity": 3,
      "unitPrice": 68.71,
      "lineTotal": 206.13
    },
    {
      "description": "Project management",
      "quantity": 30,
      "unitPrice": 470.06,
      "lineTotal": 14101.8
    }
  ],
  "createdAt": "2025-10-22T19:19:45.330Z"
}
Draftbit