example-data.com
Menu
Browse docs and collections

Overview

invoices / #288

invoices #288

fromUserId
Charlene Kuhic @charlene_kuhic
toUserId
Karlee Hudson-Turner @karlee.hudson-turner88
invoiceNumber
INV-2026-0288
status
sent
issuedAt
dueAt
paidAt
subtotal
34252.44
tax
1712.62
total
35965.06
currency
USD
lineItems
              [
  {
    "description": "Software development",
    "quantity": 21,
    "unitPrice": 253.18,
    "lineTotal": 5316.78
  },
  {
    "description": "Accounting services",
    "quantity": 16,
    "unitPrice": 157.05,
    "lineTotal": 2512.8
  },
  {
    "description": "Maintenance contract",
    "quantity": 22,
    "unitPrice": 473.79,
    "lineTotal": 10423.38
  },
  {
    "description": "Photography services",
    "quantity": 36,
    "unitPrice": 444.43,
    "lineTotal": 15999.48
  }
]
            
createdAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/invoices/288" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/invoices/288"
);
const invoice = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/invoices.d.ts https://example-data.com/types/invoices.d.ts
import type { Invoice } from "./types/invoices";

const res = await fetch(
  "https://example-data.com/api/v1/invoices/288"
);
const invoice = (await res.json()) as Invoice;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/invoices/288"
)
invoice = res.json()

Response

{
  "id": 288,
  "fromUserId": 244,
  "toUserId": 36,
  "invoiceNumber": "INV-2026-0288",
  "status": "sent",
  "issuedAt": "2026-03-10T04:32:55.119Z",
  "dueAt": "2026-05-03T04:32:55.119Z",
  "paidAt": null,
  "subtotal": 34252.44,
  "tax": 1712.62,
  "total": 35965.06,
  "currency": "USD",
  "lineItems": [
    {
      "description": "Software development",
      "quantity": 21,
      "unitPrice": 253.18,
      "lineTotal": 5316.78
    },
    {
      "description": "Accounting services",
      "quantity": 16,
      "unitPrice": 157.05,
      "lineTotal": 2512.8
    },
    {
      "description": "Maintenance contract",
      "quantity": 22,
      "unitPrice": 473.79,
      "lineTotal": 10423.38
    },
    {
      "description": "Photography services",
      "quantity": 36,
      "unitPrice": 444.43,
      "lineTotal": 15999.48
    }
  ],
  "createdAt": "2026-03-09T10:06:34.814Z"
}