SendClassifications.Send (String, List<classifications>, Boolean, Boolean) Method

With this method, you can send Expenses or Income Classifications to myDATA.
Public Function Send( _ 
ByVal invoiceMark As String, _ 
ByVal classification As List(Of classifications), _ 
Optional ByVal GreekErrors As Boolean = False, _ 
Optional ByVal perInvoice As Boolean = False _ 
) As String
This language is not supported or no code example is available.
public string Send( 
string invoiceMark
List<classifications> classification
bool GreekErrors = False, 
bool perInvoice = False 
)
This language is not supported or no code example is available.

Parameters

invoiceMark
string

The MARK of the invoice you want to send Classifications

classification
List<classifications>

A list of classifications.

GreekErrors
bool

Determines if the error will be returned in Greek (True) or not (False).

perInvoice
bool

Determines if the classification will be sent for the whole invoice, or line by line. 
true is for sending classifications whole invoice 
false for sending classifications line by line

Return Value

string

Classification MARK or Validation Errors

Remarks
 
You can check if a classification is correct by using myDATATools.checkClassification
You can get a list of Valid Categories of an Invoice Type using myDATATools.getValidCategory
You can get a list of Valid Classification Types of an Invoice Type using myDATATools.getValidE3
 
You can export the Classification Data and send it to mydata@arbitrans.gr, so we can check your issue. Use the method ExportDataForValidation
This method exports your data in an encoded format, according to GDPR, ensuring maximum security for any sensitive or personal data.
Example
 
 // The following example shows how you can send expenses classifications for an invoice line.
 var cls = new SendClassifications("AADEUserID", "OcpApimSubscriptionKey", "ExecuteEntityVatNumber", "Arbitrans User", "Arbitrans Key", false);
 
 var clsList = new List<classifications>(); // Create a new List(Of classifications)
 
 classifications clsLine = cls.newClassification; // Create a new classification
 clsLine.lineNumber = 1;
 clsLine.classificationType = ""; // The E3 Code
 clsLine.classificationCategory = "category2_95";
 clsLine.amount = 100;
 clsLine.VatCategory = "VAT_361";
 
 clsList.Add(clsLine); // add the classification into the list
 
 // Sending Classifications. If everything's fine, you'll get back the Classification MARK.
 // Otherwise, you'll get back the errors so you can handle them properly.
 string result = cls.Send("400000000000001", clsList);
 					
This language is not supported or no code example is available.
 ' The following example shows how you can send expenses classifications for an invoice line.
 Dim cls As SendClassifications = New SendClassifications("AADEUserID", "OcpApimSubscriptionKey", "ExecuteEntityVatNumber", "Arbitrans User", "Arbitrans Key", False)
 
 Dim clsList As New List(Of classifications) 'Create a new List(Of classifications)
 
 Dim clsLine As classifications = cls.newClassification 'Create a new classification
 clsLine.lineNumber = 1
 clsLine.classificationType = "" 'The E3 Code
 clsLine.classificationCategory = "category2_95"
 clsLine.amount = 100
 clsLine.VatCategory = "VAT_361"
 
 clsList.Add(clsLine) 'add the classification into the list
 
 ' Sending Classifications. If everything's fine, you'll get back the Classification MARK.
 ' Otherwise, you'll get back the errors so you can handle them properly.
 Dim result As String = cls.Send("400000000000001", clsList)
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition