Spenda.Services.TenantManagement

Business

lookupABNOrNZBN

Lookup a business by ABN or NZBN

Look up a business by ABN or NZBN


/Spenda/Tenant/Business/findByBusinessNumber/{countryName}/{businessNumber}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Business/findByBusinessNumber/{countryName}/{businessNumber}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BusinessApi;

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

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

        // Create an instance of the API class
        BusinessApi apiInstance = new BusinessApi();
        String businessNumber = businessNumber_example; // String | The Australian or New Zealand Business Number to look up
        String countryName = countryName_example; // String | Represents the name of the country

        try {
            httpActionResult_abnLookupResponse result = apiInstance.lookupABNOrNZBN(businessNumber, countryName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusinessApi#lookupABNOrNZBN");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String businessNumber = new String(); // String | The Australian or New Zealand Business Number to look up
final String countryName = new String(); // String | Represents the name of the country

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

import org.openapitools.client.api.BusinessApi;

public class BusinessApiExample {
    public static void main(String[] args) {
        BusinessApi apiInstance = new BusinessApi();
        String businessNumber = businessNumber_example; // String | The Australian or New Zealand Business Number to look up
        String countryName = countryName_example; // String | Represents the name of the country

        try {
            httpActionResult_abnLookupResponse result = apiInstance.lookupABNOrNZBN(businessNumber, countryName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusinessApi#lookupABNOrNZBN");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BusinessApi *apiInstance = [[BusinessApi alloc] init];
String *businessNumber = businessNumber_example; // The Australian or New Zealand Business Number to look up (default to null)
String *countryName = countryName_example; // Represents the name of the country (default to null)

// Lookup a business by ABN or NZBN
[apiInstance lookupABNOrNZBNWith:businessNumber
    countryName:countryName
              completionHandler: ^(httpActionResult_abnLookupResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.BusinessApi()
var businessNumber = businessNumber_example; // {String} The Australian or New Zealand Business Number to look up
var countryName = countryName_example; // {String} Represents the name of the country

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

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

            // Create an instance of the API class
            var apiInstance = new BusinessApi();
            var businessNumber = businessNumber_example;  // String | The Australian or New Zealand Business Number to look up (default to null)
            var countryName = countryName_example;  // String | Represents the name of the country (default to null)

            try {
                // Lookup a business by ABN or NZBN
                httpActionResult_abnLookupResponse result = apiInstance.lookupABNOrNZBN(businessNumber, countryName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BusinessApi.lookupABNOrNZBN: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BusinessApi();
$businessNumber = businessNumber_example; // String | The Australian or New Zealand Business Number to look up
$countryName = countryName_example; // String | Represents the name of the country

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BusinessApi->new();
my $businessNumber = businessNumber_example; # String | The Australian or New Zealand Business Number to look up
my $countryName = countryName_example; # String | Represents the name of the country

eval {
    my $result = $api_instance->lookupABNOrNZBN(businessNumber => $businessNumber, countryName => $countryName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BusinessApi->lookupABNOrNZBN: $@\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.BusinessApi()
businessNumber = businessNumber_example # String | The Australian or New Zealand Business Number to look up (default to null)
countryName = countryName_example # String | Represents the name of the country (default to null)

try:
    # Lookup a business by ABN or NZBN
    api_response = api_instance.lookup_abnor_nzbn(businessNumber, countryName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BusinessApi->lookupABNOrNZBN: %s\n" % e)
extern crate BusinessApi;

pub fn main() {
    let businessNumber = businessNumber_example; // String
    let countryName = countryName_example; // String

    let mut context = BusinessApi::Context::default();
    let result = client.lookupABNOrNZBN(businessNumber, countryName, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
businessNumber*
String
The Australian or New Zealand Business Number to look up
Required
countryName*
String
Represents the name of the country
Required

Responses


lookupNZBNByCompanyName

Lookup a business details by company name

Look up a business details by company name


/Spenda/Tenant/Business/findByBusinessName/{countryName}/{companyName}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Business/findByBusinessName/{countryName}/{companyName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BusinessApi;

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

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

        // Create an instance of the API class
        BusinessApi apiInstance = new BusinessApi();
        String countryName = countryName_example; // String | Represents the name of the country
        String companyName = companyName_example; // String | Business Name to look up

        try {
            httpActionResult_abnLookupResponse result = apiInstance.lookupNZBNByCompanyName(countryName, companyName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusinessApi#lookupNZBNByCompanyName");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String countryName = new String(); // String | Represents the name of the country
final String companyName = new String(); // String | Business Name to look up

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

import org.openapitools.client.api.BusinessApi;

public class BusinessApiExample {
    public static void main(String[] args) {
        BusinessApi apiInstance = new BusinessApi();
        String countryName = countryName_example; // String | Represents the name of the country
        String companyName = companyName_example; // String | Business Name to look up

        try {
            httpActionResult_abnLookupResponse result = apiInstance.lookupNZBNByCompanyName(countryName, companyName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusinessApi#lookupNZBNByCompanyName");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BusinessApi *apiInstance = [[BusinessApi alloc] init];
String *countryName = countryName_example; // Represents the name of the country (default to null)
String *companyName = companyName_example; // Business Name to look up (default to null)

// Lookup a business details by company name
[apiInstance lookupNZBNByCompanyNameWith:countryName
    companyName:companyName
              completionHandler: ^(httpActionResult_abnLookupResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.BusinessApi()
var countryName = countryName_example; // {String} Represents the name of the country
var companyName = companyName_example; // {String} Business Name to look up

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

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

            // Create an instance of the API class
            var apiInstance = new BusinessApi();
            var countryName = countryName_example;  // String | Represents the name of the country (default to null)
            var companyName = companyName_example;  // String | Business Name to look up (default to null)

            try {
                // Lookup a business details by company name
                httpActionResult_abnLookupResponse result = apiInstance.lookupNZBNByCompanyName(countryName, companyName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BusinessApi.lookupNZBNByCompanyName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BusinessApi();
$countryName = countryName_example; // String | Represents the name of the country
$companyName = companyName_example; // String | Business Name to look up

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BusinessApi->new();
my $countryName = countryName_example; # String | Represents the name of the country
my $companyName = companyName_example; # String | Business Name to look up

eval {
    my $result = $api_instance->lookupNZBNByCompanyName(countryName => $countryName, companyName => $companyName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BusinessApi->lookupNZBNByCompanyName: $@\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.BusinessApi()
countryName = countryName_example # String | Represents the name of the country (default to null)
companyName = companyName_example # String | Business Name to look up (default to null)

try:
    # Lookup a business details by company name
    api_response = api_instance.lookup_nzbnby_company_name(countryName, companyName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BusinessApi->lookupNZBNByCompanyName: %s\n" % e)
extern crate BusinessApi;

pub fn main() {
    let countryName = countryName_example; // String
    let companyName = companyName_example; // String

    let mut context = BusinessApi::Context::default();
    let result = client.lookupNZBNByCompanyName(countryName, companyName, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
countryName*
String
Represents the name of the country
Required
companyName*
String
Business Name to look up
Required

Responses


Public

getCountries

Get country list

Get country list


/Spenda/Tenant/Countries

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Countries"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PublicApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.PublicApi;

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

        try {
            httpActionResult_countryResponse result = apiInstance.getCountries();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#getCountries");
            e.printStackTrace();
        }
    }
}


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

// Get country list
[apiInstance getCountriesWithCompletionHandler: 
              ^(httpActionResult_countryResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

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

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

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

            try {
                // Get country list
                httpActionResult_countryResponse result = apiInstance.getCountries();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.getCountries: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();

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

try:
    # Get country list
    api_response = api_instance.get_countries()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicApi->getCountries: %s\n" % e)
extern crate PublicApi;

pub fn main() {

    let mut context = PublicApi::Context::default();
    let result = client.getCountries(&context).wait();

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

Scopes

Parameters

Responses


tMConfirmNewUserInvitation

Confirm the new user invitation sent by other tenant.

Confirm the new user invitation sent by other tenant.


/Spenda/Tenant/Users/Invitation/{invitationToken}

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Users/Invitation/{invitationToken}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PublicApi;

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

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

        // Create an instance of the API class
        PublicApi apiInstance = new PublicApi();
        String invitationToken = invitationToken_example; // String | Invitation token for invitee

        try {
            httpActionResult result = apiInstance.tMConfirmNewUserInvitation(invitationToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#tMConfirmNewUserInvitation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String invitationToken = new String(); // String | Invitation token for invitee

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

import org.openapitools.client.api.PublicApi;

public class PublicApiExample {
    public static void main(String[] args) {
        PublicApi apiInstance = new PublicApi();
        String invitationToken = invitationToken_example; // String | Invitation token for invitee

        try {
            httpActionResult result = apiInstance.tMConfirmNewUserInvitation(invitationToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#tMConfirmNewUserInvitation");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PublicApi *apiInstance = [[PublicApi alloc] init];
String *invitationToken = invitationToken_example; // Invitation token for invitee (default to null)

// Confirm the new user invitation sent by other tenant.
[apiInstance tMConfirmNewUserInvitationWith:invitationToken
              completionHandler: ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.PublicApi()
var invitationToken = invitationToken_example; // {String} Invitation token for invitee

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

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

            // Create an instance of the API class
            var apiInstance = new PublicApi();
            var invitationToken = invitationToken_example;  // String | Invitation token for invitee (default to null)

            try {
                // Confirm the new user invitation sent by other tenant.
                httpActionResult result = apiInstance.tMConfirmNewUserInvitation(invitationToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.tMConfirmNewUserInvitation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PublicApi();
$invitationToken = invitationToken_example; // String | Invitation token for invitee

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();
my $invitationToken = invitationToken_example; # String | Invitation token for invitee

eval {
    my $result = $api_instance->tMConfirmNewUserInvitation(invitationToken => $invitationToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicApi->tMConfirmNewUserInvitation: $@\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.PublicApi()
invitationToken = invitationToken_example # String | Invitation token for invitee (default to null)

try:
    # Confirm the new user invitation sent by other tenant.
    api_response = api_instance.t_m_confirm_new_user_invitation(invitationToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicApi->tMConfirmNewUserInvitation: %s\n" % e)
extern crate PublicApi;

pub fn main() {
    let invitationToken = invitationToken_example; // String

    let mut context = PublicApi::Context::default();
    let result = client.tMConfirmNewUserInvitation(invitationToken, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
invitationToken*
String
Invitation token for invitee
Required

Responses


tMGetUserInvitationDetails

Get details for user invitation

Get details for user invitation


/Spenda/Tenant/Users/Invitation/{invitationToken}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Users/Invitation/{invitationToken}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PublicApi;

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

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

        // Create an instance of the API class
        PublicApi apiInstance = new PublicApi();
        String invitationToken = invitationToken_example; // String | Invitation token for invitee

        try {
            httpActionResult_userInvitationDetailsResponse result = apiInstance.tMGetUserInvitationDetails(invitationToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#tMGetUserInvitationDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String invitationToken = new String(); // String | Invitation token for invitee

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

import org.openapitools.client.api.PublicApi;

public class PublicApiExample {
    public static void main(String[] args) {
        PublicApi apiInstance = new PublicApi();
        String invitationToken = invitationToken_example; // String | Invitation token for invitee

        try {
            httpActionResult_userInvitationDetailsResponse result = apiInstance.tMGetUserInvitationDetails(invitationToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicApi#tMGetUserInvitationDetails");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PublicApi *apiInstance = [[PublicApi alloc] init];
String *invitationToken = invitationToken_example; // Invitation token for invitee (default to null)

// Get details for user invitation
[apiInstance tMGetUserInvitationDetailsWith:invitationToken
              completionHandler: ^(httpActionResult_userInvitationDetailsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.PublicApi()
var invitationToken = invitationToken_example; // {String} Invitation token for invitee

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

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

            // Create an instance of the API class
            var apiInstance = new PublicApi();
            var invitationToken = invitationToken_example;  // String | Invitation token for invitee (default to null)

            try {
                // Get details for user invitation
                httpActionResult_userInvitationDetailsResponse result = apiInstance.tMGetUserInvitationDetails(invitationToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PublicApi.tMGetUserInvitationDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PublicApi();
$invitationToken = invitationToken_example; // String | Invitation token for invitee

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PublicApi->new();
my $invitationToken = invitationToken_example; # String | Invitation token for invitee

eval {
    my $result = $api_instance->tMGetUserInvitationDetails(invitationToken => $invitationToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicApi->tMGetUserInvitationDetails: $@\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.PublicApi()
invitationToken = invitationToken_example # String | Invitation token for invitee (default to null)

try:
    # Get details for user invitation
    api_response = api_instance.t_m_get_user_invitation_details(invitationToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicApi->tMGetUserInvitationDetails: %s\n" % e)
extern crate PublicApi;

pub fn main() {
    let invitationToken = invitationToken_example; // String

    let mut context = PublicApi::Context::default();
    let result = client.tMGetUserInvitationDetails(invitationToken, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
invitationToken*
String
Invitation token for invitee
Required

Responses


TenantLocations

deleteLocationAddress

Delete Tenant Location Address

Delete Tenant Location Address


/Spenda/Tenant/Locations/{tenantLocationID}/Addresses/{addressID}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Locations/{tenantLocationID}/Addresses/{addressID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantLocationsApi;

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

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

        // Create an instance of the API class
        TenantLocationsApi apiInstance = new TenantLocationsApi();
        Integer tenantLocationID = 56; // Integer | Tenant Location unique identifiers
        Integer addressID = 56; // Integer | Address unique identifiers

        try {
            httpActionResult result = apiInstance.deleteLocationAddress(tenantLocationID, addressID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantLocationsApi#deleteLocationAddress");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer tenantLocationID = new Integer(); // Integer | Tenant Location unique identifiers
final Integer addressID = new Integer(); // Integer | Address unique identifiers

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

import org.openapitools.client.api.TenantLocationsApi;

public class TenantLocationsApiExample {
    public static void main(String[] args) {
        TenantLocationsApi apiInstance = new TenantLocationsApi();
        Integer tenantLocationID = 56; // Integer | Tenant Location unique identifiers
        Integer addressID = 56; // Integer | Address unique identifiers

        try {
            httpActionResult result = apiInstance.deleteLocationAddress(tenantLocationID, addressID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantLocationsApi#deleteLocationAddress");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantLocationsApi *apiInstance = [[TenantLocationsApi alloc] init];
Integer *tenantLocationID = 56; // Tenant Location unique identifiers (default to null)
Integer *addressID = 56; // Address unique identifiers (default to null)

// Delete Tenant Location Address
[apiInstance deleteLocationAddressWith:tenantLocationID
    addressID:addressID
              completionHandler: ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantLocationsApi()
var tenantLocationID = 56; // {Integer} Tenant Location unique identifiers
var addressID = 56; // {Integer} Address unique identifiers

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

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

            // Create an instance of the API class
            var apiInstance = new TenantLocationsApi();
            var tenantLocationID = 56;  // Integer | Tenant Location unique identifiers (default to null)
            var addressID = 56;  // Integer | Address unique identifiers (default to null)

            try {
                // Delete Tenant Location Address
                httpActionResult result = apiInstance.deleteLocationAddress(tenantLocationID, addressID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantLocationsApi.deleteLocationAddress: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantLocationsApi();
$tenantLocationID = 56; // Integer | Tenant Location unique identifiers
$addressID = 56; // Integer | Address unique identifiers

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantLocationsApi->new();
my $tenantLocationID = 56; # Integer | Tenant Location unique identifiers
my $addressID = 56; # Integer | Address unique identifiers

eval {
    my $result = $api_instance->deleteLocationAddress(tenantLocationID => $tenantLocationID, addressID => $addressID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantLocationsApi->deleteLocationAddress: $@\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.TenantLocationsApi()
tenantLocationID = 56 # Integer | Tenant Location unique identifiers (default to null)
addressID = 56 # Integer | Address unique identifiers (default to null)

try:
    # Delete Tenant Location Address
    api_response = api_instance.delete_location_address(tenantLocationID, addressID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantLocationsApi->deleteLocationAddress: %s\n" % e)
extern crate TenantLocationsApi;

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

    let mut context = TenantLocationsApi::Context::default();
    let result = client.deleteLocationAddress(tenantLocationID, addressID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
tenantLocationID*
Integer (int32)
Tenant Location unique identifiers
Required
addressID*
Integer (int32)
Address unique identifiers
Required

Responses


getCountries

Get country list

Get country list


/Spenda/Tenant/Countries

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Countries"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantLocationsApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.TenantLocationsApi;

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

        try {
            httpActionResult_countryResponse result = apiInstance.getCountries();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantLocationsApi#getCountries");
            e.printStackTrace();
        }
    }
}


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

// Get country list
[apiInstance getCountriesWithCompletionHandler: 
              ^(httpActionResult_countryResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

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

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

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

            try {
                // Get country list
                httpActionResult_countryResponse result = apiInstance.getCountries();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantLocationsApi.getCountries: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantLocationsApi->new();

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

try:
    # Get country list
    api_response = api_instance.get_countries()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantLocationsApi->getCountries: %s\n" % e)
extern crate TenantLocationsApi;

pub fn main() {

    let mut context = TenantLocationsApi::Context::default();
    let result = client.getCountries(&context).wait();

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

Scopes

Parameters

Responses


getLocationAddresses

Get Tenant Location Addresses

Get Tenant Location Addresses


/Spenda/Tenant/Locations/{tenantLocationID}/Addresses

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Locations/{tenantLocationID}/Addresses?addressID=addressID_example&warehouseID=56&showWarehouseAddress=true&IsMailTo=true&IsDeliverTo=true&IsServiceTo=true&IsOfficeOrShop=true&IsLegalAddress=true&IsDefaultBilling=true&IsDefaultDeliverTo=true&IsDefaultServiceTo=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantLocationsApi;

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

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

        // Create an instance of the API class
        TenantLocationsApi apiInstance = new TenantLocationsApi();
        Integer tenantLocationID = 56; // Integer | Tenant Location unique identifiers
        String addressID = addressID_example; // String | Address unique identifiers
        Integer warehouseID = 56; // Integer | warehouse unique identifier
        Boolean showWarehouseAddress = true; // Boolean | Use to include warehouse addresses
        Boolean isMailTo = true; // Boolean | Use to include or exclude mailing/billing address
        Boolean isDeliverTo = true; // Boolean | Use to include or exclude shipping address
        Boolean isServiceTo = true; // Boolean | Use to include or exclude service address
        Boolean isOfficeOrShop = true; // Boolean | Use to include or exclude Office/Shop address
        Boolean isLegalAddress = true; // Boolean | Use to include or exclude legal address
        Boolean isDefaultBilling = true; // Boolean | Use to include or exclude default billing address
        Boolean isDefaultDeliverTo = true; // Boolean | Use to include or exclude default shipping address
        Boolean isDefaultServiceTo = true; // Boolean | Use to include or exclude service address

        try {
            httpActionResult_locationAddressesResponse result = apiInstance.getLocationAddresses(tenantLocationID, addressID, warehouseID, showWarehouseAddress, isMailTo, isDeliverTo, isServiceTo, isOfficeOrShop, isLegalAddress, isDefaultBilling, isDefaultDeliverTo, isDefaultServiceTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantLocationsApi#getLocationAddresses");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer tenantLocationID = new Integer(); // Integer | Tenant Location unique identifiers
final String addressID = new String(); // String | Address unique identifiers
final Integer warehouseID = new Integer(); // Integer | warehouse unique identifier
final Boolean showWarehouseAddress = new Boolean(); // Boolean | Use to include warehouse addresses
final Boolean isMailTo = new Boolean(); // Boolean | Use to include or exclude mailing/billing address
final Boolean isDeliverTo = new Boolean(); // Boolean | Use to include or exclude shipping address
final Boolean isServiceTo = new Boolean(); // Boolean | Use to include or exclude service address
final Boolean isOfficeOrShop = new Boolean(); // Boolean | Use to include or exclude Office/Shop address
final Boolean isLegalAddress = new Boolean(); // Boolean | Use to include or exclude legal address
final Boolean isDefaultBilling = new Boolean(); // Boolean | Use to include or exclude default billing address
final Boolean isDefaultDeliverTo = new Boolean(); // Boolean | Use to include or exclude default shipping address
final Boolean isDefaultServiceTo = new Boolean(); // Boolean | Use to include or exclude service address

try {
    final result = await api_instance.getLocationAddresses(tenantLocationID, addressID, warehouseID, showWarehouseAddress, isMailTo, isDeliverTo, isServiceTo, isOfficeOrShop, isLegalAddress, isDefaultBilling, isDefaultDeliverTo, isDefaultServiceTo);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getLocationAddresses: $e\n');
}

import org.openapitools.client.api.TenantLocationsApi;

public class TenantLocationsApiExample {
    public static void main(String[] args) {
        TenantLocationsApi apiInstance = new TenantLocationsApi();
        Integer tenantLocationID = 56; // Integer | Tenant Location unique identifiers
        String addressID = addressID_example; // String | Address unique identifiers
        Integer warehouseID = 56; // Integer | warehouse unique identifier
        Boolean showWarehouseAddress = true; // Boolean | Use to include warehouse addresses
        Boolean isMailTo = true; // Boolean | Use to include or exclude mailing/billing address
        Boolean isDeliverTo = true; // Boolean | Use to include or exclude shipping address
        Boolean isServiceTo = true; // Boolean | Use to include or exclude service address
        Boolean isOfficeOrShop = true; // Boolean | Use to include or exclude Office/Shop address
        Boolean isLegalAddress = true; // Boolean | Use to include or exclude legal address
        Boolean isDefaultBilling = true; // Boolean | Use to include or exclude default billing address
        Boolean isDefaultDeliverTo = true; // Boolean | Use to include or exclude default shipping address
        Boolean isDefaultServiceTo = true; // Boolean | Use to include or exclude service address

        try {
            httpActionResult_locationAddressesResponse result = apiInstance.getLocationAddresses(tenantLocationID, addressID, warehouseID, showWarehouseAddress, isMailTo, isDeliverTo, isServiceTo, isOfficeOrShop, isLegalAddress, isDefaultBilling, isDefaultDeliverTo, isDefaultServiceTo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantLocationsApi#getLocationAddresses");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantLocationsApi *apiInstance = [[TenantLocationsApi alloc] init];
Integer *tenantLocationID = 56; // Tenant Location unique identifiers (default to null)
String *addressID = addressID_example; // Address unique identifiers (optional) (default to null)
Integer *warehouseID = 56; // warehouse unique identifier (optional) (default to null)
Boolean *showWarehouseAddress = true; // Use to include warehouse addresses (optional) (default to null)
Boolean *isMailTo = true; // Use to include or exclude mailing/billing address (optional) (default to null)
Boolean *isDeliverTo = true; // Use to include or exclude shipping address (optional) (default to null)
Boolean *isServiceTo = true; // Use to include or exclude service address (optional) (default to null)
Boolean *isOfficeOrShop = true; // Use to include or exclude Office/Shop address (optional) (default to null)
Boolean *isLegalAddress = true; // Use to include or exclude legal address (optional) (default to null)
Boolean *isDefaultBilling = true; // Use to include or exclude default billing address (optional) (default to null)
Boolean *isDefaultDeliverTo = true; // Use to include or exclude default shipping address (optional) (default to null)
Boolean *isDefaultServiceTo = true; // Use to include or exclude service address (optional) (default to null)

// Get Tenant Location Addresses
[apiInstance getLocationAddressesWith:tenantLocationID
    addressID:addressID
    warehouseID:warehouseID
    showWarehouseAddress:showWarehouseAddress
    isMailTo:isMailTo
    isDeliverTo:isDeliverTo
    isServiceTo:isServiceTo
    isOfficeOrShop:isOfficeOrShop
    isLegalAddress:isLegalAddress
    isDefaultBilling:isDefaultBilling
    isDefaultDeliverTo:isDefaultDeliverTo
    isDefaultServiceTo:isDefaultServiceTo
              completionHandler: ^(httpActionResult_locationAddressesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantLocationsApi()
var tenantLocationID = 56; // {Integer} Tenant Location unique identifiers
var opts = {
  'addressID': addressID_example, // {String} Address unique identifiers
  'warehouseID': 56, // {Integer} warehouse unique identifier
  'showWarehouseAddress': true, // {Boolean} Use to include warehouse addresses
  'isMailTo': true, // {Boolean} Use to include or exclude mailing/billing address
  'isDeliverTo': true, // {Boolean} Use to include or exclude shipping address
  'isServiceTo': true, // {Boolean} Use to include or exclude service address
  'isOfficeOrShop': true, // {Boolean} Use to include or exclude Office/Shop address
  'isLegalAddress': true, // {Boolean} Use to include or exclude legal address
  'isDefaultBilling': true, // {Boolean} Use to include or exclude default billing address
  'isDefaultDeliverTo': true, // {Boolean} Use to include or exclude default shipping address
  'isDefaultServiceTo': true // {Boolean} Use to include or exclude service address
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantLocationsApi();
            var tenantLocationID = 56;  // Integer | Tenant Location unique identifiers (default to null)
            var addressID = addressID_example;  // String | Address unique identifiers (optional)  (default to null)
            var warehouseID = 56;  // Integer | warehouse unique identifier (optional)  (default to null)
            var showWarehouseAddress = true;  // Boolean | Use to include warehouse addresses (optional)  (default to null)
            var isMailTo = true;  // Boolean | Use to include or exclude mailing/billing address (optional)  (default to null)
            var isDeliverTo = true;  // Boolean | Use to include or exclude shipping address (optional)  (default to null)
            var isServiceTo = true;  // Boolean | Use to include or exclude service address (optional)  (default to null)
            var isOfficeOrShop = true;  // Boolean | Use to include or exclude Office/Shop address (optional)  (default to null)
            var isLegalAddress = true;  // Boolean | Use to include or exclude legal address (optional)  (default to null)
            var isDefaultBilling = true;  // Boolean | Use to include or exclude default billing address (optional)  (default to null)
            var isDefaultDeliverTo = true;  // Boolean | Use to include or exclude default shipping address (optional)  (default to null)
            var isDefaultServiceTo = true;  // Boolean | Use to include or exclude service address (optional)  (default to null)

            try {
                // Get Tenant Location Addresses
                httpActionResult_locationAddressesResponse result = apiInstance.getLocationAddresses(tenantLocationID, addressID, warehouseID, showWarehouseAddress, isMailTo, isDeliverTo, isServiceTo, isOfficeOrShop, isLegalAddress, isDefaultBilling, isDefaultDeliverTo, isDefaultServiceTo);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantLocationsApi.getLocationAddresses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantLocationsApi();
$tenantLocationID = 56; // Integer | Tenant Location unique identifiers
$addressID = addressID_example; // String | Address unique identifiers
$warehouseID = 56; // Integer | warehouse unique identifier
$showWarehouseAddress = true; // Boolean | Use to include warehouse addresses
$isMailTo = true; // Boolean | Use to include or exclude mailing/billing address
$isDeliverTo = true; // Boolean | Use to include or exclude shipping address
$isServiceTo = true; // Boolean | Use to include or exclude service address
$isOfficeOrShop = true; // Boolean | Use to include or exclude Office/Shop address
$isLegalAddress = true; // Boolean | Use to include or exclude legal address
$isDefaultBilling = true; // Boolean | Use to include or exclude default billing address
$isDefaultDeliverTo = true; // Boolean | Use to include or exclude default shipping address
$isDefaultServiceTo = true; // Boolean | Use to include or exclude service address

try {
    $result = $api_instance->getLocationAddresses($tenantLocationID, $addressID, $warehouseID, $showWarehouseAddress, $isMailTo, $isDeliverTo, $isServiceTo, $isOfficeOrShop, $isLegalAddress, $isDefaultBilling, $isDefaultDeliverTo, $isDefaultServiceTo);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TenantLocationsApi->getLocationAddresses: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantLocationsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantLocationsApi->new();
my $tenantLocationID = 56; # Integer | Tenant Location unique identifiers
my $addressID = addressID_example; # String | Address unique identifiers
my $warehouseID = 56; # Integer | warehouse unique identifier
my $showWarehouseAddress = true; # Boolean | Use to include warehouse addresses
my $isMailTo = true; # Boolean | Use to include or exclude mailing/billing address
my $isDeliverTo = true; # Boolean | Use to include or exclude shipping address
my $isServiceTo = true; # Boolean | Use to include or exclude service address
my $isOfficeOrShop = true; # Boolean | Use to include or exclude Office/Shop address
my $isLegalAddress = true; # Boolean | Use to include or exclude legal address
my $isDefaultBilling = true; # Boolean | Use to include or exclude default billing address
my $isDefaultDeliverTo = true; # Boolean | Use to include or exclude default shipping address
my $isDefaultServiceTo = true; # Boolean | Use to include or exclude service address

eval {
    my $result = $api_instance->getLocationAddresses(tenantLocationID => $tenantLocationID, addressID => $addressID, warehouseID => $warehouseID, showWarehouseAddress => $showWarehouseAddress, isMailTo => $isMailTo, isDeliverTo => $isDeliverTo, isServiceTo => $isServiceTo, isOfficeOrShop => $isOfficeOrShop, isLegalAddress => $isLegalAddress, isDefaultBilling => $isDefaultBilling, isDefaultDeliverTo => $isDefaultDeliverTo, isDefaultServiceTo => $isDefaultServiceTo);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantLocationsApi->getLocationAddresses: $@\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.TenantLocationsApi()
tenantLocationID = 56 # Integer | Tenant Location unique identifiers (default to null)
addressID = addressID_example # String | Address unique identifiers (optional) (default to null)
warehouseID = 56 # Integer | warehouse unique identifier (optional) (default to null)
showWarehouseAddress = true # Boolean | Use to include warehouse addresses (optional) (default to null)
isMailTo = true # Boolean | Use to include or exclude mailing/billing address (optional) (default to null)
isDeliverTo = true # Boolean | Use to include or exclude shipping address (optional) (default to null)
isServiceTo = true # Boolean | Use to include or exclude service address (optional) (default to null)
isOfficeOrShop = true # Boolean | Use to include or exclude Office/Shop address (optional) (default to null)
isLegalAddress = true # Boolean | Use to include or exclude legal address (optional) (default to null)
isDefaultBilling = true # Boolean | Use to include or exclude default billing address (optional) (default to null)
isDefaultDeliverTo = true # Boolean | Use to include or exclude default shipping address (optional) (default to null)
isDefaultServiceTo = true # Boolean | Use to include or exclude service address (optional) (default to null)

try:
    # Get Tenant Location Addresses
    api_response = api_instance.get_location_addresses(tenantLocationID, addressID=addressID, warehouseID=warehouseID, showWarehouseAddress=showWarehouseAddress, isMailTo=isMailTo, isDeliverTo=isDeliverTo, isServiceTo=isServiceTo, isOfficeOrShop=isOfficeOrShop, isLegalAddress=isLegalAddress, isDefaultBilling=isDefaultBilling, isDefaultDeliverTo=isDefaultDeliverTo, isDefaultServiceTo=isDefaultServiceTo)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantLocationsApi->getLocationAddresses: %s\n" % e)
extern crate TenantLocationsApi;

pub fn main() {
    let tenantLocationID = 56; // Integer
    let addressID = addressID_example; // String
    let warehouseID = 56; // Integer
    let showWarehouseAddress = true; // Boolean
    let isMailTo = true; // Boolean
    let isDeliverTo = true; // Boolean
    let isServiceTo = true; // Boolean
    let isOfficeOrShop = true; // Boolean
    let isLegalAddress = true; // Boolean
    let isDefaultBilling = true; // Boolean
    let isDefaultDeliverTo = true; // Boolean
    let isDefaultServiceTo = true; // Boolean

    let mut context = TenantLocationsApi::Context::default();
    let result = client.getLocationAddresses(tenantLocationID, addressID, warehouseID, showWarehouseAddress, isMailTo, isDeliverTo, isServiceTo, isOfficeOrShop, isLegalAddress, isDefaultBilling, isDefaultDeliverTo, isDefaultServiceTo, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
tenantLocationID*
Integer (int32)
Tenant Location unique identifiers
Required
Query parameters
Name Description
addressID
String
Address unique identifiers
warehouseID
Integer (int32)
warehouse unique identifier
showWarehouseAddress
Boolean
Use to include warehouse addresses
IsMailTo
Boolean
Use to include or exclude mailing/billing address
IsDeliverTo
Boolean
Use to include or exclude shipping address
IsServiceTo
Boolean
Use to include or exclude service address
IsOfficeOrShop
Boolean
Use to include or exclude Office/Shop address
IsLegalAddress
Boolean
Use to include or exclude legal address
IsDefaultBilling
Boolean
Use to include or exclude default billing address
IsDefaultDeliverTo
Boolean
Use to include or exclude default shipping address
IsDefaultServiceTo
Boolean
Use to include or exclude service address

Responses


getLocations

Get Tenant Locations

Get Tenant Locations


/Spenda/Tenant/Locations

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Locations"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantLocationsApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.TenantLocationsApi;

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

        try {
            httpActionResult_getLocationsResponse result = apiInstance.getLocations();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantLocationsApi#getLocations");
            e.printStackTrace();
        }
    }
}


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

// Get Tenant Locations
[apiInstance getLocationsWithCompletionHandler: 
              ^(httpActionResult_getLocationsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

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

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

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

            try {
                // Get Tenant Locations
                httpActionResult_getLocationsResponse result = apiInstance.getLocations();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantLocationsApi.getLocations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantLocationsApi->new();

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

try:
    # Get Tenant Locations
    api_response = api_instance.get_locations()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantLocationsApi->getLocations: %s\n" % e)
extern crate TenantLocationsApi;

pub fn main() {

    let mut context = TenantLocationsApi::Context::default();
    let result = client.getLocations(&context).wait();

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

Scopes

Parameters

Responses


saveLocation

Update a Tenant's Location

Update a Tenant's Locations


/Spenda/Tenant/Locations/{tenantLocationID}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Locations/{tenantLocationID}" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantLocationsApi;

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

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

        // Create an instance of the API class
        TenantLocationsApi apiInstance = new TenantLocationsApi();
        Integer tenantLocationID = 56; // Integer | The location's ID
        SaveLocationRequestBase saveLocationRequestBase = {"locationName":"string","addresses":[{"tenantLocationAddressID":0,"city":"string","state":"string","postCode":"string","streetAddress":"string","country":"string","isDefaultBilling":true,"isDefaultDeliverTo":true,"isMailTo":true,"isDeliverTo":true}]}; // SaveLocationRequestBase | 

        try {
            httpActionResult_saveLocationResponse result = apiInstance.saveLocation(tenantLocationID, saveLocationRequestBase);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantLocationsApi#saveLocation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer tenantLocationID = new Integer(); // Integer | The location's ID
final SaveLocationRequestBase saveLocationRequestBase = new SaveLocationRequestBase(); // SaveLocationRequestBase | 

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

import org.openapitools.client.api.TenantLocationsApi;

public class TenantLocationsApiExample {
    public static void main(String[] args) {
        TenantLocationsApi apiInstance = new TenantLocationsApi();
        Integer tenantLocationID = 56; // Integer | The location's ID
        SaveLocationRequestBase saveLocationRequestBase = {"locationName":"string","addresses":[{"tenantLocationAddressID":0,"city":"string","state":"string","postCode":"string","streetAddress":"string","country":"string","isDefaultBilling":true,"isDefaultDeliverTo":true,"isMailTo":true,"isDeliverTo":true}]}; // SaveLocationRequestBase | 

        try {
            httpActionResult_saveLocationResponse result = apiInstance.saveLocation(tenantLocationID, saveLocationRequestBase);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantLocationsApi#saveLocation");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantLocationsApi *apiInstance = [[TenantLocationsApi alloc] init];
Integer *tenantLocationID = 56; // The location's ID (default to null)
SaveLocationRequestBase *saveLocationRequestBase = {"locationName":"string","addresses":[{"tenantLocationAddressID":0,"city":"string","state":"string","postCode":"string","streetAddress":"string","country":"string","isDefaultBilling":true,"isDefaultDeliverTo":true,"isMailTo":true,"isDeliverTo":true}]}; //  (optional)

// Update a Tenant's Location
[apiInstance saveLocationWith:tenantLocationID
    saveLocationRequestBase:saveLocationRequestBase
              completionHandler: ^(httpActionResult_saveLocationResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantLocationsApi()
var tenantLocationID = 56; // {Integer} The location's ID
var opts = {
  'saveLocationRequestBase': {"locationName":"string","addresses":[{"tenantLocationAddressID":0,"city":"string","state":"string","postCode":"string","streetAddress":"string","country":"string","isDefaultBilling":true,"isDefaultDeliverTo":true,"isMailTo":true,"isDeliverTo":true}]} // {SaveLocationRequestBase} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantLocationsApi();
            var tenantLocationID = 56;  // Integer | The location's ID (default to null)
            var saveLocationRequestBase = new SaveLocationRequestBase(); // SaveLocationRequestBase |  (optional) 

            try {
                // Update a Tenant's Location
                httpActionResult_saveLocationResponse result = apiInstance.saveLocation(tenantLocationID, saveLocationRequestBase);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantLocationsApi.saveLocation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantLocationsApi();
$tenantLocationID = 56; // Integer | The location's ID
$saveLocationRequestBase = {"locationName":"string","addresses":[{"tenantLocationAddressID":0,"city":"string","state":"string","postCode":"string","streetAddress":"string","country":"string","isDefaultBilling":true,"isDefaultDeliverTo":true,"isMailTo":true,"isDeliverTo":true}]}; // SaveLocationRequestBase | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantLocationsApi->new();
my $tenantLocationID = 56; # Integer | The location's ID
my $saveLocationRequestBase = WWW::OPenAPIClient::Object::SaveLocationRequestBase->new(); # SaveLocationRequestBase | 

eval {
    my $result = $api_instance->saveLocation(tenantLocationID => $tenantLocationID, saveLocationRequestBase => $saveLocationRequestBase);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantLocationsApi->saveLocation: $@\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.TenantLocationsApi()
tenantLocationID = 56 # Integer | The location's ID (default to null)
saveLocationRequestBase = {"locationName":"string","addresses":[{"tenantLocationAddressID":0,"city":"string","state":"string","postCode":"string","streetAddress":"string","country":"string","isDefaultBilling":true,"isDefaultDeliverTo":true,"isMailTo":true,"isDeliverTo":true}]} # SaveLocationRequestBase |  (optional)

try:
    # Update a Tenant's Location
    api_response = api_instance.save_location(tenantLocationID, saveLocationRequestBase=saveLocationRequestBase)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantLocationsApi->saveLocation: %s\n" % e)
extern crate TenantLocationsApi;

pub fn main() {
    let tenantLocationID = 56; // Integer
    let saveLocationRequestBase = {"locationName":"string","addresses":[{"tenantLocationAddressID":0,"city":"string","state":"string","postCode":"string","streetAddress":"string","country":"string","isDefaultBilling":true,"isDefaultDeliverTo":true,"isMailTo":true,"isDeliverTo":true}]}; // SaveLocationRequestBase

    let mut context = TenantLocationsApi::Context::default();
    let result = client.saveLocation(tenantLocationID, saveLocationRequestBase, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
tenantLocationID*
Integer (int32)
The location's ID
Required
Body parameters
Name Description
saveLocationRequestBase

Responses


saveLocationAddresses

Save Tenant Location Addresses

Save Tenant Location Addresses


/Spenda/Tenant/Locations/{tenantLocationID}/Addresses

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Locations/{tenantLocationID}/Addresses" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantLocationsApi;

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

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

        // Create an instance of the API class
        TenantLocationsApi apiInstance = new TenantLocationsApi();
        Integer tenantLocationID = 56; // Integer | Tenant Location unique identifiers
        SaveLocationAddressesRequest saveLocationAddressesRequest = {"warehouseID":0,"addresses":[{"id":0,"city":"string","state":"string","postCode":"string","country":"string","description":"string","streetAddress":"string","isActive":true,"addressType":"string","isMailTo":true,"isDeliverTo":true,"isServiceTo":true,"isDefaultDeliverTo":true,"isDefaultServiceTo":true,"isDefaultBilling":true,"isAssetLocationAddressOnly":true,"action":"string"}]}; // SaveLocationAddressesRequest | 

        try {
            httpActionResult_locationAddressesResponse result = apiInstance.saveLocationAddresses(tenantLocationID, saveLocationAddressesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantLocationsApi#saveLocationAddresses");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer tenantLocationID = new Integer(); // Integer | Tenant Location unique identifiers
final SaveLocationAddressesRequest saveLocationAddressesRequest = new SaveLocationAddressesRequest(); // SaveLocationAddressesRequest | 

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

import org.openapitools.client.api.TenantLocationsApi;

public class TenantLocationsApiExample {
    public static void main(String[] args) {
        TenantLocationsApi apiInstance = new TenantLocationsApi();
        Integer tenantLocationID = 56; // Integer | Tenant Location unique identifiers
        SaveLocationAddressesRequest saveLocationAddressesRequest = {"warehouseID":0,"addresses":[{"id":0,"city":"string","state":"string","postCode":"string","country":"string","description":"string","streetAddress":"string","isActive":true,"addressType":"string","isMailTo":true,"isDeliverTo":true,"isServiceTo":true,"isDefaultDeliverTo":true,"isDefaultServiceTo":true,"isDefaultBilling":true,"isAssetLocationAddressOnly":true,"action":"string"}]}; // SaveLocationAddressesRequest | 

        try {
            httpActionResult_locationAddressesResponse result = apiInstance.saveLocationAddresses(tenantLocationID, saveLocationAddressesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantLocationsApi#saveLocationAddresses");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantLocationsApi *apiInstance = [[TenantLocationsApi alloc] init];
Integer *tenantLocationID = 56; // Tenant Location unique identifiers (default to null)
SaveLocationAddressesRequest *saveLocationAddressesRequest = {"warehouseID":0,"addresses":[{"id":0,"city":"string","state":"string","postCode":"string","country":"string","description":"string","streetAddress":"string","isActive":true,"addressType":"string","isMailTo":true,"isDeliverTo":true,"isServiceTo":true,"isDefaultDeliverTo":true,"isDefaultServiceTo":true,"isDefaultBilling":true,"isAssetLocationAddressOnly":true,"action":"string"}]}; //  (optional)

// Save Tenant Location Addresses
[apiInstance saveLocationAddressesWith:tenantLocationID
    saveLocationAddressesRequest:saveLocationAddressesRequest
              completionHandler: ^(httpActionResult_locationAddressesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantLocationsApi()
var tenantLocationID = 56; // {Integer} Tenant Location unique identifiers
var opts = {
  'saveLocationAddressesRequest': {"warehouseID":0,"addresses":[{"id":0,"city":"string","state":"string","postCode":"string","country":"string","description":"string","streetAddress":"string","isActive":true,"addressType":"string","isMailTo":true,"isDeliverTo":true,"isServiceTo":true,"isDefaultDeliverTo":true,"isDefaultServiceTo":true,"isDefaultBilling":true,"isAssetLocationAddressOnly":true,"action":"string"}]} // {SaveLocationAddressesRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantLocationsApi();
            var tenantLocationID = 56;  // Integer | Tenant Location unique identifiers (default to null)
            var saveLocationAddressesRequest = new SaveLocationAddressesRequest(); // SaveLocationAddressesRequest |  (optional) 

            try {
                // Save Tenant Location Addresses
                httpActionResult_locationAddressesResponse result = apiInstance.saveLocationAddresses(tenantLocationID, saveLocationAddressesRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantLocationsApi.saveLocationAddresses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantLocationsApi();
$tenantLocationID = 56; // Integer | Tenant Location unique identifiers
$saveLocationAddressesRequest = {"warehouseID":0,"addresses":[{"id":0,"city":"string","state":"string","postCode":"string","country":"string","description":"string","streetAddress":"string","isActive":true,"addressType":"string","isMailTo":true,"isDeliverTo":true,"isServiceTo":true,"isDefaultDeliverTo":true,"isDefaultServiceTo":true,"isDefaultBilling":true,"isAssetLocationAddressOnly":true,"action":"string"}]}; // SaveLocationAddressesRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantLocationsApi->new();
my $tenantLocationID = 56; # Integer | Tenant Location unique identifiers
my $saveLocationAddressesRequest = WWW::OPenAPIClient::Object::SaveLocationAddressesRequest->new(); # SaveLocationAddressesRequest | 

eval {
    my $result = $api_instance->saveLocationAddresses(tenantLocationID => $tenantLocationID, saveLocationAddressesRequest => $saveLocationAddressesRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantLocationsApi->saveLocationAddresses: $@\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.TenantLocationsApi()
tenantLocationID = 56 # Integer | Tenant Location unique identifiers (default to null)
saveLocationAddressesRequest = {"warehouseID":0,"addresses":[{"id":0,"city":"string","state":"string","postCode":"string","country":"string","description":"string","streetAddress":"string","isActive":true,"addressType":"string","isMailTo":true,"isDeliverTo":true,"isServiceTo":true,"isDefaultDeliverTo":true,"isDefaultServiceTo":true,"isDefaultBilling":true,"isAssetLocationAddressOnly":true,"action":"string"}]} # SaveLocationAddressesRequest |  (optional)

try:
    # Save Tenant Location Addresses
    api_response = api_instance.save_location_addresses(tenantLocationID, saveLocationAddressesRequest=saveLocationAddressesRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantLocationsApi->saveLocationAddresses: %s\n" % e)
extern crate TenantLocationsApi;

pub fn main() {
    let tenantLocationID = 56; // Integer
    let saveLocationAddressesRequest = {"warehouseID":0,"addresses":[{"id":0,"city":"string","state":"string","postCode":"string","country":"string","description":"string","streetAddress":"string","isActive":true,"addressType":"string","isMailTo":true,"isDeliverTo":true,"isServiceTo":true,"isDefaultDeliverTo":true,"isDefaultServiceTo":true,"isDefaultBilling":true,"isAssetLocationAddressOnly":true,"action":"string"}]}; // SaveLocationAddressesRequest

    let mut context = TenantLocationsApi::Context::default();
    let result = client.saveLocationAddresses(tenantLocationID, saveLocationAddressesRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
tenantLocationID*
Integer (int32)
Tenant Location unique identifiers
Required
Body parameters
Name Description
saveLocationAddressesRequest

Json payload which contains the addresses information for upsert

Responses


TenantModules

acceptTermsAndConditions

Accept terms and conditions

Allows an user to accept terms and conditions.


/Spenda/Tenant/TermsAndConditions/Accept

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/TermsAndConditions/Accept" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        TermsAndConditionsRequestContext termsAndConditionsRequestContext = {"termsAndConditionID":0,"termsAndConditionAccepted":true}; // TermsAndConditionsRequestContext | 

        try {
            apiInstance.acceptTermsAndConditions(termsAndConditionsRequestContext);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#acceptTermsAndConditions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final TermsAndConditionsRequestContext termsAndConditionsRequestContext = new TermsAndConditionsRequestContext(); // TermsAndConditionsRequestContext | 

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        TermsAndConditionsRequestContext termsAndConditionsRequestContext = {"termsAndConditionID":0,"termsAndConditionAccepted":true}; // TermsAndConditionsRequestContext | 

        try {
            apiInstance.acceptTermsAndConditions(termsAndConditionsRequestContext);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#acceptTermsAndConditions");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
TermsAndConditionsRequestContext *termsAndConditionsRequestContext = {"termsAndConditionID":0,"termsAndConditionAccepted":true}; //  (optional)

// Accept terms and conditions
[apiInstance acceptTermsAndConditionsWith:termsAndConditionsRequestContext
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var opts = {
  'termsAndConditionsRequestContext': {"termsAndConditionID":0,"termsAndConditionAccepted":true} // {TermsAndConditionsRequestContext} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var termsAndConditionsRequestContext = new TermsAndConditionsRequestContext(); // TermsAndConditionsRequestContext |  (optional) 

            try {
                // Accept terms and conditions
                apiInstance.acceptTermsAndConditions(termsAndConditionsRequestContext);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.acceptTermsAndConditions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$termsAndConditionsRequestContext = {"termsAndConditionID":0,"termsAndConditionAccepted":true}; // TermsAndConditionsRequestContext | 

try {
    $api_instance->acceptTermsAndConditions($termsAndConditionsRequestContext);
} catch (Exception $e) {
    echo 'Exception when calling TenantModulesApi->acceptTermsAndConditions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantModulesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $termsAndConditionsRequestContext = WWW::OPenAPIClient::Object::TermsAndConditionsRequestContext->new(); # TermsAndConditionsRequestContext | 

eval {
    $api_instance->acceptTermsAndConditions(termsAndConditionsRequestContext => $termsAndConditionsRequestContext);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->acceptTermsAndConditions: $@\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.TenantModulesApi()
termsAndConditionsRequestContext = {"termsAndConditionID":0,"termsAndConditionAccepted":true} # TermsAndConditionsRequestContext |  (optional)

try:
    # Accept terms and conditions
    api_instance.accept_terms_and_conditions(termsAndConditionsRequestContext=termsAndConditionsRequestContext)
except ApiException as e:
    print("Exception when calling TenantModulesApi->acceptTermsAndConditions: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {
    let termsAndConditionsRequestContext = {"termsAndConditionID":0,"termsAndConditionAccepted":true}; // TermsAndConditionsRequestContext

    let mut context = TenantModulesApi::Context::default();
    let result = client.acceptTermsAndConditions(termsAndConditionsRequestContext, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
termsAndConditionsRequestContext

Responses


activateSubscription

Activate Subscription

Allows an user to Activate website Subscription.


/Spenda/Tenant/Subscriptions/Activate

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Subscriptions/Activate"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

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

        try {
            apiInstance.activateSubscription();
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#activateSubscription");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


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

import org.openapitools.client.api.TenantModulesApi;

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

        try {
            apiInstance.activateSubscription();
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#activateSubscription");
            e.printStackTrace();
        }
    }
}


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

// Activate Subscription
[apiInstance activateSubscriptionWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

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

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

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

            try {
                // Activate Subscription
                apiInstance.activateSubscription();
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.activateSubscription: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

try {
    $api_instance->activateSubscription();
} catch (Exception $e) {
    echo 'Exception when calling TenantModulesApi->activateSubscription: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantModulesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();

eval {
    $api_instance->activateSubscription();
};
if ($@) {
    warn "Exception when calling TenantModulesApi->activateSubscription: $@\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.TenantModulesApi()

try:
    # Activate Subscription
    api_instance.activate_subscription()
except ApiException as e:
    print("Exception when calling TenantModulesApi->activateSubscription: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {

    let mut context = TenantModulesApi::Context::default();
    let result = client.activateSubscription(&context).wait();

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

Scopes

Parameters

Responses


airplusVirtualCreditCustomerSuccessRequest

Airplus Virtual Credit Customer Success Request

Send Alert For Airplus Virtual Credit Customer Success Request


/Spenda/Tenant/Modules/AirplusVirtualCredit/ApplicationRequest

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Modules/AirplusVirtualCredit/ApplicationRequest"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.TenantModulesApi;

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

        try {
            httpActionResult_boolean result = apiInstance.airplusVirtualCreditCustomerSuccessRequest();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#airplusVirtualCreditCustomerSuccessRequest");
            e.printStackTrace();
        }
    }
}


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

// Airplus Virtual Credit Customer Success Request
[apiInstance airplusVirtualCreditCustomerSuccessRequestWithCompletionHandler: 
              ^(httpActionResult_boolean output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

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

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

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

            try {
                // Airplus Virtual Credit Customer Success Request
                httpActionResult_boolean result = apiInstance.airplusVirtualCreditCustomerSuccessRequest();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.airplusVirtualCreditCustomerSuccessRequest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();

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

try:
    # Airplus Virtual Credit Customer Success Request
    api_response = api_instance.airplus_virtual_credit_customer_success_request()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->airplusVirtualCreditCustomerSuccessRequest: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {

    let mut context = TenantModulesApi::Context::default();
    let result = client.airplusVirtualCreditCustomerSuccessRequest(&context).wait();

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

Scopes

Parameters

Responses


getARTenantConfigs

Get AR Tenant Configs

To get AR tenant configs


/Spenda/Tenant/Configs/AR

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Configs/AR"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.TenantModulesApi;

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

        try {
            httpActionResult_arTenantConfigsResponse result = apiInstance.getARTenantConfigs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#getARTenantConfigs");
            e.printStackTrace();
        }
    }
}


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

// Get AR Tenant Configs
[apiInstance getARTenantConfigsWithCompletionHandler: 
              ^(httpActionResult_arTenantConfigsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

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

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

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

            try {
                // Get AR Tenant Configs
                httpActionResult_arTenantConfigsResponse result = apiInstance.getARTenantConfigs();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.getARTenantConfigs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();

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

try:
    # Get AR Tenant Configs
    api_response = api_instance.get_ar_tenant_configs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->getARTenantConfigs: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {

    let mut context = TenantModulesApi::Context::default();
    let result = client.getARTenantConfigs(&context).wait();

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

Scopes

Parameters

Responses


getOnboardingStepProgress

Get onboarding step

To get onboarding step progress


/Spenda/Tenant/Modules/Onboarding/Steps

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Modules/Onboarding/Steps?moduleID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        Integer moduleID = 56; // Integer | Module unique identifier

        try {
            httpActionResult_onboardingStepProgressResponse result = apiInstance.getOnboardingStepProgress(moduleID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#getOnboardingStepProgress");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer moduleID = new Integer(); // Integer | Module unique identifier

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        Integer moduleID = 56; // Integer | Module unique identifier

        try {
            httpActionResult_onboardingStepProgressResponse result = apiInstance.getOnboardingStepProgress(moduleID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#getOnboardingStepProgress");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
Integer *moduleID = 56; // Module unique identifier (optional) (default to null)

// Get onboarding step
[apiInstance getOnboardingStepProgressWith:moduleID
              completionHandler: ^(httpActionResult_onboardingStepProgressResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var opts = {
  'moduleID': 56 // {Integer} Module unique identifier
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var moduleID = 56;  // Integer | Module unique identifier (optional)  (default to null)

            try {
                // Get onboarding step
                httpActionResult_onboardingStepProgressResponse result = apiInstance.getOnboardingStepProgress(moduleID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.getOnboardingStepProgress: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$moduleID = 56; // Integer | Module unique identifier

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $moduleID = 56; # Integer | Module unique identifier

eval {
    my $result = $api_instance->getOnboardingStepProgress(moduleID => $moduleID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->getOnboardingStepProgress: $@\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.TenantModulesApi()
moduleID = 56 # Integer | Module unique identifier (optional) (default to null)

try:
    # Get onboarding step
    api_response = api_instance.get_onboarding_step_progress(moduleID=moduleID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->getOnboardingStepProgress: %s\n" % e)
extern crate TenantModulesApi;

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

    let mut context = TenantModulesApi::Context::default();
    let result = client.getOnboardingStepProgress(moduleID, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
moduleID
Integer (int32)
Module unique identifier

Responses


getServiceTenantConfigs

Get Service Tenant Configs

To get Service tenant configs


/Spenda/Tenant/Configs/Service

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Configs/Service"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.TenantModulesApi;

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

        try {
            httpActionResult_serviceTenantConfigResponse result = apiInstance.getServiceTenantConfigs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#getServiceTenantConfigs");
            e.printStackTrace();
        }
    }
}


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

// Get Service Tenant Configs
[apiInstance getServiceTenantConfigsWithCompletionHandler: 
              ^(httpActionResult_serviceTenantConfigResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

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

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

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

            try {
                // Get Service Tenant Configs
                httpActionResult_serviceTenantConfigResponse result = apiInstance.getServiceTenantConfigs();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.getServiceTenantConfigs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();

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

try:
    # Get Service Tenant Configs
    api_response = api_instance.get_service_tenant_configs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->getServiceTenantConfigs: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {

    let mut context = TenantModulesApi::Context::default();
    let result = client.getServiceTenantConfigs(&context).wait();

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

Scopes

Parameters

Responses


getSubscriptionStatus

Get subscription status

Allows an user to get subscription status.


/Spenda/Tenant/Subscriptions/Status

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Subscriptions/Status?ModuleID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        Integer moduleID = 56; // Integer | ModuleID of subscription

        try {
            httpActionResult_boolean result = apiInstance.getSubscriptionStatus(moduleID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#getSubscriptionStatus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer moduleID = new Integer(); // Integer | ModuleID of subscription

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        Integer moduleID = 56; // Integer | ModuleID of subscription

        try {
            httpActionResult_boolean result = apiInstance.getSubscriptionStatus(moduleID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#getSubscriptionStatus");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
Integer *moduleID = 56; // ModuleID of subscription (optional) (default to null)

// Get subscription status
[apiInstance getSubscriptionStatusWith:moduleID
              completionHandler: ^(httpActionResult_boolean output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var opts = {
  'moduleID': 56 // {Integer} ModuleID of subscription
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var moduleID = 56;  // Integer | ModuleID of subscription (optional)  (default to null)

            try {
                // Get subscription status
                httpActionResult_boolean result = apiInstance.getSubscriptionStatus(moduleID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.getSubscriptionStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$moduleID = 56; // Integer | ModuleID of subscription

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $moduleID = 56; # Integer | ModuleID of subscription

eval {
    my $result = $api_instance->getSubscriptionStatus(moduleID => $moduleID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->getSubscriptionStatus: $@\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.TenantModulesApi()
moduleID = 56 # Integer | ModuleID of subscription (optional) (default to null)

try:
    # Get subscription status
    api_response = api_instance.get_subscription_status(moduleID=moduleID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->getSubscriptionStatus: %s\n" % e)
extern crate TenantModulesApi;

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

    let mut context = TenantModulesApi::Context::default();
    let result = client.getSubscriptionStatus(moduleID, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
ModuleID
Integer (int32)
ModuleID of subscription

Responses


getTermsAndConditions

Get terms and conditions

Allows an user to get list of required terms and condition.


/Spenda/Tenant/TermsAndConditions

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/TermsAndConditions?ModuleID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        Integer moduleID = 56; // Integer | ModuleID of terms and condition

        try {
            httpActionResult_termsAndConditionsResponse result = apiInstance.getTermsAndConditions(moduleID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#getTermsAndConditions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer moduleID = new Integer(); // Integer | ModuleID of terms and condition

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        Integer moduleID = 56; // Integer | ModuleID of terms and condition

        try {
            httpActionResult_termsAndConditionsResponse result = apiInstance.getTermsAndConditions(moduleID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#getTermsAndConditions");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
Integer *moduleID = 56; // ModuleID of terms and condition (optional) (default to null)

// Get terms and conditions
[apiInstance getTermsAndConditionsWith:moduleID
              completionHandler: ^(httpActionResult_termsAndConditionsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var opts = {
  'moduleID': 56 // {Integer} ModuleID of terms and condition
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var moduleID = 56;  // Integer | ModuleID of terms and condition (optional)  (default to null)

            try {
                // Get terms and conditions
                httpActionResult_termsAndConditionsResponse result = apiInstance.getTermsAndConditions(moduleID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.getTermsAndConditions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$moduleID = 56; // Integer | ModuleID of terms and condition

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $moduleID = 56; # Integer | ModuleID of terms and condition

eval {
    my $result = $api_instance->getTermsAndConditions(moduleID => $moduleID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->getTermsAndConditions: $@\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.TenantModulesApi()
moduleID = 56 # Integer | ModuleID of terms and condition (optional) (default to null)

try:
    # Get terms and conditions
    api_response = api_instance.get_terms_and_conditions(moduleID=moduleID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->getTermsAndConditions: %s\n" % e)
extern crate TenantModulesApi;

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

    let mut context = TenantModulesApi::Context::default();
    let result = client.getTermsAndConditions(moduleID, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
ModuleID
Integer (int32)
ModuleID of terms and condition

Responses


onboardingMeetingRequest

Creates a request to scheduled a meeting when users is going through the onboarding

Allows an user to request an onboarding meeting.


/Spenda/Tenant/Modules/Onboarding/MeetingRequest

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Modules/Onboarding/MeetingRequest" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        OnboardingMeetingRequest onboardingMeetingRequest = {"requestedMeetingFor":"string"}; // OnboardingMeetingRequest | 

        try {
            apiInstance.onboardingMeetingRequest(onboardingMeetingRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#onboardingMeetingRequest");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final OnboardingMeetingRequest onboardingMeetingRequest = new OnboardingMeetingRequest(); // OnboardingMeetingRequest | 

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        OnboardingMeetingRequest onboardingMeetingRequest = {"requestedMeetingFor":"string"}; // OnboardingMeetingRequest | 

        try {
            apiInstance.onboardingMeetingRequest(onboardingMeetingRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#onboardingMeetingRequest");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
OnboardingMeetingRequest *onboardingMeetingRequest = {"requestedMeetingFor":"string"}; //  (optional)

// Creates a request to scheduled a meeting when users is going through the onboarding
[apiInstance onboardingMeetingRequestWith:onboardingMeetingRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var opts = {
  'onboardingMeetingRequest': {"requestedMeetingFor":"string"} // {OnboardingMeetingRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var onboardingMeetingRequest = new OnboardingMeetingRequest(); // OnboardingMeetingRequest |  (optional) 

            try {
                // Creates a request to scheduled a meeting when users is going through the onboarding
                apiInstance.onboardingMeetingRequest(onboardingMeetingRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.onboardingMeetingRequest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$onboardingMeetingRequest = {"requestedMeetingFor":"string"}; // OnboardingMeetingRequest | 

try {
    $api_instance->onboardingMeetingRequest($onboardingMeetingRequest);
} catch (Exception $e) {
    echo 'Exception when calling TenantModulesApi->onboardingMeetingRequest: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantModulesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $onboardingMeetingRequest = WWW::OPenAPIClient::Object::OnboardingMeetingRequest->new(); # OnboardingMeetingRequest | 

eval {
    $api_instance->onboardingMeetingRequest(onboardingMeetingRequest => $onboardingMeetingRequest);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->onboardingMeetingRequest: $@\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.TenantModulesApi()
onboardingMeetingRequest = {"requestedMeetingFor":"string"} # OnboardingMeetingRequest |  (optional)

try:
    # Creates a request to scheduled a meeting when users is going through the onboarding
    api_instance.onboarding_meeting_request(onboardingMeetingRequest=onboardingMeetingRequest)
except ApiException as e:
    print("Exception when calling TenantModulesApi->onboardingMeetingRequest: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {
    let onboardingMeetingRequest = {"requestedMeetingFor":"string"}; // OnboardingMeetingRequest

    let mut context = TenantModulesApi::Context::default();
    let result = client.onboardingMeetingRequest(onboardingMeetingRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
onboardingMeetingRequest

Responses


saveSubscription

Save Subscription

Allows an user to save a module or website Subscription.


/Spenda/Tenant/Subscriptions/Save

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Subscriptions/Save" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        SaveSubscriptionRequestContext saveSubscriptionRequestContext = {"moduleID":0,"subscriptionText":"string"}; // SaveSubscriptionRequestContext | 

        try {
            apiInstance.saveSubscription(saveSubscriptionRequestContext);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#saveSubscription");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SaveSubscriptionRequestContext saveSubscriptionRequestContext = new SaveSubscriptionRequestContext(); // SaveSubscriptionRequestContext | 

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        SaveSubscriptionRequestContext saveSubscriptionRequestContext = {"moduleID":0,"subscriptionText":"string"}; // SaveSubscriptionRequestContext | 

        try {
            apiInstance.saveSubscription(saveSubscriptionRequestContext);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#saveSubscription");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
SaveSubscriptionRequestContext *saveSubscriptionRequestContext = {"moduleID":0,"subscriptionText":"string"}; //  (optional)

// Save Subscription
[apiInstance saveSubscriptionWith:saveSubscriptionRequestContext
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var opts = {
  'saveSubscriptionRequestContext': {"moduleID":0,"subscriptionText":"string"} // {SaveSubscriptionRequestContext} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var saveSubscriptionRequestContext = new SaveSubscriptionRequestContext(); // SaveSubscriptionRequestContext |  (optional) 

            try {
                // Save Subscription
                apiInstance.saveSubscription(saveSubscriptionRequestContext);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.saveSubscription: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$saveSubscriptionRequestContext = {"moduleID":0,"subscriptionText":"string"}; // SaveSubscriptionRequestContext | 

try {
    $api_instance->saveSubscription($saveSubscriptionRequestContext);
} catch (Exception $e) {
    echo 'Exception when calling TenantModulesApi->saveSubscription: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantModulesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $saveSubscriptionRequestContext = WWW::OPenAPIClient::Object::SaveSubscriptionRequestContext->new(); # SaveSubscriptionRequestContext | 

eval {
    $api_instance->saveSubscription(saveSubscriptionRequestContext => $saveSubscriptionRequestContext);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->saveSubscription: $@\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.TenantModulesApi()
saveSubscriptionRequestContext = {"moduleID":0,"subscriptionText":"string"} # SaveSubscriptionRequestContext |  (optional)

try:
    # Save Subscription
    api_instance.save_subscription(saveSubscriptionRequestContext=saveSubscriptionRequestContext)
except ApiException as e:
    print("Exception when calling TenantModulesApi->saveSubscription: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {
    let saveSubscriptionRequestContext = {"moduleID":0,"subscriptionText":"string"}; // SaveSubscriptionRequestContext

    let mut context = TenantModulesApi::Context::default();
    let result = client.saveSubscription(saveSubscriptionRequestContext, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
saveSubscriptionRequestContext

Responses


setARTenantConfigs

Set AR Tenant Configs

To set AR tenant configs


/Spenda/Tenant/Configs/AR

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Configs/AR" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        ArTenantConfigsRequest arTenantConfigsRequest = {"quoteValidityPeriodDays":0,"quoteDefaultDepositAmountType":"string","quoteDefaultDepositAmount":0,"customerDepositAccountID":0,"quoteTermsMediaFileID":0,"isShowIncPrices":true}; // ArTenantConfigsRequest | 

        try {
            httpActionResult_arTenantConfigsResponse result = apiInstance.setARTenantConfigs(arTenantConfigsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#setARTenantConfigs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ArTenantConfigsRequest arTenantConfigsRequest = new ArTenantConfigsRequest(); // ArTenantConfigsRequest | 

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        ArTenantConfigsRequest arTenantConfigsRequest = {"quoteValidityPeriodDays":0,"quoteDefaultDepositAmountType":"string","quoteDefaultDepositAmount":0,"customerDepositAccountID":0,"quoteTermsMediaFileID":0,"isShowIncPrices":true}; // ArTenantConfigsRequest | 

        try {
            httpActionResult_arTenantConfigsResponse result = apiInstance.setARTenantConfigs(arTenantConfigsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#setARTenantConfigs");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
ArTenantConfigsRequest *arTenantConfigsRequest = {"quoteValidityPeriodDays":0,"quoteDefaultDepositAmountType":"string","quoteDefaultDepositAmount":0,"customerDepositAccountID":0,"quoteTermsMediaFileID":0,"isShowIncPrices":true}; //  (optional)

// Set AR Tenant Configs
[apiInstance setARTenantConfigsWith:arTenantConfigsRequest
              completionHandler: ^(httpActionResult_arTenantConfigsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var opts = {
  'arTenantConfigsRequest': {"quoteValidityPeriodDays":0,"quoteDefaultDepositAmountType":"string","quoteDefaultDepositAmount":0,"customerDepositAccountID":0,"quoteTermsMediaFileID":0,"isShowIncPrices":true} // {ArTenantConfigsRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var arTenantConfigsRequest = new ArTenantConfigsRequest(); // ArTenantConfigsRequest |  (optional) 

            try {
                // Set AR Tenant Configs
                httpActionResult_arTenantConfigsResponse result = apiInstance.setARTenantConfigs(arTenantConfigsRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.setARTenantConfigs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$arTenantConfigsRequest = {"quoteValidityPeriodDays":0,"quoteDefaultDepositAmountType":"string","quoteDefaultDepositAmount":0,"customerDepositAccountID":0,"quoteTermsMediaFileID":0,"isShowIncPrices":true}; // ArTenantConfigsRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $arTenantConfigsRequest = WWW::OPenAPIClient::Object::ArTenantConfigsRequest->new(); # ArTenantConfigsRequest | 

eval {
    my $result = $api_instance->setARTenantConfigs(arTenantConfigsRequest => $arTenantConfigsRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->setARTenantConfigs: $@\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.TenantModulesApi()
arTenantConfigsRequest = {"quoteValidityPeriodDays":0,"quoteDefaultDepositAmountType":"string","quoteDefaultDepositAmount":0,"customerDepositAccountID":0,"quoteTermsMediaFileID":0,"isShowIncPrices":true} # ArTenantConfigsRequest |  (optional)

try:
    # Set AR Tenant Configs
    api_response = api_instance.set_ar_tenant_configs(arTenantConfigsRequest=arTenantConfigsRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->setARTenantConfigs: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {
    let arTenantConfigsRequest = {"quoteValidityPeriodDays":0,"quoteDefaultDepositAmountType":"string","quoteDefaultDepositAmount":0,"customerDepositAccountID":0,"quoteTermsMediaFileID":0,"isShowIncPrices":true}; // ArTenantConfigsRequest

    let mut context = TenantModulesApi::Context::default();
    let result = client.setARTenantConfigs(arTenantConfigsRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
arTenantConfigsRequest

Responses


setOnboardingStep

Set step for onboarding

record for onboarding progress


/Spenda/Tenant/Modules/Onboarding/Steps

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Modules/Onboarding/Steps" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        SetOnboardingStepRequest setOnboardingStepRequest = {"moduleID":0,"steps":[{"stepID":0,"isSkipped":true,"isCompleted":true}]}; // SetOnboardingStepRequest | 

        try {
            httpActionResult_onboardingStepProgressResponse result = apiInstance.setOnboardingStep(setOnboardingStepRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#setOnboardingStep");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SetOnboardingStepRequest setOnboardingStepRequest = new SetOnboardingStepRequest(); // SetOnboardingStepRequest | 

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        SetOnboardingStepRequest setOnboardingStepRequest = {"moduleID":0,"steps":[{"stepID":0,"isSkipped":true,"isCompleted":true}]}; // SetOnboardingStepRequest | 

        try {
            httpActionResult_onboardingStepProgressResponse result = apiInstance.setOnboardingStep(setOnboardingStepRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#setOnboardingStep");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
SetOnboardingStepRequest *setOnboardingStepRequest = {"moduleID":0,"steps":[{"stepID":0,"isSkipped":true,"isCompleted":true}]}; //  (optional)

// Set step for onboarding
[apiInstance setOnboardingStepWith:setOnboardingStepRequest
              completionHandler: ^(httpActionResult_onboardingStepProgressResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var opts = {
  'setOnboardingStepRequest': {"moduleID":0,"steps":[{"stepID":0,"isSkipped":true,"isCompleted":true}]} // {SetOnboardingStepRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var setOnboardingStepRequest = new SetOnboardingStepRequest(); // SetOnboardingStepRequest |  (optional) 

            try {
                // Set step for onboarding
                httpActionResult_onboardingStepProgressResponse result = apiInstance.setOnboardingStep(setOnboardingStepRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.setOnboardingStep: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$setOnboardingStepRequest = {"moduleID":0,"steps":[{"stepID":0,"isSkipped":true,"isCompleted":true}]}; // SetOnboardingStepRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $setOnboardingStepRequest = WWW::OPenAPIClient::Object::SetOnboardingStepRequest->new(); # SetOnboardingStepRequest | 

eval {
    my $result = $api_instance->setOnboardingStep(setOnboardingStepRequest => $setOnboardingStepRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->setOnboardingStep: $@\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.TenantModulesApi()
setOnboardingStepRequest = {"moduleID":0,"steps":[{"stepID":0,"isSkipped":true,"isCompleted":true}]} # SetOnboardingStepRequest |  (optional)

try:
    # Set step for onboarding
    api_response = api_instance.set_onboarding_step(setOnboardingStepRequest=setOnboardingStepRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->setOnboardingStep: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {
    let setOnboardingStepRequest = {"moduleID":0,"steps":[{"stepID":0,"isSkipped":true,"isCompleted":true}]}; // SetOnboardingStepRequest

    let mut context = TenantModulesApi::Context::default();
    let result = client.setOnboardingStep(setOnboardingStepRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
setOnboardingStepRequest

Responses


setServiceTenantConfigs

Set Service Tenant Configs

To set Service tenant configs


/Spenda/Tenant/Configs/Service

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Configs/Service" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        ServiceTenantConfigsRequest serviceTenantConfigsRequest = {"weekCalendarDisplay":"string"}; // ServiceTenantConfigsRequest | 

        try {
            apiInstance.setServiceTenantConfigs(serviceTenantConfigsRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#setServiceTenantConfigs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ServiceTenantConfigsRequest serviceTenantConfigsRequest = new ServiceTenantConfigsRequest(); // ServiceTenantConfigsRequest | 

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        ServiceTenantConfigsRequest serviceTenantConfigsRequest = {"weekCalendarDisplay":"string"}; // ServiceTenantConfigsRequest | 

        try {
            apiInstance.setServiceTenantConfigs(serviceTenantConfigsRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#setServiceTenantConfigs");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
ServiceTenantConfigsRequest *serviceTenantConfigsRequest = {"weekCalendarDisplay":"string"}; //  (optional)

// Set Service Tenant Configs
[apiInstance setServiceTenantConfigsWith:serviceTenantConfigsRequest
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var opts = {
  'serviceTenantConfigsRequest': {"weekCalendarDisplay":"string"} // {ServiceTenantConfigsRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var serviceTenantConfigsRequest = new ServiceTenantConfigsRequest(); // ServiceTenantConfigsRequest |  (optional) 

            try {
                // Set Service Tenant Configs
                apiInstance.setServiceTenantConfigs(serviceTenantConfigsRequest);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.setServiceTenantConfigs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$serviceTenantConfigsRequest = {"weekCalendarDisplay":"string"}; // ServiceTenantConfigsRequest | 

try {
    $api_instance->setServiceTenantConfigs($serviceTenantConfigsRequest);
} catch (Exception $e) {
    echo 'Exception when calling TenantModulesApi->setServiceTenantConfigs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantModulesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $serviceTenantConfigsRequest = WWW::OPenAPIClient::Object::ServiceTenantConfigsRequest->new(); # ServiceTenantConfigsRequest | 

eval {
    $api_instance->setServiceTenantConfigs(serviceTenantConfigsRequest => $serviceTenantConfigsRequest);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->setServiceTenantConfigs: $@\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.TenantModulesApi()
serviceTenantConfigsRequest = {"weekCalendarDisplay":"string"} # ServiceTenantConfigsRequest |  (optional)

try:
    # Set Service Tenant Configs
    api_instance.set_service_tenant_configs(serviceTenantConfigsRequest=serviceTenantConfigsRequest)
except ApiException as e:
    print("Exception when calling TenantModulesApi->setServiceTenantConfigs: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {
    let serviceTenantConfigsRequest = {"weekCalendarDisplay":"string"}; // ServiceTenantConfigsRequest

    let mut context = TenantModulesApi::Context::default();
    let result = client.setServiceTenantConfigs(serviceTenantConfigsRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
serviceTenantConfigsRequest

Responses


subscribeSubscription

Subscribe Subscription

Allows an user to subscribe a module or website Subscription.


/Spenda/Tenant/Subscriptions/Subscribe

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Subscriptions/Subscribe" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        SubscribeSubscriptionRequestContext subscribeSubscriptionRequestContext = {"moduleID":0,"createSubscription":true,"subscriptionText":"string"}; // SubscribeSubscriptionRequestContext | 

        try {
            apiInstance.subscribeSubscription(subscribeSubscriptionRequestContext);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#subscribeSubscription");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SubscribeSubscriptionRequestContext subscribeSubscriptionRequestContext = new SubscribeSubscriptionRequestContext(); // SubscribeSubscriptionRequestContext | 

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        SubscribeSubscriptionRequestContext subscribeSubscriptionRequestContext = {"moduleID":0,"createSubscription":true,"subscriptionText":"string"}; // SubscribeSubscriptionRequestContext | 

        try {
            apiInstance.subscribeSubscription(subscribeSubscriptionRequestContext);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#subscribeSubscription");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
SubscribeSubscriptionRequestContext *subscribeSubscriptionRequestContext = {"moduleID":0,"createSubscription":true,"subscriptionText":"string"}; //  (optional)

// Subscribe Subscription
[apiInstance subscribeSubscriptionWith:subscribeSubscriptionRequestContext
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var opts = {
  'subscribeSubscriptionRequestContext': {"moduleID":0,"createSubscription":true,"subscriptionText":"string"} // {SubscribeSubscriptionRequestContext} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var subscribeSubscriptionRequestContext = new SubscribeSubscriptionRequestContext(); // SubscribeSubscriptionRequestContext |  (optional) 

            try {
                // Subscribe Subscription
                apiInstance.subscribeSubscription(subscribeSubscriptionRequestContext);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.subscribeSubscription: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$subscribeSubscriptionRequestContext = {"moduleID":0,"createSubscription":true,"subscriptionText":"string"}; // SubscribeSubscriptionRequestContext | 

try {
    $api_instance->subscribeSubscription($subscribeSubscriptionRequestContext);
} catch (Exception $e) {
    echo 'Exception when calling TenantModulesApi->subscribeSubscription: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantModulesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $subscribeSubscriptionRequestContext = WWW::OPenAPIClient::Object::SubscribeSubscriptionRequestContext->new(); # SubscribeSubscriptionRequestContext | 

eval {
    $api_instance->subscribeSubscription(subscribeSubscriptionRequestContext => $subscribeSubscriptionRequestContext);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->subscribeSubscription: $@\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.TenantModulesApi()
subscribeSubscriptionRequestContext = {"moduleID":0,"createSubscription":true,"subscriptionText":"string"} # SubscribeSubscriptionRequestContext |  (optional)

try:
    # Subscribe Subscription
    api_instance.subscribe_subscription(subscribeSubscriptionRequestContext=subscribeSubscriptionRequestContext)
except ApiException as e:
    print("Exception when calling TenantModulesApi->subscribeSubscription: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {
    let subscribeSubscriptionRequestContext = {"moduleID":0,"createSubscription":true,"subscriptionText":"string"}; // SubscribeSubscriptionRequestContext

    let mut context = TenantModulesApi::Context::default();
    let result = client.subscribeSubscription(subscribeSubscriptionRequestContext, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
subscribeSubscriptionRequestContext

Responses


tMActiveModule

Actives a primary module the user has selected.

Allows an user to subscribe to a primary module and its secondary modules.


/Spenda/Tenant/Modules/Menu/Module/{ModuleID}/Activate

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Modules/Menu/Module/{ModuleID}/Activate"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        Integer moduleID = 56; // Integer | Module unique Identifier

        try {
            httpActionResult_int32 result = apiInstance.tMActiveModule(moduleID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#tMActiveModule");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer moduleID = new Integer(); // Integer | Module unique Identifier

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        Integer moduleID = 56; // Integer | Module unique Identifier

        try {
            httpActionResult_int32 result = apiInstance.tMActiveModule(moduleID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#tMActiveModule");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
Integer *moduleID = 56; // Module unique Identifier (default to null)

// Actives a primary module the user has selected.
[apiInstance tMActiveModuleWith:moduleID
              completionHandler: ^(httpActionResult_int32 output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var moduleID = 56; // {Integer} Module unique Identifier

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var moduleID = 56;  // Integer | Module unique Identifier (default to null)

            try {
                // Actives a primary module the user has selected.
                httpActionResult_int32 result = apiInstance.tMActiveModule(moduleID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.tMActiveModule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$moduleID = 56; // Integer | Module unique Identifier

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $moduleID = 56; # Integer | Module unique Identifier

eval {
    my $result = $api_instance->tMActiveModule(moduleID => $moduleID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->tMActiveModule: $@\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.TenantModulesApi()
moduleID = 56 # Integer | Module unique Identifier (default to null)

try:
    # Actives a primary module the user has selected.
    api_response = api_instance.t_m_active_module(moduleID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->tMActiveModule: %s\n" % e)
extern crate TenantModulesApi;

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

    let mut context = TenantModulesApi::Context::default();
    let result = client.tMActiveModule(moduleID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
ModuleID*
Integer (int32)
Module unique Identifier
Required

Responses


tMDeactiveModule

Deactives a primary module the user has selected.

Allows an user to unsubscribe from a primary module and its secondary modules.


/Spenda/Tenant/Modules/Menu/Module/{ModuleID}/Deactivate

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Modules/Menu/Module/{ModuleID}/Deactivate"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        Integer moduleID = 56; // Integer | Module unique Identifier

        try {
            httpActionResult_int32 result = apiInstance.tMDeactiveModule(moduleID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#tMDeactiveModule");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer moduleID = new Integer(); // Integer | Module unique Identifier

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        Integer moduleID = 56; // Integer | Module unique Identifier

        try {
            httpActionResult_int32 result = apiInstance.tMDeactiveModule(moduleID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#tMDeactiveModule");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
Integer *moduleID = 56; // Module unique Identifier (default to null)

// Deactives a primary module the user has selected.
[apiInstance tMDeactiveModuleWith:moduleID
              completionHandler: ^(httpActionResult_int32 output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var moduleID = 56; // {Integer} Module unique Identifier

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var moduleID = 56;  // Integer | Module unique Identifier (default to null)

            try {
                // Deactives a primary module the user has selected.
                httpActionResult_int32 result = apiInstance.tMDeactiveModule(moduleID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.tMDeactiveModule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$moduleID = 56; // Integer | Module unique Identifier

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $moduleID = 56; # Integer | Module unique Identifier

eval {
    my $result = $api_instance->tMDeactiveModule(moduleID => $moduleID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->tMDeactiveModule: $@\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.TenantModulesApi()
moduleID = 56 # Integer | Module unique Identifier (default to null)

try:
    # Deactives a primary module the user has selected.
    api_response = api_instance.t_m_deactive_module(moduleID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->tMDeactiveModule: %s\n" % e)
extern crate TenantModulesApi;

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

    let mut context = TenantModulesApi::Context::default();
    let result = client.tMDeactiveModule(moduleID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
ModuleID*
Integer (int32)
Module unique Identifier
Required

Responses


tMGetModules

Gets all modules the tenant is subscribes to.

Allows an user to get all default and subscribed modules.


/Spenda/Tenant/Modules/Menu/GetModules

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Modules/Menu/GetModules"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.TenantModulesApi;

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

        try {
            httpActionResult_getModulesResponse result = apiInstance.tMGetModules();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#tMGetModules");
            e.printStackTrace();
        }
    }
}


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

// Gets all modules the tenant is subscribes to.
[apiInstance tMGetModulesWithCompletionHandler: 
              ^(httpActionResult_getModulesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

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

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

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

            try {
                // Gets all modules the tenant is subscribes to.
                httpActionResult_getModulesResponse result = apiInstance.tMGetModules();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.tMGetModules: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();

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

try:
    # Gets all modules the tenant is subscribes to.
    api_response = api_instance.t_m_get_modules()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->tMGetModules: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {

    let mut context = TenantModulesApi::Context::default();
    let result = client.tMGetModules(&context).wait();

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

Scopes

Parameters

Responses


tMUpdateModule

Updates a Modules a primary module the user has selected.

Allows an user to update a primary module as already setup and activate secondary Modules in the registered tenant tenancy.


/Spenda/Tenant/Modules/Menu/Module

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Modules/Menu/Module" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantModulesApi;

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

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

        // Create an instance of the API class
        TenantModulesApi apiInstance = new TenantModulesApi();
        UpdateModuleRequest updateModuleRequest = {"parentModuleID":0,"isModuleSetup":true,"configureSchedules":true,"marketPlaceURL":"string","schedulesConfig":[{"taskTypeID":"AddAndUpdateServiceJobs","workflowID":0,"isActive":true,"isRecurringSchedule":true,"isEnabled":true,"statusType":"New","scheduledTaskConfig":{"interval":0,"intervalType":"Minutes","recurrenceType":"Interval","timeOfDay":"string","nextExecutionTimeOfDay":"string","aaRequest":{"tenantID":0,"userID":0,"websiteID":0,"domainUrl":"string","emailAddress":"string","id":0,"adaptorID":0,"action":"string","datTypeID":0,"isSyncDependencies":true,"refDatTypeID":0,"isQueue":true,"isSaveToAutoQueue":true,"isAnalyse":true,"isMakeActionActiveIfNot":true,"actionType":"Read","datType":"Tenants","refDatType":"Tenants","translatorID":0,"lastExecDateTimeOverride_utc":"string","isImportForADateRange":true,"dateRangeStart":"string","dateRangeEnd":"string","scheduledTaskID":0,"maxWaitSecs":0,"idList":[0],"isRunNow":true,"customerIDs":[0],"classIDs":[0],"isUserInitiated":true,"posTerminalShiftID":0,"isImportUnPaidInvoicesOnly":true},"isTaskUserInitiated":true,"isSystemTask":true}}]}; // UpdateModuleRequest | 

        try {
            httpActionResult_getModulesResponse result = apiInstance.tMUpdateModule(updateModuleRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#tMUpdateModule");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateModuleRequest updateModuleRequest = new UpdateModuleRequest(); // UpdateModuleRequest | 

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

import org.openapitools.client.api.TenantModulesApi;

public class TenantModulesApiExample {
    public static void main(String[] args) {
        TenantModulesApi apiInstance = new TenantModulesApi();
        UpdateModuleRequest updateModuleRequest = {"parentModuleID":0,"isModuleSetup":true,"configureSchedules":true,"marketPlaceURL":"string","schedulesConfig":[{"taskTypeID":"AddAndUpdateServiceJobs","workflowID":0,"isActive":true,"isRecurringSchedule":true,"isEnabled":true,"statusType":"New","scheduledTaskConfig":{"interval":0,"intervalType":"Minutes","recurrenceType":"Interval","timeOfDay":"string","nextExecutionTimeOfDay":"string","aaRequest":{"tenantID":0,"userID":0,"websiteID":0,"domainUrl":"string","emailAddress":"string","id":0,"adaptorID":0,"action":"string","datTypeID":0,"isSyncDependencies":true,"refDatTypeID":0,"isQueue":true,"isSaveToAutoQueue":true,"isAnalyse":true,"isMakeActionActiveIfNot":true,"actionType":"Read","datType":"Tenants","refDatType":"Tenants","translatorID":0,"lastExecDateTimeOverride_utc":"string","isImportForADateRange":true,"dateRangeStart":"string","dateRangeEnd":"string","scheduledTaskID":0,"maxWaitSecs":0,"idList":[0],"isRunNow":true,"customerIDs":[0],"classIDs":[0],"isUserInitiated":true,"posTerminalShiftID":0,"isImportUnPaidInvoicesOnly":true},"isTaskUserInitiated":true,"isSystemTask":true}}]}; // UpdateModuleRequest | 

        try {
            httpActionResult_getModulesResponse result = apiInstance.tMUpdateModule(updateModuleRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantModulesApi#tMUpdateModule");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantModulesApi *apiInstance = [[TenantModulesApi alloc] init];
UpdateModuleRequest *updateModuleRequest = {"parentModuleID":0,"isModuleSetup":true,"configureSchedules":true,"marketPlaceURL":"string","schedulesConfig":[{"taskTypeID":"AddAndUpdateServiceJobs","workflowID":0,"isActive":true,"isRecurringSchedule":true,"isEnabled":true,"statusType":"New","scheduledTaskConfig":{"interval":0,"intervalType":"Minutes","recurrenceType":"Interval","timeOfDay":"string","nextExecutionTimeOfDay":"string","aaRequest":{"tenantID":0,"userID":0,"websiteID":0,"domainUrl":"string","emailAddress":"string","id":0,"adaptorID":0,"action":"string","datTypeID":0,"isSyncDependencies":true,"refDatTypeID":0,"isQueue":true,"isSaveToAutoQueue":true,"isAnalyse":true,"isMakeActionActiveIfNot":true,"actionType":"Read","datType":"Tenants","refDatType":"Tenants","translatorID":0,"lastExecDateTimeOverride_utc":"string","isImportForADateRange":true,"dateRangeStart":"string","dateRangeEnd":"string","scheduledTaskID":0,"maxWaitSecs":0,"idList":[0],"isRunNow":true,"customerIDs":[0],"classIDs":[0],"isUserInitiated":true,"posTerminalShiftID":0,"isImportUnPaidInvoicesOnly":true},"isTaskUserInitiated":true,"isSystemTask":true}}]}; //  (optional)

// Updates a Modules a primary module the user has selected.
[apiInstance tMUpdateModuleWith:updateModuleRequest
              completionHandler: ^(httpActionResult_getModulesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantModulesApi()
var opts = {
  'updateModuleRequest': {"parentModuleID":0,"isModuleSetup":true,"configureSchedules":true,"marketPlaceURL":"string","schedulesConfig":[{"taskTypeID":"AddAndUpdateServiceJobs","workflowID":0,"isActive":true,"isRecurringSchedule":true,"isEnabled":true,"statusType":"New","scheduledTaskConfig":{"interval":0,"intervalType":"Minutes","recurrenceType":"Interval","timeOfDay":"string","nextExecutionTimeOfDay":"string","aaRequest":{"tenantID":0,"userID":0,"websiteID":0,"domainUrl":"string","emailAddress":"string","id":0,"adaptorID":0,"action":"string","datTypeID":0,"isSyncDependencies":true,"refDatTypeID":0,"isQueue":true,"isSaveToAutoQueue":true,"isAnalyse":true,"isMakeActionActiveIfNot":true,"actionType":"Read","datType":"Tenants","refDatType":"Tenants","translatorID":0,"lastExecDateTimeOverride_utc":"string","isImportForADateRange":true,"dateRangeStart":"string","dateRangeEnd":"string","scheduledTaskID":0,"maxWaitSecs":0,"idList":[0],"isRunNow":true,"customerIDs":[0],"classIDs":[0],"isUserInitiated":true,"posTerminalShiftID":0,"isImportUnPaidInvoicesOnly":true},"isTaskUserInitiated":true,"isSystemTask":true}}]} // {UpdateModuleRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantModulesApi();
            var updateModuleRequest = new UpdateModuleRequest(); // UpdateModuleRequest |  (optional) 

            try {
                // Updates a Modules a primary module the user has selected.
                httpActionResult_getModulesResponse result = apiInstance.tMUpdateModule(updateModuleRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantModulesApi.tMUpdateModule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantModulesApi();
$updateModuleRequest = {"parentModuleID":0,"isModuleSetup":true,"configureSchedules":true,"marketPlaceURL":"string","schedulesConfig":[{"taskTypeID":"AddAndUpdateServiceJobs","workflowID":0,"isActive":true,"isRecurringSchedule":true,"isEnabled":true,"statusType":"New","scheduledTaskConfig":{"interval":0,"intervalType":"Minutes","recurrenceType":"Interval","timeOfDay":"string","nextExecutionTimeOfDay":"string","aaRequest":{"tenantID":0,"userID":0,"websiteID":0,"domainUrl":"string","emailAddress":"string","id":0,"adaptorID":0,"action":"string","datTypeID":0,"isSyncDependencies":true,"refDatTypeID":0,"isQueue":true,"isSaveToAutoQueue":true,"isAnalyse":true,"isMakeActionActiveIfNot":true,"actionType":"Read","datType":"Tenants","refDatType":"Tenants","translatorID":0,"lastExecDateTimeOverride_utc":"string","isImportForADateRange":true,"dateRangeStart":"string","dateRangeEnd":"string","scheduledTaskID":0,"maxWaitSecs":0,"idList":[0],"isRunNow":true,"customerIDs":[0],"classIDs":[0],"isUserInitiated":true,"posTerminalShiftID":0,"isImportUnPaidInvoicesOnly":true},"isTaskUserInitiated":true,"isSystemTask":true}}]}; // UpdateModuleRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantModulesApi->new();
my $updateModuleRequest = WWW::OPenAPIClient::Object::UpdateModuleRequest->new(); # UpdateModuleRequest | 

eval {
    my $result = $api_instance->tMUpdateModule(updateModuleRequest => $updateModuleRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantModulesApi->tMUpdateModule: $@\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.TenantModulesApi()
updateModuleRequest = {"parentModuleID":0,"isModuleSetup":true,"configureSchedules":true,"marketPlaceURL":"string","schedulesConfig":[{"taskTypeID":"AddAndUpdateServiceJobs","workflowID":0,"isActive":true,"isRecurringSchedule":true,"isEnabled":true,"statusType":"New","scheduledTaskConfig":{"interval":0,"intervalType":"Minutes","recurrenceType":"Interval","timeOfDay":"string","nextExecutionTimeOfDay":"string","aaRequest":{"tenantID":0,"userID":0,"websiteID":0,"domainUrl":"string","emailAddress":"string","id":0,"adaptorID":0,"action":"string","datTypeID":0,"isSyncDependencies":true,"refDatTypeID":0,"isQueue":true,"isSaveToAutoQueue":true,"isAnalyse":true,"isMakeActionActiveIfNot":true,"actionType":"Read","datType":"Tenants","refDatType":"Tenants","translatorID":0,"lastExecDateTimeOverride_utc":"string","isImportForADateRange":true,"dateRangeStart":"string","dateRangeEnd":"string","scheduledTaskID":0,"maxWaitSecs":0,"idList":[0],"isRunNow":true,"customerIDs":[0],"classIDs":[0],"isUserInitiated":true,"posTerminalShiftID":0,"isImportUnPaidInvoicesOnly":true},"isTaskUserInitiated":true,"isSystemTask":true}}]} # UpdateModuleRequest |  (optional)

try:
    # Updates a Modules a primary module the user has selected.
    api_response = api_instance.t_m_update_module(updateModuleRequest=updateModuleRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantModulesApi->tMUpdateModule: %s\n" % e)
extern crate TenantModulesApi;

pub fn main() {
    let updateModuleRequest = {"parentModuleID":0,"isModuleSetup":true,"configureSchedules":true,"marketPlaceURL":"string","schedulesConfig":[{"taskTypeID":"AddAndUpdateServiceJobs","workflowID":0,"isActive":true,"isRecurringSchedule":true,"isEnabled":true,"statusType":"New","scheduledTaskConfig":{"interval":0,"intervalType":"Minutes","recurrenceType":"Interval","timeOfDay":"string","nextExecutionTimeOfDay":"string","aaRequest":{"tenantID":0,"userID":0,"websiteID":0,"domainUrl":"string","emailAddress":"string","id":0,"adaptorID":0,"action":"string","datTypeID":0,"isSyncDependencies":true,"refDatTypeID":0,"isQueue":true,"isSaveToAutoQueue":true,"isAnalyse":true,"isMakeActionActiveIfNot":true,"actionType":"Read","datType":"Tenants","refDatType":"Tenants","translatorID":0,"lastExecDateTimeOverride_utc":"string","isImportForADateRange":true,"dateRangeStart":"string","dateRangeEnd":"string","scheduledTaskID":0,"maxWaitSecs":0,"idList":[0],"isRunNow":true,"customerIDs":[0],"classIDs":[0],"isUserInitiated":true,"posTerminalShiftID":0,"isImportUnPaidInvoicesOnly":true},"isTaskUserInitiated":true,"isSystemTask":true}}]}; // UpdateModuleRequest

    let mut context = TenantModulesApi::Context::default();
    let result = client.tMUpdateModule(updateModuleRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
updateModuleRequest

Json payload which contains the information to update a module details

Responses


TenantUsers

tMConfirmNewUserInvitation

Confirm the new user invitation sent by other tenant.

Confirm the new user invitation sent by other tenant.


/Spenda/Tenant/Users/Invitation/{invitationToken}

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Users/Invitation/{invitationToken}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantUsersApi;

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

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

        // Create an instance of the API class
        TenantUsersApi apiInstance = new TenantUsersApi();
        String invitationToken = invitationToken_example; // String | Invitation token for invitee

        try {
            httpActionResult result = apiInstance.tMConfirmNewUserInvitation(invitationToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantUsersApi#tMConfirmNewUserInvitation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String invitationToken = new String(); // String | Invitation token for invitee

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

import org.openapitools.client.api.TenantUsersApi;

public class TenantUsersApiExample {
    public static void main(String[] args) {
        TenantUsersApi apiInstance = new TenantUsersApi();
        String invitationToken = invitationToken_example; // String | Invitation token for invitee

        try {
            httpActionResult result = apiInstance.tMConfirmNewUserInvitation(invitationToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantUsersApi#tMConfirmNewUserInvitation");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantUsersApi *apiInstance = [[TenantUsersApi alloc] init];
String *invitationToken = invitationToken_example; // Invitation token for invitee (default to null)

// Confirm the new user invitation sent by other tenant.
[apiInstance tMConfirmNewUserInvitationWith:invitationToken
              completionHandler: ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantUsersApi()
var invitationToken = invitationToken_example; // {String} Invitation token for invitee

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

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

            // Create an instance of the API class
            var apiInstance = new TenantUsersApi();
            var invitationToken = invitationToken_example;  // String | Invitation token for invitee (default to null)

            try {
                // Confirm the new user invitation sent by other tenant.
                httpActionResult result = apiInstance.tMConfirmNewUserInvitation(invitationToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantUsersApi.tMConfirmNewUserInvitation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantUsersApi();
$invitationToken = invitationToken_example; // String | Invitation token for invitee

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantUsersApi->new();
my $invitationToken = invitationToken_example; # String | Invitation token for invitee

eval {
    my $result = $api_instance->tMConfirmNewUserInvitation(invitationToken => $invitationToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantUsersApi->tMConfirmNewUserInvitation: $@\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.TenantUsersApi()
invitationToken = invitationToken_example # String | Invitation token for invitee (default to null)

try:
    # Confirm the new user invitation sent by other tenant.
    api_response = api_instance.t_m_confirm_new_user_invitation(invitationToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantUsersApi->tMConfirmNewUserInvitation: %s\n" % e)
extern crate TenantUsersApi;

pub fn main() {
    let invitationToken = invitationToken_example; // String

    let mut context = TenantUsersApi::Context::default();
    let result = client.tMConfirmNewUserInvitation(invitationToken, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
invitationToken*
String
Invitation token for invitee
Required

Responses


tMGetUserInvitationDetails

Get details for user invitation

Get details for user invitation


/Spenda/Tenant/Users/Invitation/{invitationToken}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Users/Invitation/{invitationToken}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantUsersApi;

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

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

        // Create an instance of the API class
        TenantUsersApi apiInstance = new TenantUsersApi();
        String invitationToken = invitationToken_example; // String | Invitation token for invitee

        try {
            httpActionResult_userInvitationDetailsResponse result = apiInstance.tMGetUserInvitationDetails(invitationToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantUsersApi#tMGetUserInvitationDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String invitationToken = new String(); // String | Invitation token for invitee

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

import org.openapitools.client.api.TenantUsersApi;

public class TenantUsersApiExample {
    public static void main(String[] args) {
        TenantUsersApi apiInstance = new TenantUsersApi();
        String invitationToken = invitationToken_example; // String | Invitation token for invitee

        try {
            httpActionResult_userInvitationDetailsResponse result = apiInstance.tMGetUserInvitationDetails(invitationToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantUsersApi#tMGetUserInvitationDetails");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantUsersApi *apiInstance = [[TenantUsersApi alloc] init];
String *invitationToken = invitationToken_example; // Invitation token for invitee (default to null)

// Get details for user invitation
[apiInstance tMGetUserInvitationDetailsWith:invitationToken
              completionHandler: ^(httpActionResult_userInvitationDetailsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantUsersApi()
var invitationToken = invitationToken_example; // {String} Invitation token for invitee

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

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

            // Create an instance of the API class
            var apiInstance = new TenantUsersApi();
            var invitationToken = invitationToken_example;  // String | Invitation token for invitee (default to null)

            try {
                // Get details for user invitation
                httpActionResult_userInvitationDetailsResponse result = apiInstance.tMGetUserInvitationDetails(invitationToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantUsersApi.tMGetUserInvitationDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantUsersApi();
$invitationToken = invitationToken_example; // String | Invitation token for invitee

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantUsersApi->new();
my $invitationToken = invitationToken_example; # String | Invitation token for invitee

eval {
    my $result = $api_instance->tMGetUserInvitationDetails(invitationToken => $invitationToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantUsersApi->tMGetUserInvitationDetails: $@\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.TenantUsersApi()
invitationToken = invitationToken_example # String | Invitation token for invitee (default to null)

try:
    # Get details for user invitation
    api_response = api_instance.t_m_get_user_invitation_details(invitationToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantUsersApi->tMGetUserInvitationDetails: %s\n" % e)
extern crate TenantUsersApi;

pub fn main() {
    let invitationToken = invitationToken_example; // String

    let mut context = TenantUsersApi::Context::default();
    let result = client.tMGetUserInvitationDetails(invitationToken, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
invitationToken*
String
Invitation token for invitee
Required

Responses


tMRestoreDeletedUser

Restore a deleted user in your tenant.

Restore a deleted user in your tenant.


/Spenda/Tenant/Users/{userID}/restore

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Users/{userID}/restore"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantUsersApi;

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

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

        // Create an instance of the API class
        TenantUsersApi apiInstance = new TenantUsersApi();
        Integer userID = 56; // Integer | The user's identifier.

        try {
            httpActionResult_restoreDeletedUserResponse result = apiInstance.tMRestoreDeletedUser(userID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantUsersApi#tMRestoreDeletedUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer userID = new Integer(); // Integer | The user's identifier.

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

import org.openapitools.client.api.TenantUsersApi;

public class TenantUsersApiExample {
    public static void main(String[] args) {
        TenantUsersApi apiInstance = new TenantUsersApi();
        Integer userID = 56; // Integer | The user's identifier.

        try {
            httpActionResult_restoreDeletedUserResponse result = apiInstance.tMRestoreDeletedUser(userID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantUsersApi#tMRestoreDeletedUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantUsersApi *apiInstance = [[TenantUsersApi alloc] init];
Integer *userID = 56; // The user's identifier. (default to null)

// Restore a deleted user in your tenant.
[apiInstance tMRestoreDeletedUserWith:userID
              completionHandler: ^(httpActionResult_restoreDeletedUserResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantUsersApi()
var userID = 56; // {Integer} The user's identifier.

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

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

            // Create an instance of the API class
            var apiInstance = new TenantUsersApi();
            var userID = 56;  // Integer | The user's identifier. (default to null)

            try {
                // Restore a deleted user in your tenant.
                httpActionResult_restoreDeletedUserResponse result = apiInstance.tMRestoreDeletedUser(userID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantUsersApi.tMRestoreDeletedUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantUsersApi();
$userID = 56; // Integer | The user's identifier.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantUsersApi->new();
my $userID = 56; # Integer | The user's identifier.

eval {
    my $result = $api_instance->tMRestoreDeletedUser(userID => $userID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantUsersApi->tMRestoreDeletedUser: $@\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.TenantUsersApi()
userID = 56 # Integer | The user's identifier. (default to null)

try:
    # Restore a deleted user in your tenant.
    api_response = api_instance.t_m_restore_deleted_user(userID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantUsersApi->tMRestoreDeletedUser: %s\n" % e)
extern crate TenantUsersApi;

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

    let mut context = TenantUsersApi::Context::default();
    let result = client.tMRestoreDeletedUser(userID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
userID*
Integer (int32)
The user's identifier.
Required

Responses


TenantWorkflows

tMGetWorkflows

Gets all workflows the tenant has run.

Allows an user to get all workflows in the tenancy.


/Spenda/Tenant/Workflows/GetWorkflows

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/Workflows/GetWorkflows?WorkflowID=56&DatTypeID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantWorkflowsApi;

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

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

        // Create an instance of the API class
        TenantWorkflowsApi apiInstance = new TenantWorkflowsApi();
        Integer workflowID = 56; // Integer | The Identifier of the workflow
        Integer datTypeID = 56; // Integer | The Identifier of the synchronised DatType

        try {
            array[workflow] result = apiInstance.tMGetWorkflows(workflowID, datTypeID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantWorkflowsApi#tMGetWorkflows");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer workflowID = new Integer(); // Integer | The Identifier of the workflow
final Integer datTypeID = new Integer(); // Integer | The Identifier of the synchronised DatType

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

import org.openapitools.client.api.TenantWorkflowsApi;

public class TenantWorkflowsApiExample {
    public static void main(String[] args) {
        TenantWorkflowsApi apiInstance = new TenantWorkflowsApi();
        Integer workflowID = 56; // Integer | The Identifier of the workflow
        Integer datTypeID = 56; // Integer | The Identifier of the synchronised DatType

        try {
            array[workflow] result = apiInstance.tMGetWorkflows(workflowID, datTypeID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantWorkflowsApi#tMGetWorkflows");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantWorkflowsApi *apiInstance = [[TenantWorkflowsApi alloc] init];
Integer *workflowID = 56; // The Identifier of the workflow (optional) (default to null)
Integer *datTypeID = 56; // The Identifier of the synchronised DatType (optional) (default to null)

// Gets all workflows the tenant has run.
[apiInstance tMGetWorkflowsWith:workflowID
    datTypeID:datTypeID
              completionHandler: ^(array[workflow] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.TenantWorkflowsApi()
var opts = {
  'workflowID': 56, // {Integer} The Identifier of the workflow
  'datTypeID': 56 // {Integer} The Identifier of the synchronised DatType
};

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

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

            // Create an instance of the API class
            var apiInstance = new TenantWorkflowsApi();
            var workflowID = 56;  // Integer | The Identifier of the workflow (optional)  (default to null)
            var datTypeID = 56;  // Integer | The Identifier of the synchronised DatType (optional)  (default to null)

            try {
                // Gets all workflows the tenant has run.
                array[workflow] result = apiInstance.tMGetWorkflows(workflowID, datTypeID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantWorkflowsApi.tMGetWorkflows: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantWorkflowsApi();
$workflowID = 56; // Integer | The Identifier of the workflow
$datTypeID = 56; // Integer | The Identifier of the synchronised DatType

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantWorkflowsApi->new();
my $workflowID = 56; # Integer | The Identifier of the workflow
my $datTypeID = 56; # Integer | The Identifier of the synchronised DatType

eval {
    my $result = $api_instance->tMGetWorkflows(workflowID => $workflowID, datTypeID => $datTypeID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantWorkflowsApi->tMGetWorkflows: $@\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.TenantWorkflowsApi()
workflowID = 56 # Integer | The Identifier of the workflow (optional) (default to null)
datTypeID = 56 # Integer | The Identifier of the synchronised DatType (optional) (default to null)

try:
    # Gets all workflows the tenant has run.
    api_response = api_instance.t_m_get_workflows(workflowID=workflowID, datTypeID=datTypeID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantWorkflowsApi->tMGetWorkflows: %s\n" % e)
extern crate TenantWorkflowsApi;

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

    let mut context = TenantWorkflowsApi::Context::default();
    let result = client.tMGetWorkflows(workflowID, datTypeID, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
WorkflowID
Integer (int32)
The Identifier of the workflow
DatTypeID
Integer (int32)
The Identifier of the synchronised DatType

Responses


UserPreferences

getUserPreferences

Get user's preferences

Get user's preferences


/Spenda/Tenant/UserClientPreferences

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/UserClientPreferences?keyName=keyName_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserPreferencesApi;

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

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

        // Create an instance of the API class
        UserPreferencesApi apiInstance = new UserPreferencesApi();
        String keyName = keyName_example; // String | Lookup the specific preferences associated by this key

        try {
            httpActionResult_userClientPreferencesResponse result = apiInstance.getUserPreferences(keyName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserPreferencesApi#getUserPreferences");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String keyName = new String(); // String | Lookup the specific preferences associated by this key

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

import org.openapitools.client.api.UserPreferencesApi;

public class UserPreferencesApiExample {
    public static void main(String[] args) {
        UserPreferencesApi apiInstance = new UserPreferencesApi();
        String keyName = keyName_example; // String | Lookup the specific preferences associated by this key

        try {
            httpActionResult_userClientPreferencesResponse result = apiInstance.getUserPreferences(keyName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserPreferencesApi#getUserPreferences");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserPreferencesApi *apiInstance = [[UserPreferencesApi alloc] init];
String *keyName = keyName_example; // Lookup the specific preferences associated by this key (optional) (default to null)

// Get user's preferences
[apiInstance getUserPreferencesWith:keyName
              completionHandler: ^(httpActionResult_userClientPreferencesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.UserPreferencesApi()
var opts = {
  'keyName': keyName_example // {String} Lookup the specific preferences associated by this key
};

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

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

            // Create an instance of the API class
            var apiInstance = new UserPreferencesApi();
            var keyName = keyName_example;  // String | Lookup the specific preferences associated by this key (optional)  (default to null)

            try {
                // Get user's preferences
                httpActionResult_userClientPreferencesResponse result = apiInstance.getUserPreferences(keyName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserPreferencesApi.getUserPreferences: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserPreferencesApi();
$keyName = keyName_example; // String | Lookup the specific preferences associated by this key

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserPreferencesApi->new();
my $keyName = keyName_example; # String | Lookup the specific preferences associated by this key

eval {
    my $result = $api_instance->getUserPreferences(keyName => $keyName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserPreferencesApi->getUserPreferences: $@\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.UserPreferencesApi()
keyName = keyName_example # String | Lookup the specific preferences associated by this key (optional) (default to null)

try:
    # Get user's preferences
    api_response = api_instance.get_user_preferences(keyName=keyName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserPreferencesApi->getUserPreferences: %s\n" % e)
extern crate UserPreferencesApi;

pub fn main() {
    let keyName = keyName_example; // String

    let mut context = UserPreferencesApi::Context::default();
    let result = client.getUserPreferences(keyName, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
keyName
String
Lookup the specific preferences associated by this key

Responses


upsertUserPreferences

Update/Insert user's preferences

Update/Insert user's preferences


/Spenda/Tenant/UserClientPreferences

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Tenant/UserClientPreferences" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserPreferencesApi;

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

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

        // Create an instance of the API class
        UserPreferencesApi apiInstance = new UserPreferencesApi();
        UpsertUserClientPreferencesRequest upsertUserClientPreferencesRequest = {"key":"string","version":"string","value":"string"}; // UpsertUserClientPreferencesRequest | 

        try {
            httpActionResult_userClientPreferencesResponse result = apiInstance.upsertUserPreferences(upsertUserClientPreferencesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserPreferencesApi#upsertUserPreferences");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpsertUserClientPreferencesRequest upsertUserClientPreferencesRequest = new UpsertUserClientPreferencesRequest(); // UpsertUserClientPreferencesRequest | 

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

import org.openapitools.client.api.UserPreferencesApi;

public class UserPreferencesApiExample {
    public static void main(String[] args) {
        UserPreferencesApi apiInstance = new UserPreferencesApi();
        UpsertUserClientPreferencesRequest upsertUserClientPreferencesRequest = {"key":"string","version":"string","value":"string"}; // UpsertUserClientPreferencesRequest | 

        try {
            httpActionResult_userClientPreferencesResponse result = apiInstance.upsertUserPreferences(upsertUserClientPreferencesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserPreferencesApi#upsertUserPreferences");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserPreferencesApi *apiInstance = [[UserPreferencesApi alloc] init];
UpsertUserClientPreferencesRequest *upsertUserClientPreferencesRequest = {"key":"string","version":"string","value":"string"}; //  (optional)

// Update/Insert user's preferences
[apiInstance upsertUserPreferencesWith:upsertUserClientPreferencesRequest
              completionHandler: ^(httpActionResult_userClientPreferencesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesTenantManagement = require('spenda_services_tenant_management');

// Create an instance of the API class
var api = new SpendaServicesTenantManagement.UserPreferencesApi()
var opts = {
  'upsertUserClientPreferencesRequest': {"key":"string","version":"string","value":"string"} // {UpsertUserClientPreferencesRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new UserPreferencesApi();
            var upsertUserClientPreferencesRequest = new UpsertUserClientPreferencesRequest(); // UpsertUserClientPreferencesRequest |  (optional) 

            try {
                // Update/Insert user's preferences
                httpActionResult_userClientPreferencesResponse result = apiInstance.upsertUserPreferences(upsertUserClientPreferencesRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserPreferencesApi.upsertUserPreferences: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserPreferencesApi();
$upsertUserClientPreferencesRequest = {"key":"string","version":"string","value":"string"}; // UpsertUserClientPreferencesRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserPreferencesApi->new();
my $upsertUserClientPreferencesRequest = WWW::OPenAPIClient::Object::UpsertUserClientPreferencesRequest->new(); # UpsertUserClientPreferencesRequest | 

eval {
    my $result = $api_instance->upsertUserPreferences(upsertUserClientPreferencesRequest => $upsertUserClientPreferencesRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserPreferencesApi->upsertUserPreferences: $@\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.UserPreferencesApi()
upsertUserClientPreferencesRequest = {"key":"string","version":"string","value":"string"} # UpsertUserClientPreferencesRequest |  (optional)

try:
    # Update/Insert user's preferences
    api_response = api_instance.upsert_user_preferences(upsertUserClientPreferencesRequest=upsertUserClientPreferencesRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserPreferencesApi->upsertUserPreferences: %s\n" % e)
extern crate UserPreferencesApi;

pub fn main() {
    let upsertUserClientPreferencesRequest = {"key":"string","version":"string","value":"string"}; // UpsertUserClientPreferencesRequest

    let mut context = UserPreferencesApi::Context::default();
    let result = client.upsertUserPreferences(upsertUserClientPreferencesRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
upsertUserClientPreferencesRequest

Request body to Update/Insert user preferences

Responses