example-data.com

invoices / #197

fromUserId
115
toUserId
238
invoiceNumber
INV-2025-0197
status
overdue
issuedAt
dueAt
paidAt
subtotal
34521.88
tax
3452.19
total
37974.07
currency
USD
lineItems
[
  {
    "description": "Content writing",
    "quantity": 38,
    "unitPrice": 78.06,
    "lineTotal": 2966.28
  },
  {
    "description": "License fee",
    "quantity": 36,
    "unitPrice": 325.44,
    "lineTotal": 11715.84
  },
  {
    "description": "Accounting services",
    "quantity": 32,
    "unitPrice": 118.73,
    "lineTotal": 3799.36
  },
  {
    "description": "Maintenance contract",
    "quantity": 38,
    "unitPrice": 194.35,
    "lineTotal": 7385.3
  },
  {
    "description": "Design work",
    "quantity": 15,
    "unitPrice": 296.96,
    "lineTotal": 4454.4
  },
  {
    "description": "Consulting services",
    "quantity": 14,
    "unitPrice": 300.05,
    "lineTotal": 4200.7
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/197"
)
invoice = res.json()
{
  "id": 197,
  "fromUserId": 115,
  "toUserId": 238,
  "invoiceNumber": "INV-2025-0197",
  "status": "overdue",
  "issuedAt": "2025-09-15T07:11:17.104Z",
  "dueAt": "2025-10-26T07:11:17.104Z",
  "paidAt": null,
  "subtotal": 34521.88,
  "tax": 3452.19,
  "total": 37974.07,
  "currency": "USD",
  "lineItems": [
    {
      "description": "Content writing",
      "quantity": 38,
      "unitPrice": 78.06,
      "lineTotal": 2966.28
    },
    {
      "description": "License fee",
      "quantity": 36,
      "unitPrice": 325.44,
      "lineTotal": 11715.84
    },
    {
      "description": "Accounting services",
      "quantity": 32,
      "unitPrice": 118.73,
      "lineTotal": 3799.36
    },
    {
      "description": "Maintenance contract",
      "quantity": 38,
      "unitPrice": 194.35,
      "lineTotal": 7385.3
    },
    {
      "description": "Design work",
      "quantity": 15,
      "unitPrice": 296.96,
      "lineTotal": 4454.4
    },
    {
      "description": "Consulting services",
      "quantity": 14,
      "unitPrice": 300.05,
      "lineTotal": 4200.7
    }
  ],
  "createdAt": "2025-09-15T00:49:29.410Z"
}
Draftbit