example-data.com
Menu
Browse docs and collections

Overview

invoices / #247

invoices #247

fromUserId
Maximus Bosco @maximus_bosco
toUserId
Everett Yundt @everett_yundt11
invoiceNumber
INV-2025-0247
status
viewed
issuedAt
dueAt
paidAt
subtotal
10260.77
tax
1026.08
total
11286.85
currency
AUD
lineItems
              [
  {
    "description": "Quality assurance",
    "quantity": 25,
    "unitPrice": 305.54,
    "lineTotal": 7638.5
  },
  {
    "description": "Marketing services",
    "quantity": 21,
    "unitPrice": 124.87,
    "lineTotal": 2622.27
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 247,
  "fromUserId": 128,
  "toUserId": 44,
  "invoiceNumber": "INV-2025-0247",
  "status": "viewed",
  "issuedAt": "2025-10-29T08:42:53.648Z",
  "dueAt": "2025-12-02T08:42:53.648Z",
  "paidAt": null,
  "subtotal": 10260.77,
  "tax": 1026.08,
  "total": 11286.85,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Quality assurance",
      "quantity": 25,
      "unitPrice": 305.54,
      "lineTotal": 7638.5
    },
    {
      "description": "Marketing services",
      "quantity": 21,
      "unitPrice": 124.87,
      "lineTotal": 2622.27
    }
  ],
  "createdAt": "2025-10-29T04:41:49.155Z"
}