example-data.com

invoices / #164

fromUserId
81
toUserId
233
invoiceNumber
INV-2025-0164
status
paid
issuedAt
dueAt
paidAt
subtotal
1232.62
tax
0
total
1232.62
currency
EUR
lineItems
[
  {
    "description": "Technical support",
    "quantity": 4,
    "unitPrice": 225.9,
    "lineTotal": 903.6
  },
  {
    "description": "Training session",
    "quantity": 1,
    "unitPrice": 329.02,
    "lineTotal": 329.02
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/164"
)
invoice = res.json()
{
  "id": 164,
  "fromUserId": 81,
  "toUserId": 233,
  "invoiceNumber": "INV-2025-0164",
  "status": "paid",
  "issuedAt": "2025-01-12T13:47:19.581Z",
  "dueAt": "2025-02-17T13:47:19.581Z",
  "paidAt": "2025-01-14T23:24:16.103Z",
  "subtotal": 1232.62,
  "tax": 0,
  "total": 1232.62,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Technical support",
      "quantity": 4,
      "unitPrice": 225.9,
      "lineTotal": 903.6
    },
    {
      "description": "Training session",
      "quantity": 1,
      "unitPrice": 329.02,
      "lineTotal": 329.02
    }
  ],
  "createdAt": "2025-01-11T23:34:49.168Z"
}
Draftbit