AS Server - API - TenantLocation

Default

tenantLocationDelete

TenantLocation_Delete


/TenantLocation/Delete/{id}

Usage and SDK Samples

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


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

// TenantLocation_Delete
[apiInstance tenantLocationDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiTenantLocation = require('as_server_api_tenant_location');

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

namespace Example
{
    public class tenantLocationDeleteExample
    {
        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_Delete
                Object result = apiInstance.tenantLocationDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.tenantLocationDelete: " + 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->tenantLocationDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->tenantLocationDelete: ', $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->tenantLocationDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantLocationDelete: $@\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_Delete
    api_response = api_instance.tenant_location_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantLocationDelete: %s\n" % e)
extern crate DefaultApi;

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

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

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

Scopes

Parameters

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

Responses


tenantLocationGet

TenantLocation_Get


/TenantLocation/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/TenantLocation/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.tenantLocationGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantLocationGet");
            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.tenantLocationGet(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->tenantLocationGet: $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.tenantLocationGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantLocationGet");
            e.printStackTrace();
        }
    }
}


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

// TenantLocation_Get
[apiInstance tenantLocationGetWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiTenantLocation = require('as_server_api_tenant_location');

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

namespace Example
{
    public class tenantLocationGetExample
    {
        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_Get
                Object result = apiInstance.tenantLocationGet(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.tenantLocationGet: " + 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->tenantLocationGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->tenantLocationGet: ', $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->tenantLocationGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantLocationGet: $@\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_Get
    api_response = api_instance.tenant_location_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantLocationGet: %s\n" % e)
extern crate DefaultApi;

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

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

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

Scopes

Parameters

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

Responses


tenantLocationGetAll

TenantLocation_GetAll


/TenantLocation/GetAll

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/TenantLocation/GetAll"
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();

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.DefaultApi;

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

        try {
            array[TenantLocationInfo] result = apiInstance.tenantLocationGetAll();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantLocationGetAll");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

// TenantLocation_GetAll
[apiInstance tenantLocationGetAllWithCompletionHandler: 
              ^(array[TenantLocationInfo] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiTenantLocation = require('as_server_api_tenant_location');

// Create an instance of the API class
var api = new AsServerApiTenantLocation.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.tenantLocationGetAll(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // TenantLocation_GetAll
                array[TenantLocationInfo] result = apiInstance.tenantLocationGetAll();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.tenantLocationGetAll: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

try {
    $result = $api_instance->tenantLocationGetAll();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->tenantLocationGetAll: ', $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();

eval {
    my $result = $api_instance->tenantLocationGetAll();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantLocationGetAll: $@\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()

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

pub fn main() {

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

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

Scopes

Parameters

Responses


tenantLocationGetByName

TenantLocation_GetByName


/TenantLocation/GetByName

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/TenantLocation/GetByName" \
 -d '{
  "ParentID" : 1,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 2,
  "SortField" : "SortField",
  "IsExactMatch" : true,
  "CategoryIDs" : [ 7, 7 ],
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "TenantID" : 1,
  "IgnoreID" : 6,
  "IsShowFavourites" : true,
  "IsHierarchicalSort" : true,
  "UserID" : 6,
  "Search" : "Search",
  "SortAsc" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 4,
  "LinkedSupplierID" : 2,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 5,
  "WebsiteID" : 1,
  "IsHidden" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 9, 9 ],
  "LastRowNumber" : 7,
  "MaxResults" : 1,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "Statuses" : [ 0, 0 ],
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 3, 3 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "TransactionTypeDatTypeID" : 5
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<SearchFilter>
  <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>
</SearchFilter>' \
 -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();
        SearchFilter searchFilter = {"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}; // SearchFilter | 

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

final api_instance = DefaultApi();

final SearchFilter searchFilter = new SearchFilter(); // SearchFilter | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        SearchFilter searchFilter = {"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}; // SearchFilter | 

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


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
SearchFilter *searchFilter = {"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)

// TenantLocation_GetByName
[apiInstance tenantLocationGetByNameWith:searchFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiTenantLocation = require('as_server_api_tenant_location');

// Create an instance of the API class
var api = new AsServerApiTenantLocation.DefaultApi()
var opts = {
  'searchFilter': {"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} // {SearchFilter} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$searchFilter = {"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}; // SearchFilter | 

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

eval {
    my $result = $api_instance->tenantLocationGetByName(searchFilter => $searchFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantLocationGetByName: $@\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()
searchFilter = {"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} # SearchFilter |  (optional)

try:
    # TenantLocation_GetByName
    api_response = api_instance.tenant_location_get_by_name(searchFilter=searchFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantLocationGetByName: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let searchFilter = {"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}; // SearchFilter

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

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

Scopes

Parameters

Body parameters
Name Description
searchFilter

Responses


tenantLocationGetDefaultAddress

TenantLocation_GetDefaultAddress


/TenantLocation/GetDefaultAddress/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/TenantLocation/GetDefaultAddress/{id}?addressType=addressType_example"
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.
        String addressType = addressType_example; // String | 

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

final api_instance = DefaultApi();

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

try {
    final result = await api_instance.tenantLocationGetDefaultAddress(id, addressType);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->tenantLocationGetDefaultAddress: $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.
        String addressType = addressType_example; // String | 

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


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

// TenantLocation_GetDefaultAddress
[apiInstance tenantLocationGetDefaultAddressWith:id
    addressType:addressType
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiTenantLocation = require('as_server_api_tenant_location');

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

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

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

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

            try {
                // TenantLocation_GetDefaultAddress
                Object result = apiInstance.tenantLocationGetDefaultAddress(id, addressType);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.tenantLocationGetDefaultAddress: " + 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.
$addressType = addressType_example; // String | 

try {
    $result = $api_instance->tenantLocationGetDefaultAddress($id, $addressType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->tenantLocationGetDefaultAddress: ', $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 $addressType = addressType_example; # String | 

eval {
    my $result = $api_instance->tenantLocationGetDefaultAddress(id => $id, addressType => $addressType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantLocationGetDefaultAddress: $@\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)
addressType = addressType_example # String |  (default to null)

try:
    # TenantLocation_GetDefaultAddress
    api_response = api_instance.tenant_location_get_default_address(id, addressType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantLocationGetDefaultAddress: %s\n" % e)
extern crate DefaultApi;

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

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

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

Scopes

Parameters

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

Responses


tenantLocationSave

TenantLocation_Save


/TenantLocation/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/TenantLocation/Save" \
 -d '{
  "IsDefault" : true,
  "ParentID" : 2,
  "WebsiteID" : 7,
  "SelectedForUser" : true,
  "Description" : "Description",
  "Address" : {
    "FullAddress" : "FullAddress",
    "IsDefaultDeliverTo" : true,
    "IsActive" : true,
    "LocationID" : 5,
    "Latitude" : 1.4658129805029452,
    "GUIDstring" : "GUIDstring",
    "IsPostalAddress" : true,
    "AddressDescription" : "AddressDescription",
    "ID" : 6,
    "Notes" : "Notes",
    "IsDeliverTo" : true,
    "IsSelectedBilling" : true,
    "IsSelectedDelivery" : true,
    "GUID" : "00000000-0000-0000-0000-000000000000",
    "City" : "City",
    "Longitude" : 5.962133916683182,
    "StreetAddress" : "StreetAddress",
    "IsMailTo" : true,
    "IsServiceTo" : true,
    "State" : "State",
    "IsDefaultServiceTo" : true,
    "IsOfficeOrShop" : true,
    "Country" : "Country",
    "IsSystem" : true,
    "AddressType" : 2,
    "PostCode" : "PostCode",
    "IsDefaultBilling" : true
  },
  "IsCustomerDefault" : true,
  "IsActive" : true,
  "CustomerID" : 9,
  "ParentName" : "ParentName",
  "EmailAddress" : "EmailAddress",
  "IsAddCustomerLocation" : true,
  "Name" : "Name",
  "UtcOffset" : 7,
  "TenantID" : 4,
  "TenantLocationID" : 0,
  "Phone" : "Phone",
  "UserID" : 1,
  "ID" : 3
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<TenantLocationInfo>
  <TenantLocationID>123</TenantLocationID>
  <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>
  <SelectedForUser>true</SelectedForUser>
  <EmailAddress>aeiou</EmailAddress>
  <Phone>aeiou</Phone>
  <UtcOffset>123</UtcOffset>
  <IsAddCustomerLocation>true</IsAddCustomerLocation>
  <CustomerID>123</CustomerID>
  <ID>123</ID>
  <Name>aeiou</Name>
  <Description>aeiou</Description>
  <IsDefault>true</IsDefault>
  <IsCustomerDefault>true</IsCustomerDefault>
  <IsActive>true</IsActive>
  <ParentID>123</ParentID>
  <ParentName>aeiou</ParentName>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</TenantLocationInfo>' \
 -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();
        TenantLocationInfo tenantLocationInfo = {"TenantLocationID":0,"Address":{"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},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // TenantLocationInfo | 

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

final api_instance = DefaultApi();

final TenantLocationInfo tenantLocationInfo = new TenantLocationInfo(); // TenantLocationInfo | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        TenantLocationInfo tenantLocationInfo = {"TenantLocationID":0,"Address":{"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},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // TenantLocationInfo | 

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


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
TenantLocationInfo *tenantLocationInfo = {"TenantLocationID":0,"Address":{"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},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// TenantLocation_Save
[apiInstance tenantLocationSaveWith:tenantLocationInfo
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiTenantLocation = require('as_server_api_tenant_location');

// Create an instance of the API class
var api = new AsServerApiTenantLocation.DefaultApi()
var opts = {
  'tenantLocationInfo': {"TenantLocationID":0,"Address":{"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},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0} // {TenantLocationInfo} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$tenantLocationInfo = {"TenantLocationID":0,"Address":{"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},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // TenantLocationInfo | 

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

eval {
    my $result = $api_instance->tenantLocationSave(tenantLocationInfo => $tenantLocationInfo);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantLocationSave: $@\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()
tenantLocationInfo = {"TenantLocationID":0,"Address":{"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},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0} # TenantLocationInfo |  (optional)

try:
    # TenantLocation_Save
    api_response = api_instance.tenant_location_save(tenantLocationInfo=tenantLocationInfo)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantLocationSave: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let tenantLocationInfo = {"TenantLocationID":0,"Address":{"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},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // TenantLocationInfo

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

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

Scopes

Parameters

Body parameters
Name Description
tenantLocationInfo

Responses


tenantLocationSearch

TenantLocation_Search


/TenantLocation/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/TenantLocation/Search" \
 -d '{
  "ParentID" : 5,
  "Types" : [ "Types", "Types" ],
  "IsApprovedForPOS" : true,
  "IsApprovedForWeb" : true,
  "AdaptorID" : 7,
  "SortField" : "SortField",
  "CustomerID" : 0,
  "IsExactMatch" : true,
  "CategoryIDs" : [ 9, 9 ],
  "GetCountOnly" : true,
  "SearchString" : "SearchString",
  "IncludeDeleted" : true,
  "IncludeSystemTasks" : true,
  "StartDate" : "2000-01-23T04:56:07.000+00:00",
  "TenantID" : 1,
  "IgnoreID" : 1,
  "IsShowFavourites" : true,
  "IsHierarchicalSort" : true,
  "UserID" : 7,
  "Search" : "Search",
  "SortAsc" : true,
  "GUIDs" : [ "GUIDs", "GUIDs" ],
  "IncludeLogs" : true,
  "ID" : 7,
  "LinkedSupplierID" : 4,
  "Status" : [ "Status", "Status" ],
  "CategoryID" : 2,
  "WebsiteID" : 6,
  "IsHidden" : true,
  "GroupBy" : "GroupBy",
  "BrandIDs" : [ 3, 3 ],
  "LastRowNumber" : 1,
  "MaxResults" : 1,
  "EndDate" : "2000-01-23T04:56:07.000+00:00",
  "Statuses" : [ 6, 6 ],
  "StatusStrings" : [ "StatusStrings", "StatusStrings" ],
  "IsGetBasicInfo" : true,
  "BatchStatus" : "BatchStatus",
  "DatePeriod" : "DatePeriod",
  "IDs" : [ 2, 2 ],
  "IsSystem" : true,
  "SearchNameOnly" : true,
  "IsApprovedForService" : true,
  "TransactionTypeDatTypeID" : 5
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<TenantLocationFilter>
  <CustomerID>123</CustomerID>
  <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>
</TenantLocationFilter>' \
 -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();
        TenantLocationFilter tenantLocationFilter = {"CustomerID":0,"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}; // TenantLocationFilter | 

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

final api_instance = DefaultApi();

final TenantLocationFilter tenantLocationFilter = new TenantLocationFilter(); // TenantLocationFilter | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        TenantLocationFilter tenantLocationFilter = {"CustomerID":0,"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}; // TenantLocationFilter | 

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


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
TenantLocationFilter *tenantLocationFilter = {"CustomerID":0,"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)

// TenantLocation_Search
[apiInstance tenantLocationSearchWith:tenantLocationFilter
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiTenantLocation = require('as_server_api_tenant_location');

// Create an instance of the API class
var api = new AsServerApiTenantLocation.DefaultApi()
var opts = {
  'tenantLocationFilter': {"CustomerID":0,"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} // {TenantLocationFilter} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$tenantLocationFilter = {"CustomerID":0,"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}; // TenantLocationFilter | 

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

eval {
    my $result = $api_instance->tenantLocationSearch(tenantLocationFilter => $tenantLocationFilter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantLocationSearch: $@\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()
tenantLocationFilter = {"CustomerID":0,"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} # TenantLocationFilter |  (optional)

try:
    # TenantLocation_Search
    api_response = api_instance.tenant_location_search(tenantLocationFilter=tenantLocationFilter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantLocationSearch: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let tenantLocationFilter = {"CustomerID":0,"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}; // TenantLocationFilter

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

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

Scopes

Parameters

Body parameters
Name Description
tenantLocationFilter

Responses


tenantLocationUnDelete

TenantLocation_UnDelete


/TenantLocation/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/TenantLocation/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.tenantLocationUnDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantLocationUnDelete");
            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.tenantLocationUnDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->tenantLocationUnDelete: $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.tenantLocationUnDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#tenantLocationUnDelete");
            e.printStackTrace();
        }
    }
}


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

// TenantLocation_UnDelete
[apiInstance tenantLocationUnDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiTenantLocation = require('as_server_api_tenant_location');

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

namespace Example
{
    public class tenantLocationUnDeleteExample
    {
        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_UnDelete
                Object result = apiInstance.tenantLocationUnDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.tenantLocationUnDelete: " + 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->tenantLocationUnDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->tenantLocationUnDelete: ', $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->tenantLocationUnDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->tenantLocationUnDelete: $@\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_UnDelete
    api_response = api_instance.tenant_location_un_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->tenantLocationUnDelete: %s\n" % e)
extern crate DefaultApi;

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

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

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

Scopes

Parameters

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

Responses