example-data.com
Menu
Browse docs and collections

Overview

invoices / #224

invoices #224

fromUserId
Lamar Wilkinson @lamar_wilkinson43
toUserId
Melba Collier @melba.collier
invoiceNumber
INV-2025-0224
status
paid
issuedAt
dueAt
paidAt
subtotal
26777.32
tax
2677.73
total
29455.05
currency
CAD
lineItems
              [
  {
    "description": "Implementation services",
    "quantity": 29,
    "unitPrice": 441.78,
    "lineTotal": 12811.62
  },
  {
    "description": "Data analysis",
    "quantity": 35,
    "unitPrice": 399.02,
    "lineTotal": 13965.7
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 224,
  "fromUserId": 43,
  "toUserId": 19,
  "invoiceNumber": "INV-2025-0224",
  "status": "paid",
  "issuedAt": "2025-03-23T14:25:06.063Z",
  "dueAt": "2025-05-04T14:25:06.063Z",
  "paidAt": "2025-04-30T16:00:02.798Z",
  "subtotal": 26777.32,
  "tax": 2677.73,
  "total": 29455.05,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Implementation services",
      "quantity": 29,
      "unitPrice": 441.78,
      "lineTotal": 12811.62
    },
    {
      "description": "Data analysis",
      "quantity": 35,
      "unitPrice": 399.02,
      "lineTotal": 13965.7
    }
  ],
  "createdAt": "2025-03-23T09:17:44.253Z"
}