Get invoices
Invoices
Get invoices
Retrieve rental or retail invoices for the authenticated user.
GET
Get invoices
Authentication
All requests to this endpoint must include a valid JWT in theAuthorization header.
Path parameters
string
required
Invoice type. Must be
rental or retail.Query parameters
The following query parameters are supported for retail invoices only (type=retail). They are not valid when type=rental.
string
Filter by retail invoice sub-type. Valid values:
food-delivery, clothing, technology, subscriptions, grocery, utility, miscellaneous, travel.string
Retrieve the parsed detail record for a specific retail invoice. Requires
subtype to also be set.boolean
When
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.Behavior by mode
- Rental invoices
- All retail invoices
- Retail by sub-type
- Retail invoice details
- Invoice counts
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
Response (rental invoices)
string
Example:
"Rental invoices retrieved successfully!"number
200 on success.object | null
null when no invoices exist. Otherwise: