example-data.com
Menu
Browse docs and collections

Overview

invoices / #139

invoices #139

fromUserId
Darian Schaden @darian_schaden36
toUserId
Brycen Bayer @brycen_bayer60
invoiceNumber
INV-2025-0139
status
sent
issuedAt
dueAt
paidAt
subtotal
13977.12
tax
698.86
total
14675.98
currency
AUD
lineItems
              [
  {
    "description": "Photography services",
    "quantity": 25,
    "unitPrice": 498.36,
    "lineTotal": 12459
  },
  {
    "description": "Photography services",
    "quantity": 9,
    "unitPrice": 168.68,
    "lineTotal": 1518.12
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 139,
  "fromUserId": 53,
  "toUserId": 6,
  "invoiceNumber": "INV-2025-0139",
  "status": "sent",
  "issuedAt": "2025-08-20T20:50:21.668Z",
  "dueAt": "2025-08-31T20:50:21.668Z",
  "paidAt": null,
  "subtotal": 13977.12,
  "tax": 698.86,
  "total": 14675.98,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Photography services",
      "quantity": 25,
      "unitPrice": 498.36,
      "lineTotal": 12459
    },
    {
      "description": "Photography services",
      "quantity": 9,
      "unitPrice": 168.68,
      "lineTotal": 1518.12
    }
  ],
  "createdAt": "2025-08-20T11:19:31.028Z"
}