invoices
invoices
Page 10 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": 217,
"fromUserId": 226,
"toUserId": 174,
"invoiceNumber": "INV-2024-0217",
"status": "paid",
"issuedAt": "2024-08-20T14:30:53.468Z",
"dueAt": "2024-09-05T14:30:53.468Z",
"paidAt": "2024-08-20T17:05:49.845Z",
"subtotal": 6963.51,
"tax": 1392.7,
"total": 8356.21,
"currency": "AUD",
"lineItems": [
{
"description": "Technical support",
"quantity": 22,
"unitPrice": 220.34,
"lineTotal": 4847.48
},
{
"description": "Technical support",
"quantity": 37,
"unitPrice": 57.19,
"lineTotal": 2116.03
}
],
"createdAt": "2024-08-20T07:14:18.052Z"
},
{
"id": 218,
"fromUserId": 189,
"toUserId": 61,
"invoiceNumber": "INV-2024-0218",
"status": "paid",
"issuedAt": "2024-07-12T08:27:42.356Z",
"dueAt": "2024-07-26T08:27:42.356Z",
"paidAt": "2024-07-20T10:29:10.480Z",
"subtotal": 4260.4,
"tax": 639.06,
"total": 4899.46,
"currency": "GBP",
"lineItems": [
{
"description": "Maintenance contract",
"quantity": 31,
"unitPrice": 116.32,
"lineTotal": 3605.92
},
{
"description": "Training session",
"quantity": 8,
"unitPrice": 81.81,
"lineTotal": 654.48
}
],
"createdAt": "2024-07-12T06:28:35.153Z"
},
{
"id": 219,
"fromUserId": 185,
"toUserId": 139,
"invoiceNumber": "INV-2025-0219",
"status": "overdue",
"issuedAt": "2025-07-08T11:57:48.694Z",
"dueAt": "2025-07-21T11:57:48.694Z",
"paidAt": null,
"subtotal": 20876.3,
"tax": 4175.26,
"total": 25051.56,
"currency": "EUR",
"lineItems": [
{
"description": "Content writing",
"quantity": 32,
"unitPrice": 220.56,
"lineTotal": 7057.92
},
{
"description": "License fee",
"quantity": 19,
"unitPrice": 201.12,
"lineTotal": 3821.28
},
{
"description": "Documentation",
"quantity": 17,
"unitPrice": 11.54,
"lineTotal": 196.18
},
{
"description": "Content writing",
"quantity": 12,
"unitPrice": 279.17,
"lineTotal": 3350.04
},
{
"description": "Legal review",
"quantity": 38,
"unitPrice": 169.76,
"lineTotal": 6450.88
}
],
"createdAt": "2025-07-08T06:27:58.355Z"
}
],
"meta": {
"page": 10,
"limit": 24,
"total": 300,
"totalPages": 13
},
"links": {
"self": "/api/v1/invoices?page=10&limit=24",
"first": "/api/v1/invoices?page=1&limit=24",
"last": "/api/v1/invoices?page=13&limit=24",
"next": "/api/v1/invoices?page=11&limit=24",
"prev": "/api/v1/invoices?page=9&limit=24"
}
}