example-data.com

invoices / #59

fromUserId
187
toUserId
65
invoiceNumber
INV-2026-0059
status
overdue
issuedAt
dueAt
paidAt
subtotal
8586.99
tax
1717.4
total
10304.39
currency
AUD
lineItems
[
  {
    "description": "Technical support",
    "quantity": 11,
    "unitPrice": 394.49,
    "lineTotal": 4339.39
  },
  {
    "description": "Software development",
    "quantity": 10,
    "unitPrice": 424.76,
    "lineTotal": 4247.6
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/59"
)
invoice = res.json()
{
  "id": 59,
  "fromUserId": 187,
  "toUserId": 65,
  "invoiceNumber": "INV-2026-0059",
  "status": "overdue",
  "issuedAt": "2026-03-02T07:16:09.732Z",
  "dueAt": "2026-04-13T07:16:09.732Z",
  "paidAt": null,
  "subtotal": 8586.99,
  "tax": 1717.4,
  "total": 10304.39,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Technical support",
      "quantity": 11,
      "unitPrice": 394.49,
      "lineTotal": 4339.39
    },
    {
      "description": "Software development",
      "quantity": 10,
      "unitPrice": 424.76,
      "lineTotal": 4247.6
    }
  ],
  "createdAt": "2026-03-02T00:38:54.190Z"
}
Draftbit