example-data.com
Menu
Browse docs and collections

Overview

invoices / #275

invoices #275

fromUserId
Judy Hackett @judy_hackett49
toUserId
Hermina West @hermina.west3
invoiceNumber
INV-2026-0275
status
paid
issuedAt
dueAt
paidAt
subtotal
35659.5
tax
1782.98
total
37442.48
currency
CAD
lineItems
              [
  {
    "description": "Legal review",
    "quantity": 11,
    "unitPrice": 451.21,
    "lineTotal": 4963.31
  },
  {
    "description": "Consulting services",
    "quantity": 4,
    "unitPrice": 432.75,
    "lineTotal": 1731
  },
  {
    "description": "Design work",
    "quantity": 2,
    "unitPrice": 246.06,
    "lineTotal": 492.12
  },
  {
    "description": "Maintenance contract",
    "quantity": 14,
    "unitPrice": 341.54,
    "lineTotal": 4781.56
  },
  {
    "description": "Data analysis",
    "quantity": 24,
    "unitPrice": 411.53,
    "lineTotal": 9876.72
  },
  {
    "description": "Software development",
    "quantity": 33,
    "unitPrice": 418.63,
    "lineTotal": 13814.79
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 275,
  "fromUserId": 13,
  "toUserId": 51,
  "invoiceNumber": "INV-2026-0275",
  "status": "paid",
  "issuedAt": "2026-05-14T02:40:46.061Z",
  "dueAt": "2026-07-01T02:40:46.061Z",
  "paidAt": "2026-05-20T02:44:31.901Z",
  "subtotal": 35659.5,
  "tax": 1782.98,
  "total": 37442.48,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Legal review",
      "quantity": 11,
      "unitPrice": 451.21,
      "lineTotal": 4963.31
    },
    {
      "description": "Consulting services",
      "quantity": 4,
      "unitPrice": 432.75,
      "lineTotal": 1731
    },
    {
      "description": "Design work",
      "quantity": 2,
      "unitPrice": 246.06,
      "lineTotal": 492.12
    },
    {
      "description": "Maintenance contract",
      "quantity": 14,
      "unitPrice": 341.54,
      "lineTotal": 4781.56
    },
    {
      "description": "Data analysis",
      "quantity": 24,
      "unitPrice": 411.53,
      "lineTotal": 9876.72
    },
    {
      "description": "Software development",
      "quantity": 33,
      "unitPrice": 418.63,
      "lineTotal": 13814.79
    }
  ],
  "createdAt": "2026-05-13T12:18:16.898Z"
}