RequestE3Info.Request Method

Request - Get all E3 Info. 
The "E3 Info" is a datatable that contains an analysis of each mark that will be included in the annual E3 document, known as "E3". 
The analysis contains every possible field of the document and the amount that is going there for each invoice.
Public Sub Request( _ 
ByVal maxPages As Integer, _ 
ByVal SearchParam As String(), _ 
ByVal nextPageKeys As String(), _ 
Optional ByVal groupedData As Boolean = False, _ 
Optional ByVal GreekErrors As Boolean = False _ 
)
This language is not supported or no code example is available.
public void Request( 
int maxPages
string[] SearchParam
string[] nextPageKeys
bool groupedData = False, 
bool GreekErrors = False 
)
This language is not supported or no code example is available.

Parameters

maxPages
int

Maximum myDATA pages to retrieve. Note: myDATA returns no more than 1000 invoices per page. You can only retrieve ten (10) pages at a time!

SearchParam
string[]

Search Parameters, string array. 
The values that this field can take are as follows: {dateFrom, dateTo, entityVatNumber} 
Every date field is formatted as dd/MM/yyyy.

nextPageKeys
string[]

When the search is finished, you can initiate a new search for the next page(s) by adding the next page data. You can retrieve the next page data using the method getNextPageKeys.

groupedData
bool

When True, then the returned data are grouped by date.

GreekErrors
bool

Determines if the error will be returned in Greek or not.

Example
 
  // This code will retrieve all the income invoices for the first semester of the year 2024.
  RequestE3Info rei = new RequestE3Info("AADEUserID", "OcpApimSubscriptionKey", "ExecuteEntityVatNumber", "Arbitrans User", "Arbitrans Key", false);
 
  //SearchParam = {dateFrom, dateTo, entityVatNumber};
  string[] SearchParam = {"01/01/2024", "31/03/2024", ""};
 
  rei.Request(5, SearchParam, default, false); //Retrieve 5 pages at once, in a range of dates from 01/01/2024 to 31/03/2024.
 
  if (IsNothing(rei.getErrorMessage))
     DataTable dt = rei.getE3Info();
     // Diplay DataTable code here
  else
     MessageBox.Show(rei.getErrorMessage);
  					
This language is not supported or no code example is available.
  ' This code will retrieve all the income invoices for the first semester of the year 2024.
  Dim rei As RequestE3Info = New RequestE3Info("AADEUserID", "OcpApimSubscriptionKey", "ExecuteEntityVatNumber", "Arbitrans User", "Arbitrans Key", False)
 
  'SearchParam = {dateFrom, dateTo, entityVatNumber}
  Dim SearchParam as String() = {"01/01/2024", "31/03/2024", ""}
 
  rei.Request(5, SearchParam, Nothing, False) 'Retrieve 5 pages at once, in a range of dates from 01/01/2024 to 31/03/2024.
 
  If IsNothing(rei.getErrorMessage) Then
      Dim dt As DataTable = rei.getE3Info()
      ' Diplay DataTable code here
  Else
      MessageBox.Show(rei.getErrorMessage)
 End If
  					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition