example-data.com

invoices / #7

fromUserId
3
toUserId
71
invoiceNumber
INV-2025-0007
status
paid
issuedAt
dueAt
paidAt
subtotal
13568.38
tax
0
total
13568.38
currency
CAD
lineItems
[
  {
    "description": "Training session",
    "quantity": 30,
    "unitPrice": 378.98,
    "lineTotal": 11369.4
  },
  {
    "description": "Photography services",
    "quantity": 7,
    "unitPrice": 314.14,
    "lineTotal": 2198.98
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/7"
)
invoice = res.json()
{
  "id": 7,
  "fromUserId": 3,
  "toUserId": 71,
  "invoiceNumber": "INV-2025-0007",
  "status": "paid",
  "issuedAt": "2025-07-26T20:10:19.102Z",
  "dueAt": "2025-08-28T20:10:19.102Z",
  "paidAt": "2025-08-13T22:17:44.818Z",
  "subtotal": 13568.38,
  "tax": 0,
  "total": 13568.38,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Training session",
      "quantity": 30,
      "unitPrice": 378.98,
      "lineTotal": 11369.4
    },
    {
      "description": "Photography services",
      "quantity": 7,
      "unitPrice": 314.14,
      "lineTotal": 2198.98
    }
  ],
  "createdAt": "2025-07-26T19:15:47.686Z"
}
Draftbit