AS Server - API - TenantLocation - v2

Default

tenantLocationGetByID

TenantLocation_GetByID


/v2/TenantLocation/{Id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/v2/TenantLocation/{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 {
            PagedActionResults_TenantLocations_ result = apiInstance.tenantLocationGetByID(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantLocationGetByID");
            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.tenantLocationGetByID(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->tenantLocationGetByID: $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 {
            PagedActionResults_TenantLocations_ result = apiInstance.tenantLocationGetByID(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantLocationGetByID");
            e.printStackTrace();
        }
    }
}


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

// TenantLocation_GetByID
[apiInstance tenantLocationGetByIDWith:id
              completionHandler: ^(PagedActionResults_TenantLocations_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiTenantLocationV2 = require('as_server_api_tenant_location_v2');

// Create an instance of the API class
var api = new AsServerApiTenantLocationV2.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.tenantLocationGetByID(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // TenantLocation_GetByID
                PagedActionResults_TenantLocations_ result = apiInstance.tenantLocationGetByID(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.tenantLocationGetByID: " + 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->tenantLocationGetByID($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->tenantLocationGetByID: ', $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->tenantLocationGetByID(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantLocationGetByID: $@\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:
    # TenantLocation_GetByID
    api_response = api_instance.tenant_location_get_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantLocationGetByID: %s\n" % e)
extern crate DefaultApi;

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

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

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

Scopes

Parameters

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

Responses


tenantLocationGetV2

TenantLocation_GetV2


/v2/TenantLocation/

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/v2/TenantLocation/?filter.iD=56&filter.isShowActiveOnly=true&filter.startRow=789&filter.isIncludeDefaultWarehouse=true&filter.sortField=filterPeriodsortField_example&filter.searchString=filterPeriodsearchString_example&filter.sortAsc=true&filter.maxResults=56"
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 filterPeriodiD = 56; // Integer | Format - int32.
        Boolean filterPeriodisShowActiveOnly = true; // Boolean | 
        Long filterPeriodstartRow = 789; // Long | Format - int64.
        Boolean filterPeriodisIncludeDefaultWarehouse = true; // Boolean | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        Integer filterPeriodmaxResults = 56; // Integer | Format - int32.

        try {
            PagedActionResults_TenantLocations_ result = apiInstance.tenantLocationGetV2(filterPeriodiD, filterPeriodisShowActiveOnly, filterPeriodstartRow, filterPeriodisIncludeDefaultWarehouse, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodmaxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantLocationGetV2");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer filterPeriodiD = new Integer(); // Integer | Format - int32.
final Boolean filterPeriodisShowActiveOnly = new Boolean(); // Boolean | 
final Long filterPeriodstartRow = new Long(); // Long | Format - int64.
final Boolean filterPeriodisIncludeDefaultWarehouse = new Boolean(); // Boolean | 
final String filterPeriodsortField = new String(); // String | 
final String filterPeriodsearchString = new String(); // String | 
final Boolean filterPeriodsortAsc = new Boolean(); // Boolean | 
final Integer filterPeriodmaxResults = new Integer(); // Integer | Format - int32.

try {
    final result = await api_instance.tenantLocationGetV2(filterPeriodiD, filterPeriodisShowActiveOnly, filterPeriodstartRow, filterPeriodisIncludeDefaultWarehouse, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodmaxResults);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->tenantLocationGetV2: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer filterPeriodiD = 56; // Integer | Format - int32.
        Boolean filterPeriodisShowActiveOnly = true; // Boolean | 
        Long filterPeriodstartRow = 789; // Long | Format - int64.
        Boolean filterPeriodisIncludeDefaultWarehouse = true; // Boolean | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        Integer filterPeriodmaxResults = 56; // Integer | Format - int32.

        try {
            PagedActionResults_TenantLocations_ result = apiInstance.tenantLocationGetV2(filterPeriodiD, filterPeriodisShowActiveOnly, filterPeriodstartRow, filterPeriodisIncludeDefaultWarehouse, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodmaxResults);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantLocationGetV2");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *filterPeriodiD = 56; // Format - int32. (optional) (default to null)
Boolean *filterPeriodisShowActiveOnly = true; //  (optional) (default to null)
Long *filterPeriodstartRow = 789; // Format - int64. (optional) (default to null)
Boolean *filterPeriodisIncludeDefaultWarehouse = true; //  (optional) (default to null)
String *filterPeriodsortField = filterPeriodsortField_example; //  (optional) (default to null)
String *filterPeriodsearchString = filterPeriodsearchString_example; //  (optional) (default to null)
Boolean *filterPeriodsortAsc = true; //  (optional) (default to null)
Integer *filterPeriodmaxResults = 56; // Format - int32. (optional) (default to null)

// TenantLocation_GetV2
[apiInstance tenantLocationGetV2With:filterPeriodiD
    filterPeriodisShowActiveOnly:filterPeriodisShowActiveOnly
    filterPeriodstartRow:filterPeriodstartRow
    filterPeriodisIncludeDefaultWarehouse:filterPeriodisIncludeDefaultWarehouse
    filterPeriodsortField:filterPeriodsortField
    filterPeriodsearchString:filterPeriodsearchString
    filterPeriodsortAsc:filterPeriodsortAsc
    filterPeriodmaxResults:filterPeriodmaxResults
              completionHandler: ^(PagedActionResults_TenantLocations_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiTenantLocationV2 = require('as_server_api_tenant_location_v2');

// Create an instance of the API class
var api = new AsServerApiTenantLocationV2.DefaultApi()
var opts = {
  'filterPeriodiD': 56, // {Integer} Format - int32.
  'filterPeriodisShowActiveOnly': true, // {Boolean} 
  'filterPeriodstartRow': 789, // {Long} Format - int64.
  'filterPeriodisIncludeDefaultWarehouse': true, // {Boolean} 
  'filterPeriodsortField': filterPeriodsortField_example, // {String} 
  'filterPeriodsearchString': filterPeriodsearchString_example, // {String} 
  'filterPeriodsortAsc': true, // {Boolean} 
  'filterPeriodmaxResults': 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.tenantLocationGetV2(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var filterPeriodiD = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodisShowActiveOnly = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodstartRow = 789;  // Long | Format - int64. (optional)  (default to null)
            var filterPeriodisIncludeDefaultWarehouse = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodsortField = filterPeriodsortField_example;  // String |  (optional)  (default to null)
            var filterPeriodsearchString = filterPeriodsearchString_example;  // String |  (optional)  (default to null)
            var filterPeriodsortAsc = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodmaxResults = 56;  // Integer | Format - int32. (optional)  (default to null)

            try {
                // TenantLocation_GetV2
                PagedActionResults_TenantLocations_ result = apiInstance.tenantLocationGetV2(filterPeriodiD, filterPeriodisShowActiveOnly, filterPeriodstartRow, filterPeriodisIncludeDefaultWarehouse, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodmaxResults);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.tenantLocationGetV2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$filterPeriodiD = 56; // Integer | Format - int32.
$filterPeriodisShowActiveOnly = true; // Boolean | 
$filterPeriodstartRow = 789; // Long | Format - int64.
$filterPeriodisIncludeDefaultWarehouse = true; // Boolean | 
$filterPeriodsortField = filterPeriodsortField_example; // String | 
$filterPeriodsearchString = filterPeriodsearchString_example; // String | 
$filterPeriodsortAsc = true; // Boolean | 
$filterPeriodmaxResults = 56; // Integer | Format - int32.

try {
    $result = $api_instance->tenantLocationGetV2($filterPeriodiD, $filterPeriodisShowActiveOnly, $filterPeriodstartRow, $filterPeriodisIncludeDefaultWarehouse, $filterPeriodsortField, $filterPeriodsearchString, $filterPeriodsortAsc, $filterPeriodmaxResults);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->tenantLocationGetV2: ', $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 $filterPeriodiD = 56; # Integer | Format - int32.
my $filterPeriodisShowActiveOnly = true; # Boolean | 
my $filterPeriodstartRow = 789; # Long | Format - int64.
my $filterPeriodisIncludeDefaultWarehouse = true; # Boolean | 
my $filterPeriodsortField = filterPeriodsortField_example; # String | 
my $filterPeriodsearchString = filterPeriodsearchString_example; # String | 
my $filterPeriodsortAsc = true; # Boolean | 
my $filterPeriodmaxResults = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->tenantLocationGetV2(filterPeriodiD => $filterPeriodiD, filterPeriodisShowActiveOnly => $filterPeriodisShowActiveOnly, filterPeriodstartRow => $filterPeriodstartRow, filterPeriodisIncludeDefaultWarehouse => $filterPeriodisIncludeDefaultWarehouse, filterPeriodsortField => $filterPeriodsortField, filterPeriodsearchString => $filterPeriodsearchString, filterPeriodsortAsc => $filterPeriodsortAsc, filterPeriodmaxResults => $filterPeriodmaxResults);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantLocationGetV2: $@\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()
filterPeriodiD = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodisShowActiveOnly = true # Boolean |  (optional) (default to null)
filterPeriodstartRow = 789 # Long | Format - int64. (optional) (default to null)
filterPeriodisIncludeDefaultWarehouse = true # Boolean |  (optional) (default to null)
filterPeriodsortField = filterPeriodsortField_example # String |  (optional) (default to null)
filterPeriodsearchString = filterPeriodsearchString_example # String |  (optional) (default to null)
filterPeriodsortAsc = true # Boolean |  (optional) (default to null)
filterPeriodmaxResults = 56 # Integer | Format - int32. (optional) (default to null)

try:
    # TenantLocation_GetV2
    api_response = api_instance.tenant_location_get_v2(filterPeriodiD=filterPeriodiD, filterPeriodisShowActiveOnly=filterPeriodisShowActiveOnly, filterPeriodstartRow=filterPeriodstartRow, filterPeriodisIncludeDefaultWarehouse=filterPeriodisIncludeDefaultWarehouse, filterPeriodsortField=filterPeriodsortField, filterPeriodsearchString=filterPeriodsearchString, filterPeriodsortAsc=filterPeriodsortAsc, filterPeriodmaxResults=filterPeriodmaxResults)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantLocationGetV2: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let filterPeriodiD = 56; // Integer
    let filterPeriodisShowActiveOnly = true; // Boolean
    let filterPeriodstartRow = 789; // Long
    let filterPeriodisIncludeDefaultWarehouse = true; // Boolean
    let filterPeriodsortField = filterPeriodsortField_example; // String
    let filterPeriodsearchString = filterPeriodsearchString_example; // String
    let filterPeriodsortAsc = true; // Boolean
    let filterPeriodmaxResults = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.tenantLocationGetV2(filterPeriodiD, filterPeriodisShowActiveOnly, filterPeriodstartRow, filterPeriodisIncludeDefaultWarehouse, filterPeriodsortField, filterPeriodsearchString, filterPeriodsortAsc, filterPeriodmaxResults, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
filter.iD
Integer (int32)
Format - int32.
filter.isShowActiveOnly
Boolean
filter.startRow
Long (int64)
Format - int64.
filter.isIncludeDefaultWarehouse
Boolean
filter.sortField
String
filter.searchString
String
filter.sortAsc
Boolean
filter.maxResults
Integer (int32)
Format - int32.

Responses


tenantLocationSaveV2

TenantLocation_SaveV2


/v2/TenantLocation/

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/v2/TenantLocation/" \
 -d '{
  "IsActive" : true,
  "TotalNumberOfDistinctProducts" : 6,
  "TotalWarehouses" : 1,
  "TotalMobileWarehouses" : 6,
  "DefaultWarehouse" : {
    "Description" : "Description",
    "IsActive" : true,
    "TotalNumberOfDistinctProducts" : 4,
    "Users" : [ {
      "FirstName" : "FirstName",
      "IsActive" : true,
      "PositionOrOccupation" : "PositionOrOccupation",
      "EmailAddress" : "EmailAddress",
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "BSID" : "BSID",
      "IsEmployee" : true,
      "CreatedWith" : "CreatedWith",
      "ID" : 9,
      "LastName" : "LastName"
    }, {
      "FirstName" : "FirstName",
      "IsActive" : true,
      "PositionOrOccupation" : "PositionOrOccupation",
      "EmailAddress" : "EmailAddress",
      "GUIDstring" : "GUIDstring",
      "PhoneMobile" : "PhoneMobile",
      "IsPrimaryContact" : true,
      "Phone1" : "Phone1",
      "BSID" : "BSID",
      "IsEmployee" : true,
      "CreatedWith" : "CreatedWith",
      "ID" : 9,
      "LastName" : "LastName"
    } ],
    "Name" : "Name",
    "GUIDstring" : "GUIDstring",
    "Version" : 7.143538047012306,
    "SyncLogs" : [ {
      "Status" : "Status",
      "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
      "AdaptorID" : 4,
      "LastImportDateTime_offset" : 8,
      "LastExportDateTime_offset" : 7,
      "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" : 3,
      "ID" : 0,
      "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
    }, {
      "Status" : "Status",
      "LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
      "AdaptorID" : 4,
      "LastImportDateTime_offset" : 8,
      "LastExportDateTime_offset" : 7,
      "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" : 3,
      "ID" : 0,
      "LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
    } ],
    "WarehouseTypeID" : 6,
    "ID" : 0,
    "DefaultPOSCustomerName" : "DefaultPOSCustomerName",
    "MinimumStockHoldingValue" : 7.260521264802104,
    "IsDefault" : true,
    "DefaultPOSCustomerID" : 0,
    "TenantLocationName" : "TenantLocationName",
    "Code" : "Code",
    "TotalStockValue" : 4.678947989005849,
    "RowNumber" : 3,
    "BSID" : "BSID",
    "MaximumStockHoldingValue" : 9.132027271330688,
    "TenantLocationID" : 7,
    "Barcode" : "Barcode",
    "WarehouseType" : {
      "Description" : "Description",
      "WarehouseTypeID" : 6,
      "ID" : 0,
      "IsVirtual" : true,
      "Name" : "Name",
      "RefNumberPrefix" : "RefNumberPrefix"
    },
    "TotalSOH" : 1.041444916118296,
    "IsSystem" : true,
    "CostCentreCode" : "CostCentreCode",
    "Location" : {
      "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" : 3,
        "Latitude" : 9.018348186070783,
        "GUIDstring" : "GUIDstring",
        "IsPostalAddress" : true,
        "AddressDescription" : "AddressDescription",
        "ID" : 8,
        "Notes" : "Notes",
        "IsDeliverTo" : true,
        "IsSelectedBilling" : true,
        "IsSelectedDelivery" : true,
        "GUID" : "00000000-0000-0000-0000-000000000000",
        "City" : "City",
        "Longitude" : 6.438423552598547,
        "StreetAddress" : "StreetAddress",
        "IsMailTo" : true,
        "IsServiceTo" : true,
        "State" : "State",
        "IsDefaultServiceTo" : true,
        "IsOfficeOrShop" : true,
        "Country" : "Country",
        "IsSystem" : true,
        "AddressType" : 6,
        "PostCode" : "PostCode",
        "IsDefaultBilling" : true
      }, {
        "FullAddress" : "FullAddress",
        "IsDefaultDeliverTo" : true,
        "IsActive" : true,
        "LocationID" : 3,
        "Latitude" : 9.018348186070783,
        "GUIDstring" : "GUIDstring",
        "IsPostalAddress" : true,
        "AddressDescription" : "AddressDescription",
        "ID" : 8,
        "Notes" : "Notes",
        "IsDeliverTo" : true,
        "IsSelectedBilling" : true,
        "IsSelectedDelivery" : true,
        "GUID" : "00000000-0000-0000-0000-000000000000",
        "City" : "City",
        "Longitude" : 6.438423552598547,
        "StreetAddress" : "StreetAddress",
        "IsMailTo" : true,
        "IsServiceTo" : true,
        "State" : "State",
        "IsDefaultServiceTo" : true,
        "IsOfficeOrShop" : true,
        "Country" : "Country",
        "IsSystem" : true,
        "AddressType" : 6,
        "PostCode" : "PostCode",
        "IsDefaultBilling" : true
      } ],
      "UtcOffset" : 4,
      "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" : 5,
        "GUIDstring" : "GUIDstring",
        "PhoneMobile" : "PhoneMobile",
        "IsPrimaryContact" : true,
        "Phone1" : "Phone1",
        "IsSystem" : true,
        "ID" : 7,
        "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" : 5,
        "GUIDstring" : "GUIDstring",
        "PhoneMobile" : "PhoneMobile",
        "IsPrimaryContact" : true,
        "Phone1" : "Phone1",
        "IsSystem" : true,
        "ID" : 7,
        "LastName" : "LastName",
        "BusinessID" : 3
      } ],
      "Phone" : "Phone",
      "IsSystem" : true,
      "ID" : 3,
      "Fax" : "Fax",
      "IsDefaultLocation" : true
    },
    "IsStockOpeningBalanceComplete" : true
  },
  "LocationName" : "LocationName",
  "TotalStockValue" : 5.944895607614016,
  "GUIDstring" : "GUIDstring",
  "RowNumber" : 9,
  "IsVisibleToPublic" : true,
  "TotalPhysicalWarehouses" : 2,
  "MaximumStockHoldingValue" : 3.353193347011243,
  "Version" : 9.369310271410669,
  "TenantLocationAddress" : {
    "FullAddress" : "FullAddress",
    "IsDefaultDeliverTo" : true,
    "IsActive" : true,
    "LocationID" : 3,
    "Latitude" : 9.018348186070783,
    "GUIDstring" : "GUIDstring",
    "IsPostalAddress" : true,
    "AddressDescription" : "AddressDescription",
    "ID" : 8,
    "Notes" : "Notes",
    "IsDeliverTo" : true,
    "IsSelectedBilling" : true,
    "IsSelectedDelivery" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "City" : "City",
    "Longitude" : 6.438423552598547,
    "StreetAddress" : "StreetAddress",
    "IsMailTo" : true,
    "IsServiceTo" : true,
    "State" : "State",
    "IsDefaultServiceTo" : true,
    "IsOfficeOrShop" : true,
    "Country" : "Country",
    "IsSystem" : true,
    "AddressType" : 6,
    "PostCode" : "PostCode",
    "IsDefaultBilling" : true
  },
  "ID" : 6,
  "MinimumStockHoldingValue" : 6.704019297950036,
  "IsDefaultLocation" : true
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<TenantLocationT>
  <RowNumber>123456789</RowNumber>
  <Version>3.149</Version>
  <ID>123</ID>
  <GUIDstring>aeiou</GUIDstring>
  <LocationName>aeiou</LocationName>
  <IsVisibleToPublic>true</IsVisibleToPublic>
  <IsDefaultLocation>true</IsDefaultLocation>
  <IsActive>true</IsActive>
  <null>
    <ID>123</ID>
    <GUID>00000000-0000-0000-0000-000000000000</GUID>
    <FullAddress>aeiou</FullAddress>
    <IsMailTo>true</IsMailTo>
    <IsOfficeOrShop>true</IsOfficeOrShop>
    <IsPostalAddress>true</IsPostalAddress>
    <IsSelectedBilling>true</IsSelectedBilling>
    <IsSelectedDelivery>true</IsSelectedDelivery>
    <Latitude>3.149</Latitude>
    <Longitude>3.149</Longitude>
    <LocationID>123</LocationID>
    <IsSystem>true</IsSystem>
    <GUIDstring>aeiou</GUIDstring>
    <AddressType>123</AddressType>
    <AddressDescription>aeiou</AddressDescription>
    <StreetAddress>aeiou</StreetAddress>
    <City>aeiou</City>
    <PostCode>aeiou</PostCode>
    <State>aeiou</State>
    <Country>aeiou</Country>
    <IsDefaultDeliverTo>true</IsDefaultDeliverTo>
    <IsDefaultBilling>true</IsDefaultBilling>
    <IsDefaultServiceTo>true</IsDefaultServiceTo>
    <IsActive>true</IsActive>
    <Notes>aeiou</Notes>
    <IsDeliverTo>true</IsDeliverTo>
    <IsServiceTo>true</IsServiceTo>
  </null>
  <TotalWarehouses>123</TotalWarehouses>
  <TotalPhysicalWarehouses>123</TotalPhysicalWarehouses>
  <TotalNumberOfDistinctProducts>123</TotalNumberOfDistinctProducts>
  <TotalMobileWarehouses>123</TotalMobileWarehouses>
  <TotalStockValue>3.149</TotalStockValue>
  <MinimumStockHoldingValue>3.149</MinimumStockHoldingValue>
  <MaximumStockHoldingValue>3.149</MaximumStockHoldingValue>
  <null>
    <IsSystem>true</IsSystem>
    <RowNumber>123456789</RowNumber>
    <Version>3.149</Version>
    <ID>123</ID>
    <GUIDstring>aeiou</GUIDstring>
    <BSID>aeiou</BSID>
    <TenantLocationID>123</TenantLocationID>
    <TenantLocationName>aeiou</TenantLocationName>
    <WarehouseTypeID>123</WarehouseTypeID>
    <Code>aeiou</Code>
    <Name>aeiou</Name>
    <Description>aeiou</Description>
    <Barcode>aeiou</Barcode>
    <IsDefault>true</IsDefault>
    <IsActive>true</IsActive>
    <TotalNumberOfDistinctProducts>123456789</TotalNumberOfDistinctProducts>
    <TotalSOH>3.149</TotalSOH>
    <TotalStockValue>3.149</TotalStockValue>
    <IsStockOpeningBalanceComplete>true</IsStockOpeningBalanceComplete>
    <MinimumStockHoldingValue>3.149</MinimumStockHoldingValue>
    <MaximumStockHoldingValue>3.149</MaximumStockHoldingValue>
    <DefaultPOSCustomerID>123</DefaultPOSCustomerID>
    <DefaultPOSCustomerName>aeiou</DefaultPOSCustomerName>
    <CostCentreCode>aeiou</CostCentreCode>
  </null>
</TenantLocationT>' \
 -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();
        TenantLocationT tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}}; // TenantLocationT | 

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

final api_instance = DefaultApi();

final TenantLocationT tenantLocationT = new TenantLocationT(); // TenantLocationT | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        TenantLocationT tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}}; // TenantLocationT | 

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


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
TenantLocationT *tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}}; //  (optional)

// TenantLocation_SaveV2
[apiInstance tenantLocationSaveV2With:tenantLocationT
              completionHandler: ^(ActionResults_TenantLocationT_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiTenantLocationV2 = require('as_server_api_tenant_location_v2');

// Create an instance of the API class
var api = new AsServerApiTenantLocationV2.DefaultApi()
var opts = {
  'tenantLocationT': {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}} // {TenantLocationT} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}}; // TenantLocationT | 

try {
    $result = $api_instance->tenantLocationSaveV2($tenantLocationT);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->tenantLocationSaveV2: ', $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 $tenantLocationT = WWW::OPenAPIClient::Object::TenantLocationT->new(); # TenantLocationT | 

eval {
    my $result = $api_instance->tenantLocationSaveV2(tenantLocationT => $tenantLocationT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantLocationSaveV2: $@\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()
tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}} # TenantLocationT |  (optional)

try:
    # TenantLocation_SaveV2
    api_response = api_instance.tenant_location_save_v2(tenantLocationT=tenantLocationT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantLocationSaveV2: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}}; // TenantLocationT

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

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

Scopes

Parameters

Body parameters
Name Description
tenantLocationT

Responses