example-data.com

invoices / #184

fromUserId
7
toUserId
85
invoiceNumber
INV-2025-0184
status
paid
issuedAt
dueAt
paidAt
subtotal
8413.38
tax
420.67
total
8834.05
currency
GBP
lineItems
[
  {
    "description": "Design work",
    "quantity": 10,
    "unitPrice": 138.02,
    "lineTotal": 1380.2
  },
  {
    "description": "Content writing",
    "quantity": 22,
    "unitPrice": 319.69,
    "lineTotal": 7033.18
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/184"
)
invoice = res.json()
{
  "id": 184,
  "fromUserId": 7,
  "toUserId": 85,
  "invoiceNumber": "INV-2025-0184",
  "status": "paid",
  "issuedAt": "2025-05-24T11:07:34.671Z",
  "dueAt": "2025-06-04T11:07:34.671Z",
  "paidAt": "2025-05-31T04:49:23.824Z",
  "subtotal": 8413.38,
  "tax": 420.67,
  "total": 8834.05,
  "currency": "GBP",
  "lineItems": [
    {
      "description": "Design work",
      "quantity": 10,
      "unitPrice": 138.02,
      "lineTotal": 1380.2
    },
    {
      "description": "Content writing",
      "quantity": 22,
      "unitPrice": 319.69,
      "lineTotal": 7033.18
    }
  ],
  "createdAt": "2025-05-23T15:25:39.661Z"
}
Draftbit