Skip to main content

Overview

Retrieves a paginated list of invoice vouchers from Ecuador. This endpoint represents the grid view for Ecuador invoice vouchers in the accounts payable module.

Authentication

This endpoint requires authentication. Include a valid bearer token in the Authorization header.

Query Parameters

TypeFilter
integer
required
Filter type for date range:
  • 1 - Previous day
  • 2 - Previous month
  • 3 - Current month
  • 4 - Last year
  • 5 - Full month by year (requires Month and Year parameters)
  • 6 - Custom
  • 7 - All records
Month
integer
Specific month to search. Valid values: 1-12. Required when TypeFilter is 5.
Year
integer
Specific year to search. Valid values from previous year onwards. Required when TypeFilter is 5.
Page
integer
default:"1"
Page number, starting from 1.
PagSize
integer
Number of records to retrieve per page.

Response Schema

Returns a ResultDataGridModel object containing:
currentPage
integer
required
Current page number
gridName
string
required
Name of the grid
gridId
integer
required
Unique identifier for the grid
totalRecordsReturned
integer
required
Number of records returned in current response
totalPages
integer
required
Total number of pages available
totalRecords
integer
required
Total number of records available
dataRecord
object
required
Contains the actual grid data

Response Codes

  • 200 - Success
  • 401 - Unauthorized - Authentication token is missing or invalid
  • 500 - Internal Server Error

Caching

This endpoint has response caching enabled with a duration of 900 seconds (15 minutes).

Example Request

curl -X GET "https://api.example.com/api/accounts-payable/invoice/vouchers/ecuador?TypeFilter=3&Page=1&PagSize=50" \
  -H "Authorization: Basic <base64-credentials>" \
  -H "Content-Type: application/json"

Example Response

{
  "currentPage": 1,
  "gridName": "Invoice Vouchers Ecuador",
  "gridId": 12345,
  "totalRecordsReturned": 50,
  "totalPages": 10,
  "totalRecords": 487,
  "dataRecord": {
    "fields": [
      {
        "id": 1,
        "label": "Voucher Number",
        "name": "voucherNumber",
        "order": 1,
        "type": "string",
        "visible": true,
        "width": 150
      },
      {
        "id": 2,
        "label": "Date",
        "name": "date",
        "order": 2,
        "type": "date",
        "visible": true,
        "width": 120
      }
    ],
    "rows": [
      {
        "voucherNumber": "INV-2024-001",
        "date": "2024-03-01"
      },
      {
        "voucherNumber": "INV-2024-002",
        "date": "2024-03-02"
      }
    ]
  }
}

Build docs developers (and LLMs) love