example-data.com

invoices / #239

fromUserId
155
toUserId
213
invoiceNumber
INV-2025-0239
status
viewed
issuedAt
dueAt
paidAt
subtotal
7952.46
tax
1192.87
total
9145.33
currency
AUD
lineItems
[
  {
    "description": "Content writing",
    "quantity": 7,
    "unitPrice": 43.28,
    "lineTotal": 302.96
  },
  {
    "description": "Hardware supply",
    "quantity": 26,
    "unitPrice": 229.87,
    "lineTotal": 5976.62
  },
  {
    "description": "Research services",
    "quantity": 11,
    "unitPrice": 152.08,
    "lineTotal": 1672.88
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/239"
)
invoice = res.json()
{
  "id": 239,
  "fromUserId": 155,
  "toUserId": 213,
  "invoiceNumber": "INV-2025-0239",
  "status": "viewed",
  "issuedAt": "2025-09-01T22:31:15.882Z",
  "dueAt": "2025-10-22T22:31:15.882Z",
  "paidAt": null,
  "subtotal": 7952.46,
  "tax": 1192.87,
  "total": 9145.33,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Content writing",
      "quantity": 7,
      "unitPrice": 43.28,
      "lineTotal": 302.96
    },
    {
      "description": "Hardware supply",
      "quantity": 26,
      "unitPrice": 229.87,
      "lineTotal": 5976.62
    },
    {
      "description": "Research services",
      "quantity": 11,
      "unitPrice": 152.08,
      "lineTotal": 1672.88
    }
  ],
  "createdAt": "2025-09-01T03:19:49.010Z"
}
Draftbit