example-data.com

invoices / #235

fromUserId
175
toUserId
76
invoiceNumber
INV-2026-0235
status
paid
issuedAt
dueAt
paidAt
subtotal
24575.93
tax
0
total
24575.93
currency
CAD
lineItems
[
  {
    "description": "Maintenance contract",
    "quantity": 27,
    "unitPrice": 173.69,
    "lineTotal": 4689.63
  },
  {
    "description": "Content writing",
    "quantity": 15,
    "unitPrice": 303.03,
    "lineTotal": 4545.45
  },
  {
    "description": "Project management",
    "quantity": 34,
    "unitPrice": 383.04,
    "lineTotal": 13023.36
  },
  {
    "description": "Data analysis",
    "quantity": 7,
    "unitPrice": 331.07,
    "lineTotal": 2317.49
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/235"
)
invoice = res.json()
{
  "id": 235,
  "fromUserId": 175,
  "toUserId": 76,
  "invoiceNumber": "INV-2026-0235",
  "status": "paid",
  "issuedAt": "2026-04-01T10:40:55.384Z",
  "dueAt": "2026-04-13T10:40:55.384Z",
  "paidAt": "2026-04-11T08:35:16.038Z",
  "subtotal": 24575.93,
  "tax": 0,
  "total": 24575.93,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Maintenance contract",
      "quantity": 27,
      "unitPrice": 173.69,
      "lineTotal": 4689.63
    },
    {
      "description": "Content writing",
      "quantity": 15,
      "unitPrice": 303.03,
      "lineTotal": 4545.45
    },
    {
      "description": "Project management",
      "quantity": 34,
      "unitPrice": 383.04,
      "lineTotal": 13023.36
    },
    {
      "description": "Data analysis",
      "quantity": 7,
      "unitPrice": 331.07,
      "lineTotal": 2317.49
    }
  ],
  "createdAt": "2026-04-01T06:22:06.766Z"
}
Draftbit