invoices
invoices
Page 2 of 13.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/invoices?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/invoices?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/invoices";
const res = await fetch(
"https://example-data.com/api/v1/invoices?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Invoice>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/invoices",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 25,
"fromUserId": 59,
"toUserId": 128,
"invoiceNumber": "INV-2026-0025",
"status": "draft",
"issuedAt": "2026-03-19T14:52:56.775Z",
"dueAt": "2026-05-09T14:52:56.775Z",
"paidAt": null,
"subtotal": 29687.46,
"tax": 2375,
"total": 32062.46,
"currency": "USD",
"lineItems": [
{
"description": "Technical support",
"quantity": 38,
"unitPrice": 469.4,
"lineTotal": 17837.2
},
{
"description": "Data analysis",
"quantity": 12,
"unitPrice": 261.73,
"lineTotal": 3140.76
},
{
"description": "System integration",
"quantity": 6,
"unitPrice": 432.41,
"lineTotal": 2594.46
},
{
"description": "Documentation",
"quantity": 10,
"unitPrice": 395.63,
"lineTotal": 3956.3
},
{
"description": "Hardware supply",
"quantity": 18,
"unitPrice": 119.93,
"lineTotal": 2158.74
}
],
"createdAt": "2026-03-19T07:00:44.471Z"
},
{
"id": 26,
"fromUserId": 219,
"toUserId": 37,
"invoiceNumber": "INV-2025-0026",
"status": "overdue",
"issuedAt": "2025-12-24T19:56:29.474Z",
"dueAt": "2026-01-09T19:56:29.474Z",
"paidAt": null,
"subtotal": 15856.92,
"tax": 1268.55,
"total": 17125.47,
"currency": "USD",
"lineItems": [
{
"description": "Marketing services",
"quantity": 32,
"unitPrice": 158.43,
"lineTotal": 5069.76
},
{
"description": "Training session",
"quantity": 6,
"unitPrice": 55.21,
"lineTotal": 331.26
},
{
"description": "Research services",
"quantity": 14,
"unitPrice": 13.01,
"lineTotal": 182.14
},
{
"description": "Technical support",
"quantity": 28,
"unitPrice": 220.58,
"lineTotal": 6176.24
},
{
"description": "License fee",
"quantity": 21,
"unitPrice": 195.12,
"lineTotal": 4097.52
}
],
"createdAt": "2025-12-24T11:38:25.025Z"
},
{
"id": 27,
"fromUserId": 79,
"toUserId": 91,
"invoiceNumber": "INV-2024-0027",
"status": "paid",
"issuedAt": "2024-08-02T04:36:20.170Z",
"dueAt": "2024-08-11T04:36:20.170Z",
"paidAt": "2024-08-09T13:34:17.110Z",
"subtotal": 17797.39,
"tax": 0,
"total": 17797.39,
"currency": "EUR",
"lineItems": [
{
"description": "Maintenance contract",
"quantity": 28,
"unitPrice": 257.15,
"lineTotal": 7200.2
},
{
"description": "Software development",
"quantity": 9,
"unitPrice": 98.43,
"lineTotal": 885.87
},
{
"description": "Photography services",
"quantity": 16,
"unitPrice": 405.75,
"lineTotal": 6492
},
{
"description": "Project management",
"quantity": 26,
"unitPrice": 123.82,
"lineTotal": 3219.32
}
],
"createdAt": "2024-08-01T10:00:59.023Z"
}
],
"meta": {
"page": 2,
"limit": 24,
"total": 300,
"totalPages": 13
},
"links": {
"self": "/api/v1/invoices?page=2&limit=24",
"first": "/api/v1/invoices?page=1&limit=24",
"last": "/api/v1/invoices?page=13&limit=24",
"next": "/api/v1/invoices?page=3&limit=24",
"prev": "/api/v1/invoices?page=1&limit=24"
}
}