example-data.com
Menu
Browse docs and collections

Overview

invoices / #269

invoices #269

fromUserId
Tabitha Ruecker @tabitha.ruecker
toUserId
Marlin Goldner @marlin_goldner6
invoiceNumber
INV-2026-0269
status
overdue
issuedAt
dueAt
paidAt
subtotal
2239.01
tax
335.85
total
2574.86
currency
USD
lineItems
              [
  {
    "description": "License fee",
    "quantity": 19,
    "unitPrice": 57.59,
    "lineTotal": 1094.21
  },
  {
    "description": "Marketing services",
    "quantity": 6,
    "unitPrice": 190.8,
    "lineTotal": 1144.8
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 269,
  "fromUserId": 197,
  "toUserId": 160,
  "invoiceNumber": "INV-2026-0269",
  "status": "overdue",
  "issuedAt": "2026-03-31T04:57:46.404Z",
  "dueAt": "2026-05-25T04:57:46.404Z",
  "paidAt": null,
  "subtotal": 2239.01,
  "tax": 335.85,
  "total": 2574.86,
  "currency": "USD",
  "lineItems": [
    {
      "description": "License fee",
      "quantity": 19,
      "unitPrice": 57.59,
      "lineTotal": 1094.21
    },
    {
      "description": "Marketing services",
      "quantity": 6,
      "unitPrice": 190.8,
      "lineTotal": 1144.8
    }
  ],
  "createdAt": "2026-03-31T04:15:03.237Z"
}