example-data.com

invoices / #51

fromUserId
164
toUserId
210
invoiceNumber
INV-2025-0051
status
sent
issuedAt
dueAt
paidAt
subtotal
25101.51
tax
0
total
25101.51
currency
EUR
lineItems
[
  {
    "description": "Documentation",
    "quantity": 4,
    "unitPrice": 199.11,
    "lineTotal": 796.44
  },
  {
    "description": "License fee",
    "quantity": 15,
    "unitPrice": 389.2,
    "lineTotal": 5838
  },
  {
    "description": "Data analysis",
    "quantity": 29,
    "unitPrice": 486.39,
    "lineTotal": 14105.31
  },
  {
    "description": "Project management",
    "quantity": 9,
    "unitPrice": 484.64,
    "lineTotal": 4361.76
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/51"
)
invoice = res.json()
{
  "id": 51,
  "fromUserId": 164,
  "toUserId": 210,
  "invoiceNumber": "INV-2025-0051",
  "status": "sent",
  "issuedAt": "2025-06-19T04:05:01.177Z",
  "dueAt": "2025-07-30T04:05:01.177Z",
  "paidAt": null,
  "subtotal": 25101.51,
  "tax": 0,
  "total": 25101.51,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Documentation",
      "quantity": 4,
      "unitPrice": 199.11,
      "lineTotal": 796.44
    },
    {
      "description": "License fee",
      "quantity": 15,
      "unitPrice": 389.2,
      "lineTotal": 5838
    },
    {
      "description": "Data analysis",
      "quantity": 29,
      "unitPrice": 486.39,
      "lineTotal": 14105.31
    },
    {
      "description": "Project management",
      "quantity": 9,
      "unitPrice": 484.64,
      "lineTotal": 4361.76
    }
  ],
  "createdAt": "2025-06-19T03:40:11.440Z"
}
Draftbit