example-data.com

invoices / #29

fromUserId
158
toUserId
105
invoiceNumber
INV-2025-0029
status
paid
issuedAt
dueAt
paidAt
subtotal
2449.62
tax
244.96
total
2694.58
currency
AUD
lineItems
[
  {
    "description": "Research services",
    "quantity": 14,
    "unitPrice": 159.36,
    "lineTotal": 2231.04
  },
  {
    "description": "Hardware supply",
    "quantity": 1,
    "unitPrice": 218.58,
    "lineTotal": 218.58
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/29"
)
invoice = res.json()
{
  "id": 29,
  "fromUserId": 158,
  "toUserId": 105,
  "invoiceNumber": "INV-2025-0029",
  "status": "paid",
  "issuedAt": "2025-10-27T09:54:53.262Z",
  "dueAt": "2025-11-22T09:54:53.262Z",
  "paidAt": "2025-10-31T02:59:32.563Z",
  "subtotal": 2449.62,
  "tax": 244.96,
  "total": 2694.58,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Research services",
      "quantity": 14,
      "unitPrice": 159.36,
      "lineTotal": 2231.04
    },
    {
      "description": "Hardware supply",
      "quantity": 1,
      "unitPrice": 218.58,
      "lineTotal": 218.58
    }
  ],
  "createdAt": "2025-10-27T09:28:45.601Z"
}
Draftbit