example-data.com

invoices / #132

fromUserId
25
toUserId
78
invoiceNumber
INV-2026-0132
status
paid
issuedAt
dueAt
paidAt
subtotal
17252.44
tax
2587.87
total
19840.31
currency
USD
lineItems
[
  {
    "description": "Research services",
    "quantity": 22,
    "unitPrice": 102.79,
    "lineTotal": 2261.38
  },
  {
    "description": "Photography services",
    "quantity": 30,
    "unitPrice": 141.94,
    "lineTotal": 4258.2
  },
  {
    "description": "Quality assurance",
    "quantity": 12,
    "unitPrice": 349.43,
    "lineTotal": 4193.16
  },
  {
    "description": "Consulting services",
    "quantity": 15,
    "unitPrice": 304.54,
    "lineTotal": 4568.1
  },
  {
    "description": "Hardware supply",
    "quantity": 4,
    "unitPrice": 492.9,
    "lineTotal": 1971.6
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/132"
)
invoice = res.json()
{
  "id": 132,
  "fromUserId": 25,
  "toUserId": 78,
  "invoiceNumber": "INV-2026-0132",
  "status": "paid",
  "issuedAt": "2026-01-18T13:58:36.165Z",
  "dueAt": "2026-03-17T13:58:36.165Z",
  "paidAt": "2026-02-16T20:35:20.760Z",
  "subtotal": 17252.44,
  "tax": 2587.87,
  "total": 19840.31,
  "currency": "USD",
  "lineItems": [
    {
      "description": "Research services",
      "quantity": 22,
      "unitPrice": 102.79,
      "lineTotal": 2261.38
    },
    {
      "description": "Photography services",
      "quantity": 30,
      "unitPrice": 141.94,
      "lineTotal": 4258.2
    },
    {
      "description": "Quality assurance",
      "quantity": 12,
      "unitPrice": 349.43,
      "lineTotal": 4193.16
    },
    {
      "description": "Consulting services",
      "quantity": 15,
      "unitPrice": 304.54,
      "lineTotal": 4568.1
    },
    {
      "description": "Hardware supply",
      "quantity": 4,
      "unitPrice": 492.9,
      "lineTotal": 1971.6
    }
  ],
  "createdAt": "2026-01-18T13:28:43.237Z"
}
Draftbit