AS Server - API - Customer

Default

customerDelete

Customer_Delete


/Customer/Delete

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/Delete" \
 -d '{
  "WebsiteID" : 1,
  "TenantID" : 6,
  "UserID" : 5,
  "IsDeleteAllClaims" : true,
  "ID" : 0
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerDeleteRequest>
  <ID>123</ID>
  <IsDeleteAllClaims>true</IsDeleteAllClaims>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerDeleteRequest>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerDeleteRequest customerDeleteRequest = {"ID":0,"IsDeleteAllClaims":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerDeleteRequest | 

        try {
            Object result = apiInstance.customerDelete(customerDeleteRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerDeleteRequest customerDeleteRequest = new CustomerDeleteRequest(); // CustomerDeleteRequest | 

try {
    final result = await api_instance.customerDelete(customerDeleteRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerDelete: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerDeleteRequest customerDeleteRequest = {"ID":0,"IsDeleteAllClaims":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerDeleteRequest | 

        try {
            Object result = apiInstance.customerDelete(customerDeleteRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerDeleteRequest *customerDeleteRequest = {"ID":0,"IsDeleteAllClaims":true,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_Delete
[apiInstance customerDeleteWith:customerDeleteRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerDeleteRequest': {"ID":0,"IsDeleteAllClaims":true,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerDeleteRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerDelete(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerDeleteRequest = new CustomerDeleteRequest(); // CustomerDeleteRequest |  (optional) 

            try {
                // Customer_Delete
                Object result = apiInstance.customerDelete(customerDeleteRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerDeleteRequest = {"ID":0,"IsDeleteAllClaims":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerDeleteRequest | 

try {
    $result = $api_instance->customerDelete($customerDeleteRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerDeleteRequest = WWW::OPenAPIClient::Object::CustomerDeleteRequest->new(); # CustomerDeleteRequest | 

eval {
    my $result = $api_instance->customerDelete(customerDeleteRequest => $customerDeleteRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerDeleteRequest = {"ID":0,"IsDeleteAllClaims":true,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerDeleteRequest |  (optional)

try:
    # Customer_Delete
    api_response = api_instance.customer_delete(customerDeleteRequest=customerDeleteRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerDelete: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerDeleteRequest = {"ID":0,"IsDeleteAllClaims":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerDeleteRequest

    let mut context = DefaultApi::Context::default();
    let result = client.customerDelete(customerDeleteRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerDeleteRequest

Responses


customerGet

Customer_Get


/Customer/Get/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Customer/Get/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

        try {
            Object result = apiInstance.customerGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Format - int32.

try {
    final result = await api_instance.customerGet(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerGet: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

        try {
            Object result = apiInstance.customerGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; // Format - int32. (default to null)

// Customer_Get
[apiInstance customerGetWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var id = 56; // {Integer} Format - int32.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerGet(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerGetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Format - int32. (default to null)

            try {
                // Customer_Get
                Object result = apiInstance.customerGet(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | Format - int32.

try {
    $result = $api_instance->customerGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->customerGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | Format - int32. (default to null)

try:
    # Customer_Get
    api_response = api_instance.customer_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerGet: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.customerGet(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Format - int32.
Required

Responses


customerGetCustomerClassStats

Customer_GetCustomerClassStats


/Customer/GetCustomerClassStats

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/GetCustomerClassStats" \
 -d '{
  "ParentID" : 3,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "CustomerID" : 6,
  "IsExactMatch" : true,
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "IgnoreProspectID" : 1,
  "TenantID" : 5,
  "IsHierarchicalSort" : true,
  "Search" : "Search",
  "IsLinkedCustomersOnly" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "AccountCustomerID" : 2,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 4,
  "WebsiteID" : 9,
  "GetIsValidForBillToOnly" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 1, 1 ],
  "LastRowNumber" : 1,
  "MaxResults" : 4,
  "IsShowAccountCustomersOnly" : true,
  "CreatedByUserID" : 0,
  "Statuses" : [ 7, 7 ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 1, 1 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "IsCODorPrePaidAccountCustomersOnly" : true,
  "CustomerClassID" : 5,
  "CategoryIDs" : [ 1, 1 ],
  "IgnoreID" : 9,
  "IsShowFavourites" : true,
  "UserID" : 9,
  "SortAsc" : true,
  "LinkedSupplierID" : 6,
  "TerritoryID" : 5,
  "IsHidden" : true,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "TransactionTypeDatTypeID" : 2
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerFilter>
  <GetIsValidForBillToOnly>true</GetIsValidForBillToOnly>
  <CreatedByUserID>123</CreatedByUserID>
  <CustomerID>123</CustomerID>
  <IsLinkedCustomersOnly>true</IsLinkedCustomersOnly>
  <IgnoreProspectID>123</IgnoreProspectID>
  <CustomerClassID>123</CustomerClassID>
  <TerritoryID>123</TerritoryID>
  <IsShowAccountCustomersOnly>true</IsShowAccountCustomersOnly>
  <AccountCustomerID>123</AccountCustomerID>
  <IsCODorPrePaidAccountCustomersOnly>true</IsCODorPrePaidAccountCustomersOnly>
  <Statuses>123</Statuses>
  <StatusStrings>aeiou</StatusStrings>
  <Status>aeiou</Status>
  <SearchString>aeiou</SearchString>
  <SearchNameOnly>true</SearchNameOnly>
  <Search>aeiou</Search>
  <StartDate>2000-01-23T04:56:07.000Z</StartDate>
  <EndDate>2000-01-23T04:56:07.000Z</EndDate>
  <DatePeriod>aeiou</DatePeriod>
  <IsExactMatch>true</IsExactMatch>
  <IsGetBasicInfo>true</IsGetBasicInfo>
  <IncludeDeleted>true</IncludeDeleted>
  <IncludeLogs>true</IncludeLogs>
  <IgnoreID>123</IgnoreID>
  <ParentID>123</ParentID>
  <GetCountOnly>true</GetCountOnly>
  <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
  <CategoryID>123</CategoryID>
  <AdaptorID>123</AdaptorID>
  <CategoryIDs>123</CategoryIDs>
  <BrandIDs>123</BrandIDs>
  <IDs>123</IDs>
  <GUIDs>aeiou</GUIDs>
  <LinkedSupplierID>123</LinkedSupplierID>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <IsApprovedForService>true</IsApprovedForService>
  <ID>123</ID>
  <IsHierarchicalSort>true</IsHierarchicalSort>
  <Types>aeiou</Types>
  <IsShowFavourites>true</IsShowFavourites>
  <IsHidden>true</IsHidden>
  <IncludeSystemTasks>true</IncludeSystemTasks>
  <IsSystem>true</IsSystem>
  <BatchStatus>aeiou</BatchStatus>
  <SortField>aeiou</SortField>
  <SortAsc>true</SortAsc>
  <GroupBy>aeiou</GroupBy>
  <LastRowNumber>123456789</LastRowNumber>
  <MaxResults>123</MaxResults>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerFilter>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetCustomerClassStats(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetCustomerClassStats");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerFilter customerFilter = new CustomerFilter(); // CustomerFilter | 

try {
    final result = await api_instance.customerGetCustomerClassStats(customerFilter);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerGetCustomerClassStats: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetCustomerClassStats(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetCustomerClassStats");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerFilter *customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_GetCustomerClassStats
[apiInstance customerGetCustomerClassStatsWith:customerFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerFilter': {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerFilter} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerGetCustomerClassStats(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerGetCustomerClassStatsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerFilter = new CustomerFilter(); // CustomerFilter |  (optional) 

            try {
                // Customer_GetCustomerClassStats
                Object result = apiInstance.customerGetCustomerClassStats(customerFilter);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerGetCustomerClassStats: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

try {
    $result = $api_instance->customerGetCustomerClassStats($customerFilter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerGetCustomerClassStats: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerFilter = WWW::OPenAPIClient::Object::CustomerFilter->new(); # CustomerFilter | 

eval {
    my $result = $api_instance->customerGetCustomerClassStats(customerFilter => $customerFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerGetCustomerClassStats: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerFilter |  (optional)

try:
    # Customer_GetCustomerClassStats
    api_response = api_instance.customer_get_customer_class_stats(customerFilter=customerFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerGetCustomerClassStats: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter

    let mut context = DefaultApi::Context::default();
    let result = client.customerGetCustomerClassStats(customerFilter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerFilter

Responses


customerGetCustomersWhoRecentlyClaimed

Customer_GetCustomersWhoRecentlyClaimed


/Customer/GetCustomersWhoRecentlyClaimed

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/GetCustomersWhoRecentlyClaimed" \
 -d '{
  "ParentID" : 3,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "CustomerID" : 6,
  "IsExactMatch" : true,
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "IgnoreProspectID" : 1,
  "TenantID" : 5,
  "IsHierarchicalSort" : true,
  "Search" : "Search",
  "IsLinkedCustomersOnly" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "AccountCustomerID" : 2,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 4,
  "WebsiteID" : 9,
  "GetIsValidForBillToOnly" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 1, 1 ],
  "LastRowNumber" : 1,
  "MaxResults" : 4,
  "IsShowAccountCustomersOnly" : true,
  "CreatedByUserID" : 0,
  "Statuses" : [ 7, 7 ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 1, 1 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "IsCODorPrePaidAccountCustomersOnly" : true,
  "CustomerClassID" : 5,
  "CategoryIDs" : [ 1, 1 ],
  "IgnoreID" : 9,
  "IsShowFavourites" : true,
  "UserID" : 9,
  "SortAsc" : true,
  "LinkedSupplierID" : 6,
  "TerritoryID" : 5,
  "IsHidden" : true,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "TransactionTypeDatTypeID" : 2
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerFilter>
  <GetIsValidForBillToOnly>true</GetIsValidForBillToOnly>
  <CreatedByUserID>123</CreatedByUserID>
  <CustomerID>123</CustomerID>
  <IsLinkedCustomersOnly>true</IsLinkedCustomersOnly>
  <IgnoreProspectID>123</IgnoreProspectID>
  <CustomerClassID>123</CustomerClassID>
  <TerritoryID>123</TerritoryID>
  <IsShowAccountCustomersOnly>true</IsShowAccountCustomersOnly>
  <AccountCustomerID>123</AccountCustomerID>
  <IsCODorPrePaidAccountCustomersOnly>true</IsCODorPrePaidAccountCustomersOnly>
  <Statuses>123</Statuses>
  <StatusStrings>aeiou</StatusStrings>
  <Status>aeiou</Status>
  <SearchString>aeiou</SearchString>
  <SearchNameOnly>true</SearchNameOnly>
  <Search>aeiou</Search>
  <StartDate>2000-01-23T04:56:07.000Z</StartDate>
  <EndDate>2000-01-23T04:56:07.000Z</EndDate>
  <DatePeriod>aeiou</DatePeriod>
  <IsExactMatch>true</IsExactMatch>
  <IsGetBasicInfo>true</IsGetBasicInfo>
  <IncludeDeleted>true</IncludeDeleted>
  <IncludeLogs>true</IncludeLogs>
  <IgnoreID>123</IgnoreID>
  <ParentID>123</ParentID>
  <GetCountOnly>true</GetCountOnly>
  <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
  <CategoryID>123</CategoryID>
  <AdaptorID>123</AdaptorID>
  <CategoryIDs>123</CategoryIDs>
  <BrandIDs>123</BrandIDs>
  <IDs>123</IDs>
  <GUIDs>aeiou</GUIDs>
  <LinkedSupplierID>123</LinkedSupplierID>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <IsApprovedForService>true</IsApprovedForService>
  <ID>123</ID>
  <IsHierarchicalSort>true</IsHierarchicalSort>
  <Types>aeiou</Types>
  <IsShowFavourites>true</IsShowFavourites>
  <IsHidden>true</IsHidden>
  <IncludeSystemTasks>true</IncludeSystemTasks>
  <IsSystem>true</IsSystem>
  <BatchStatus>aeiou</BatchStatus>
  <SortField>aeiou</SortField>
  <SortAsc>true</SortAsc>
  <GroupBy>aeiou</GroupBy>
  <LastRowNumber>123456789</LastRowNumber>
  <MaxResults>123</MaxResults>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerFilter>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetCustomersWhoRecentlyClaimed(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetCustomersWhoRecentlyClaimed");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerFilter customerFilter = new CustomerFilter(); // CustomerFilter | 

try {
    final result = await api_instance.customerGetCustomersWhoRecentlyClaimed(customerFilter);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerGetCustomersWhoRecentlyClaimed: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetCustomersWhoRecentlyClaimed(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetCustomersWhoRecentlyClaimed");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerFilter *customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_GetCustomersWhoRecentlyClaimed
[apiInstance customerGetCustomersWhoRecentlyClaimedWith:customerFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerFilter': {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerFilter} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerGetCustomersWhoRecentlyClaimed(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerGetCustomersWhoRecentlyClaimedExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerFilter = new CustomerFilter(); // CustomerFilter |  (optional) 

            try {
                // Customer_GetCustomersWhoRecentlyClaimed
                Object result = apiInstance.customerGetCustomersWhoRecentlyClaimed(customerFilter);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerGetCustomersWhoRecentlyClaimed: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

try {
    $result = $api_instance->customerGetCustomersWhoRecentlyClaimed($customerFilter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerGetCustomersWhoRecentlyClaimed: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerFilter = WWW::OPenAPIClient::Object::CustomerFilter->new(); # CustomerFilter | 

eval {
    my $result = $api_instance->customerGetCustomersWhoRecentlyClaimed(customerFilter => $customerFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerGetCustomersWhoRecentlyClaimed: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerFilter |  (optional)

try:
    # Customer_GetCustomersWhoRecentlyClaimed
    api_response = api_instance.customer_get_customers_who_recently_claimed(customerFilter=customerFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerGetCustomersWhoRecentlyClaimed: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter

    let mut context = DefaultApi::Context::default();
    let result = client.customerGetCustomersWhoRecentlyClaimed(customerFilter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerFilter

Responses


customerGetNewestCustomers

Customer_GetNewestCustomers


/Customer/GetNewestCustomers

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/GetNewestCustomers" \
 -d '{
  "ParentID" : 3,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "CustomerID" : 6,
  "IsExactMatch" : true,
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "IgnoreProspectID" : 1,
  "TenantID" : 5,
  "IsHierarchicalSort" : true,
  "Search" : "Search",
  "IsLinkedCustomersOnly" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "AccountCustomerID" : 2,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 4,
  "WebsiteID" : 9,
  "GetIsValidForBillToOnly" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 1, 1 ],
  "LastRowNumber" : 1,
  "MaxResults" : 4,
  "IsShowAccountCustomersOnly" : true,
  "CreatedByUserID" : 0,
  "Statuses" : [ 7, 7 ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 1, 1 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "IsCODorPrePaidAccountCustomersOnly" : true,
  "CustomerClassID" : 5,
  "CategoryIDs" : [ 1, 1 ],
  "IgnoreID" : 9,
  "IsShowFavourites" : true,
  "UserID" : 9,
  "SortAsc" : true,
  "LinkedSupplierID" : 6,
  "TerritoryID" : 5,
  "IsHidden" : true,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "TransactionTypeDatTypeID" : 2
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerFilter>
  <GetIsValidForBillToOnly>true</GetIsValidForBillToOnly>
  <CreatedByUserID>123</CreatedByUserID>
  <CustomerID>123</CustomerID>
  <IsLinkedCustomersOnly>true</IsLinkedCustomersOnly>
  <IgnoreProspectID>123</IgnoreProspectID>
  <CustomerClassID>123</CustomerClassID>
  <TerritoryID>123</TerritoryID>
  <IsShowAccountCustomersOnly>true</IsShowAccountCustomersOnly>
  <AccountCustomerID>123</AccountCustomerID>
  <IsCODorPrePaidAccountCustomersOnly>true</IsCODorPrePaidAccountCustomersOnly>
  <Statuses>123</Statuses>
  <StatusStrings>aeiou</StatusStrings>
  <Status>aeiou</Status>
  <SearchString>aeiou</SearchString>
  <SearchNameOnly>true</SearchNameOnly>
  <Search>aeiou</Search>
  <StartDate>2000-01-23T04:56:07.000Z</StartDate>
  <EndDate>2000-01-23T04:56:07.000Z</EndDate>
  <DatePeriod>aeiou</DatePeriod>
  <IsExactMatch>true</IsExactMatch>
  <IsGetBasicInfo>true</IsGetBasicInfo>
  <IncludeDeleted>true</IncludeDeleted>
  <IncludeLogs>true</IncludeLogs>
  <IgnoreID>123</IgnoreID>
  <ParentID>123</ParentID>
  <GetCountOnly>true</GetCountOnly>
  <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
  <CategoryID>123</CategoryID>
  <AdaptorID>123</AdaptorID>
  <CategoryIDs>123</CategoryIDs>
  <BrandIDs>123</BrandIDs>
  <IDs>123</IDs>
  <GUIDs>aeiou</GUIDs>
  <LinkedSupplierID>123</LinkedSupplierID>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <IsApprovedForService>true</IsApprovedForService>
  <ID>123</ID>
  <IsHierarchicalSort>true</IsHierarchicalSort>
  <Types>aeiou</Types>
  <IsShowFavourites>true</IsShowFavourites>
  <IsHidden>true</IsHidden>
  <IncludeSystemTasks>true</IncludeSystemTasks>
  <IsSystem>true</IsSystem>
  <BatchStatus>aeiou</BatchStatus>
  <SortField>aeiou</SortField>
  <SortAsc>true</SortAsc>
  <GroupBy>aeiou</GroupBy>
  <LastRowNumber>123456789</LastRowNumber>
  <MaxResults>123</MaxResults>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerFilter>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetNewestCustomers(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetNewestCustomers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerFilter customerFilter = new CustomerFilter(); // CustomerFilter | 

try {
    final result = await api_instance.customerGetNewestCustomers(customerFilter);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerGetNewestCustomers: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetNewestCustomers(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetNewestCustomers");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerFilter *customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_GetNewestCustomers
[apiInstance customerGetNewestCustomersWith:customerFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerFilter': {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerFilter} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerGetNewestCustomers(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerGetNewestCustomersExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerFilter = new CustomerFilter(); // CustomerFilter |  (optional) 

            try {
                // Customer_GetNewestCustomers
                Object result = apiInstance.customerGetNewestCustomers(customerFilter);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerGetNewestCustomers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

try {
    $result = $api_instance->customerGetNewestCustomers($customerFilter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerGetNewestCustomers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerFilter = WWW::OPenAPIClient::Object::CustomerFilter->new(); # CustomerFilter | 

eval {
    my $result = $api_instance->customerGetNewestCustomers(customerFilter => $customerFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerGetNewestCustomers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerFilter |  (optional)

try:
    # Customer_GetNewestCustomers
    api_response = api_instance.customer_get_newest_customers(customerFilter=customerFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerGetNewestCustomers: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter

    let mut context = DefaultApi::Context::default();
    let result = client.customerGetNewestCustomers(customerFilter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerFilter

Responses


customerGetRecentTransactionsForCustomer

Customer_GetRecentTransactionsForCustomer


/Customer/GetRecentTransactionsForCustomer

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/GetRecentTransactionsForCustomer" \
 -d '{
  "ParentID" : 3,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "CustomerID" : 6,
  "IsExactMatch" : true,
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "IgnoreProspectID" : 1,
  "TenantID" : 5,
  "IsHierarchicalSort" : true,
  "Search" : "Search",
  "IsLinkedCustomersOnly" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "AccountCustomerID" : 2,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 4,
  "WebsiteID" : 9,
  "GetIsValidForBillToOnly" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 1, 1 ],
  "LastRowNumber" : 1,
  "MaxResults" : 4,
  "IsShowAccountCustomersOnly" : true,
  "CreatedByUserID" : 0,
  "Statuses" : [ 7, 7 ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 1, 1 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "IsCODorPrePaidAccountCustomersOnly" : true,
  "CustomerClassID" : 5,
  "CategoryIDs" : [ 1, 1 ],
  "IgnoreID" : 9,
  "IsShowFavourites" : true,
  "UserID" : 9,
  "SortAsc" : true,
  "LinkedSupplierID" : 6,
  "TerritoryID" : 5,
  "IsHidden" : true,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "TransactionTypeDatTypeID" : 2
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerFilter>
  <GetIsValidForBillToOnly>true</GetIsValidForBillToOnly>
  <CreatedByUserID>123</CreatedByUserID>
  <CustomerID>123</CustomerID>
  <IsLinkedCustomersOnly>true</IsLinkedCustomersOnly>
  <IgnoreProspectID>123</IgnoreProspectID>
  <CustomerClassID>123</CustomerClassID>
  <TerritoryID>123</TerritoryID>
  <IsShowAccountCustomersOnly>true</IsShowAccountCustomersOnly>
  <AccountCustomerID>123</AccountCustomerID>
  <IsCODorPrePaidAccountCustomersOnly>true</IsCODorPrePaidAccountCustomersOnly>
  <Statuses>123</Statuses>
  <StatusStrings>aeiou</StatusStrings>
  <Status>aeiou</Status>
  <SearchString>aeiou</SearchString>
  <SearchNameOnly>true</SearchNameOnly>
  <Search>aeiou</Search>
  <StartDate>2000-01-23T04:56:07.000Z</StartDate>
  <EndDate>2000-01-23T04:56:07.000Z</EndDate>
  <DatePeriod>aeiou</DatePeriod>
  <IsExactMatch>true</IsExactMatch>
  <IsGetBasicInfo>true</IsGetBasicInfo>
  <IncludeDeleted>true</IncludeDeleted>
  <IncludeLogs>true</IncludeLogs>
  <IgnoreID>123</IgnoreID>
  <ParentID>123</ParentID>
  <GetCountOnly>true</GetCountOnly>
  <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
  <CategoryID>123</CategoryID>
  <AdaptorID>123</AdaptorID>
  <CategoryIDs>123</CategoryIDs>
  <BrandIDs>123</BrandIDs>
  <IDs>123</IDs>
  <GUIDs>aeiou</GUIDs>
  <LinkedSupplierID>123</LinkedSupplierID>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <IsApprovedForService>true</IsApprovedForService>
  <ID>123</ID>
  <IsHierarchicalSort>true</IsHierarchicalSort>
  <Types>aeiou</Types>
  <IsShowFavourites>true</IsShowFavourites>
  <IsHidden>true</IsHidden>
  <IncludeSystemTasks>true</IncludeSystemTasks>
  <IsSystem>true</IsSystem>
  <BatchStatus>aeiou</BatchStatus>
  <SortField>aeiou</SortField>
  <SortAsc>true</SortAsc>
  <GroupBy>aeiou</GroupBy>
  <LastRowNumber>123456789</LastRowNumber>
  <MaxResults>123</MaxResults>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerFilter>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetRecentTransactionsForCustomer(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetRecentTransactionsForCustomer");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerFilter customerFilter = new CustomerFilter(); // CustomerFilter | 

try {
    final result = await api_instance.customerGetRecentTransactionsForCustomer(customerFilter);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerGetRecentTransactionsForCustomer: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetRecentTransactionsForCustomer(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetRecentTransactionsForCustomer");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerFilter *customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_GetRecentTransactionsForCustomer
[apiInstance customerGetRecentTransactionsForCustomerWith:customerFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerFilter': {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerFilter} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerGetRecentTransactionsForCustomer(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerGetRecentTransactionsForCustomerExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerFilter = new CustomerFilter(); // CustomerFilter |  (optional) 

            try {
                // Customer_GetRecentTransactionsForCustomer
                Object result = apiInstance.customerGetRecentTransactionsForCustomer(customerFilter);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerGetRecentTransactionsForCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

try {
    $result = $api_instance->customerGetRecentTransactionsForCustomer($customerFilter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerGetRecentTransactionsForCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerFilter = WWW::OPenAPIClient::Object::CustomerFilter->new(); # CustomerFilter | 

eval {
    my $result = $api_instance->customerGetRecentTransactionsForCustomer(customerFilter => $customerFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerGetRecentTransactionsForCustomer: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerFilter |  (optional)

try:
    # Customer_GetRecentTransactionsForCustomer
    api_response = api_instance.customer_get_recent_transactions_for_customer(customerFilter=customerFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerGetRecentTransactionsForCustomer: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter

    let mut context = DefaultApi::Context::default();
    let result = client.customerGetRecentTransactionsForCustomer(customerFilter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerFilter

Responses


customerGetTopCustomers

Customer_GetTopCustomers


/Customer/GetTopCustomers

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/GetTopCustomers" \
 -d '{
  "ParentID" : 3,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "CustomerID" : 6,
  "IsExactMatch" : true,
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "IgnoreProspectID" : 1,
  "TenantID" : 5,
  "IsHierarchicalSort" : true,
  "Search" : "Search",
  "IsLinkedCustomersOnly" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "AccountCustomerID" : 2,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 4,
  "WebsiteID" : 9,
  "GetIsValidForBillToOnly" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 1, 1 ],
  "LastRowNumber" : 1,
  "MaxResults" : 4,
  "IsShowAccountCustomersOnly" : true,
  "CreatedByUserID" : 0,
  "Statuses" : [ 7, 7 ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 1, 1 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "IsCODorPrePaidAccountCustomersOnly" : true,
  "CustomerClassID" : 5,
  "CategoryIDs" : [ 1, 1 ],
  "IgnoreID" : 9,
  "IsShowFavourites" : true,
  "UserID" : 9,
  "SortAsc" : true,
  "LinkedSupplierID" : 6,
  "TerritoryID" : 5,
  "IsHidden" : true,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "TransactionTypeDatTypeID" : 2
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerFilter>
  <GetIsValidForBillToOnly>true</GetIsValidForBillToOnly>
  <CreatedByUserID>123</CreatedByUserID>
  <CustomerID>123</CustomerID>
  <IsLinkedCustomersOnly>true</IsLinkedCustomersOnly>
  <IgnoreProspectID>123</IgnoreProspectID>
  <CustomerClassID>123</CustomerClassID>
  <TerritoryID>123</TerritoryID>
  <IsShowAccountCustomersOnly>true</IsShowAccountCustomersOnly>
  <AccountCustomerID>123</AccountCustomerID>
  <IsCODorPrePaidAccountCustomersOnly>true</IsCODorPrePaidAccountCustomersOnly>
  <Statuses>123</Statuses>
  <StatusStrings>aeiou</StatusStrings>
  <Status>aeiou</Status>
  <SearchString>aeiou</SearchString>
  <SearchNameOnly>true</SearchNameOnly>
  <Search>aeiou</Search>
  <StartDate>2000-01-23T04:56:07.000Z</StartDate>
  <EndDate>2000-01-23T04:56:07.000Z</EndDate>
  <DatePeriod>aeiou</DatePeriod>
  <IsExactMatch>true</IsExactMatch>
  <IsGetBasicInfo>true</IsGetBasicInfo>
  <IncludeDeleted>true</IncludeDeleted>
  <IncludeLogs>true</IncludeLogs>
  <IgnoreID>123</IgnoreID>
  <ParentID>123</ParentID>
  <GetCountOnly>true</GetCountOnly>
  <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
  <CategoryID>123</CategoryID>
  <AdaptorID>123</AdaptorID>
  <CategoryIDs>123</CategoryIDs>
  <BrandIDs>123</BrandIDs>
  <IDs>123</IDs>
  <GUIDs>aeiou</GUIDs>
  <LinkedSupplierID>123</LinkedSupplierID>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <IsApprovedForService>true</IsApprovedForService>
  <ID>123</ID>
  <IsHierarchicalSort>true</IsHierarchicalSort>
  <Types>aeiou</Types>
  <IsShowFavourites>true</IsShowFavourites>
  <IsHidden>true</IsHidden>
  <IncludeSystemTasks>true</IncludeSystemTasks>
  <IsSystem>true</IsSystem>
  <BatchStatus>aeiou</BatchStatus>
  <SortField>aeiou</SortField>
  <SortAsc>true</SortAsc>
  <GroupBy>aeiou</GroupBy>
  <LastRowNumber>123456789</LastRowNumber>
  <MaxResults>123</MaxResults>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerFilter>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetTopCustomers(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetTopCustomers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerFilter customerFilter = new CustomerFilter(); // CustomerFilter | 

try {
    final result = await api_instance.customerGetTopCustomers(customerFilter);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerGetTopCustomers: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetTopCustomers(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetTopCustomers");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerFilter *customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_GetTopCustomers
[apiInstance customerGetTopCustomersWith:customerFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerFilter': {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerFilter} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerGetTopCustomers(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerGetTopCustomersExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerFilter = new CustomerFilter(); // CustomerFilter |  (optional) 

            try {
                // Customer_GetTopCustomers
                Object result = apiInstance.customerGetTopCustomers(customerFilter);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerGetTopCustomers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

try {
    $result = $api_instance->customerGetTopCustomers($customerFilter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerGetTopCustomers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerFilter = WWW::OPenAPIClient::Object::CustomerFilter->new(); # CustomerFilter | 

eval {
    my $result = $api_instance->customerGetTopCustomers(customerFilter => $customerFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerGetTopCustomers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerFilter |  (optional)

try:
    # Customer_GetTopCustomers
    api_response = api_instance.customer_get_top_customers(customerFilter=customerFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerGetTopCustomers: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter

    let mut context = DefaultApi::Context::default();
    let result = client.customerGetTopCustomers(customerFilter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerFilter

Responses


customerGetTopSuburbs

Customer_GetTopSuburbs


/Customer/GetTopSuburbs

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/GetTopSuburbs" \
 -d '{
  "ParentID" : 3,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "CustomerID" : 6,
  "IsExactMatch" : true,
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "IgnoreProspectID" : 1,
  "TenantID" : 5,
  "IsHierarchicalSort" : true,
  "Search" : "Search",
  "IsLinkedCustomersOnly" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "AccountCustomerID" : 2,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 4,
  "WebsiteID" : 9,
  "GetIsValidForBillToOnly" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 1, 1 ],
  "LastRowNumber" : 1,
  "MaxResults" : 4,
  "IsShowAccountCustomersOnly" : true,
  "CreatedByUserID" : 0,
  "Statuses" : [ 7, 7 ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 1, 1 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "IsCODorPrePaidAccountCustomersOnly" : true,
  "CustomerClassID" : 5,
  "CategoryIDs" : [ 1, 1 ],
  "IgnoreID" : 9,
  "IsShowFavourites" : true,
  "UserID" : 9,
  "SortAsc" : true,
  "LinkedSupplierID" : 6,
  "TerritoryID" : 5,
  "IsHidden" : true,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "TransactionTypeDatTypeID" : 2
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerFilter>
  <GetIsValidForBillToOnly>true</GetIsValidForBillToOnly>
  <CreatedByUserID>123</CreatedByUserID>
  <CustomerID>123</CustomerID>
  <IsLinkedCustomersOnly>true</IsLinkedCustomersOnly>
  <IgnoreProspectID>123</IgnoreProspectID>
  <CustomerClassID>123</CustomerClassID>
  <TerritoryID>123</TerritoryID>
  <IsShowAccountCustomersOnly>true</IsShowAccountCustomersOnly>
  <AccountCustomerID>123</AccountCustomerID>
  <IsCODorPrePaidAccountCustomersOnly>true</IsCODorPrePaidAccountCustomersOnly>
  <Statuses>123</Statuses>
  <StatusStrings>aeiou</StatusStrings>
  <Status>aeiou</Status>
  <SearchString>aeiou</SearchString>
  <SearchNameOnly>true</SearchNameOnly>
  <Search>aeiou</Search>
  <StartDate>2000-01-23T04:56:07.000Z</StartDate>
  <EndDate>2000-01-23T04:56:07.000Z</EndDate>
  <DatePeriod>aeiou</DatePeriod>
  <IsExactMatch>true</IsExactMatch>
  <IsGetBasicInfo>true</IsGetBasicInfo>
  <IncludeDeleted>true</IncludeDeleted>
  <IncludeLogs>true</IncludeLogs>
  <IgnoreID>123</IgnoreID>
  <ParentID>123</ParentID>
  <GetCountOnly>true</GetCountOnly>
  <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
  <CategoryID>123</CategoryID>
  <AdaptorID>123</AdaptorID>
  <CategoryIDs>123</CategoryIDs>
  <BrandIDs>123</BrandIDs>
  <IDs>123</IDs>
  <GUIDs>aeiou</GUIDs>
  <LinkedSupplierID>123</LinkedSupplierID>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <IsApprovedForService>true</IsApprovedForService>
  <ID>123</ID>
  <IsHierarchicalSort>true</IsHierarchicalSort>
  <Types>aeiou</Types>
  <IsShowFavourites>true</IsShowFavourites>
  <IsHidden>true</IsHidden>
  <IncludeSystemTasks>true</IncludeSystemTasks>
  <IsSystem>true</IsSystem>
  <BatchStatus>aeiou</BatchStatus>
  <SortField>aeiou</SortField>
  <SortAsc>true</SortAsc>
  <GroupBy>aeiou</GroupBy>
  <LastRowNumber>123456789</LastRowNumber>
  <MaxResults>123</MaxResults>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerFilter>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetTopSuburbs(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetTopSuburbs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerFilter customerFilter = new CustomerFilter(); // CustomerFilter | 

try {
    final result = await api_instance.customerGetTopSuburbs(customerFilter);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerGetTopSuburbs: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetTopSuburbs(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetTopSuburbs");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerFilter *customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_GetTopSuburbs
[apiInstance customerGetTopSuburbsWith:customerFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerFilter': {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerFilter} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerGetTopSuburbs(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerGetTopSuburbsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerFilter = new CustomerFilter(); // CustomerFilter |  (optional) 

            try {
                // Customer_GetTopSuburbs
                Object result = apiInstance.customerGetTopSuburbs(customerFilter);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerGetTopSuburbs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

try {
    $result = $api_instance->customerGetTopSuburbs($customerFilter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerGetTopSuburbs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerFilter = WWW::OPenAPIClient::Object::CustomerFilter->new(); # CustomerFilter | 

eval {
    my $result = $api_instance->customerGetTopSuburbs(customerFilter => $customerFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerGetTopSuburbs: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerFilter |  (optional)

try:
    # Customer_GetTopSuburbs
    api_response = api_instance.customer_get_top_suburbs(customerFilter=customerFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerGetTopSuburbs: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter

    let mut context = DefaultApi::Context::default();
    let result = client.customerGetTopSuburbs(customerFilter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerFilter

Responses


customerGetTopSuburbsByCustomerCount

Customer_GetTopSuburbsByCustomerCount


/Customer/GetTopSuburbsByCustomerCount

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/GetTopSuburbsByCustomerCount" \
 -d '{
  "ParentID" : 3,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "CustomerID" : 6,
  "IsExactMatch" : true,
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "IgnoreProspectID" : 1,
  "TenantID" : 5,
  "IsHierarchicalSort" : true,
  "Search" : "Search",
  "IsLinkedCustomersOnly" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "AccountCustomerID" : 2,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 4,
  "WebsiteID" : 9,
  "GetIsValidForBillToOnly" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 1, 1 ],
  "LastRowNumber" : 1,
  "MaxResults" : 4,
  "IsShowAccountCustomersOnly" : true,
  "CreatedByUserID" : 0,
  "Statuses" : [ 7, 7 ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 1, 1 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "IsCODorPrePaidAccountCustomersOnly" : true,
  "CustomerClassID" : 5,
  "CategoryIDs" : [ 1, 1 ],
  "IgnoreID" : 9,
  "IsShowFavourites" : true,
  "UserID" : 9,
  "SortAsc" : true,
  "LinkedSupplierID" : 6,
  "TerritoryID" : 5,
  "IsHidden" : true,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "TransactionTypeDatTypeID" : 2
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerFilter>
  <GetIsValidForBillToOnly>true</GetIsValidForBillToOnly>
  <CreatedByUserID>123</CreatedByUserID>
  <CustomerID>123</CustomerID>
  <IsLinkedCustomersOnly>true</IsLinkedCustomersOnly>
  <IgnoreProspectID>123</IgnoreProspectID>
  <CustomerClassID>123</CustomerClassID>
  <TerritoryID>123</TerritoryID>
  <IsShowAccountCustomersOnly>true</IsShowAccountCustomersOnly>
  <AccountCustomerID>123</AccountCustomerID>
  <IsCODorPrePaidAccountCustomersOnly>true</IsCODorPrePaidAccountCustomersOnly>
  <Statuses>123</Statuses>
  <StatusStrings>aeiou</StatusStrings>
  <Status>aeiou</Status>
  <SearchString>aeiou</SearchString>
  <SearchNameOnly>true</SearchNameOnly>
  <Search>aeiou</Search>
  <StartDate>2000-01-23T04:56:07.000Z</StartDate>
  <EndDate>2000-01-23T04:56:07.000Z</EndDate>
  <DatePeriod>aeiou</DatePeriod>
  <IsExactMatch>true</IsExactMatch>
  <IsGetBasicInfo>true</IsGetBasicInfo>
  <IncludeDeleted>true</IncludeDeleted>
  <IncludeLogs>true</IncludeLogs>
  <IgnoreID>123</IgnoreID>
  <ParentID>123</ParentID>
  <GetCountOnly>true</GetCountOnly>
  <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
  <CategoryID>123</CategoryID>
  <AdaptorID>123</AdaptorID>
  <CategoryIDs>123</CategoryIDs>
  <BrandIDs>123</BrandIDs>
  <IDs>123</IDs>
  <GUIDs>aeiou</GUIDs>
  <LinkedSupplierID>123</LinkedSupplierID>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <IsApprovedForService>true</IsApprovedForService>
  <ID>123</ID>
  <IsHierarchicalSort>true</IsHierarchicalSort>
  <Types>aeiou</Types>
  <IsShowFavourites>true</IsShowFavourites>
  <IsHidden>true</IsHidden>
  <IncludeSystemTasks>true</IncludeSystemTasks>
  <IsSystem>true</IsSystem>
  <BatchStatus>aeiou</BatchStatus>
  <SortField>aeiou</SortField>
  <SortAsc>true</SortAsc>
  <GroupBy>aeiou</GroupBy>
  <LastRowNumber>123456789</LastRowNumber>
  <MaxResults>123</MaxResults>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerFilter>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetTopSuburbsByCustomerCount(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetTopSuburbsByCustomerCount");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerFilter customerFilter = new CustomerFilter(); // CustomerFilter | 

try {
    final result = await api_instance.customerGetTopSuburbsByCustomerCount(customerFilter);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerGetTopSuburbsByCustomerCount: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerGetTopSuburbsByCustomerCount(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerGetTopSuburbsByCustomerCount");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerFilter *customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_GetTopSuburbsByCustomerCount
[apiInstance customerGetTopSuburbsByCustomerCountWith:customerFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerFilter': {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerFilter} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerGetTopSuburbsByCustomerCount(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerGetTopSuburbsByCustomerCountExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerFilter = new CustomerFilter(); // CustomerFilter |  (optional) 

            try {
                // Customer_GetTopSuburbsByCustomerCount
                Object result = apiInstance.customerGetTopSuburbsByCustomerCount(customerFilter);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerGetTopSuburbsByCustomerCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

try {
    $result = $api_instance->customerGetTopSuburbsByCustomerCount($customerFilter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerGetTopSuburbsByCustomerCount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerFilter = WWW::OPenAPIClient::Object::CustomerFilter->new(); # CustomerFilter | 

eval {
    my $result = $api_instance->customerGetTopSuburbsByCustomerCount(customerFilter => $customerFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerGetTopSuburbsByCustomerCount: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerFilter |  (optional)

try:
    # Customer_GetTopSuburbsByCustomerCount
    api_response = api_instance.customer_get_top_suburbs_by_customer_count(customerFilter=customerFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerGetTopSuburbsByCustomerCount: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter

    let mut context = DefaultApi::Context::default();
    let result = client.customerGetTopSuburbsByCustomerCount(customerFilter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerFilter

Responses


customerLoadByCustomerID

Customer_LoadByCustomerID


/Customer/LoadByCustomerID/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Customer/LoadByCustomerID/{id}?getRecentTransactions=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.
        Boolean getRecentTransactions = true; // Boolean | 

        try {
            Object result = apiInstance.customerLoadByCustomerID(id, getRecentTransactions);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerLoadByCustomerID");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Format - int32.
final Boolean getRecentTransactions = new Boolean(); // Boolean | 

try {
    final result = await api_instance.customerLoadByCustomerID(id, getRecentTransactions);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerLoadByCustomerID: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.
        Boolean getRecentTransactions = true; // Boolean | 

        try {
            Object result = apiInstance.customerLoadByCustomerID(id, getRecentTransactions);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerLoadByCustomerID");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; // Format - int32. (default to null)
Boolean *getRecentTransactions = true; //  (default to null)

// Customer_LoadByCustomerID
[apiInstance customerLoadByCustomerIDWith:id
    getRecentTransactions:getRecentTransactions
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var id = 56; // {Integer} Format - int32.
var getRecentTransactions = true; // {Boolean} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerLoadByCustomerID(id, getRecentTransactions, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerLoadByCustomerIDExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Format - int32. (default to null)
            var getRecentTransactions = true;  // Boolean |  (default to null)

            try {
                // Customer_LoadByCustomerID
                Object result = apiInstance.customerLoadByCustomerID(id, getRecentTransactions);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerLoadByCustomerID: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | Format - int32.
$getRecentTransactions = true; // Boolean | 

try {
    $result = $api_instance->customerLoadByCustomerID($id, $getRecentTransactions);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerLoadByCustomerID: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | Format - int32.
my $getRecentTransactions = true; # Boolean | 

eval {
    my $result = $api_instance->customerLoadByCustomerID(id => $id, getRecentTransactions => $getRecentTransactions);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerLoadByCustomerID: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | Format - int32. (default to null)
getRecentTransactions = true # Boolean |  (default to null)

try:
    # Customer_LoadByCustomerID
    api_response = api_instance.customer_load_by_customer_id(id, getRecentTransactions)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerLoadByCustomerID: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let getRecentTransactions = true; // Boolean

    let mut context = DefaultApi::Context::default();
    let result = client.customerLoadByCustomerID(id, getRecentTransactions, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Format - int32.
Required
Query parameters
Name Description
getRecentTransactions*
Boolean
Required

Responses


customerSave

Customer_Save


/Customer/Save

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/Save" \
 -d '{
  "AvgPayDays" : 7,
  "CountOfLinkedCustomers" : 0,
  "IsApprovedForWeb" : true,
  "IsApprovedForPOS" : true,
  "AccountCustomerClassName" : "AccountCustomerClassName",
  "CustomerID" : 6,
  "DefaultLocation" : {
    "IsActive" : true,
    "TimeZoneName" : "TimeZoneName",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "EmailAddress" : "EmailAddress",
    "Name" : "Name",
    "LocationName" : "LocationName",
    "GUIDstring" : "GUIDstring",
    "Addresses" : [ {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    }, {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    } ],
    "UtcOffset" : 6,
    "IsVisibleToPublic" : true,
    "Contacts" : [ {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    }, {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    } ],
    "Phone" : "Phone",
    "IsSystem" : true,
    "ID" : 8,
    "Fax" : "Fax",
    "IsDefaultLocation" : true
  },
  "IsPrimaryContact" : true,
  "SearchFieldMatches" : [ "SearchFieldMatches", "SearchFieldMatches" ],
  "AnnualTurnOver" : 6,
  "LinkedTenantGlobalID" : "00000000-0000-0000-0000-000000000000",
  "SyncLogs" : [ {
    "Status" : "Status",
    "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
    "AdaptorID" : 2,
    "LastImportDateTime_offset" : 1,
    "LastExportDateTime_offset" : 8,
    "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "BSID" : "BSID",
    "Details" : "Details",
    "SyncCode" : "SyncCode",
    "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
    "LastModifiedDateTime_offset" : 6,
    "ID" : 0,
    "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
  }, {
    "Status" : "Status",
    "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
    "AdaptorID" : 2,
    "LastImportDateTime_offset" : 1,
    "LastExportDateTime_offset" : 8,
    "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "BSID" : "BSID",
    "Details" : "Details",
    "SyncCode" : "SyncCode",
    "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
    "LastModifiedDateTime_offset" : 6,
    "ID" : 0,
    "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
  } ],
  "PrimaryContactEmailAddress" : "PrimaryContactEmailAddress",
  "Currency" : "Currency",
  "LastInvoice" : {
    "Status" : "Status",
    "AppliedDate" : "2000-01-23T04:56:07.000+00:00",
    "DatTypeString" : "DatTypeString",
    "ShortDatTypeString" : "ShortDatTypeString",
    "Description" : "Description",
    "Issues" : "Issues",
    "RefNumber" : "RefNumber",
    "AppliedAmount" : 4.145608029883936,
    "DatTypeID" : 2,
    "TotalInc" : 7.061401241503109,
    "LineCount" : 9,
    "TransSubType" : "TransSubType",
    "QuantityCount" : 3.616076749251911,
    "GUIDstring" : "GUIDstring",
    "TotalEx" : 2.027123023002322,
    "RecipientName" : "RecipientName",
    "ID" : 5
  },
  "CreditStopSetting" : 5,
  "ID" : 9,
  "IsReadOnly" : true,
  "Status" : "Status",
  "SupplierRefNumber" : "SupplierRefNumber",
  "BillingAddressString" : "BillingAddressString",
  "IsUpdateLinkedTenant" : true,
  "PointsBalance" : 3.0576100241049344,
  "AccountLastUpdatedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "PriceBandInfo" : {
    "DiscountPercentage" : 7.386281948385884,
    "Price" : 1.2315135367772556,
    "Name" : "Name"
  },
  "Locations" : [ {
    "IsActive" : true,
    "TimeZoneName" : "TimeZoneName",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "EmailAddress" : "EmailAddress",
    "Name" : "Name",
    "LocationName" : "LocationName",
    "GUIDstring" : "GUIDstring",
    "Addresses" : [ {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    }, {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    } ],
    "UtcOffset" : 6,
    "IsVisibleToPublic" : true,
    "Contacts" : [ {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    }, {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    } ],
    "Phone" : "Phone",
    "IsSystem" : true,
    "ID" : 8,
    "Fax" : "Fax",
    "IsDefaultLocation" : true
  }, {
    "IsActive" : true,
    "TimeZoneName" : "TimeZoneName",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "EmailAddress" : "EmailAddress",
    "Name" : "Name",
    "LocationName" : "LocationName",
    "GUIDstring" : "GUIDstring",
    "Addresses" : [ {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    }, {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    } ],
    "UtcOffset" : 6,
    "IsVisibleToPublic" : true,
    "Contacts" : [ {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    }, {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    } ],
    "Phone" : "Phone",
    "IsSystem" : true,
    "ID" : 8,
    "Fax" : "Fax",
    "IsDefaultLocation" : true
  } ],
  "AssetCount" : 6,
  "BusinessGUIDstring" : "BusinessGUIDstring",
  "BSID" : "BSID",
  "SecondaryName" : "SecondaryName",
  "AccountCustomerName" : "AccountCustomerName",
  "BillToCustomerCreditLimit" : 1.0246457001441578,
  "CreditLimitString" : "CreditLimitString",
  "IsSystem" : true,
  "PrimaryContactLastName" : "PrimaryContactLastName",
  "AccountCustomerRefNumber" : "AccountCustomerRefNumber",
  "TerritoryName" : "TerritoryName",
  "ModifiesDateTime_offset" : 8,
  "AvailableCreditString" : "AvailableCreditString",
  "ClassPostingBehaviour" : "ClassPostingBehaviour",
  "AccountOpenDate" : "2000-01-23T04:56:07.000+00:00",
  "MasterBuyingGroupCustomerID" : 3,
  "LinkedTenantGlobalIDstring" : "LinkedTenantGlobalIDstring",
  "ABN" : "ABN",
  "IsLinked" : true,
  "AccountCustomerClassID" : 0,
  "CustomerClass" : {
    "HasBeenSaved" : true,
    "CountOfCustomers" : 3,
    "IsAccountCustomerBatched" : true,
    "Description" : "Description",
    "IsApprovedForWeb" : true,
    "IsApprovedForPOS" : true,
    "IsActive" : true,
    "BatchInvoiceFrequencyDays" : 7,
    "BatchInvoicePrefix" : "BatchInvoicePrefix",
    "Name" : "Name",
    "GUIDstring" : "GUIDstring",
    "IsAutoApprovedforClaimRequests" : true,
    "IsAutoSendPayByLinkInvoice" : true,
    "TradingTermDays" : 6,
    "DefaultPricingBandID" : 4,
    "ID" : 0,
    "PostingBehaviour" : "PostingBehaviour",
    "IsCanSetFundingRate" : true,
    "CreditLimit" : 4.86315908102884,
    "LoyaltyDescription" : "LoyaltyDescription",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "GenericAccountCustomerID" : 5,
    "TradingTermID" : 8,
    "IsLoyaltyEligible" : true,
    "IsBatchInvoice" : true,
    "GenericAccountCustomerName" : "GenericAccountCustomerName",
    "AccountCustomerRefNumberPrefix" : "AccountCustomerRefNumberPrefix",
    "IsExemptFromMerchantSurcharge" : true,
    "FundingRate" : 9.702963800023566,
    "IsAutoCreateGenericAccountCustomer" : true,
    "BSID" : "BSID",
    "IsSystem" : true,
    "IsApprovedForService" : true,
    "TradingTermType" : "TradingTermType",
    "PrimaryOperationalCustomer" : {
      "IsIndividual" : true,
      "CompanyName" : "CompanyName",
      "PrimaryContactFullName" : "PrimaryContactFullName",
      "CustomerID" : 1
    }
  },
  "WebSiteURL" : "WebSiteURL",
  "Structure" : "Structure",
  "OverdueInvoicesAmount" : 7.457744773683766,
  "IsEnableAutomaticJobBookingSMSReminder" : true,
  "PhoneFax" : "PhoneFax",
  "NumberOfStaff" : 4,
  "BillToCustomerID" : 3,
  "CreditLimit" : 5.533258397034986,
  "PricingBandName" : "PricingBandName",
  "ClassID" : 0,
  "CustomerIsActive" : true,
  "PrimaryContactMobile" : "PrimaryContactMobile",
  "DeliveryNotes" : "DeliveryNotes",
  "AccountBalanceString" : "AccountBalanceString",
  "Contacts" : [ {
    "BusinessName" : "BusinessName",
    "FirstName" : "FirstName",
    "IsActive" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Title" : "Title",
    "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
    "Birthday" : "2000-01-23T04:56:07.000+00:00",
    "Gender" : "Gender",
    "PositionOrOccupation" : "PositionOrOccupation",
    "IsIncludeInEmails" : true,
    "EmailAddress" : "EmailAddress",
    "ContactRole" : "ContactRole",
    "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
    "BusinessContactID" : 6,
    "GUIDstring" : "GUIDstring",
    "PhoneMobile" : "PhoneMobile",
    "IsPrimaryContact" : true,
    "Phone1" : "Phone1",
    "IsSystem" : true,
    "ID" : 9,
    "LastName" : "LastName",
    "BusinessID" : 3
  }, {
    "BusinessName" : "BusinessName",
    "FirstName" : "FirstName",
    "IsActive" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Title" : "Title",
    "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
    "Birthday" : "2000-01-23T04:56:07.000+00:00",
    "Gender" : "Gender",
    "PositionOrOccupation" : "PositionOrOccupation",
    "IsIncludeInEmails" : true,
    "EmailAddress" : "EmailAddress",
    "ContactRole" : "ContactRole",
    "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
    "BusinessContactID" : 6,
    "GUIDstring" : "GUIDstring",
    "PhoneMobile" : "PhoneMobile",
    "IsPrimaryContact" : true,
    "Phone1" : "Phone1",
    "IsSystem" : true,
    "ID" : 9,
    "LastName" : "LastName",
    "BusinessID" : 3
  } ],
  "CampaignID" : 1,
  "BankAccounts" : [ {
    "GUIDstring" : "GUIDstring",
    "BSB" : "BSB",
    "StatementText" : "StatementText",
    "IsRemainder" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "ID" : 6,
    "AccountName" : "AccountName",
    "AccountNumber" : "AccountNumber"
  }, {
    "GUIDstring" : "GUIDstring",
    "BSB" : "BSB",
    "StatementText" : "StatementText",
    "IsRemainder" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "ID" : 6,
    "AccountName" : "AccountName",
    "AccountNumber" : "AccountNumber"
  } ],
  "SalesNotes" : "SalesNotes",
  "AccountCustomerClassPostingBehaviour" : "AccountCustomerClassPostingBehaviour",
  "SupplierIsActive" : true,
  "Name" : "Name",
  "GUIDstring" : "GUIDstring",
  "AvailableCredit" : 5.962133916683182,
  "CompanyName" : "CompanyName",
  "SupplierID" : 3,
  "TenantID" : 6,
  "Version" : 9.369310271410669,
  "CreatedWith" : "CreatedWith",
  "Name2" : "Name2",
  "AccountCustomerID" : 4,
  "BillToCustomerStatus" : "BillToCustomerStatus",
  "RefNumber" : "RefNumber",
  "ModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "GUID" : "00000000-0000-0000-0000-000000000000",
  "DateOfFirstSale" : "2000-01-23T04:56:07.000+00:00",
  "IsExemptFromMerchantSurcharge" : true,
  "PricingBandID" : 7,
  "IsAccountCustomer" : true,
  "BillToCustomerAccountBalance" : 1.4894159098541704,
  "AccountLastUpdatedDateTime_offset" : 0,
  "IsAutoAddClaimRequests" : true,
  "IsApprovedForService" : true,
  "PrimaryOperationalCustomer" : {
    "IsIndividual" : true,
    "CompanyName" : "CompanyName",
    "PrimaryContactFullName" : "PrimaryContactFullName",
    "CustomerID" : 1
  },
  "CreatedDateTime" : "2000-01-23T04:56:07.000+00:00",
  "BusinessID" : 3,
  "BillToCustomerName" : "BillToCustomerName",
  "IsAccountCustomerBatched" : true,
  "BusinessGUID" : "00000000-0000-0000-0000-000000000000",
  "ShippingAddressString" : "ShippingAddressString",
  "OperationalCustomerIDs" : [ 6, 6 ],
  "CountSalesRequiresBatching" : 4,
  "IsActive" : true,
  "CreditHoldSetting" : 4,
  "HasOpenTransactions" : true,
  "Attachments" : [ {
    "AttachmentType" : "AttachmentType",
    "LineID" : 7,
    "IsActive" : true,
    "ThumbnailURI" : "ThumbnailURI",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Title" : "Title",
    "IsImage" : true,
    "URI" : "URI",
    "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "Caption" : "Caption",
    "GUIDstring" : "GUIDstring",
    "IsPDF" : true,
    "IsFromParent" : true,
    "ID" : 4,
    "AttachedByUserID" : 4,
    "MessageID" : 1
  }, {
    "AttachmentType" : "AttachmentType",
    "LineID" : 7,
    "IsActive" : true,
    "ThumbnailURI" : "ThumbnailURI",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Title" : "Title",
    "IsImage" : true,
    "URI" : "URI",
    "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "Caption" : "Caption",
    "GUIDstring" : "GUIDstring",
    "IsPDF" : true,
    "IsFromParent" : true,
    "ID" : 4,
    "AttachedByUserID" : 4,
    "MessageID" : 1
  } ],
  "Phone1" : "Phone1",
  "AccountBalance" : 7.04836565559697,
  "ClassName" : "ClassName",
  "RecentTransactions" : "{}",
  "LinkedTenantGlobalCode" : "LinkedTenantGlobalCode",
  "PrimaryContactPhone" : "PrimaryContactPhone",
  "TerritoryID" : 0,
  "IsAccountCustomerExemptFromMerchantSurcharge" : true,
  "PrimaryContactFullName" : "PrimaryContactFullName",
  "DefaultLocationName" : "DefaultLocationName",
  "IndustryType" : "IndustryType",
  "IsIndividual" : true,
  "RowNumber" : 9,
  "CreatedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "IncorporatedDate" : "2000-01-23T04:56:07.000+00:00",
  "CreatedDateTime_offset" : 7,
  "PrimaryContactFirstName" : "PrimaryContactFirstName"
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerT>
  <ClassID>123</ClassID>
  <ClassName>aeiou</ClassName>
  <ClassPostingBehaviour>aeiou</ClassPostingBehaviour>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <GUID>00000000-0000-0000-0000-000000000000</GUID>
  <AssetCount>123</AssetCount>
  <IsUpdateLinkedTenant>true</IsUpdateLinkedTenant>
  <CampaignID>123</CampaignID>
  <AvailableCredit>3.149</AvailableCredit>
  <null>
    <ShortDatTypeString>aeiou</ShortDatTypeString>
    <DatTypeString>aeiou</DatTypeString>
    <TransSubType>aeiou</TransSubType>
    <ID>123</ID>
    <GUIDstring>aeiou</GUIDstring>
    <DatTypeID>123</DatTypeID>
    <Status>aeiou</Status>
    <RefNumber>aeiou</RefNumber>
    <Description>aeiou</Description>
    <TotalInc>3.149</TotalInc>
    <Issues>aeiou</Issues>
    <RecipientName>aeiou</RecipientName>
    <LineCount>123</LineCount>
    <QuantityCount>3.149</QuantityCount>
    <TotalEx>3.149</TotalEx>
    <AppliedAmount>3.149</AppliedAmount>
    <AppliedDate>2000-01-23T04:56:07.000Z</AppliedDate>
  </null>
  <CreditLimitString>aeiou</CreditLimitString>
  <AccountBalanceString>aeiou</AccountBalanceString>
  <AvailableCreditString>aeiou</AvailableCreditString>
  <null>
    <Name>aeiou</Name>
    <DiscountPercentage>3.149</DiscountPercentage>
    <Price>3.149</Price>
  </null>
  <BillToCustomerStatus>aeiou</BillToCustomerStatus>
  <BillToCustomerCreditLimit>3.149</BillToCustomerCreditLimit>
  <BillToCustomerAccountBalance>3.149</BillToCustomerAccountBalance>
  <OperationalCustomerIDs>123</OperationalCustomerIDs>
  <OverdueInvoicesAmount>3.149</OverdueInvoicesAmount>
  <IsAccountCustomerBatched>true</IsAccountCustomerBatched>
  <null>
    <CustomerID>123</CustomerID>
    <IsIndividual>true</IsIndividual>
    <CompanyName>aeiou</CompanyName>
    <PrimaryContactFullName>aeiou</PrimaryContactFullName>
  </null>
  <CreditHoldSetting>123</CreditHoldSetting>
  <CreditStopSetting>123</CreditStopSetting>
  <IsEnableAutomaticJobBookingSMSReminder>true</IsEnableAutomaticJobBookingSMSReminder>
  <RowNumber>123456789</RowNumber>
  <Version>3.149</Version>
  <CompanyName>aeiou</CompanyName>
  <TenantID>123</TenantID>
  <BusinessGUID>00000000-0000-0000-0000-000000000000</BusinessGUID>
  <LinkedTenantGlobalID>00000000-0000-0000-0000-000000000000</LinkedTenantGlobalID>
  <IsReadOnly>true</IsReadOnly>
  <CreatedDateTime>2000-01-23T04:56:07.000Z</CreatedDateTime>
  <HasOpenTransactions>true</HasOpenTransactions>
  <PrimaryContactFullName>aeiou</PrimaryContactFullName>
  <PrimaryContactFirstName>aeiou</PrimaryContactFirstName>
  <PrimaryContactLastName>aeiou</PrimaryContactLastName>
  <PrimaryContactPhone>aeiou</PrimaryContactPhone>
  <PrimaryContactMobile>aeiou</PrimaryContactMobile>
  <PrimaryContactEmailAddress>aeiou</PrimaryContactEmailAddress>
  <null>
    <ID>123</ID>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <Name>aeiou</Name>
    <IsSystem>true</IsSystem>
    <GUIDstring>aeiou</GUIDstring>
    <IsDefaultLocation>true</IsDefaultLocation>
    <Phone>aeiou</Phone>
    <Fax>aeiou</Fax>
    <EmailAddress>aeiou</EmailAddress>
    <LocationName>aeiou</LocationName>
    <IsActive>true</IsActive>
    <IsVisibleToPublic>true</IsVisibleToPublic>
    <UtcOffset>123</UtcOffset>
    <TimeZoneName>aeiou</TimeZoneName>
  </null>
  <DefaultLocationName>aeiou</DefaultLocationName>
  <ShippingAddressString>aeiou</ShippingAddressString>
  <BillingAddressString>aeiou</BillingAddressString>
  <CustomerID>123</CustomerID>
  <SupplierID>123</SupplierID>
  <SupplierRefNumber>aeiou</SupplierRefNumber>
  <IsPrimaryContact>true</IsPrimaryContact>
  <SearchFieldMatches>aeiou</SearchFieldMatches>
  <CustomerIsActive>true</CustomerIsActive>
  <SupplierIsActive>true</SupplierIsActive>
  <IsSystem>true</IsSystem>
  <BusinessID>123</BusinessID>
  <RefNumber>aeiou</RefNumber>
  <IsApprovedForService>true</IsApprovedForService>
  <BusinessGUIDstring>aeiou</BusinessGUIDstring>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <Name>aeiou</Name>
  <PricingBandID>123</PricingBandID>
  <Name2>aeiou</Name2>
  <PricingBandName>aeiou</PricingBandName>
  <SecondaryName>aeiou</SecondaryName>
  <TerritoryID>123</TerritoryID>
  <ABN>aeiou</ABN>
  <TerritoryName>aeiou</TerritoryName>
  <IsIndividual>true</IsIndividual>
  <SalesNotes>aeiou</SalesNotes>
  <Phone1>aeiou</Phone1>
  <AvgPayDays>123</AvgPayDays>
  <PhoneFax>aeiou</PhoneFax>
  <AccountLastUpdatedDateTime_utc>2000-01-23T04:56:07.000Z</AccountLastUpdatedDateTime_utc>
  <AnnualTurnOver>123</AnnualTurnOver>
  <AccountLastUpdatedDateTime_offset>123</AccountLastUpdatedDateTime_offset>
  <NumberOfStaff>123</NumberOfStaff>
  <ModifiedDateTime_utc>2000-01-23T04:56:07.000Z</ModifiedDateTime_utc>
  <IncorporatedDate>2000-01-23T04:56:07.000Z</IncorporatedDate>
  <ModifiesDateTime_offset>123</ModifiesDateTime_offset>
  <WebSiteURL>aeiou</WebSiteURL>
  <CreatedDateTime_utc>2000-01-23T04:56:07.000Z</CreatedDateTime_utc>
  <IndustryType>aeiou</IndustryType>
  <CreatedDateTime_offset>123</CreatedDateTime_offset>
  <Structure>aeiou</Structure>
  <AccountOpenDate>2000-01-23T04:56:07.000Z</AccountOpenDate>
  <Currency>aeiou</Currency>
  <DateOfFirstSale>2000-01-23T04:56:07.000Z</DateOfFirstSale>
  <Status>aeiou</Status>
  <IsAccountCustomer>true</IsAccountCustomer>
  <IsActive>true</IsActive>
  <MasterBuyingGroupCustomerID>123</MasterBuyingGroupCustomerID>
  <IsLinked>true</IsLinked>
  <PointsBalance>3.149</PointsBalance>
  <AccountBalance>3.149</AccountBalance>
  <IsAutoAddClaimRequests>true</IsAutoAddClaimRequests>
  <CreditLimit>3.149</CreditLimit>
  <BillToCustomerID>123</BillToCustomerID>
  <DeliveryNotes>aeiou</DeliveryNotes>
  <BillToCustomerName>aeiou</BillToCustomerName>
  <LinkedTenantGlobalCode>aeiou</LinkedTenantGlobalCode>
  <AccountCustomerID>123</AccountCustomerID>
  <LinkedTenantGlobalIDstring>aeiou</LinkedTenantGlobalIDstring>
  <AccountCustomerName>aeiou</AccountCustomerName>
  <null>
    <ID>123</ID>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <Name>aeiou</Name>
    <IsSystem>true</IsSystem>
    <GUIDstring>aeiou</GUIDstring>
    <IsDefaultLocation>true</IsDefaultLocation>
    <Phone>aeiou</Phone>
    <Fax>aeiou</Fax>
    <EmailAddress>aeiou</EmailAddress>
    <LocationName>aeiou</LocationName>
    <IsActive>true</IsActive>
    <IsVisibleToPublic>true</IsVisibleToPublic>
    <UtcOffset>123</UtcOffset>
    <TimeZoneName>aeiou</TimeZoneName>
  </null>
  <AccountCustomerClassID>123</AccountCustomerClassID>
  <null>
    <ID>123</ID>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <BusinessName>aeiou</BusinessName>
    <BusinessContactID>123</BusinessContactID>
    <BusinessID>123</BusinessID>
    <BusinessLocationGuid>00000000-0000-0000-0000-000000000000</BusinessLocationGuid>
    <IsSystem>true</IsSystem>
    <GUIDstring>aeiou</GUIDstring>
    <FirstName>aeiou</FirstName>
    <LastName>aeiou</LastName>
    <Phone1>aeiou</Phone1>
    <EmailAddress>aeiou</EmailAddress>
    <PhoneMobile>aeiou</PhoneMobile>
    <IsPrimaryContact>true</IsPrimaryContact>
    <ContactRole>aeiou</ContactRole>
    <Gender>aeiou</Gender>
    <Birthday>2000-01-23T04:56:07.000Z</Birthday>
    <IsActive>true</IsActive>
    <PositionOrOccupation>aeiou</PositionOrOccupation>
    <LinkedUserGlobalIDstring>aeiou</LinkedUserGlobalIDstring>
    <Title>aeiou</Title>
    <IsIncludeInEmails>true</IsIncludeInEmails>
  </null>
  <AccountCustomerClassName>aeiou</AccountCustomerClassName>
  <null>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <ID>123</ID>
    <GUIDstring>aeiou</GUIDstring>
    <AccountName>aeiou</AccountName>
    <AccountNumber>aeiou</AccountNumber>
    <BSB>aeiou</BSB>
    <IsRemainder>true</IsRemainder>
    <StatementText>aeiou</StatementText>
  </null>
  <AccountCustomerClassPostingBehaviour>aeiou</AccountCustomerClassPostingBehaviour>
  <null>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <Title>aeiou</Title>
    <IsImage>true</IsImage>
    <IsPDF>true</IsPDF>
    <ID>123</ID>
    <GUIDstring>aeiou</GUIDstring>
    <MessageID>123</MessageID>
    <URI>aeiou</URI>
    <AttachedByUserID>123</AttachedByUserID>
    <AttachedDateTime_utc>2000-01-23T04:56:07.000Z</AttachedDateTime_utc>
    <IsActive>true</IsActive>
    <Caption>aeiou</Caption>
    <ThumbnailURI>aeiou</ThumbnailURI>
    <AttachmentType>aeiou</AttachmentType>
    <IsFromParent>true</IsFromParent>
    <LineID>123</LineID>
  </null>
  <AccountCustomerRefNumber>aeiou</AccountCustomerRefNumber>
  <ID>123</ID>
  <CountOfLinkedCustomers>123</CountOfLinkedCustomers>
  <GUIDstring>aeiou</GUIDstring>
  <null>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <HasBeenSaved>true</HasBeenSaved>
    <IsAutoCreateGenericAccountCustomer>true</IsAutoCreateGenericAccountCustomer>
    <IsCanSetFundingRate>true</IsCanSetFundingRate>
    <FundingRate>3.149</FundingRate>
    <ID>123</ID>
    <GUIDstring>aeiou</GUIDstring>
    <BSID>aeiou</BSID>
    <Name>aeiou</Name>
    <Description>aeiou</Description>
    <IsActive>true</IsActive>
    <IsBatchInvoice>true</IsBatchInvoice>
    <BatchInvoiceFrequencyDays>123</BatchInvoiceFrequencyDays>
    <BatchInvoicePrefix>aeiou</BatchInvoicePrefix>
    <GenericAccountCustomerID>123</GenericAccountCustomerID>
    <GenericAccountCustomerName>aeiou</GenericAccountCustomerName>
    <PostingBehaviour>aeiou</PostingBehaviour>
    <CreditLimit>3.149</CreditLimit>
    <TradingTermDays>123</TradingTermDays>
    <TradingTermID>123</TradingTermID>
    <TradingTermType>aeiou</TradingTermType>
    <DefaultPricingBandID>123</DefaultPricingBandID>
    <IsApprovedForWeb>true</IsApprovedForWeb>
    <IsApprovedForService>true</IsApprovedForService>
    <IsApprovedForPOS>true</IsApprovedForPOS>
    <IsAutoSendPayByLinkInvoice>true</IsAutoSendPayByLinkInvoice>
    <AccountCustomerRefNumberPrefix>aeiou</AccountCustomerRefNumberPrefix>
    <CountOfCustomers>123</CountOfCustomers>
    <IsSystem>true</IsSystem>
    <IsExemptFromMerchantSurcharge>true</IsExemptFromMerchantSurcharge>
    <IsAccountCustomerBatched>true</IsAccountCustomerBatched>
    <IsAutoApprovedforClaimRequests>true</IsAutoApprovedforClaimRequests>
    <IsLoyaltyEligible>true</IsLoyaltyEligible>
    <LoyaltyDescription>aeiou</LoyaltyDescription>
  </null>
  <BSID>aeiou</BSID>
  <null>
    <LastImportDateTime>2000-01-23T04:56:07.000Z</LastImportDateTime>
    <LastExportDateTime>2000-01-23T04:56:07.000Z</LastExportDateTime>
    <ID>123</ID>
    <AdaptorID>123</AdaptorID>
    <BSID>aeiou</BSID>
    <LastImportDateTime_utc>2000-01-23T04:56:07.000Z</LastImportDateTime_utc>
    <LastImportDateTime_offset>123</LastImportDateTime_offset>
    <Status>aeiou</Status>
    <Details>aeiou</Details>
    <LastExportDateTime_utc>2000-01-23T04:56:07.000Z</LastExportDateTime_utc>
    <LastExportDateTime_offset>123</LastExportDateTime_offset>
    <SyncCode>aeiou</SyncCode>
    <LastModifiedDateTime_utc>2000-01-23T04:56:07.000Z</LastModifiedDateTime_utc>
    <LastModifiedDateTime_offset>123</LastModifiedDateTime_offset>
  </null>
  <CreatedWith>aeiou</CreatedWith>
  <IsExemptFromMerchantSurcharge>true</IsExemptFromMerchantSurcharge>
  <IsAccountCustomerExemptFromMerchantSurcharge>true</IsAccountCustomerExemptFromMerchantSurcharge>
  <CountSalesRequiresBatching>123</CountSalesRequiresBatching>
</CustomerT>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerT customerT = ; // CustomerT | 

        try {
            Object result = apiInstance.customerSave(customerT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerSave");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerT customerT = new CustomerT(); // CustomerT | 

try {
    final result = await api_instance.customerSave(customerT);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerSave: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerT customerT = ; // CustomerT | 

        try {
            Object result = apiInstance.customerSave(customerT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerSave");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerT *customerT = ; //  (optional)

// Customer_Save
[apiInstance customerSaveWith:customerT
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerT':  // {CustomerT} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerSave(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerSaveExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerT = new CustomerT(); // CustomerT |  (optional) 

            try {
                // Customer_Save
                Object result = apiInstance.customerSave(customerT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerSave: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerT = ; // CustomerT | 

try {
    $result = $api_instance->customerSave($customerT);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerSave: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerT = WWW::OPenAPIClient::Object::CustomerT->new(); # CustomerT | 

eval {
    my $result = $api_instance->customerSave(customerT => $customerT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerSave: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerT =  # CustomerT |  (optional)

try:
    # Customer_Save
    api_response = api_instance.customer_save(customerT=customerT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerSave: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerT = ; // CustomerT

    let mut context = DefaultApi::Context::default();
    let result = client.customerSave(customerT, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerT

Responses


customerSaveList

Customer_SaveList


/Customer/SaveList

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/SaveList" \
 -d '{
  "AvgPayDays" : 7,
  "CountOfLinkedCustomers" : 0,
  "IsApprovedForWeb" : true,
  "IsApprovedForPOS" : true,
  "AccountCustomerClassName" : "AccountCustomerClassName",
  "CustomerID" : 6,
  "DefaultLocation" : {
    "IsActive" : true,
    "TimeZoneName" : "TimeZoneName",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "EmailAddress" : "EmailAddress",
    "Name" : "Name",
    "LocationName" : "LocationName",
    "GUIDstring" : "GUIDstring",
    "Addresses" : [ {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    }, {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    } ],
    "UtcOffset" : 6,
    "IsVisibleToPublic" : true,
    "Contacts" : [ {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    }, {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    } ],
    "Phone" : "Phone",
    "IsSystem" : true,
    "ID" : 8,
    "Fax" : "Fax",
    "IsDefaultLocation" : true
  },
  "IsPrimaryContact" : true,
  "SearchFieldMatches" : [ "SearchFieldMatches", "SearchFieldMatches" ],
  "AnnualTurnOver" : 6,
  "LinkedTenantGlobalID" : "00000000-0000-0000-0000-000000000000",
  "SyncLogs" : [ {
    "Status" : "Status",
    "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
    "AdaptorID" : 2,
    "LastImportDateTime_offset" : 1,
    "LastExportDateTime_offset" : 8,
    "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "BSID" : "BSID",
    "Details" : "Details",
    "SyncCode" : "SyncCode",
    "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
    "LastModifiedDateTime_offset" : 6,
    "ID" : 0,
    "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
  }, {
    "Status" : "Status",
    "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
    "AdaptorID" : 2,
    "LastImportDateTime_offset" : 1,
    "LastExportDateTime_offset" : 8,
    "LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "BSID" : "BSID",
    "Details" : "Details",
    "SyncCode" : "SyncCode",
    "LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
    "LastModifiedDateTime_offset" : 6,
    "ID" : 0,
    "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
  } ],
  "PrimaryContactEmailAddress" : "PrimaryContactEmailAddress",
  "Currency" : "Currency",
  "LastInvoice" : {
    "Status" : "Status",
    "AppliedDate" : "2000-01-23T04:56:07.000+00:00",
    "DatTypeString" : "DatTypeString",
    "ShortDatTypeString" : "ShortDatTypeString",
    "Description" : "Description",
    "Issues" : "Issues",
    "RefNumber" : "RefNumber",
    "AppliedAmount" : 4.145608029883936,
    "DatTypeID" : 2,
    "TotalInc" : 7.061401241503109,
    "LineCount" : 9,
    "TransSubType" : "TransSubType",
    "QuantityCount" : 3.616076749251911,
    "GUIDstring" : "GUIDstring",
    "TotalEx" : 2.027123023002322,
    "RecipientName" : "RecipientName",
    "ID" : 5
  },
  "CreditStopSetting" : 5,
  "ID" : 9,
  "IsReadOnly" : true,
  "Status" : "Status",
  "SupplierRefNumber" : "SupplierRefNumber",
  "BillingAddressString" : "BillingAddressString",
  "IsUpdateLinkedTenant" : true,
  "PointsBalance" : 3.0576100241049344,
  "AccountLastUpdatedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "PriceBandInfo" : {
    "DiscountPercentage" : 7.386281948385884,
    "Price" : 1.2315135367772556,
    "Name" : "Name"
  },
  "Locations" : [ {
    "IsActive" : true,
    "TimeZoneName" : "TimeZoneName",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "EmailAddress" : "EmailAddress",
    "Name" : "Name",
    "LocationName" : "LocationName",
    "GUIDstring" : "GUIDstring",
    "Addresses" : [ {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    }, {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    } ],
    "UtcOffset" : 6,
    "IsVisibleToPublic" : true,
    "Contacts" : [ {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    }, {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    } ],
    "Phone" : "Phone",
    "IsSystem" : true,
    "ID" : 8,
    "Fax" : "Fax",
    "IsDefaultLocation" : true
  }, {
    "IsActive" : true,
    "TimeZoneName" : "TimeZoneName",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "EmailAddress" : "EmailAddress",
    "Name" : "Name",
    "LocationName" : "LocationName",
    "GUIDstring" : "GUIDstring",
    "Addresses" : [ {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    }, {
      "FullAddress" : "FullAddress",
      "IsDefaultDeliverTo" : true,
      "IsActive" : true,
      "LocationID" : 6,
      "Latitude" : 2.8841621266687802,
      "GUIDstring" : "GUIDstring",
      "IsPostalAddress" : true,
      "AddressDescription" : "AddressDescription",
      "ID" : 1,
      "Notes" : "Notes",
      "IsDeliverTo" : true,
      "IsSelectedBilling" : true,
      "IsSelectedDelivery" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "City" : "City",
      "Longitude" : 6.778324963048013,
      "StreetAddress" : "StreetAddress",
      "IsMailTo" : true,
      "IsServiceTo" : true,
      "State" : "State",
      "IsDefaultServiceTo" : true,
      "IsOfficeOrShop" : true,
      "Country" : "Country",
      "IsSystem" : true,
      "AddressType" : 5,
      "PostCode" : "PostCode",
      "IsDefaultBilling" : true
    } ],
    "UtcOffset" : 6,
    "IsVisibleToPublic" : true,
    "Contacts" : [ {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    }, {
      "BusinessName" : "BusinessName",
      "FirstName" : "FirstName",
      "IsActive" : true,
      "GUID" : "00000000-0000-0000-0000-000000000000",
      "Title" : "Title",
      "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
      "Birthday" : "2000-01-23T04:56:07.000+00:00",
      "Gender" : "Gender",
      "PositionOrOccupation" : "PositionOrOccupation",
      "IsIncludeInEmails" : true,
      "EmailAddress" : "EmailAddress",
      "ContactRole" : "ContactRole",
      "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
      "BusinessContactID" : 6,
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "IsSystem" : true,
      "ID" : 9,
      "LastName" : "LastName",
      "BusinessID" : 3
    } ],
    "Phone" : "Phone",
    "IsSystem" : true,
    "ID" : 8,
    "Fax" : "Fax",
    "IsDefaultLocation" : true
  } ],
  "AssetCount" : 6,
  "BusinessGUIDstring" : "BusinessGUIDstring",
  "BSID" : "BSID",
  "SecondaryName" : "SecondaryName",
  "AccountCustomerName" : "AccountCustomerName",
  "BillToCustomerCreditLimit" : 1.0246457001441578,
  "CreditLimitString" : "CreditLimitString",
  "IsSystem" : true,
  "PrimaryContactLastName" : "PrimaryContactLastName",
  "AccountCustomerRefNumber" : "AccountCustomerRefNumber",
  "TerritoryName" : "TerritoryName",
  "ModifiesDateTime_offset" : 8,
  "AvailableCreditString" : "AvailableCreditString",
  "ClassPostingBehaviour" : "ClassPostingBehaviour",
  "AccountOpenDate" : "2000-01-23T04:56:07.000+00:00",
  "MasterBuyingGroupCustomerID" : 3,
  "LinkedTenantGlobalIDstring" : "LinkedTenantGlobalIDstring",
  "ABN" : "ABN",
  "IsLinked" : true,
  "AccountCustomerClassID" : 0,
  "CustomerClass" : {
    "HasBeenSaved" : true,
    "CountOfCustomers" : 3,
    "IsAccountCustomerBatched" : true,
    "Description" : "Description",
    "IsApprovedForWeb" : true,
    "IsApprovedForPOS" : true,
    "IsActive" : true,
    "BatchInvoiceFrequencyDays" : 7,
    "BatchInvoicePrefix" : "BatchInvoicePrefix",
    "Name" : "Name",
    "GUIDstring" : "GUIDstring",
    "IsAutoApprovedforClaimRequests" : true,
    "IsAutoSendPayByLinkInvoice" : true,
    "TradingTermDays" : 6,
    "DefaultPricingBandID" : 4,
    "ID" : 0,
    "PostingBehaviour" : "PostingBehaviour",
    "IsCanSetFundingRate" : true,
    "CreditLimit" : 4.86315908102884,
    "LoyaltyDescription" : "LoyaltyDescription",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "GenericAccountCustomerID" : 5,
    "TradingTermID" : 8,
    "IsLoyaltyEligible" : true,
    "IsBatchInvoice" : true,
    "GenericAccountCustomerName" : "GenericAccountCustomerName",
    "AccountCustomerRefNumberPrefix" : "AccountCustomerRefNumberPrefix",
    "IsExemptFromMerchantSurcharge" : true,
    "FundingRate" : 9.702963800023566,
    "IsAutoCreateGenericAccountCustomer" : true,
    "BSID" : "BSID",
    "IsSystem" : true,
    "IsApprovedForService" : true,
    "TradingTermType" : "TradingTermType",
    "PrimaryOperationalCustomer" : {
      "IsIndividual" : true,
      "CompanyName" : "CompanyName",
      "PrimaryContactFullName" : "PrimaryContactFullName",
      "CustomerID" : 1
    }
  },
  "WebSiteURL" : "WebSiteURL",
  "Structure" : "Structure",
  "OverdueInvoicesAmount" : 7.457744773683766,
  "IsEnableAutomaticJobBookingSMSReminder" : true,
  "PhoneFax" : "PhoneFax",
  "NumberOfStaff" : 4,
  "BillToCustomerID" : 3,
  "CreditLimit" : 5.533258397034986,
  "PricingBandName" : "PricingBandName",
  "ClassID" : 0,
  "CustomerIsActive" : true,
  "PrimaryContactMobile" : "PrimaryContactMobile",
  "DeliveryNotes" : "DeliveryNotes",
  "AccountBalanceString" : "AccountBalanceString",
  "Contacts" : [ {
    "BusinessName" : "BusinessName",
    "FirstName" : "FirstName",
    "IsActive" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Title" : "Title",
    "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
    "Birthday" : "2000-01-23T04:56:07.000+00:00",
    "Gender" : "Gender",
    "PositionOrOccupation" : "PositionOrOccupation",
    "IsIncludeInEmails" : true,
    "EmailAddress" : "EmailAddress",
    "ContactRole" : "ContactRole",
    "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
    "BusinessContactID" : 6,
    "GUIDstring" : "GUIDstring",
    "PhoneMobile" : "PhoneMobile",
    "IsPrimaryContact" : true,
    "Phone1" : "Phone1",
    "IsSystem" : true,
    "ID" : 9,
    "LastName" : "LastName",
    "BusinessID" : 3
  }, {
    "BusinessName" : "BusinessName",
    "FirstName" : "FirstName",
    "IsActive" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Title" : "Title",
    "BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
    "Birthday" : "2000-01-23T04:56:07.000+00:00",
    "Gender" : "Gender",
    "PositionOrOccupation" : "PositionOrOccupation",
    "IsIncludeInEmails" : true,
    "EmailAddress" : "EmailAddress",
    "ContactRole" : "ContactRole",
    "LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
    "BusinessContactID" : 6,
    "GUIDstring" : "GUIDstring",
    "PhoneMobile" : "PhoneMobile",
    "IsPrimaryContact" : true,
    "Phone1" : "Phone1",
    "IsSystem" : true,
    "ID" : 9,
    "LastName" : "LastName",
    "BusinessID" : 3
  } ],
  "CampaignID" : 1,
  "BankAccounts" : [ {
    "GUIDstring" : "GUIDstring",
    "BSB" : "BSB",
    "StatementText" : "StatementText",
    "IsRemainder" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "ID" : 6,
    "AccountName" : "AccountName",
    "AccountNumber" : "AccountNumber"
  }, {
    "GUIDstring" : "GUIDstring",
    "BSB" : "BSB",
    "StatementText" : "StatementText",
    "IsRemainder" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "ID" : 6,
    "AccountName" : "AccountName",
    "AccountNumber" : "AccountNumber"
  } ],
  "SalesNotes" : "SalesNotes",
  "AccountCustomerClassPostingBehaviour" : "AccountCustomerClassPostingBehaviour",
  "SupplierIsActive" : true,
  "Name" : "Name",
  "GUIDstring" : "GUIDstring",
  "AvailableCredit" : 5.962133916683182,
  "CompanyName" : "CompanyName",
  "SupplierID" : 3,
  "TenantID" : 6,
  "Version" : 9.369310271410669,
  "CreatedWith" : "CreatedWith",
  "Name2" : "Name2",
  "AccountCustomerID" : 4,
  "BillToCustomerStatus" : "BillToCustomerStatus",
  "RefNumber" : "RefNumber",
  "ModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "GUID" : "00000000-0000-0000-0000-000000000000",
  "DateOfFirstSale" : "2000-01-23T04:56:07.000+00:00",
  "IsExemptFromMerchantSurcharge" : true,
  "PricingBandID" : 7,
  "IsAccountCustomer" : true,
  "BillToCustomerAccountBalance" : 1.4894159098541704,
  "AccountLastUpdatedDateTime_offset" : 0,
  "IsAutoAddClaimRequests" : true,
  "IsApprovedForService" : true,
  "PrimaryOperationalCustomer" : {
    "IsIndividual" : true,
    "CompanyName" : "CompanyName",
    "PrimaryContactFullName" : "PrimaryContactFullName",
    "CustomerID" : 1
  },
  "CreatedDateTime" : "2000-01-23T04:56:07.000+00:00",
  "BusinessID" : 3,
  "BillToCustomerName" : "BillToCustomerName",
  "IsAccountCustomerBatched" : true,
  "BusinessGUID" : "00000000-0000-0000-0000-000000000000",
  "ShippingAddressString" : "ShippingAddressString",
  "OperationalCustomerIDs" : [ 6, 6 ],
  "CountSalesRequiresBatching" : 4,
  "IsActive" : true,
  "CreditHoldSetting" : 4,
  "HasOpenTransactions" : true,
  "Attachments" : [ {
    "AttachmentType" : "AttachmentType",
    "LineID" : 7,
    "IsActive" : true,
    "ThumbnailURI" : "ThumbnailURI",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Title" : "Title",
    "IsImage" : true,
    "URI" : "URI",
    "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "Caption" : "Caption",
    "GUIDstring" : "GUIDstring",
    "IsPDF" : true,
    "IsFromParent" : true,
    "ID" : 4,
    "AttachedByUserID" : 4,
    "MessageID" : 1
  }, {
    "AttachmentType" : "AttachmentType",
    "LineID" : 7,
    "IsActive" : true,
    "ThumbnailURI" : "ThumbnailURI",
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "Title" : "Title",
    "IsImage" : true,
    "URI" : "URI",
    "AttachedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
    "Caption" : "Caption",
    "GUIDstring" : "GUIDstring",
    "IsPDF" : true,
    "IsFromParent" : true,
    "ID" : 4,
    "AttachedByUserID" : 4,
    "MessageID" : 1
  } ],
  "Phone1" : "Phone1",
  "AccountBalance" : 7.04836565559697,
  "ClassName" : "ClassName",
  "RecentTransactions" : "{}",
  "LinkedTenantGlobalCode" : "LinkedTenantGlobalCode",
  "PrimaryContactPhone" : "PrimaryContactPhone",
  "TerritoryID" : 0,
  "IsAccountCustomerExemptFromMerchantSurcharge" : true,
  "PrimaryContactFullName" : "PrimaryContactFullName",
  "DefaultLocationName" : "DefaultLocationName",
  "IndustryType" : "IndustryType",
  "IsIndividual" : true,
  "RowNumber" : 9,
  "CreatedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "IncorporatedDate" : "2000-01-23T04:56:07.000+00:00",
  "CreatedDateTime_offset" : 7,
  "PrimaryContactFirstName" : "PrimaryContactFirstName"
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<null>
  <ClassID>123</ClassID>
  <ClassName>aeiou</ClassName>
  <ClassPostingBehaviour>aeiou</ClassPostingBehaviour>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <GUID>00000000-0000-0000-0000-000000000000</GUID>
  <AssetCount>123</AssetCount>
  <IsUpdateLinkedTenant>true</IsUpdateLinkedTenant>
  <CampaignID>123</CampaignID>
  <AvailableCredit>3.149</AvailableCredit>
  <CreditLimitString>aeiou</CreditLimitString>
  <AccountBalanceString>aeiou</AccountBalanceString>
  <AvailableCreditString>aeiou</AvailableCreditString>
  <BillToCustomerStatus>aeiou</BillToCustomerStatus>
  <BillToCustomerCreditLimit>3.149</BillToCustomerCreditLimit>
  <BillToCustomerAccountBalance>3.149</BillToCustomerAccountBalance>
  <OperationalCustomerIDs>123</OperationalCustomerIDs>
  <OverdueInvoicesAmount>3.149</OverdueInvoicesAmount>
  <IsAccountCustomerBatched>true</IsAccountCustomerBatched>
  <CreditHoldSetting>123</CreditHoldSetting>
  <CreditStopSetting>123</CreditStopSetting>
  <IsEnableAutomaticJobBookingSMSReminder>true</IsEnableAutomaticJobBookingSMSReminder>
  <RowNumber>123456789</RowNumber>
  <Version>3.149</Version>
  <CompanyName>aeiou</CompanyName>
  <TenantID>123</TenantID>
  <BusinessGUID>00000000-0000-0000-0000-000000000000</BusinessGUID>
  <LinkedTenantGlobalID>00000000-0000-0000-0000-000000000000</LinkedTenantGlobalID>
  <IsReadOnly>true</IsReadOnly>
  <CreatedDateTime>2000-01-23T04:56:07.000Z</CreatedDateTime>
  <HasOpenTransactions>true</HasOpenTransactions>
  <PrimaryContactFullName>aeiou</PrimaryContactFullName>
  <PrimaryContactFirstName>aeiou</PrimaryContactFirstName>
  <PrimaryContactLastName>aeiou</PrimaryContactLastName>
  <PrimaryContactPhone>aeiou</PrimaryContactPhone>
  <PrimaryContactMobile>aeiou</PrimaryContactMobile>
  <PrimaryContactEmailAddress>aeiou</PrimaryContactEmailAddress>
  <DefaultLocationName>aeiou</DefaultLocationName>
  <ShippingAddressString>aeiou</ShippingAddressString>
  <BillingAddressString>aeiou</BillingAddressString>
  <CustomerID>123</CustomerID>
  <SupplierID>123</SupplierID>
  <SupplierRefNumber>aeiou</SupplierRefNumber>
  <IsPrimaryContact>true</IsPrimaryContact>
  <SearchFieldMatches>aeiou</SearchFieldMatches>
  <CustomerIsActive>true</CustomerIsActive>
  <SupplierIsActive>true</SupplierIsActive>
  <IsSystem>true</IsSystem>
  <BusinessID>123</BusinessID>
  <RefNumber>aeiou</RefNumber>
  <IsApprovedForService>true</IsApprovedForService>
  <BusinessGUIDstring>aeiou</BusinessGUIDstring>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <Name>aeiou</Name>
  <PricingBandID>123</PricingBandID>
  <Name2>aeiou</Name2>
  <PricingBandName>aeiou</PricingBandName>
  <SecondaryName>aeiou</SecondaryName>
  <TerritoryID>123</TerritoryID>
  <ABN>aeiou</ABN>
  <TerritoryName>aeiou</TerritoryName>
  <IsIndividual>true</IsIndividual>
  <SalesNotes>aeiou</SalesNotes>
  <Phone1>aeiou</Phone1>
  <AvgPayDays>123</AvgPayDays>
  <PhoneFax>aeiou</PhoneFax>
  <AccountLastUpdatedDateTime_utc>2000-01-23T04:56:07.000Z</AccountLastUpdatedDateTime_utc>
  <AnnualTurnOver>123</AnnualTurnOver>
  <AccountLastUpdatedDateTime_offset>123</AccountLastUpdatedDateTime_offset>
  <NumberOfStaff>123</NumberOfStaff>
  <ModifiedDateTime_utc>2000-01-23T04:56:07.000Z</ModifiedDateTime_utc>
  <IncorporatedDate>2000-01-23T04:56:07.000Z</IncorporatedDate>
  <ModifiesDateTime_offset>123</ModifiesDateTime_offset>
  <WebSiteURL>aeiou</WebSiteURL>
  <CreatedDateTime_utc>2000-01-23T04:56:07.000Z</CreatedDateTime_utc>
  <IndustryType>aeiou</IndustryType>
  <CreatedDateTime_offset>123</CreatedDateTime_offset>
  <Structure>aeiou</Structure>
  <AccountOpenDate>2000-01-23T04:56:07.000Z</AccountOpenDate>
  <Currency>aeiou</Currency>
  <DateOfFirstSale>2000-01-23T04:56:07.000Z</DateOfFirstSale>
  <Status>aeiou</Status>
  <IsAccountCustomer>true</IsAccountCustomer>
  <IsActive>true</IsActive>
  <MasterBuyingGroupCustomerID>123</MasterBuyingGroupCustomerID>
  <IsLinked>true</IsLinked>
  <PointsBalance>3.149</PointsBalance>
  <AccountBalance>3.149</AccountBalance>
  <IsAutoAddClaimRequests>true</IsAutoAddClaimRequests>
  <CreditLimit>3.149</CreditLimit>
  <BillToCustomerID>123</BillToCustomerID>
  <DeliveryNotes>aeiou</DeliveryNotes>
  <BillToCustomerName>aeiou</BillToCustomerName>
  <LinkedTenantGlobalCode>aeiou</LinkedTenantGlobalCode>
  <AccountCustomerID>123</AccountCustomerID>
  <LinkedTenantGlobalIDstring>aeiou</LinkedTenantGlobalIDstring>
  <AccountCustomerName>aeiou</AccountCustomerName>
  <AccountCustomerClassID>123</AccountCustomerClassID>
  <AccountCustomerClassName>aeiou</AccountCustomerClassName>
  <AccountCustomerClassPostingBehaviour>aeiou</AccountCustomerClassPostingBehaviour>
  <AccountCustomerRefNumber>aeiou</AccountCustomerRefNumber>
  <ID>123</ID>
  <CountOfLinkedCustomers>123</CountOfLinkedCustomers>
  <GUIDstring>aeiou</GUIDstring>
  <BSID>aeiou</BSID>
  <CreatedWith>aeiou</CreatedWith>
  <IsExemptFromMerchantSurcharge>true</IsExemptFromMerchantSurcharge>
  <IsAccountCustomerExemptFromMerchantSurcharge>true</IsAccountCustomerExemptFromMerchantSurcharge>
  <CountSalesRequiresBatching>123</CountSalesRequiresBatching>
</null>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        array[CustomerT] customerT = ; // array[CustomerT] | 

        try {
            Object result = apiInstance.customerSaveList(customerT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerSaveList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final array[CustomerT] customerT = new array[CustomerT](); // array[CustomerT] | 

try {
    final result = await api_instance.customerSaveList(customerT);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerSaveList: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        array[CustomerT] customerT = ; // array[CustomerT] | 

        try {
            Object result = apiInstance.customerSaveList(customerT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerSaveList");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
array[CustomerT] *customerT = ; //  (optional)

// Customer_SaveList
[apiInstance customerSaveListWith:customerT
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerT':  // {array[CustomerT]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerSaveList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerSaveListExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerT = new array[CustomerT](); // array[CustomerT] |  (optional) 

            try {
                // Customer_SaveList
                Object result = apiInstance.customerSaveList(customerT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerSaveList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerT = ; // array[CustomerT] | 

try {
    $result = $api_instance->customerSaveList($customerT);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerSaveList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerT = [WWW::OPenAPIClient::Object::array[CustomerT]->new()]; # array[CustomerT] | 

eval {
    my $result = $api_instance->customerSaveList(customerT => $customerT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerSaveList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerT =  # array[CustomerT] |  (optional)

try:
    # Customer_SaveList
    api_response = api_instance.customer_save_list(customerT=customerT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerSaveList: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerT = ; // array[CustomerT]

    let mut context = DefaultApi::Context::default();
    let result = client.customerSaveList(customerT, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerT

Responses


customerSearch

Customer_Search


/Customer/Search

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/Search" \
 -d '{
  "ParentID" : 3,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "CustomerID" : 6,
  "IsExactMatch" : true,
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "IgnoreProspectID" : 1,
  "TenantID" : 5,
  "IsHierarchicalSort" : true,
  "Search" : "Search",
  "IsLinkedCustomersOnly" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "AccountCustomerID" : 2,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 4,
  "WebsiteID" : 9,
  "GetIsValidForBillToOnly" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 1, 1 ],
  "LastRowNumber" : 1,
  "MaxResults" : 4,
  "IsShowAccountCustomersOnly" : true,
  "CreatedByUserID" : 0,
  "Statuses" : [ 7, 7 ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 1, 1 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "IsCODorPrePaidAccountCustomersOnly" : true,
  "CustomerClassID" : 5,
  "CategoryIDs" : [ 1, 1 ],
  "IgnoreID" : 9,
  "IsShowFavourites" : true,
  "UserID" : 9,
  "SortAsc" : true,
  "LinkedSupplierID" : 6,
  "TerritoryID" : 5,
  "IsHidden" : true,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "TransactionTypeDatTypeID" : 2
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerFilter>
  <GetIsValidForBillToOnly>true</GetIsValidForBillToOnly>
  <CreatedByUserID>123</CreatedByUserID>
  <CustomerID>123</CustomerID>
  <IsLinkedCustomersOnly>true</IsLinkedCustomersOnly>
  <IgnoreProspectID>123</IgnoreProspectID>
  <CustomerClassID>123</CustomerClassID>
  <TerritoryID>123</TerritoryID>
  <IsShowAccountCustomersOnly>true</IsShowAccountCustomersOnly>
  <AccountCustomerID>123</AccountCustomerID>
  <IsCODorPrePaidAccountCustomersOnly>true</IsCODorPrePaidAccountCustomersOnly>
  <Statuses>123</Statuses>
  <StatusStrings>aeiou</StatusStrings>
  <Status>aeiou</Status>
  <SearchString>aeiou</SearchString>
  <SearchNameOnly>true</SearchNameOnly>
  <Search>aeiou</Search>
  <StartDate>2000-01-23T04:56:07.000Z</StartDate>
  <EndDate>2000-01-23T04:56:07.000Z</EndDate>
  <DatePeriod>aeiou</DatePeriod>
  <IsExactMatch>true</IsExactMatch>
  <IsGetBasicInfo>true</IsGetBasicInfo>
  <IncludeDeleted>true</IncludeDeleted>
  <IncludeLogs>true</IncludeLogs>
  <IgnoreID>123</IgnoreID>
  <ParentID>123</ParentID>
  <GetCountOnly>true</GetCountOnly>
  <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
  <CategoryID>123</CategoryID>
  <AdaptorID>123</AdaptorID>
  <CategoryIDs>123</CategoryIDs>
  <BrandIDs>123</BrandIDs>
  <IDs>123</IDs>
  <GUIDs>aeiou</GUIDs>
  <LinkedSupplierID>123</LinkedSupplierID>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <IsApprovedForService>true</IsApprovedForService>
  <ID>123</ID>
  <IsHierarchicalSort>true</IsHierarchicalSort>
  <Types>aeiou</Types>
  <IsShowFavourites>true</IsShowFavourites>
  <IsHidden>true</IsHidden>
  <IncludeSystemTasks>true</IncludeSystemTasks>
  <IsSystem>true</IsSystem>
  <BatchStatus>aeiou</BatchStatus>
  <SortField>aeiou</SortField>
  <SortAsc>true</SortAsc>
  <GroupBy>aeiou</GroupBy>
  <LastRowNumber>123456789</LastRowNumber>
  <MaxResults>123</MaxResults>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerFilter>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerSearch(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerSearch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerFilter customerFilter = new CustomerFilter(); // CustomerFilter | 

try {
    final result = await api_instance.customerSearch(customerFilter);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerSearch: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerSearch(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerSearch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerFilter *customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_Search
[apiInstance customerSearchWith:customerFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerFilter': {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerFilter} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerSearch(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerSearchExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerFilter = new CustomerFilter(); // CustomerFilter |  (optional) 

            try {
                // Customer_Search
                Object result = apiInstance.customerSearch(customerFilter);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerSearch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

try {
    $result = $api_instance->customerSearch($customerFilter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerSearch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerFilter = WWW::OPenAPIClient::Object::CustomerFilter->new(); # CustomerFilter | 

eval {
    my $result = $api_instance->customerSearch(customerFilter => $customerFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerSearch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerFilter |  (optional)

try:
    # Customer_Search
    api_response = api_instance.customer_search(customerFilter=customerFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerSearch: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter

    let mut context = DefaultApi::Context::default();
    let result = client.customerSearch(customerFilter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerFilter

Responses


customerSearchCustomersAndProspects

Customer_SearchCustomersAndProspects


/Customer/SearchCustomersAndProspects

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/SearchCustomersAndProspects" \
 -d '{
  "ParentID" : 3,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "CustomerID" : 6,
  "IsExactMatch" : true,
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "IgnoreProspectID" : 1,
  "TenantID" : 5,
  "IsHierarchicalSort" : true,
  "Search" : "Search",
  "IsLinkedCustomersOnly" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "AccountCustomerID" : 2,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 4,
  "WebsiteID" : 9,
  "GetIsValidForBillToOnly" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 1, 1 ],
  "LastRowNumber" : 1,
  "MaxResults" : 4,
  "IsShowAccountCustomersOnly" : true,
  "CreatedByUserID" : 0,
  "Statuses" : [ 7, 7 ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 1, 1 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "IsCODorPrePaidAccountCustomersOnly" : true,
  "CustomerClassID" : 5,
  "CategoryIDs" : [ 1, 1 ],
  "IgnoreID" : 9,
  "IsShowFavourites" : true,
  "UserID" : 9,
  "SortAsc" : true,
  "LinkedSupplierID" : 6,
  "TerritoryID" : 5,
  "IsHidden" : true,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "TransactionTypeDatTypeID" : 2
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerFilter>
  <GetIsValidForBillToOnly>true</GetIsValidForBillToOnly>
  <CreatedByUserID>123</CreatedByUserID>
  <CustomerID>123</CustomerID>
  <IsLinkedCustomersOnly>true</IsLinkedCustomersOnly>
  <IgnoreProspectID>123</IgnoreProspectID>
  <CustomerClassID>123</CustomerClassID>
  <TerritoryID>123</TerritoryID>
  <IsShowAccountCustomersOnly>true</IsShowAccountCustomersOnly>
  <AccountCustomerID>123</AccountCustomerID>
  <IsCODorPrePaidAccountCustomersOnly>true</IsCODorPrePaidAccountCustomersOnly>
  <Statuses>123</Statuses>
  <StatusStrings>aeiou</StatusStrings>
  <Status>aeiou</Status>
  <SearchString>aeiou</SearchString>
  <SearchNameOnly>true</SearchNameOnly>
  <Search>aeiou</Search>
  <StartDate>2000-01-23T04:56:07.000Z</StartDate>
  <EndDate>2000-01-23T04:56:07.000Z</EndDate>
  <DatePeriod>aeiou</DatePeriod>
  <IsExactMatch>true</IsExactMatch>
  <IsGetBasicInfo>true</IsGetBasicInfo>
  <IncludeDeleted>true</IncludeDeleted>
  <IncludeLogs>true</IncludeLogs>
  <IgnoreID>123</IgnoreID>
  <ParentID>123</ParentID>
  <GetCountOnly>true</GetCountOnly>
  <TransactionTypeDatTypeID>123</TransactionTypeDatTypeID>
  <CategoryID>123</CategoryID>
  <AdaptorID>123</AdaptorID>
  <CategoryIDs>123</CategoryIDs>
  <BrandIDs>123</BrandIDs>
  <IDs>123</IDs>
  <GUIDs>aeiou</GUIDs>
  <LinkedSupplierID>123</LinkedSupplierID>
  <IsApprovedForPOS>true</IsApprovedForPOS>
  <IsApprovedForWeb>true</IsApprovedForWeb>
  <IsApprovedForService>true</IsApprovedForService>
  <ID>123</ID>
  <IsHierarchicalSort>true</IsHierarchicalSort>
  <Types>aeiou</Types>
  <IsShowFavourites>true</IsShowFavourites>
  <IsHidden>true</IsHidden>
  <IncludeSystemTasks>true</IncludeSystemTasks>
  <IsSystem>true</IsSystem>
  <BatchStatus>aeiou</BatchStatus>
  <SortField>aeiou</SortField>
  <SortAsc>true</SortAsc>
  <GroupBy>aeiou</GroupBy>
  <LastRowNumber>123456789</LastRowNumber>
  <MaxResults>123</MaxResults>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerFilter>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerSearchCustomersAndProspects(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerSearchCustomersAndProspects");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerFilter customerFilter = new CustomerFilter(); // CustomerFilter | 

try {
    final result = await api_instance.customerSearchCustomersAndProspects(customerFilter);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerSearchCustomersAndProspects: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerFilter customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

        try {
            Object result = apiInstance.customerSearchCustomersAndProspects(customerFilter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerSearchCustomersAndProspects");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerFilter *customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_SearchCustomersAndProspects
[apiInstance customerSearchCustomersAndProspectsWith:customerFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerFilter': {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerFilter} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerSearchCustomersAndProspects(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerSearchCustomersAndProspectsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerFilter = new CustomerFilter(); // CustomerFilter |  (optional) 

            try {
                // Customer_SearchCustomersAndProspects
                Object result = apiInstance.customerSearchCustomersAndProspects(customerFilter);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerSearchCustomersAndProspects: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter | 

try {
    $result = $api_instance->customerSearchCustomersAndProspects($customerFilter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerSearchCustomersAndProspects: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerFilter = WWW::OPenAPIClient::Object::CustomerFilter->new(); # CustomerFilter | 

eval {
    my $result = $api_instance->customerSearchCustomersAndProspects(customerFilter => $customerFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerSearchCustomersAndProspects: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerFilter |  (optional)

try:
    # Customer_SearchCustomersAndProspects
    api_response = api_instance.customer_search_customers_and_prospects(customerFilter=customerFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerSearchCustomersAndProspects: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerFilter = {"GetIsValidForBillToOnly":true,"CreatedByUserID":0,"CustomerID":0,"IsLinkedCustomersOnly":true,"IgnoreProspectID":0,"CustomerClassID":0,"TerritoryID":0,"IsShowAccountCustomersOnly":true,"AccountCustomerID":0,"IsCODorPrePaidAccountCustomersOnly":true,"Statuses":[0],"StatusStrings":["string"],"Status":["string"],"SearchString":"string","SearchNameOnly":true,"Search":"string","StartDate":"string","EndDate":"string","DatePeriod":"string","IsExactMatch":true,"IsGetBasicInfo":true,"IncludeDeleted":true,"IncludeLogs":true,"IgnoreID":0,"ParentID":0,"GetCountOnly":true,"TransactionTypeDatTypeID":0,"CategoryID":0,"AdaptorID":0,"CategoryIDs":[0],"BrandIDs":[0],"IDs":[0],"GUIDs":["string"],"LinkedSupplierID":0,"IsApprovedForPOS":true,"IsApprovedForWeb":true,"IsApprovedForService":true,"ID":0,"IsHierarchicalSort":true,"Types":["string"],"IsShowFavourites":true,"IsHidden":true,"IncludeSystemTasks":true,"IsSystem":true,"BatchStatus":"string","SortField":"string","SortAsc":true,"GroupBy":"string","LastRowNumber":0,"MaxResults":0,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerFilter

    let mut context = DefaultApi::Context::default();
    let result = client.customerSearchCustomersAndProspects(customerFilter, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerFilter

Responses


customerUnDelete

Customer_UnDelete


/Customer/UnDelete/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Customer/UnDelete/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

        try {
            Object result = apiInstance.customerUnDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerUnDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Format - int32.

try {
    final result = await api_instance.customerUnDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerUnDelete: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

        try {
            Object result = apiInstance.customerUnDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerUnDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; // Format - int32. (default to null)

// Customer_UnDelete
[apiInstance customerUnDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var id = 56; // {Integer} Format - int32.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerUnDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerUnDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Format - int32. (default to null)

            try {
                // Customer_UnDelete
                Object result = apiInstance.customerUnDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerUnDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | Format - int32.

try {
    $result = $api_instance->customerUnDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerUnDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->customerUnDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerUnDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | Format - int32. (default to null)

try:
    # Customer_UnDelete
    api_response = api_instance.customer_un_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerUnDelete: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.customerUnDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Format - int32.
Required

Responses


customerUpdateBusinessSystemDetails

Customer_UpdateBusinessSystemDetails


/Customer/UpdateBusinessSystemDetails

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/UpdateBusinessSystemDetails" \
 -d '{
  "WebsiteID" : 5,
  "TenantID" : 5,
  "UserID" : 2,
  "IsGetNewTemplate" : true,
  "IsGetExtraInfo" : true,
  "GUID" : "00000000-0000-0000-0000-000000000000",
  "IsAutoAddClaimRequests" : true,
  "CustomerID" : 0,
  "DebtorCode" : "DebtorCode",
  "ID" : 1,
  "IsReturnEmptyCustomerIfNotFound" : true,
  "BusinessID" : 6
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerEditRequest>
  <CustomerID>123</CustomerID>
  <BusinessID>123</BusinessID>
  <IsAutoAddClaimRequests>true</IsAutoAddClaimRequests>
  <DebtorCode>aeiou</DebtorCode>
  <IsReturnEmptyCustomerIfNotFound>true</IsReturnEmptyCustomerIfNotFound>
  <IsGetNewTemplate>true</IsGetNewTemplate>
  <ID>123</ID>
  <GUID>00000000-0000-0000-0000-000000000000</GUID>
  <IsGetExtraInfo>true</IsGetExtraInfo>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerEditRequest>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerEditRequest customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest | 

        try {
            Object result = apiInstance.customerUpdateBusinessSystemDetails(customerEditRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerUpdateBusinessSystemDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerEditRequest customerEditRequest = new CustomerEditRequest(); // CustomerEditRequest | 

try {
    final result = await api_instance.customerUpdateBusinessSystemDetails(customerEditRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerUpdateBusinessSystemDetails: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerEditRequest customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest | 

        try {
            Object result = apiInstance.customerUpdateBusinessSystemDetails(customerEditRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerUpdateBusinessSystemDetails");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerEditRequest *customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_UpdateBusinessSystemDetails
[apiInstance customerUpdateBusinessSystemDetailsWith:customerEditRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerEditRequest': {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerEditRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerUpdateBusinessSystemDetails(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerUpdateBusinessSystemDetailsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerEditRequest = new CustomerEditRequest(); // CustomerEditRequest |  (optional) 

            try {
                // Customer_UpdateBusinessSystemDetails
                Object result = apiInstance.customerUpdateBusinessSystemDetails(customerEditRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerUpdateBusinessSystemDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest | 

try {
    $result = $api_instance->customerUpdateBusinessSystemDetails($customerEditRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerUpdateBusinessSystemDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerEditRequest = WWW::OPenAPIClient::Object::CustomerEditRequest->new(); # CustomerEditRequest | 

eval {
    my $result = $api_instance->customerUpdateBusinessSystemDetails(customerEditRequest => $customerEditRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerUpdateBusinessSystemDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerEditRequest |  (optional)

try:
    # Customer_UpdateBusinessSystemDetails
    api_response = api_instance.customer_update_business_system_details(customerEditRequest=customerEditRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerUpdateBusinessSystemDetails: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest

    let mut context = DefaultApi::Context::default();
    let result = client.customerUpdateBusinessSystemDetails(customerEditRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerEditRequest

Responses


customerUpdateIsAutoAddClaimRequests

Customer_UpdateIsAutoAddClaimRequests


/Customer/UpdateIsAutoAddClaimRequests

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/Customer/UpdateIsAutoAddClaimRequests" \
 -d '{
  "WebsiteID" : 5,
  "TenantID" : 5,
  "UserID" : 2,
  "IsGetNewTemplate" : true,
  "IsGetExtraInfo" : true,
  "GUID" : "00000000-0000-0000-0000-000000000000",
  "IsAutoAddClaimRequests" : true,
  "CustomerID" : 0,
  "DebtorCode" : "DebtorCode",
  "ID" : 1,
  "IsReturnEmptyCustomerIfNotFound" : true,
  "BusinessID" : 6
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<CustomerEditRequest>
  <CustomerID>123</CustomerID>
  <BusinessID>123</BusinessID>
  <IsAutoAddClaimRequests>true</IsAutoAddClaimRequests>
  <DebtorCode>aeiou</DebtorCode>
  <IsReturnEmptyCustomerIfNotFound>true</IsReturnEmptyCustomerIfNotFound>
  <IsGetNewTemplate>true</IsGetNewTemplate>
  <ID>123</ID>
  <GUID>00000000-0000-0000-0000-000000000000</GUID>
  <IsGetExtraInfo>true</IsGetExtraInfo>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</CustomerEditRequest>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        CustomerEditRequest customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest | 

        try {
            Object result = apiInstance.customerUpdateIsAutoAddClaimRequests(customerEditRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerUpdateIsAutoAddClaimRequests");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CustomerEditRequest customerEditRequest = new CustomerEditRequest(); // CustomerEditRequest | 

try {
    final result = await api_instance.customerUpdateIsAutoAddClaimRequests(customerEditRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->customerUpdateIsAutoAddClaimRequests: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        CustomerEditRequest customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest | 

        try {
            Object result = apiInstance.customerUpdateIsAutoAddClaimRequests(customerEditRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#customerUpdateIsAutoAddClaimRequests");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CustomerEditRequest *customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Customer_UpdateIsAutoAddClaimRequests
[apiInstance customerUpdateIsAutoAddClaimRequestsWith:customerEditRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiCustomer = require('as_server_api_customer');

// Create an instance of the API class
var api = new AsServerApiCustomer.DefaultApi()
var opts = {
  'customerEditRequest': {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0} // {CustomerEditRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.customerUpdateIsAutoAddClaimRequests(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class customerUpdateIsAutoAddClaimRequestsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var customerEditRequest = new CustomerEditRequest(); // CustomerEditRequest |  (optional) 

            try {
                // Customer_UpdateIsAutoAddClaimRequests
                Object result = apiInstance.customerUpdateIsAutoAddClaimRequests(customerEditRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.customerUpdateIsAutoAddClaimRequests: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest | 

try {
    $result = $api_instance->customerUpdateIsAutoAddClaimRequests($customerEditRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->customerUpdateIsAutoAddClaimRequests: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $customerEditRequest = WWW::OPenAPIClient::Object::CustomerEditRequest->new(); # CustomerEditRequest | 

eval {
    my $result = $api_instance->customerUpdateIsAutoAddClaimRequests(customerEditRequest => $customerEditRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->customerUpdateIsAutoAddClaimRequests: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0} # CustomerEditRequest |  (optional)

try:
    # Customer_UpdateIsAutoAddClaimRequests
    api_response = api_instance.customer_update_is_auto_add_claim_requests(customerEditRequest=customerEditRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->customerUpdateIsAutoAddClaimRequests: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let customerEditRequest = {"CustomerID":0,"BusinessID":0,"IsAutoAddClaimRequests":true,"DebtorCode":"string","IsReturnEmptyCustomerIfNotFound":true,"IsGetNewTemplate":true,"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","IsGetExtraInfo":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // CustomerEditRequest

    let mut context = DefaultApi::Context::default();
    let result = client.customerUpdateIsAutoAddClaimRequests(customerEditRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
customerEditRequest

Responses