invoices
invoices
Page 6 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": 121,
"fromUserId": 120,
"toUserId": 180,
"invoiceNumber": "INV-2025-0121",
"status": "overdue",
"issuedAt": "2025-03-14T20:28:46.495Z",
"dueAt": "2025-04-06T20:28:46.495Z",
"paidAt": null,
"subtotal": 13110.3,
"tax": 1311.03,
"total": 14421.33,
"currency": "USD",
"lineItems": [
{
"description": "Research services",
"quantity": 16,
"unitPrice": 366.37,
"lineTotal": 5861.92
},
{
"description": "Consulting services",
"quantity": 5,
"unitPrice": 226.94,
"lineTotal": 1134.7
},
{
"description": "Software development",
"quantity": 12,
"unitPrice": 209.38,
"lineTotal": 2512.56
},
{
"description": "Implementation services",
"quantity": 8,
"unitPrice": 450.14,
"lineTotal": 3601.12
}
],
"createdAt": "2025-03-14T11:37:54.327Z"
},
{
"id": 122,
"fromUserId": 107,
"toUserId": 170,
"invoiceNumber": "INV-2024-0122",
"status": "viewed",
"issuedAt": "2024-12-21T13:11:09.170Z",
"dueAt": "2025-01-04T13:11:09.170Z",
"paidAt": null,
"subtotal": 22658.08,
"tax": 1812.65,
"total": 24470.73,
"currency": "GBP",
"lineItems": [
{
"description": "Content writing",
"quantity": 15,
"unitPrice": 90.26,
"lineTotal": 1353.9
},
{
"description": "Legal review",
"quantity": 35,
"unitPrice": 251.28,
"lineTotal": 8794.8
},
{
"description": "Photography services",
"quantity": 1,
"unitPrice": 211.07,
"lineTotal": 211.07
},
{
"description": "Documentation",
"quantity": 2,
"unitPrice": 384.61,
"lineTotal": 769.22
},
{
"description": "Maintenance contract",
"quantity": 23,
"unitPrice": 354.49,
"lineTotal": 8153.27
},
{
"description": "Data analysis",
"quantity": 14,
"unitPrice": 241.13,
"lineTotal": 3375.82
}
],
"createdAt": "2024-12-21T04:01:01.685Z"
},
{
"id": 123,
"fromUserId": 158,
"toUserId": 167,
"invoiceNumber": "INV-2026-0123",
"status": "draft",
"issuedAt": "2026-01-08T19:04:57.763Z",
"dueAt": "2026-02-27T19:04:57.763Z",
"paidAt": null,
"subtotal": 12399.71,
"tax": 1859.96,
"total": 14259.67,
"currency": "AUD",
"lineItems": [
{
"description": "Consulting services",
"quantity": 8,
"unitPrice": 333,
"lineTotal": 2664
},
{
"description": "Content writing",
"quantity": 7,
"unitPrice": 169.68,
"lineTotal": 1187.76
},
{
"description": "Hardware supply",
"quantity": 23,
"unitPrice": 371.65,
"lineTotal": 8547.95
}
],
"createdAt": "2026-01-07T23:57:36.583Z"
}
],
"meta": {
"page": 6,
"limit": 24,
"total": 300,
"totalPages": 13
},
"links": {
"self": "/api/v1/invoices?page=6&limit=24",
"first": "/api/v1/invoices?page=1&limit=24",
"last": "/api/v1/invoices?page=13&limit=24",
"next": "/api/v1/invoices?page=7&limit=24",
"prev": "/api/v1/invoices?page=5&limit=24"
}
}