example-data.com
Menu
Browse docs and collections

Overview

invoices / #177

invoices #177

fromUserId
Lamar Wilkinson @lamar_wilkinson43
toUserId
Conner Bernhard @conner.bernhard33
invoiceNumber
INV-2025-0177
status
paid
issuedAt
dueAt
paidAt
subtotal
5765.63
tax
461.25
total
6226.88
currency
AUD
lineItems
              [
  {
    "description": "Consulting services",
    "quantity": 15,
    "unitPrice": 81.96,
    "lineTotal": 1229.4
  },
  {
    "description": "Marketing services",
    "quantity": 31,
    "unitPrice": 146.33,
    "lineTotal": 4536.23
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 177,
  "fromUserId": 43,
  "toUserId": 3,
  "invoiceNumber": "INV-2025-0177",
  "status": "paid",
  "issuedAt": "2025-10-07T20:30:52.963Z",
  "dueAt": "2025-11-06T20:30:52.963Z",
  "paidAt": "2025-11-04T04:55:49.385Z",
  "subtotal": 5765.63,
  "tax": 461.25,
  "total": 6226.88,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Consulting services",
      "quantity": 15,
      "unitPrice": 81.96,
      "lineTotal": 1229.4
    },
    {
      "description": "Marketing services",
      "quantity": 31,
      "unitPrice": 146.33,
      "lineTotal": 4536.23
    }
  ],
  "createdAt": "2025-10-07T09:00:44.447Z"
}