example-data.com

invoices / #20

fromUserId
53
toUserId
213
invoiceNumber
INV-2026-0020
status
overdue
issuedAt
dueAt
paidAt
subtotal
35609.46
tax
0
total
35609.46
currency
USD
lineItems
[
  {
    "description": "Content writing",
    "quantity": 21,
    "unitPrice": 25.56,
    "lineTotal": 536.76
  },
  {
    "description": "Data analysis",
    "quantity": 21,
    "unitPrice": 426.4,
    "lineTotal": 8954.4
  },
  {
    "description": "Project management",
    "quantity": 4,
    "unitPrice": 195.47,
    "lineTotal": 781.88
  },
  {
    "description": "Project management",
    "quantity": 31,
    "unitPrice": 335.86,
    "lineTotal": 10411.66
  },
  {
    "description": "Quality assurance",
    "quantity": 38,
    "unitPrice": 349.42,
    "lineTotal": 13277.96
  },
  {
    "description": "Legal review",
    "quantity": 10,
    "unitPrice": 164.68,
    "lineTotal": 1646.8
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/20"
)
invoice = res.json()
{
  "id": 20,
  "fromUserId": 53,
  "toUserId": 213,
  "invoiceNumber": "INV-2026-0020",
  "status": "overdue",
  "issuedAt": "2026-04-21T09:46:54.663Z",
  "dueAt": "2026-06-19T09:46:54.663Z",
  "paidAt": null,
  "subtotal": 35609.46,
  "tax": 0,
  "total": 35609.46,
  "currency": "USD",
  "lineItems": [
    {
      "description": "Content writing",
      "quantity": 21,
      "unitPrice": 25.56,
      "lineTotal": 536.76
    },
    {
      "description": "Data analysis",
      "quantity": 21,
      "unitPrice": 426.4,
      "lineTotal": 8954.4
    },
    {
      "description": "Project management",
      "quantity": 4,
      "unitPrice": 195.47,
      "lineTotal": 781.88
    },
    {
      "description": "Project management",
      "quantity": 31,
      "unitPrice": 335.86,
      "lineTotal": 10411.66
    },
    {
      "description": "Quality assurance",
      "quantity": 38,
      "unitPrice": 349.42,
      "lineTotal": 13277.96
    },
    {
      "description": "Legal review",
      "quantity": 10,
      "unitPrice": 164.68,
      "lineTotal": 1646.8
    }
  ],
  "createdAt": "2026-04-21T07:22:57.366Z"
}
Draftbit