example-data.com
Menu
Browse docs and collections

Overview

invoices / #265

invoices #265

fromUserId
Tiara Wilderman @tiara_wilderman
toUserId
Autumn Bartell @autumn.bartell95
invoiceNumber
INV-2026-0265
status
paid
issuedAt
dueAt
paidAt
subtotal
31821.98
tax
3182.2
total
35004.18
currency
EUR
lineItems
              [
  {
    "description": "Quality assurance",
    "quantity": 21,
    "unitPrice": 39.23,
    "lineTotal": 823.83
  },
  {
    "description": "Maintenance contract",
    "quantity": 16,
    "unitPrice": 378.81,
    "lineTotal": 6060.96
  },
  {
    "description": "License fee",
    "quantity": 21,
    "unitPrice": 83.45,
    "lineTotal": 1752.45
  },
  {
    "description": "Marketing services",
    "quantity": 39,
    "unitPrice": 308.04,
    "lineTotal": 12013.56
  },
  {
    "description": "Photography services",
    "quantity": 1,
    "unitPrice": 209.24,
    "lineTotal": 209.24
  },
  {
    "description": "Research services",
    "quantity": 22,
    "unitPrice": 498.27,
    "lineTotal": 10961.94
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 265,
  "fromUserId": 66,
  "toUserId": 58,
  "invoiceNumber": "INV-2026-0265",
  "status": "paid",
  "issuedAt": "2026-05-12T11:10:55.611Z",
  "dueAt": "2026-06-04T11:10:55.611Z",
  "paidAt": "2026-05-13T10:26:49.166Z",
  "subtotal": 31821.98,
  "tax": 3182.2,
  "total": 35004.18,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Quality assurance",
      "quantity": 21,
      "unitPrice": 39.23,
      "lineTotal": 823.83
    },
    {
      "description": "Maintenance contract",
      "quantity": 16,
      "unitPrice": 378.81,
      "lineTotal": 6060.96
    },
    {
      "description": "License fee",
      "quantity": 21,
      "unitPrice": 83.45,
      "lineTotal": 1752.45
    },
    {
      "description": "Marketing services",
      "quantity": 39,
      "unitPrice": 308.04,
      "lineTotal": 12013.56
    },
    {
      "description": "Photography services",
      "quantity": 1,
      "unitPrice": 209.24,
      "lineTotal": 209.24
    },
    {
      "description": "Research services",
      "quantity": 22,
      "unitPrice": 498.27,
      "lineTotal": 10961.94
    }
  ],
  "createdAt": "2026-05-12T02:49:22.608Z"
}