example-data.com

invoices / #237

fromUserId
209
toUserId
56
invoiceNumber
INV-2026-0237
status
sent
issuedAt
dueAt
paidAt
subtotal
17427.03
tax
3485.41
total
20912.44
currency
AUD
lineItems
[
  {
    "description": "Photography services",
    "quantity": 5,
    "unitPrice": 259.55,
    "lineTotal": 1297.75
  },
  {
    "description": "Research services",
    "quantity": 32,
    "unitPrice": 42.72,
    "lineTotal": 1367.04
  },
  {
    "description": "Photography services",
    "quantity": 8,
    "unitPrice": 44.81,
    "lineTotal": 358.48
  },
  {
    "description": "Hardware supply",
    "quantity": 7,
    "unitPrice": 450.84,
    "lineTotal": 3155.88
  },
  {
    "description": "Software development",
    "quantity": 28,
    "unitPrice": 401.71,
    "lineTotal": 11247.88
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/237"
)
invoice = res.json()
{
  "id": 237,
  "fromUserId": 209,
  "toUserId": 56,
  "invoiceNumber": "INV-2026-0237",
  "status": "sent",
  "issuedAt": "2026-01-08T03:06:47.174Z",
  "dueAt": "2026-02-24T03:06:47.174Z",
  "paidAt": null,
  "subtotal": 17427.03,
  "tax": 3485.41,
  "total": 20912.44,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Photography services",
      "quantity": 5,
      "unitPrice": 259.55,
      "lineTotal": 1297.75
    },
    {
      "description": "Research services",
      "quantity": 32,
      "unitPrice": 42.72,
      "lineTotal": 1367.04
    },
    {
      "description": "Photography services",
      "quantity": 8,
      "unitPrice": 44.81,
      "lineTotal": 358.48
    },
    {
      "description": "Hardware supply",
      "quantity": 7,
      "unitPrice": 450.84,
      "lineTotal": 3155.88
    },
    {
      "description": "Software development",
      "quantity": 28,
      "unitPrice": 401.71,
      "lineTotal": 11247.88
    }
  ],
  "createdAt": "2026-01-07T17:57:34.357Z"
}
Draftbit