example-data.com

invoices / #6

fromUserId
152
toUserId
7
invoiceNumber
INV-2025-0006
status
paid
issuedAt
dueAt
paidAt
subtotal
35582.57
tax
2846.61
total
38429.18
currency
CAD
lineItems
[
  {
    "description": "Software development",
    "quantity": 6,
    "unitPrice": 166.81,
    "lineTotal": 1000.86
  },
  {
    "description": "Documentation",
    "quantity": 39,
    "unitPrice": 498.41,
    "lineTotal": 19437.99
  },
  {
    "description": "System integration",
    "quantity": 9,
    "unitPrice": 403.34,
    "lineTotal": 3630.06
  },
  {
    "description": "Consulting services",
    "quantity": 20,
    "unitPrice": 460.48,
    "lineTotal": 9209.6
  },
  {
    "description": "Research services",
    "quantity": 22,
    "unitPrice": 104.73,
    "lineTotal": 2304.06
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/6"
)
invoice = res.json()
{
  "id": 6,
  "fromUserId": 152,
  "toUserId": 7,
  "invoiceNumber": "INV-2025-0006",
  "status": "paid",
  "issuedAt": "2025-10-01T13:01:06.484Z",
  "dueAt": "2025-10-30T13:01:06.484Z",
  "paidAt": "2025-10-24T12:10:58.064Z",
  "subtotal": 35582.57,
  "tax": 2846.61,
  "total": 38429.18,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Software development",
      "quantity": 6,
      "unitPrice": 166.81,
      "lineTotal": 1000.86
    },
    {
      "description": "Documentation",
      "quantity": 39,
      "unitPrice": 498.41,
      "lineTotal": 19437.99
    },
    {
      "description": "System integration",
      "quantity": 9,
      "unitPrice": 403.34,
      "lineTotal": 3630.06
    },
    {
      "description": "Consulting services",
      "quantity": 20,
      "unitPrice": 460.48,
      "lineTotal": 9209.6
    },
    {
      "description": "Research services",
      "quantity": 22,
      "unitPrice": 104.73,
      "lineTotal": 2304.06
    }
  ],
  "createdAt": "2025-10-01T03:04:46.322Z"
}
Draftbit