example-data.com
Menu
Browse docs and collections

Overview

invoices / #111

invoices #111

fromUserId
Cyril Frami @cyril_frami88
toUserId
Kennith Hahn @kennith.hahn
invoiceNumber
INV-2026-0111
status
paid
issuedAt
dueAt
paidAt
subtotal
12682.24
tax
1268.22
total
13950.46
currency
AUD
lineItems
              [
  {
    "description": "Implementation services",
    "quantity": 17,
    "unitPrice": 211.66,
    "lineTotal": 3598.22
  },
  {
    "description": "Data analysis",
    "quantity": 1,
    "unitPrice": 373.82,
    "lineTotal": 373.82
  },
  {
    "description": "License fee",
    "quantity": 36,
    "unitPrice": 241.95,
    "lineTotal": 8710.2
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 111,
  "fromUserId": 182,
  "toUserId": 201,
  "invoiceNumber": "INV-2026-0111",
  "status": "paid",
  "issuedAt": "2026-02-23T19:01:11.829Z",
  "dueAt": "2026-03-07T19:01:11.829Z",
  "paidAt": "2026-02-28T19:48:15.042Z",
  "subtotal": 12682.24,
  "tax": 1268.22,
  "total": 13950.46,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Implementation services",
      "quantity": 17,
      "unitPrice": 211.66,
      "lineTotal": 3598.22
    },
    {
      "description": "Data analysis",
      "quantity": 1,
      "unitPrice": 373.82,
      "lineTotal": 373.82
    },
    {
      "description": "License fee",
      "quantity": 36,
      "unitPrice": 241.95,
      "lineTotal": 8710.2
    }
  ],
  "createdAt": "2026-02-23T17:45:24.267Z"
}