example-data.com

invoices / #19

fromUserId
22
toUserId
24
invoiceNumber
INV-2026-0019
status
draft
issuedAt
dueAt
paidAt
subtotal
25343.81
tax
5068.76
total
30412.57
currency
AUD
lineItems
[
  {
    "description": "Documentation",
    "quantity": 39,
    "unitPrice": 216.31,
    "lineTotal": 8436.09
  },
  {
    "description": "Software development",
    "quantity": 9,
    "unitPrice": 87.91,
    "lineTotal": 791.19
  },
  {
    "description": "Photography services",
    "quantity": 19,
    "unitPrice": 316.33,
    "lineTotal": 6010.27
  },
  {
    "description": "Data analysis",
    "quantity": 25,
    "unitPrice": 282.39,
    "lineTotal": 7059.75
  },
  {
    "description": "Content writing",
    "quantity": 4,
    "unitPrice": 344.59,
    "lineTotal": 1378.36
  },
  {
    "description": "Quality assurance",
    "quantity": 5,
    "unitPrice": 333.63,
    "lineTotal": 1668.15
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/19"
)
invoice = res.json()
{
  "id": 19,
  "fromUserId": 22,
  "toUserId": 24,
  "invoiceNumber": "INV-2026-0019",
  "status": "draft",
  "issuedAt": "2026-04-22T09:54:06.679Z",
  "dueAt": "2026-05-10T09:54:06.679Z",
  "paidAt": null,
  "subtotal": 25343.81,
  "tax": 5068.76,
  "total": 30412.57,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Documentation",
      "quantity": 39,
      "unitPrice": 216.31,
      "lineTotal": 8436.09
    },
    {
      "description": "Software development",
      "quantity": 9,
      "unitPrice": 87.91,
      "lineTotal": 791.19
    },
    {
      "description": "Photography services",
      "quantity": 19,
      "unitPrice": 316.33,
      "lineTotal": 6010.27
    },
    {
      "description": "Data analysis",
      "quantity": 25,
      "unitPrice": 282.39,
      "lineTotal": 7059.75
    },
    {
      "description": "Content writing",
      "quantity": 4,
      "unitPrice": 344.59,
      "lineTotal": 1378.36
    },
    {
      "description": "Quality assurance",
      "quantity": 5,
      "unitPrice": 333.63,
      "lineTotal": 1668.15
    }
  ],
  "createdAt": "2026-04-22T07:26:29.259Z"
}
Draftbit