example-data.com

invoices / #41

fromUserId
43
toUserId
180
invoiceNumber
INV-2025-0041
status
paid
issuedAt
dueAt
paidAt
subtotal
37885.15
tax
0
total
37885.15
currency
GBP
lineItems
[
  {
    "description": "Technical support",
    "quantity": 32,
    "unitPrice": 182.03,
    "lineTotal": 5824.96
  },
  {
    "description": "Maintenance contract",
    "quantity": 36,
    "unitPrice": 474.58,
    "lineTotal": 17084.88
  },
  {
    "description": "Accounting services",
    "quantity": 30,
    "unitPrice": 111.07,
    "lineTotal": 3332.1
  },
  {
    "description": "Project management",
    "quantity": 3,
    "unitPrice": 351.79,
    "lineTotal": 1055.37
  },
  {
    "description": "Data analysis",
    "quantity": 38,
    "unitPrice": 232.59,
    "lineTotal": 8838.42
  },
  {
    "description": "Technical support",
    "quantity": 9,
    "unitPrice": 194.38,
    "lineTotal": 1749.42
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/41"
)
invoice = res.json()
{
  "id": 41,
  "fromUserId": 43,
  "toUserId": 180,
  "invoiceNumber": "INV-2025-0041",
  "status": "paid",
  "issuedAt": "2025-12-20T10:41:50.817Z",
  "dueAt": "2026-01-29T10:41:50.817Z",
  "paidAt": "2026-01-15T04:14:24.558Z",
  "subtotal": 37885.15,
  "tax": 0,
  "total": 37885.15,
  "currency": "GBP",
  "lineItems": [
    {
      "description": "Technical support",
      "quantity": 32,
      "unitPrice": 182.03,
      "lineTotal": 5824.96
    },
    {
      "description": "Maintenance contract",
      "quantity": 36,
      "unitPrice": 474.58,
      "lineTotal": 17084.88
    },
    {
      "description": "Accounting services",
      "quantity": 30,
      "unitPrice": 111.07,
      "lineTotal": 3332.1
    },
    {
      "description": "Project management",
      "quantity": 3,
      "unitPrice": 351.79,
      "lineTotal": 1055.37
    },
    {
      "description": "Data analysis",
      "quantity": 38,
      "unitPrice": 232.59,
      "lineTotal": 8838.42
    },
    {
      "description": "Technical support",
      "quantity": 9,
      "unitPrice": 194.38,
      "lineTotal": 1749.42
    }
  ],
  "createdAt": "2025-12-20T07:21:05.178Z"
}
Draftbit