example-data.com
Menu
Browse docs and collections

Overview

invoices / #273

invoices #273

fromUserId
Malvina Ortiz @malvina_ortiz
toUserId
Americo Hoppe @americo_hoppe57
invoiceNumber
INV-2026-0273
status
overdue
issuedAt
dueAt
paidAt
subtotal
18480.27
tax
924.01
total
19404.28
currency
AUD
lineItems
              [
  {
    "description": "Content writing",
    "quantity": 1,
    "unitPrice": 216.46,
    "lineTotal": 216.46
  },
  {
    "description": "Technical support",
    "quantity": 12,
    "unitPrice": 253.85,
    "lineTotal": 3046.2
  },
  {
    "description": "Legal review",
    "quantity": 33,
    "unitPrice": 290.71,
    "lineTotal": 9593.43
  },
  {
    "description": "Project management",
    "quantity": 29,
    "unitPrice": 78.14,
    "lineTotal": 2266.06
  },
  {
    "description": "Quality assurance",
    "quantity": 4,
    "unitPrice": 329.65,
    "lineTotal": 1318.6
  },
  {
    "description": "Technical support",
    "quantity": 16,
    "unitPrice": 127.47,
    "lineTotal": 2039.52
  }
]
            
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 273,
  "fromUserId": 234,
  "toUserId": 177,
  "invoiceNumber": "INV-2026-0273",
  "status": "overdue",
  "issuedAt": "2026-05-08T04:14:52.785Z",
  "dueAt": "2026-06-29T04:14:52.785Z",
  "paidAt": null,
  "subtotal": 18480.27,
  "tax": 924.01,
  "total": 19404.28,
  "currency": "AUD",
  "lineItems": [
    {
      "description": "Content writing",
      "quantity": 1,
      "unitPrice": 216.46,
      "lineTotal": 216.46
    },
    {
      "description": "Technical support",
      "quantity": 12,
      "unitPrice": 253.85,
      "lineTotal": 3046.2
    },
    {
      "description": "Legal review",
      "quantity": 33,
      "unitPrice": 290.71,
      "lineTotal": 9593.43
    },
    {
      "description": "Project management",
      "quantity": 29,
      "unitPrice": 78.14,
      "lineTotal": 2266.06
    },
    {
      "description": "Quality assurance",
      "quantity": 4,
      "unitPrice": 329.65,
      "lineTotal": 1318.6
    },
    {
      "description": "Technical support",
      "quantity": 16,
      "unitPrice": 127.47,
      "lineTotal": 2039.52
    }
  ],
  "createdAt": "2026-05-07T20:11:11.405Z"
}