Retrieve rental or retail invoices for the authenticated user.
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/azfar-imtiaz/PayPulse-Cloud/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header.
rental or retail.type=retail). They are not valid when type=rental.
food-delivery, clothing, technology, subscriptions, grocery, utility, miscellaneous, travel.subtype to also be set.true, return invoice counts instead of invoice records. Can be combined with subtype to count a specific category. Cannot be used together with invoice-id.GET /v1/invoices/rentalReturns all rental invoices for the user from the RentalInvoices DynamoDB table, grouped by year. No query parameters are supported for rental invoices.Response data:invoiceCount — total number of invoicesinvoices — object keyed by year (e.g. "2025"), each value an array of invoice objects"Rental invoices retrieved successfully!"200 on success.null when no invoices exist. Otherwise:| Status | Error code | Description |
|---|---|---|
400 | INVALID_REQUEST | The type path parameter is not rental or retail, an invalid subtype value was provided, invoice-id was given without subtype, or counts and invoice-id were combined. |
401 | INVALID_CREDENTIALS | The Authorization header is missing or the token is invalid. |
401 | TOKEN_EXPIRED | The JWT has expired. |
404 | INVALID_REQUEST | Invoice not found (when using invoice-id). |
502 | DEPENDENCY_FAILURE | A downstream dependency (DynamoDB) returned an error. |
500 | INTERNAL_SERVER_ERROR | An unexpected server-side error occurred. |