DigitalCustomers.UpdateCustomer Method

Update an existing customer to Digital Clients Base.
public string UpdateCustomer( 
   UpCustomer customer
   bool GreekErrors = False 
)

Parameters

customer
UpCustomer

The Updated data of the Customer, type of UpCustomer

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 UPID (Update ID); otherwise, it returns errors so that they can be handled properly.

Example
 
// The following example sends an update command to Digital Customer Base
// without updating anything.
DigitalCustomers dgc = new DigitalCustomers("AADEUserID", "OcpApimSubscriptionKey", "EntityVatNumber", "Arbitrans User", "Arbitrans Key", false);
DigitalCustomers.UpCustomer cust = dgc.newUpCustomer;
 
cust.dclId = 100000000000001
cust.clientServiceType = 3
 
string Result = dgc.UpdateCustomer(cust);
                    

.NET Framework

Supported in: 3.5 or newer