DigitalCustomers.CancelCustomer Method
Cancel a Customer from Digital Customer Base
Public Function CancelCustomer( _
ByVal CustomerID As Long, _
Optional ByVal GreekErrors As Boolean = False _
) As String
This language is not supported or no code example is available.
public string CancelCustomer(
long CustomerID,
bool GreekErrors = False
)
This language is not supported or no code example is available.
Parameters
-
CustomerID
-
long
The initial ID (DCLID) of the Customer
-
GreekErrors
-
bool
Determines if the error will be returned in Greek or not.
Return Value
string
If the invoice is successfully sent, it returns the Cancel ID; otherwise, it returns errors so that they can be handled properly.
// The following example cancels an existing customer
DigitalCustomers dgc = new DigitalCustomers("AADEUserID", "OcpApimSubscriptionKey", "EntityVatNumber", "Arbitrans User", "Arbitrans Key", false);
string Result = dgc.CancelCustomer(100000000000001);
This language is not supported or no code example is available.
'The following example cancels an existing customer
Dim dgc as DigitalCustomers = new DigitalCustomers("AADEUserID", "OcpApimSubscriptionKey", "EntityVatNumber", "Arbitrans User", "Arbitrans Key", False)
Dim Result as String = dgc.CancelCustomer(100000000000001)
This language is not supported or no code example is available.
.NET Framework
Supported in: 3.5 or newer