Exigo Developer Resources

This database contains the documentation for Exigo's OData API's, as well as C# sample code and fully-realized demo applications ready to be customized for your needs. Start building downline viewers, reporting tools and shopping carts on the Exigo platform today!


Create an account Sign In

Direct Deposit

Overview

A simple form demonstrating how to set a customer's saved direct deposit information using the web service.

Namespaces

The following sample requires these namespaces:

using ExigoWebService;

Exigo API Authentication

The following sample accesses the web service using the ExigoApi object:

            return new ExigoApi
            {
                ApiAuthenticationValue = new ApiAuthentication
                {
                    LoginName = exigoAPILoginName,
                    Password = exigoAPIPassword,
                    Company = exigoAPICompany
                }
            };
            

jQuery

We use jQuery UI Themes for styling.

<link href="<%=this.ResolveUrl("../../Themes/start/jquery-ui.custom.css") %>" rel="stylesheet" type="text/css" />
<script src="<%=this.ResolveUrl("../../Scripts/jquery.min.js") %>" type="text/javascript"></script>
<script src="<%=this.ResolveUrl("../../Scripts/jquery-ui.min.js") %>" type="text/javascript"></script>

Populate The Country/Region Dropdown Menus

We use the webservice GetCountryRegions method to request a list of countries.

        // Get the data
        var response = Exigo.GetCountryRegions(new GetCountryRegionsRequest()
        {
            CountryCode = countryCode
        });
        

The webservice RegionResponse method returns the requested regions.

        // Populate the new regions into the dropdown
        foreach (RegionResponse r in response.Regions)
        {
            regionList.Items.Add(new ListItem()
            {
                Value = r.RegionCode,
                Text = r.RegionName
            });
        }
    }