example-data.com

invoices / #10

fromUserId
210
toUserId
176
invoiceNumber
INV-2026-0010
status
paid
issuedAt
dueAt
paidAt
subtotal
29111.98
tax
2328.96
total
31440.94
currency
EUR
lineItems
[
  {
    "description": "Technical support",
    "quantity": 20,
    "unitPrice": 492.27,
    "lineTotal": 9845.4
  },
  {
    "description": "Project management",
    "quantity": 2,
    "unitPrice": 419.3,
    "lineTotal": 838.6
  },
  {
    "description": "Training session",
    "quantity": 23,
    "unitPrice": 353.55,
    "lineTotal": 8131.65
  },
  {
    "description": "Documentation",
    "quantity": 22,
    "unitPrice": 39.61,
    "lineTotal": 871.42
  },
  {
    "description": "Technical support",
    "quantity": 16,
    "unitPrice": 486.17,
    "lineTotal": 7778.72
  },
  {
    "description": "Quality assurance",
    "quantity": 21,
    "unitPrice": 78.39,
    "lineTotal": 1646.19
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/10"
)
invoice = res.json()
{
  "id": 10,
  "fromUserId": 210,
  "toUserId": 176,
  "invoiceNumber": "INV-2026-0010",
  "status": "paid",
  "issuedAt": "2026-04-02T13:19:21.579Z",
  "dueAt": "2026-05-18T13:19:21.579Z",
  "paidAt": "2026-04-04T03:48:58.610Z",
  "subtotal": 29111.98,
  "tax": 2328.96,
  "total": 31440.94,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Technical support",
      "quantity": 20,
      "unitPrice": 492.27,
      "lineTotal": 9845.4
    },
    {
      "description": "Project management",
      "quantity": 2,
      "unitPrice": 419.3,
      "lineTotal": 838.6
    },
    {
      "description": "Training session",
      "quantity": 23,
      "unitPrice": 353.55,
      "lineTotal": 8131.65
    },
    {
      "description": "Documentation",
      "quantity": 22,
      "unitPrice": 39.61,
      "lineTotal": 871.42
    },
    {
      "description": "Technical support",
      "quantity": 16,
      "unitPrice": 486.17,
      "lineTotal": 7778.72
    },
    {
      "description": "Quality assurance",
      "quantity": 21,
      "unitPrice": 78.39,
      "lineTotal": 1646.19
    }
  ],
  "createdAt": "2026-04-02T03:06:09.711Z"
}
Draftbit