example-data.com

invoices / #68

fromUserId
4
toUserId
30
invoiceNumber
INV-2026-0068
status
overdue
issuedAt
dueAt
paidAt
subtotal
3796.36
tax
189.82
total
3986.18
currency
USD
lineItems
[
  {
    "description": "Training session",
    "quantity": 9,
    "unitPrice": 44.37,
    "lineTotal": 399.33
  },
  {
    "description": "Marketing services",
    "quantity": 7,
    "unitPrice": 485.29,
    "lineTotal": 3397.03
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/68"
)
invoice = res.json()
{
  "id": 68,
  "fromUserId": 4,
  "toUserId": 30,
  "invoiceNumber": "INV-2026-0068",
  "status": "overdue",
  "issuedAt": "2026-01-20T17:03:05.137Z",
  "dueAt": "2026-02-17T17:03:05.137Z",
  "paidAt": null,
  "subtotal": 3796.36,
  "tax": 189.82,
  "total": 3986.18,
  "currency": "USD",
  "lineItems": [
    {
      "description": "Training session",
      "quantity": 9,
      "unitPrice": 44.37,
      "lineTotal": 399.33
    },
    {
      "description": "Marketing services",
      "quantity": 7,
      "unitPrice": 485.29,
      "lineTotal": 3397.03
    }
  ],
  "createdAt": "2026-01-20T06:00:14.826Z"
}
Draftbit