SendClassifications.Send (String, List<classifications>, Boolean, Boolean) Method
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
stringClassification MARK or Validation Errors
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.
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.
// 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.