example-data.com
Menu
Browse docs and collections

Overview

invoices / #109

invoices #109

fromUserId
Carmel Schultz @carmel.schultz
toUserId
Lawrence Rogahn @lawrence_rogahn33
invoiceNumber
INV-2026-0109
status
paid
issuedAt
dueAt
paidAt
subtotal
22732.51
tax
1136.63
total
23869.14
currency
CAD
lineItems
              [
  {
    "description": "Implementation services",
    "quantity": 33,
    "unitPrice": 387.54,
    "lineTotal": 12788.82
  },
  {
    "description": "Technical support",
    "quantity": 5,
    "unitPrice": 374.85,
    "lineTotal": 1874.25
  },
  {
    "description": "Data analysis",
    "quantity": 15,
    "unitPrice": 354.88,
    "lineTotal": 5323.2
  },
  {
    "description": "Implementation services",
    "quantity": 28,
    "unitPrice": 98.08,
    "lineTotal": 2746.24
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 109,
  "fromUserId": 156,
  "toUserId": 245,
  "invoiceNumber": "INV-2026-0109",
  "status": "paid",
  "issuedAt": "2026-02-21T22:46:57.122Z",
  "dueAt": "2026-02-28T22:46:57.122Z",
  "paidAt": "2026-02-28T12:11:01.721Z",
  "subtotal": 22732.51,
  "tax": 1136.63,
  "total": 23869.14,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Implementation services",
      "quantity": 33,
      "unitPrice": 387.54,
      "lineTotal": 12788.82
    },
    {
      "description": "Technical support",
      "quantity": 5,
      "unitPrice": 374.85,
      "lineTotal": 1874.25
    },
    {
      "description": "Data analysis",
      "quantity": 15,
      "unitPrice": 354.88,
      "lineTotal": 5323.2
    },
    {
      "description": "Implementation services",
      "quantity": 28,
      "unitPrice": 98.08,
      "lineTotal": 2746.24
    }
  ],
  "createdAt": "2026-02-21T09:29:32.205Z"
}