CancelInvoice.Cancel (List<String>, Boolean) Method
Parameters
A list with the MARKs of all the invoices you want to cancel.
- GreekErrors
- bool
Determines if the error will be returned in Greek or not.
Return Value
Dictionary<string, object>
The following example, will return a dictonary like this:
[
(400001838093656, cancellation mark:400001895061179)
(400001838093657, cancellation mark:400001895061180)
(400001838093658, Invoice with MARK 400001838093658 cannot be cancelled because of being already cancelled)
(400001838093659, cancellation mark:400001895061181)
(400001838093660, Invoice with MARK 400001838093660 cannot be cancelled because of being already cancelled)
]
[
(400001838093656, cancellation mark:400001895061179)
(400001838093657, cancellation mark:400001895061180)
(400001838093658, Invoice with MARK 400001838093658 cannot be cancelled because of being already cancelled)
(400001838093659, cancellation mark:400001895061181)
(400001838093660, Invoice with MARK 400001838093660 cannot be cancelled because of being already cancelled)
]
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. var markList = new List<string>(); markList.Add("400001838093656"); markList.Add("400001838093657"); markList.Add("400001838093658"); markList.Add("400001838093659"); markList.Add("400001838093660"); Dictionary<string, object> Result = cli.CancelInvoice(markList);
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 markList As New List(Of String) markList.add("400001838093656") markList.add("400001838093657") markList.add("400001838093658") markList.add("400001838093659") markList.add("400001838093660") Dim Result As Dictionary(Of String, Object) = cli.CancelInvoice(markList)
This language is not supported or no code example is available.