example-data.com
Menu
Browse docs and collections

Overview

invoices / #248

invoices #248

fromUserId
Camron O'Conner @camron.oconner54
toUserId
Lacy Gusikowski @lacy.gusikowski
invoiceNumber
INV-2025-0248
status
paid
issuedAt
dueAt
paidAt
subtotal
27650.94
tax
1382.55
total
29033.49
currency
EUR
lineItems
              [
  {
    "description": "Project management",
    "quantity": 16,
    "unitPrice": 155.49,
    "lineTotal": 2487.84
  },
  {
    "description": "Accounting services",
    "quantity": 21,
    "unitPrice": 278.57,
    "lineTotal": 5849.97
  },
  {
    "description": "Hardware supply",
    "quantity": 6,
    "unitPrice": 450.51,
    "lineTotal": 2703.06
  },
  {
    "description": "Consulting services",
    "quantity": 7,
    "unitPrice": 329.75,
    "lineTotal": 2308.25
  },
  {
    "description": "System integration",
    "quantity": 23,
    "unitPrice": 431.14,
    "lineTotal": 9916.22
  },
  {
    "description": "Quality assurance",
    "quantity": 32,
    "unitPrice": 137.05,
    "lineTotal": 4385.6
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 248,
  "fromUserId": 94,
  "toUserId": 47,
  "invoiceNumber": "INV-2025-0248",
  "status": "paid",
  "issuedAt": "2025-04-07T14:37:01.854Z",
  "dueAt": "2025-05-30T14:37:01.854Z",
  "paidAt": "2025-04-30T13:26:32.508Z",
  "subtotal": 27650.94,
  "tax": 1382.55,
  "total": 29033.49,
  "currency": "EUR",
  "lineItems": [
    {
      "description": "Project management",
      "quantity": 16,
      "unitPrice": 155.49,
      "lineTotal": 2487.84
    },
    {
      "description": "Accounting services",
      "quantity": 21,
      "unitPrice": 278.57,
      "lineTotal": 5849.97
    },
    {
      "description": "Hardware supply",
      "quantity": 6,
      "unitPrice": 450.51,
      "lineTotal": 2703.06
    },
    {
      "description": "Consulting services",
      "quantity": 7,
      "unitPrice": 329.75,
      "lineTotal": 2308.25
    },
    {
      "description": "System integration",
      "quantity": 23,
      "unitPrice": 431.14,
      "lineTotal": 9916.22
    },
    {
      "description": "Quality assurance",
      "quantity": 32,
      "unitPrice": 137.05,
      "lineTotal": 4385.6
    }
  ],
  "createdAt": "2025-04-07T09:23:44.762Z"
}