example-data.com

invoices / #109

fromUserId
156
toUserId
245
invoiceNumber
INV-2026-0109
status
paid
issuedAt
dueAt
paidAt
subtotal
22732.51
tax
1136.63
total
23869.14
currency
CAD
lineItems
[
  {
    "description": "Implementation services",
    "quantity": 33,
    "unitPrice": 387.54,
    "lineTotal": 12788.82
  },
  {
    "description": "Technical support",
    "quantity": 5,
    "unitPrice": 374.85,
    "lineTotal": 1874.25
  },
  {
    "description": "Data analysis",
    "quantity": 15,
    "unitPrice": 354.88,
    "lineTotal": 5323.2
  },
  {
    "description": "Implementation services",
    "quantity": 28,
    "unitPrice": 98.08,
    "lineTotal": 2746.24
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/109"
)
invoice = res.json()
{
  "id": 109,
  "fromUserId": 156,
  "toUserId": 245,
  "invoiceNumber": "INV-2026-0109",
  "status": "paid",
  "issuedAt": "2026-02-21T22:46:57.122Z",
  "dueAt": "2026-02-28T22:46:57.122Z",
  "paidAt": "2026-02-28T12:11:01.721Z",
  "subtotal": 22732.51,
  "tax": 1136.63,
  "total": 23869.14,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Implementation services",
      "quantity": 33,
      "unitPrice": 387.54,
      "lineTotal": 12788.82
    },
    {
      "description": "Technical support",
      "quantity": 5,
      "unitPrice": 374.85,
      "lineTotal": 1874.25
    },
    {
      "description": "Data analysis",
      "quantity": 15,
      "unitPrice": 354.88,
      "lineTotal": 5323.2
    },
    {
      "description": "Implementation services",
      "quantity": 28,
      "unitPrice": 98.08,
      "lineTotal": 2746.24
    }
  ],
  "createdAt": "2026-02-21T09:29:32.205Z"
}
Draftbit