List purchase invoices
Retrieves a paginated list of purchase invoices.
GET /api/purchase-invoicesQuery parameters
All query parameters are identical to Sales Invoices - List:
document_number(string, optional) - Filter by invoice document numberbilled_by_name(string, optional) - Filter by supplier namebilled_to_name(string, optional) - Filter by customer namebilled_to_vat(string, optional) - Filter by customer VAT numberbilled_by_vat(string, optional) - Filter by supplier VAT numberstatus(string, optional) - Filter by invoice statusdocument_date(string, optional) - Filter by invoice issue date (format:yyyy-MM-dd)page(integer, optional) - Page number (0-indexed, default:0)size(integer, optional) - Number of items per page (default:10)
Response
Status code: 200 OK
Response body:
Returns a paginated response containing an array of purchase invoice objects.
Error responses
400 Bad Request
Invalid request parameters or validation failed.
{
"errors": {
"message": "Invalid request parameters"
}
}For validation errors, the response includes field-specific errors:
{
"errors": {
"profile_execution_id": "Profile execution ID is mandatory",
"issue_date": "Issue date is mandatory"
}
}401 Unauthorized
Authentication required or invalid token.
{
"errors": {
"message": "Authentication required or invalid token"
}
}500 Internal Server Error
An error occurred while processing the request.
{
"errors": {
"message": "An error occurred"
}
}