example-data.com

invoices / #114

fromUserId
238
toUserId
69
invoiceNumber
INV-2025-0114
status
paid
issuedAt
dueAt
paidAt
subtotal
30057.86
tax
6011.57
total
36069.43
currency
AUD
lineItems
[
  {
    "description": "Marketing services",
    "quantity": 36,
    "unitPrice": 242.96,
    "lineTotal": 8746.56
  },
  {
    "description": "Software development",
    "quantity": 15,
    "unitPrice": 231.59,
    "lineTotal": 3473.85
  },
  {
    "description": "Hardware supply",
    "quantity": 15,
    "unitPrice": 410.46,
    "lineTotal": 6156.9
  },
  {
    "description": "Consulting services",
    "quantity": 7,
    "unitPrice": 247.7,
    "lineTotal": 1733.9
  },
  {
    "description": "Software development",
    "quantity": 17,
    "unitPrice": 452.91,
    "lineTotal": 7699.47
  },
  {
    "description": "Maintenance contract",
    "quantity": 39,
    "unitPrice": 57.62,
    "lineTotal": 2247.18
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/114"
)
invoice = res.json()
{
  "id": 114,
  "fromUserId": 238,
  "toUserId": 69,
  "invoiceNumber": "INV-2025-0114",
  "status": "paid",
  "issuedAt": "2025-03-18T05:26:59.708Z",
  "dueAt": "2025-04-16T05:26:59.708Z",
  "paidAt": "2025-04-12T05:28:59.316Z",
  "subtotal": 30057.86,
  "tax": 6011.57,
  "total": 36069.43,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Marketing services",
      "quantity": 36,
      "unitPrice": 242.96,
      "lineTotal": 8746.56
    },
    {
      "description": "Software development",
      "quantity": 15,
      "unitPrice": 231.59,
      "lineTotal": 3473.85
    },
    {
      "description": "Hardware supply",
      "quantity": 15,
      "unitPrice": 410.46,
      "lineTotal": 6156.9
    },
    {
      "description": "Consulting services",
      "quantity": 7,
      "unitPrice": 247.7,
      "lineTotal": 1733.9
    },
    {
      "description": "Software development",
      "quantity": 17,
      "unitPrice": 452.91,
      "lineTotal": 7699.47
    },
    {
      "description": "Maintenance contract",
      "quantity": 39,
      "unitPrice": 57.62,
      "lineTotal": 2247.18
    }
  ],
  "createdAt": "2025-03-17T10:29:57.148Z"
}
Draftbit