example-data.com
Menu
Browse docs and collections

Overview

invoices / #184

invoices #184

fromUserId
Einar Volkman @einar_volkman69
toUserId
Colby Kovacek @colby_kovacek40
invoiceNumber
INV-2025-0184
status
paid
issuedAt
dueAt
paidAt
subtotal
8413.38
tax
420.67
total
8834.05
currency
GBP
lineItems
              [
  {
    "description": "Design work",
    "quantity": 10,
    "unitPrice": 138.02,
    "lineTotal": 1380.2
  },
  {
    "description": "Content writing",
    "quantity": 22,
    "unitPrice": 319.69,
    "lineTotal": 7033.18
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 184,
  "fromUserId": 7,
  "toUserId": 85,
  "invoiceNumber": "INV-2025-0184",
  "status": "paid",
  "issuedAt": "2025-05-24T11:07:34.671Z",
  "dueAt": "2025-06-04T11:07:34.671Z",
  "paidAt": "2025-05-31T04:49:23.824Z",
  "subtotal": 8413.38,
  "tax": 420.67,
  "total": 8834.05,
  "currency": "GBP",
  "lineItems": [
    {
      "description": "Design work",
      "quantity": 10,
      "unitPrice": 138.02,
      "lineTotal": 1380.2
    },
    {
      "description": "Content writing",
      "quantity": 22,
      "unitPrice": 319.69,
      "lineTotal": 7033.18
    }
  ],
  "createdAt": "2025-05-23T15:25:39.661Z"
}