example-data.com

invoices / #145

fromUserId
63
toUserId
4
invoiceNumber
INV-2025-0145
status
paid
issuedAt
dueAt
paidAt
subtotal
16411.95
tax
0
total
16411.95
currency
GBP
lineItems
[
  {
    "description": "Software development",
    "quantity": 23,
    "unitPrice": 228.83,
    "lineTotal": 5263.09
  },
  {
    "description": "Research services",
    "quantity": 11,
    "unitPrice": 166.66,
    "lineTotal": 1833.26
  },
  {
    "description": "Photography services",
    "quantity": 30,
    "unitPrice": 310.52,
    "lineTotal": 9315.6
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/145"
)
invoice = res.json()
{
  "id": 145,
  "fromUserId": 63,
  "toUserId": 4,
  "invoiceNumber": "INV-2025-0145",
  "status": "paid",
  "issuedAt": "2025-10-22T05:28:39.189Z",
  "dueAt": "2025-11-13T05:28:39.189Z",
  "paidAt": "2025-11-02T18:40:22.864Z",
  "subtotal": 16411.95,
  "tax": 0,
  "total": 16411.95,
  "currency": "GBP",
  "lineItems": [
    {
      "description": "Software development",
      "quantity": 23,
      "unitPrice": 228.83,
      "lineTotal": 5263.09
    },
    {
      "description": "Research services",
      "quantity": 11,
      "unitPrice": 166.66,
      "lineTotal": 1833.26
    },
    {
      "description": "Photography services",
      "quantity": 30,
      "unitPrice": 310.52,
      "lineTotal": 9315.6
    }
  ],
  "createdAt": "2025-10-21T13:15:47.123Z"
}
Draftbit