How to call an existing Site Service function?

You need to execute the following code:


	Services.Interfaces.Services.SiteServiceService(PluginEntry.DataModel).GetCustomerBalance()		

 

Replace "PluginEntry.DataModel" with "DLLEntry.DataModel" if you are running this on the POS.

 

This code will call the SiteServiceService and execute the desired function, which in this case is "GetCustomerBalance".