example-data.com

invoices / #80

fromUserId
161
toUserId
124
invoiceNumber
INV-2025-0080
status
sent
issuedAt
dueAt
paidAt
subtotal
15595.91
tax
1247.67
total
16843.58
currency
AUD
lineItems
[
  {
    "description": "Content writing",
    "quantity": 5,
    "unitPrice": 10.56,
    "lineTotal": 52.8
  },
  {
    "description": "Data analysis",
    "quantity": 5,
    "unitPrice": 164.35,
    "lineTotal": 821.75
  },
  {
    "description": "Legal review",
    "quantity": 1,
    "unitPrice": 160.48,
    "lineTotal": 160.48
  },
  {
    "description": "Software development",
    "quantity": 25,
    "unitPrice": 383.32,
    "lineTotal": 9583
  },
  {
    "description": "Marketing services",
    "quantity": 4,
    "unitPrice": 72.01,
    "lineTotal": 288.04
  },
  {
    "description": "Implementation services",
    "quantity": 24,
    "unitPrice": 195.41,
    "lineTotal": 4689.84
  }
]
createdAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/invoices/80"
)
invoice = res.json()
{
  "id": 80,
  "fromUserId": 161,
  "toUserId": 124,
  "invoiceNumber": "INV-2025-0080",
  "status": "sent",
  "issuedAt": "2025-07-23T17:04:51.265Z",
  "dueAt": "2025-07-30T17:04:51.265Z",
  "paidAt": null,
  "subtotal": 15595.91,
  "tax": 1247.67,
  "total": 16843.58,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Content writing",
      "quantity": 5,
      "unitPrice": 10.56,
      "lineTotal": 52.8
    },
    {
      "description": "Data analysis",
      "quantity": 5,
      "unitPrice": 164.35,
      "lineTotal": 821.75
    },
    {
      "description": "Legal review",
      "quantity": 1,
      "unitPrice": 160.48,
      "lineTotal": 160.48
    },
    {
      "description": "Software development",
      "quantity": 25,
      "unitPrice": 383.32,
      "lineTotal": 9583
    },
    {
      "description": "Marketing services",
      "quantity": 4,
      "unitPrice": 72.01,
      "lineTotal": 288.04
    },
    {
      "description": "Implementation services",
      "quantity": 24,
      "unitPrice": 195.41,
      "lineTotal": 4689.84
    }
  ],
  "createdAt": "2025-07-23T01:17:51.135Z"
}
Draftbit