example-data.com

invoices / #182

fromUserId
121
toUserId
154
invoiceNumber
INV-2025-0182
status
sent
issuedAt
dueAt
paidAt
subtotal
14387.08
tax
1150.97
total
15538.05
currency
USD
lineItems
[
  {
    "description": "Marketing services",
    "quantity": 27,
    "unitPrice": 366.26,
    "lineTotal": 9889.02
  },
  {
    "description": "Training session",
    "quantity": 38,
    "unitPrice": 118.37,
    "lineTotal": 4498.06
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/182"
)
invoice = res.json()
{
  "id": 182,
  "fromUserId": 121,
  "toUserId": 154,
  "invoiceNumber": "INV-2025-0182",
  "status": "sent",
  "issuedAt": "2025-03-10T21:21:53.129Z",
  "dueAt": "2025-03-24T21:21:53.129Z",
  "paidAt": null,
  "subtotal": 14387.08,
  "tax": 1150.97,
  "total": 15538.05,
  "currency": "USD",
  "lineItems": [
    {
      "description": "Marketing services",
      "quantity": 27,
      "unitPrice": 366.26,
      "lineTotal": 9889.02
    },
    {
      "description": "Training session",
      "quantity": 38,
      "unitPrice": 118.37,
      "lineTotal": 4498.06
    }
  ],
  "createdAt": "2025-03-10T12:04:18.415Z"
}
Draftbit