example-data.com
Menu
Browse docs and collections

Overview

invoices / #244

invoices #244

fromUserId
Cassidy Christiansen @cassidy_christiansen38
toUserId
Sonia Nolan @sonia_nolan
invoiceNumber
INV-2025-0244
status
viewed
issuedAt
dueAt
paidAt
subtotal
29303.45
tax
2344.28
total
31647.73
currency
USD
lineItems
              [
  {
    "description": "Legal review",
    "quantity": 10,
    "unitPrice": 494.37,
    "lineTotal": 4943.7
  },
  {
    "description": "Technical support",
    "quantity": 11,
    "unitPrice": 257.94,
    "lineTotal": 2837.34
  },
  {
    "description": "Design work",
    "quantity": 24,
    "unitPrice": 446.94,
    "lineTotal": 10726.56
  },
  {
    "description": "License fee",
    "quantity": 22,
    "unitPrice": 360.33,
    "lineTotal": 7927.26
  },
  {
    "description": "Consulting services",
    "quantity": 8,
    "unitPrice": 93.78,
    "lineTotal": 750.24
  },
  {
    "description": "Design work",
    "quantity": 5,
    "unitPrice": 423.67,
    "lineTotal": 2118.35
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 244,
  "fromUserId": 33,
  "toUserId": 208,
  "invoiceNumber": "INV-2025-0244",
  "status": "viewed",
  "issuedAt": "2025-11-02T06:20:32.638Z",
  "dueAt": "2025-12-16T06:20:32.638Z",
  "paidAt": null,
  "subtotal": 29303.45,
  "tax": 2344.28,
  "total": 31647.73,
  "currency": "USD",
  "lineItems": [
    {
      "description": "Legal review",
      "quantity": 10,
      "unitPrice": 494.37,
      "lineTotal": 4943.7
    },
    {
      "description": "Technical support",
      "quantity": 11,
      "unitPrice": 257.94,
      "lineTotal": 2837.34
    },
    {
      "description": "Design work",
      "quantity": 24,
      "unitPrice": 446.94,
      "lineTotal": 10726.56
    },
    {
      "description": "License fee",
      "quantity": 22,
      "unitPrice": 360.33,
      "lineTotal": 7927.26
    },
    {
      "description": "Consulting services",
      "quantity": 8,
      "unitPrice": 93.78,
      "lineTotal": 750.24
    },
    {
      "description": "Design work",
      "quantity": 5,
      "unitPrice": 423.67,
      "lineTotal": 2118.35
    }
  ],
  "createdAt": "2025-11-02T01:45:31.211Z"
}