example-data.com

invoices / #154

fromUserId
94
toUserId
52
invoiceNumber
INV-2025-0154
status
sent
issuedAt
dueAt
paidAt
subtotal
5288.57
tax
793.29
total
6081.86
currency
USD
lineItems
[
  {
    "description": "System integration",
    "quantity": 11,
    "unitPrice": 284.47,
    "lineTotal": 3129.17
  },
  {
    "description": "Consulting services",
    "quantity": 10,
    "unitPrice": 149.72,
    "lineTotal": 1497.2
  },
  {
    "description": "Implementation services",
    "quantity": 14,
    "unitPrice": 47.3,
    "lineTotal": 662.2
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/154"
)
invoice = res.json()
{
  "id": 154,
  "fromUserId": 94,
  "toUserId": 52,
  "invoiceNumber": "INV-2025-0154",
  "status": "sent",
  "issuedAt": "2025-06-26T18:57:27.370Z",
  "dueAt": "2025-07-03T18:57:27.370Z",
  "paidAt": null,
  "subtotal": 5288.57,
  "tax": 793.29,
  "total": 6081.86,
  "currency": "USD",
  "lineItems": [
    {
      "description": "System integration",
      "quantity": 11,
      "unitPrice": 284.47,
      "lineTotal": 3129.17
    },
    {
      "description": "Consulting services",
      "quantity": 10,
      "unitPrice": 149.72,
      "lineTotal": 1497.2
    },
    {
      "description": "Implementation services",
      "quantity": 14,
      "unitPrice": 47.3,
      "lineTotal": 662.2
    }
  ],
  "createdAt": "2025-06-26T09:38:47.742Z"
}
Draftbit