example-data.com
Menu
Browse docs and collections

Overview

invoices / #292

invoices #292

fromUserId
Conner Bernhard @conner.bernhard33
toUserId
Amparo Dietrich @amparo.dietrich
invoiceNumber
INV-2025-0292
status
paid
issuedAt
dueAt
paidAt
subtotal
41281.74
tax
0
total
41281.74
currency
CAD
lineItems
              [
  {
    "description": "Content writing",
    "quantity": 33,
    "unitPrice": 94.48,
    "lineTotal": 3117.84
  },
  {
    "description": "Legal review",
    "quantity": 10,
    "unitPrice": 120.52,
    "lineTotal": 1205.2
  },
  {
    "description": "System integration",
    "quantity": 34,
    "unitPrice": 447.64,
    "lineTotal": 15219.76
  },
  {
    "description": "Photography services",
    "quantity": 25,
    "unitPrice": 463.06,
    "lineTotal": 11576.5
  },
  {
    "description": "Accounting services",
    "quantity": 7,
    "unitPrice": 152.82,
    "lineTotal": 1069.74
  },
  {
    "description": "Maintenance contract",
    "quantity": 30,
    "unitPrice": 303.09,
    "lineTotal": 9092.7
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 292,
  "fromUserId": 3,
  "toUserId": 159,
  "invoiceNumber": "INV-2025-0292",
  "status": "paid",
  "issuedAt": "2025-12-19T18:06:13.802Z",
  "dueAt": "2026-02-03T18:06:13.802Z",
  "paidAt": "2025-12-25T17:59:28.939Z",
  "subtotal": 41281.74,
  "tax": 0,
  "total": 41281.74,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Content writing",
      "quantity": 33,
      "unitPrice": 94.48,
      "lineTotal": 3117.84
    },
    {
      "description": "Legal review",
      "quantity": 10,
      "unitPrice": 120.52,
      "lineTotal": 1205.2
    },
    {
      "description": "System integration",
      "quantity": 34,
      "unitPrice": 447.64,
      "lineTotal": 15219.76
    },
    {
      "description": "Photography services",
      "quantity": 25,
      "unitPrice": 463.06,
      "lineTotal": 11576.5
    },
    {
      "description": "Accounting services",
      "quantity": 7,
      "unitPrice": 152.82,
      "lineTotal": 1069.74
    },
    {
      "description": "Maintenance contract",
      "quantity": 30,
      "unitPrice": 303.09,
      "lineTotal": 9092.7
    }
  ],
  "createdAt": "2025-12-19T06:20:56.995Z"
}