example-data.com

invoices / #204

fromUserId
22
toUserId
204
invoiceNumber
INV-2026-0204
status
paid
issuedAt
dueAt
paidAt
subtotal
27497.41
tax
2199.79
total
29697.2
currency
GBP
lineItems
[
  {
    "description": "Training session",
    "quantity": 39,
    "unitPrice": 393.79,
    "lineTotal": 15357.81
  },
  {
    "description": "Research services",
    "quantity": 20,
    "unitPrice": 496.31,
    "lineTotal": 9926.2
  },
  {
    "description": "System integration",
    "quantity": 20,
    "unitPrice": 110.67,
    "lineTotal": 2213.4
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/204"
)
invoice = res.json()
{
  "id": 204,
  "fromUserId": 22,
  "toUserId": 204,
  "invoiceNumber": "INV-2026-0204",
  "status": "paid",
  "issuedAt": "2026-03-09T14:12:44.858Z",
  "dueAt": "2026-03-28T14:12:44.858Z",
  "paidAt": "2026-03-12T02:34:08.229Z",
  "subtotal": 27497.41,
  "tax": 2199.79,
  "total": 29697.2,
  "currency": "GBP",
  "lineItems": [
    {
      "description": "Training session",
      "quantity": 39,
      "unitPrice": 393.79,
      "lineTotal": 15357.81
    },
    {
      "description": "Research services",
      "quantity": 20,
      "unitPrice": 496.31,
      "lineTotal": 9926.2
    },
    {
      "description": "System integration",
      "quantity": 20,
      "unitPrice": 110.67,
      "lineTotal": 2213.4
    }
  ],
  "createdAt": "2026-03-08T17:36:51.807Z"
}
Draftbit