DigitalCustomers.SendCustomer Method
Send a new customer to Digital Clients Base.
Public Function SendCustomer( _
ByVal customer As Customer, _
Optional ByVal GreekErrors As Boolean = False _
) As String
This language is not supported or no code example is available.
This language is not supported or no code example is available.
Parameters
-
customer
-
Customer
Customer's data, type of 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 DCLID (Customer ID); otherwise, it returns errors so that they can be handled properly.
// The following example sends a new Customer type of 'Garage'
var dgc = new DigitalCustomers("AADEUserID", "OcpApimSubscriptionKey", "EntityVatNumber", "Arbitrans User", "Arbitrans Key", false);
DigitalCustomers.Customer cust = dgc.newCustomer;
var gar = new DigitalCustomers.GarageType();
gar.vehicleRegistrationNumber = "ZZZ9999";
gar.vehicleCategory = "Passenger Car";
cust.clientServiceType = 3;
cust.customerCountry = "GR";
cust.customerVatNumber = "555777001";
cust.useCase.garage = gar;
string Result = dgc.SendCustomer(cust);
This language is not supported or no code example is available.
'The following example sends a new Customer type of 'Garage'
Dim dgc as DigitalCustomers = new DigitalCustomers("AADEUserID", "OcpApimSubscriptionKey", "EntityVatNumber", "Arbitrans User", "Arbitrans Key", False)
Dim cust as DigitalCustomers.Customer = dgc.newCustomer
Dim gar as new DigitalCustomers.GarageType
gar.vehicleRegistrationNumber = "ZZZ9999"
gar.vehicleCategory = "Passenger Car"
cust.clientServiceType = 3
cust.customerCountry = "GR"
cust.customerVatNumber = "555777001"
cust.useCase.garage = gar
Dim Result as String = dgc.SendCustomer(cust)
This language is not supported or no code example is available.
.NET Framework
Supported in: 3.5 or newer