example-data.com
Menu
Browse docs and collections

Overview

invoices / #274

invoices #274

fromUserId
Mckenna Hegmann-Price @mckenna.hegmann-price77
toUserId
Colby Kovacek @colby_kovacek40
invoiceNumber
INV-2025-0274
status
paid
issuedAt
dueAt
paidAt
subtotal
56145.21
tax
8421.78
total
64566.99
currency
EUR
lineItems
              [
  {
    "description": "Technical support",
    "quantity": 35,
    "unitPrice": 219.98,
    "lineTotal": 7699.3
  },
  {
    "description": "License fee",
    "quantity": 35,
    "unitPrice": 181.03,
    "lineTotal": 6336.05
  },
  {
    "description": "Software development",
    "quantity": 39,
    "unitPrice": 492.33,
    "lineTotal": 19200.87
  },
  {
    "description": "Photography services",
    "quantity": 26,
    "unitPrice": 370.47,
    "lineTotal": 9632.22
  },
  {
    "description": "License fee",
    "quantity": 39,
    "unitPrice": 340.43,
    "lineTotal": 13276.77
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 274,
  "fromUserId": 62,
  "toUserId": 85,
  "invoiceNumber": "INV-2025-0274",
  "status": "paid",
  "issuedAt": "2025-07-19T14:33:25.578Z",
  "dueAt": "2025-08-27T14:33:25.578Z",
  "paidAt": "2025-08-06T01:55:10.444Z",
  "subtotal": 56145.21,
  "tax": 8421.78,
  "total": 64566.99,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Technical support",
      "quantity": 35,
      "unitPrice": 219.98,
      "lineTotal": 7699.3
    },
    {
      "description": "License fee",
      "quantity": 35,
      "unitPrice": 181.03,
      "lineTotal": 6336.05
    },
    {
      "description": "Software development",
      "quantity": 39,
      "unitPrice": 492.33,
      "lineTotal": 19200.87
    },
    {
      "description": "Photography services",
      "quantity": 26,
      "unitPrice": 370.47,
      "lineTotal": 9632.22
    },
    {
      "description": "License fee",
      "quantity": 39,
      "unitPrice": 340.43,
      "lineTotal": 13276.77
    }
  ],
  "createdAt": "2025-07-18T21:21:30.088Z"
}