RequestInvoicesProvider.Request Method

Request - Get all invoices invoices sent by the entity.
Public Sub Request( _ 
ByVal initialMark As String, _ 
ByVal maxPages As Integer, _ 
Optional ByVal GreekErrors As Boolean = False _ 
)
This language is not supported or no code example is available.
public void Request( 
string initialMark
int maxPages
bool GreekErrors = False 
)
This language is not supported or no code example is available.

Parameters

initialMark
string

Initial Search Mark. Example 400001827650000 
Note: If you want to retrieve All the invoices, start with MARK zero (0).

maxPages
int

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

GreekErrors
bool

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

Example
 
  RequestInvoicesProvider rqd = new RequestInvoicesProvider("AADEUserID", "OcpApimSubscriptionKey", "ExecuteEntityVatNumber", "Arbitrans User", "Arbitrans Key", false);
 
  rqd.Request(0, 4); //Retrieve 4 pages at once, starting with MARK 0.
 
  if (IsNothing(rqd.getErrorMessage))
     DataTable dt = rqd.getInvoices();
     // Diplay DataTable code here
  else
     MessageBox.Show(rqd.getErrorMessage);
  					
This language is not supported or no code example is available.
  Dim rqd As RequestInvoicesProvider = New RequestInvoicesProvider("AADEUserID", "OcpApimSubscriptionKey", "ExecuteEntityVatNumber", "Arbitrans User", "Arbitrans Key", False)
 
  rqd.Request(0, 4) 'Retrieve 4 pages at once, starting with MARK 0.
 
  If IsNothing(rqd.getErrorMessage) Then
      Dim dt As DataTable = rqd.getInvoices()
      ' Diplay DataTable code here
  Else
      MessageBox.Show(rqd.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