example-data.com
Menu
Browse docs and collections

Overview

invoices / #293

invoices #293

fromUserId
Koby Pouros @koby_pouros60
toUserId
Ken Towne @ken.towne
invoiceNumber
INV-2025-0293
status
viewed
issuedAt
dueAt
paidAt
subtotal
32879.15
tax
0
total
32879.15
currency
EUR
lineItems
              [
  {
    "description": "Design work",
    "quantity": 5,
    "unitPrice": 409.89,
    "lineTotal": 2049.45
  },
  {
    "description": "Consulting services",
    "quantity": 15,
    "unitPrice": 388.82,
    "lineTotal": 5832.3
  },
  {
    "description": "Accounting services",
    "quantity": 9,
    "unitPrice": 411.12,
    "lineTotal": 3700.08
  },
  {
    "description": "Technical support",
    "quantity": 9,
    "unitPrice": 474.68,
    "lineTotal": 4272.12
  },
  {
    "description": "Quality assurance",
    "quantity": 34,
    "unitPrice": 260.19,
    "lineTotal": 8846.46
  },
  {
    "description": "Training session",
    "quantity": 38,
    "unitPrice": 215.23,
    "lineTotal": 8178.74
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 293,
  "fromUserId": 34,
  "toUserId": 248,
  "invoiceNumber": "INV-2025-0293",
  "status": "viewed",
  "issuedAt": "2025-12-19T15:15:23.943Z",
  "dueAt": "2025-12-31T15:15:23.943Z",
  "paidAt": null,
  "subtotal": 32879.15,
  "tax": 0,
  "total": 32879.15,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Design work",
      "quantity": 5,
      "unitPrice": 409.89,
      "lineTotal": 2049.45
    },
    {
      "description": "Consulting services",
      "quantity": 15,
      "unitPrice": 388.82,
      "lineTotal": 5832.3
    },
    {
      "description": "Accounting services",
      "quantity": 9,
      "unitPrice": 411.12,
      "lineTotal": 3700.08
    },
    {
      "description": "Technical support",
      "quantity": 9,
      "unitPrice": 474.68,
      "lineTotal": 4272.12
    },
    {
      "description": "Quality assurance",
      "quantity": 34,
      "unitPrice": 260.19,
      "lineTotal": 8846.46
    },
    {
      "description": "Training session",
      "quantity": 38,
      "unitPrice": 215.23,
      "lineTotal": 8178.74
    }
  ],
  "createdAt": "2025-12-19T09:53:52.520Z"
}