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

Distributor GeoMap


A Google-powered flash map that uses OData to visually pinpoint where your distributors are located in the world. Allows for drilling into countries for region details.


This sample requires the following namespaces:

using ExigoWebService;

Exigo API Authentication

This sample accesses the web service using the ExigoApi object:

    public ExigoApi Exigo
            return new ExigoApi
                ApiAuthenticationValue = new ApiAuthentication
                    LoginName = exigoAPILoginName,
                    Password = exigoAPIPassword,
                    Company = exigoAPICompany

Google GeoMap

We are using Google's GeoMap Visualization API to display our data.

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type='text/javascript' src='https://www.google.com/jsapi'></script>

Fetching Personally Enrolled Customers

To fetch our personally enrolled customers, we use the web service's GetCustomers method. We are using this instead of the GetDownline method because we need each customer's region and country as well.

While a custom report would be the best way to fetch this data, this sample focuses on making this report using standard web service calls. We also acknowledge that this is a very expensive call due to the batch size, and if you were to use this feature as-is, we recommend only using this method of data-fetching if your downlines are relatively small. Otherwise, request a custom API report from Exigo so that you can pull a larger set of nodes faster.

We are passing a string variable called "countryCode" to optionally filter our results by a provided country code.

        GetCustomersRequest request = new GetCustomersRequest();
        request.EnrollerID = customerID;
        request.BatchSize = 50000;
        if(countryCode != null)
            request.MainCountry = countryCode;
        var data = Exigo.GetCustomers(request).Customers;