Skip to main content

GET /api/expenses

Retrieves a paginated list of expenses for the authenticated user with support for filtering by profile, date, category, and more.

Authentication

This endpoint requires authentication. Include your access token in the request cookies.

Query Parameters

string
Filter expenses by specific profile ID (RFC emisor)
number
Filter by month (1-12)
number
Filter by year (e.g., 2024)
string
Filter by fiscal regime
string
Filter by payment type. Options: PUE, PPD, COMPLEMENTO_PAGO
string
Filter by expense category
number
default:"1"
Page number for pagination
number
default:"20"
Number of items per page
Search term to filter expenses by concept, RFC, or name

Response

Expense[]
Array of expense objects
object
required
Pagination information

Example Request

Example Response

Error Responses

error
Authentication required or token expired
error
Invalid query parameters
error
Server error occurred