Organization
List Invoices
Lists all invoices for the organization (Mollie).
GET /api/mollie/invoices
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
envelope | string | none | items: answer as { items, total, page, perPage }. Becomes the default on 2027-01-18. |
Example (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"
curl -X GET \
"$BASE_URL/api/mollie/invoices?envelope=items" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"Notes:
- The organization is derived automatically from your authenticated session or API token.
- The legacy route
GET /api/organizations/:organizationPublicId/mollie/invoicesremains supported for compatibility. - The
pdfUrlvalues in the response use the org-less download route/api/invoices/:invoiceId/pdf. - Downloading a PDF from
pdfUrlanswers502(data.code: invoiceProviderFailed) when the accounting provider fails or is unreachable, and404(data.code: invoiceNotFound) when the invoice does not exist. Neither is a problem with your session, so do not sign out on them. - Global admins need an active organization context in the authenticated session for the org-less route.
Response
{
"items": [
{
"id": "inv_123456",
"reference": "INV-2024-001",
"status": "paid",
"issuedAt": "2024-01-15T10:00:00.000Z",
"netAmount": {
"value": "29.99",
"currency": "EUR"
},
"pdfUrl": "/api/invoices/inv_123456/pdf"
},
{
"id": "inv_123455",
"reference": "INV-2023-128",
"status": "paid",
"issuedAt": "2023-12-15T10:00:00.000Z",
"netAmount": {
"value": "29.99",
"currency": "EUR"
},
"pdfUrl": "/api/invoices/inv_123455/pdf"
}
],
"total": 2,
"page": 1,
"perPage": 2
}List form: with envelope=items the list arrives as { items, total, page, perPage }. Without it the endpoint still answers the current form ({ "invoices": [...] }), which is deprecated; { items, ... } becomes the default on 2027-01-18.
Common errors
400 Organization ID is required in the authenticated sessionwhen no organization can be derived from the current session/token401 Unauthorizedwhen you are not logged in403 Not authorizedwhen you cannot access the organization403 Only organization admins can view invoices(data.code: forbidden) for editors, readonly users and responders of the organization; invoices carry the billing address, VAT id and amounts