example-data.com

invoices / #178

fromUserId
249
toUserId
63
invoiceNumber
INV-2025-0178
status
overdue
issuedAt
dueAt
paidAt
subtotal
27958.22
tax
1397.91
total
29356.13
currency
CAD
lineItems
[
  {
    "description": "System integration",
    "quantity": 22,
    "unitPrice": 447.49,
    "lineTotal": 9844.78
  },
  {
    "description": "Data analysis",
    "quantity": 40,
    "unitPrice": 331.16,
    "lineTotal": 13246.4
  },
  {
    "description": "License fee",
    "quantity": 38,
    "unitPrice": 128.08,
    "lineTotal": 4867.04
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/178"
)
invoice = res.json()
{
  "id": 178,
  "fromUserId": 249,
  "toUserId": 63,
  "invoiceNumber": "INV-2025-0178",
  "status": "overdue",
  "issuedAt": "2025-09-29T00:43:11.858Z",
  "dueAt": "2025-10-16T00:43:11.858Z",
  "paidAt": null,
  "subtotal": 27958.22,
  "tax": 1397.91,
  "total": 29356.13,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "System integration",
      "quantity": 22,
      "unitPrice": 447.49,
      "lineTotal": 9844.78
    },
    {
      "description": "Data analysis",
      "quantity": 40,
      "unitPrice": 331.16,
      "lineTotal": 13246.4
    },
    {
      "description": "License fee",
      "quantity": 38,
      "unitPrice": 128.08,
      "lineTotal": 4867.04
    }
  ],
  "createdAt": "2025-09-28T03:32:29.404Z"
}
Draftbit