example-data.com
Menu
Browse docs and collections

Overview

invoices / #208

invoices #208

fromUserId
Gerald Lind @gerald_lind57
toUserId
Claudie Hagenes @claudie_hagenes
invoiceNumber
INV-2025-0208
status
sent
issuedAt
dueAt
paidAt
subtotal
18105.55
tax
1448.44
total
19553.99
currency
CAD
lineItems
              [
  {
    "description": "Accounting services",
    "quantity": 35,
    "unitPrice": 287.51,
    "lineTotal": 10062.85
  },
  {
    "description": "Photography services",
    "quantity": 17,
    "unitPrice": 473.1,
    "lineTotal": 8042.7
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/invoices/208"
);
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/208"
);
const invoice = (await res.json()) as Invoice;

Python example

import requests

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

Response

{
  "id": 208,
  "fromUserId": 179,
  "toUserId": 232,
  "invoiceNumber": "INV-2025-0208",
  "status": "sent",
  "issuedAt": "2025-12-09T19:20:09.370Z",
  "dueAt": "2026-01-20T19:20:09.370Z",
  "paidAt": null,
  "subtotal": 18105.55,
  "tax": 1448.44,
  "total": 19553.99,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Accounting services",
      "quantity": 35,
      "unitPrice": 287.51,
      "lineTotal": 10062.85
    },
    {
      "description": "Photography services",
      "quantity": 17,
      "unitPrice": 473.1,
      "lineTotal": 8042.7
    }
  ],
  "createdAt": "2025-12-09T17:52:54.628Z"
}