example-data.com
Menu
Browse docs and collections

Overview

invoices / #268

invoices #268

fromUserId
Alex Lang @alex_lang85
toUserId
Conrad Connelly @conrad.connelly22
invoiceNumber
INV-2026-0268
status
paid
issuedAt
dueAt
paidAt
subtotal
38088.12
tax
1904.41
total
39992.53
currency
GBP
lineItems
              [
  {
    "description": "Accounting services",
    "quantity": 32,
    "unitPrice": 234.89,
    "lineTotal": 7516.48
  },
  {
    "description": "Technical support",
    "quantity": 7,
    "unitPrice": 388.05,
    "lineTotal": 2716.35
  },
  {
    "description": "Quality assurance",
    "quantity": 28,
    "unitPrice": 297.07,
    "lineTotal": 8317.96
  },
  {
    "description": "Technical support",
    "quantity": 38,
    "unitPrice": 434.91,
    "lineTotal": 16526.58
  },
  {
    "description": "Software development",
    "quantity": 7,
    "unitPrice": 352.73,
    "lineTotal": 2469.11
  },
  {
    "description": "Technical support",
    "quantity": 2,
    "unitPrice": 270.82,
    "lineTotal": 541.64
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 268,
  "fromUserId": 163,
  "toUserId": 30,
  "invoiceNumber": "INV-2026-0268",
  "status": "paid",
  "issuedAt": "2026-03-03T06:24:34.251Z",
  "dueAt": "2026-03-13T06:24:34.251Z",
  "paidAt": "2026-03-10T05:34:47.913Z",
  "subtotal": 38088.12,
  "tax": 1904.41,
  "total": 39992.53,
  "currency": "GBP",
  "lineItems": [
    {
      "description": "Accounting services",
      "quantity": 32,
      "unitPrice": 234.89,
      "lineTotal": 7516.48
    },
    {
      "description": "Technical support",
      "quantity": 7,
      "unitPrice": 388.05,
      "lineTotal": 2716.35
    },
    {
      "description": "Quality assurance",
      "quantity": 28,
      "unitPrice": 297.07,
      "lineTotal": 8317.96
    },
    {
      "description": "Technical support",
      "quantity": 38,
      "unitPrice": 434.91,
      "lineTotal": 16526.58
    },
    {
      "description": "Software development",
      "quantity": 7,
      "unitPrice": 352.73,
      "lineTotal": 2469.11
    },
    {
      "description": "Technical support",
      "quantity": 2,
      "unitPrice": 270.82,
      "lineTotal": 541.64
    }
  ],
  "createdAt": "2026-03-03T03:48:37.511Z"
}