example-data.com
Menu
Browse docs and collections

Overview

invoices / #124

invoices #124

fromUserId
Earlene Wisozk @earlene.wisozk
toUserId
Jameson Considine @jameson.considine1
invoiceNumber
INV-2026-0124
status
sent
issuedAt
dueAt
paidAt
subtotal
21681.67
tax
1734.53
total
23416.2
currency
CAD
lineItems
              [
  {
    "description": "Legal review",
    "quantity": 37,
    "unitPrice": 350.03,
    "lineTotal": 12951.11
  },
  {
    "description": "Consulting services",
    "quantity": 40,
    "unitPrice": 212.36,
    "lineTotal": 8494.4
  },
  {
    "description": "Technical support",
    "quantity": 4,
    "unitPrice": 59.04,
    "lineTotal": 236.16
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 124,
  "fromUserId": 216,
  "toUserId": 236,
  "invoiceNumber": "INV-2026-0124",
  "status": "sent",
  "issuedAt": "2026-04-17T14:59:43.172Z",
  "dueAt": "2026-05-04T14:59:43.172Z",
  "paidAt": null,
  "subtotal": 21681.67,
  "tax": 1734.53,
  "total": 23416.2,
  "currency": "CAD",
  "lineItems": [
    {
      "description": "Legal review",
      "quantity": 37,
      "unitPrice": 350.03,
      "lineTotal": 12951.11
    },
    {
      "description": "Consulting services",
      "quantity": 40,
      "unitPrice": 212.36,
      "lineTotal": 8494.4
    },
    {
      "description": "Technical support",
      "quantity": 4,
      "unitPrice": 59.04,
      "lineTotal": 236.16
    }
  ],
  "createdAt": "2026-04-17T13:43:00.263Z"
}