CancelInvoice.Cancel (String, Boolean) Method

Using this method, you can Cancel a single invoice.
Public Function Cancel( _ 
ByVal MarkToCancel As String, _ 
Optional ByVal GreekErrors As Boolean = False _ 
) As String
This language is not supported or no code example is available.
public string Cancel( 
string MarkToCancel
bool GreekErrors = False 
)
This language is not supported or no code example is available.

Parameters

MarkToCancel
string

The MARK of the invoice you want to Cancel

GreekErrors
bool

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

Return Value

string
Example
 
 CancelInvoice cli = new CancelInvoice("AADEUserID", "OcpApimSubscriptionKey", "ExecuteEntityVatNumber", "Arbitrans User", "Arbitrans Key", false);
 
 // If the invoice is canceled successfully, you'll get back the Cancellation Mark.
 // Otherwise, you'll get back the errors so you can handle them properly.
 String Result = cli.CancelInvoice("400001838093656");
 					
This language is not supported or no code example is available.
 Dim cli as CancelInvoice = new CancelInvoice("AADEUserID", "OcpApimSubscriptionKey", "ExecuteEntityVatNumber", "Arbitrans User", "Arbitrans Key", False)
 
 ' If the invoice is canceled successfully, you'll get back the Cancellation Mark.
 ' Otherwise, you'll get back the errors so you can handle them properly.
 Dim Result as String = cli.CancelInvoice("400001838093656")
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition