example-data.com

invoices / #108

fromUserId
220
toUserId
200
invoiceNumber
INV-2026-0108
status
sent
issuedAt
dueAt
paidAt
subtotal
46076.9
tax
3686.15
total
49763.05
currency
AUD
lineItems
[
  {
    "description": "Photography services",
    "quantity": 8,
    "unitPrice": 357.04,
    "lineTotal": 2856.32
  },
  {
    "description": "Project management",
    "quantity": 25,
    "unitPrice": 391.48,
    "lineTotal": 9787
  },
  {
    "description": "Technical support",
    "quantity": 23,
    "unitPrice": 295.66,
    "lineTotal": 6800.18
  },
  {
    "description": "Maintenance contract",
    "quantity": 36,
    "unitPrice": 353.63,
    "lineTotal": 12730.68
  },
  {
    "description": "Maintenance contract",
    "quantity": 32,
    "unitPrice": 434.46,
    "lineTotal": 13902.72
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/108"
)
invoice = res.json()
{
  "id": 108,
  "fromUserId": 220,
  "toUserId": 200,
  "invoiceNumber": "INV-2026-0108",
  "status": "sent",
  "issuedAt": "2026-01-24T14:34:01.752Z",
  "dueAt": "2026-02-18T14:34:01.752Z",
  "paidAt": null,
  "subtotal": 46076.9,
  "tax": 3686.15,
  "total": 49763.05,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Photography services",
      "quantity": 8,
      "unitPrice": 357.04,
      "lineTotal": 2856.32
    },
    {
      "description": "Project management",
      "quantity": 25,
      "unitPrice": 391.48,
      "lineTotal": 9787
    },
    {
      "description": "Technical support",
      "quantity": 23,
      "unitPrice": 295.66,
      "lineTotal": 6800.18
    },
    {
      "description": "Maintenance contract",
      "quantity": 36,
      "unitPrice": 353.63,
      "lineTotal": 12730.68
    },
    {
      "description": "Maintenance contract",
      "quantity": 32,
      "unitPrice": 434.46,
      "lineTotal": 13902.72
    }
  ],
  "createdAt": "2026-01-24T11:51:19.049Z"
}
Draftbit