example-data.com

invoices / #14

fromUserId
52
toUserId
85
invoiceNumber
INV-2025-0014
status
paid
issuedAt
dueAt
paidAt
subtotal
24646.47
tax
4929.29
total
29575.76
currency
GBP
lineItems
[
  {
    "description": "Quality assurance",
    "quantity": 16,
    "unitPrice": 93.21,
    "lineTotal": 1491.36
  },
  {
    "description": "Research services",
    "quantity": 21,
    "unitPrice": 472.01,
    "lineTotal": 9912.21
  },
  {
    "description": "Marketing services",
    "quantity": 14,
    "unitPrice": 108.99,
    "lineTotal": 1525.86
  },
  {
    "description": "Design work",
    "quantity": 24,
    "unitPrice": 488.21,
    "lineTotal": 11717.04
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/14"
)
invoice = res.json()
{
  "id": 14,
  "fromUserId": 52,
  "toUserId": 85,
  "invoiceNumber": "INV-2025-0014",
  "status": "paid",
  "issuedAt": "2025-08-29T05:20:41.102Z",
  "dueAt": "2025-09-21T05:20:41.102Z",
  "paidAt": "2025-08-30T04:16:51.019Z",
  "subtotal": 24646.47,
  "tax": 4929.29,
  "total": 29575.76,
  "currency": "GBP",
  "lineItems": [
    {
      "description": "Quality assurance",
      "quantity": 16,
      "unitPrice": 93.21,
      "lineTotal": 1491.36
    },
    {
      "description": "Research services",
      "quantity": 21,
      "unitPrice": 472.01,
      "lineTotal": 9912.21
    },
    {
      "description": "Marketing services",
      "quantity": 14,
      "unitPrice": 108.99,
      "lineTotal": 1525.86
    },
    {
      "description": "Design work",
      "quantity": 24,
      "unitPrice": 488.21,
      "lineTotal": 11717.04
    }
  ],
  "createdAt": "2025-08-28T06:26:24.407Z"
}
Draftbit