curl -X POST \
-H "Accept: application/json,text/json,application/xml,text/xml" \
-H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
"https://api.dev.spenda.co/api/TenantLocation/Save" \
-d '{
"IsDefault" : true,
"ParentID" : 2,
"WebsiteID" : 7,
"SelectedForUser" : true,
"Description" : "Description",
"Address" : {
"FullAddress" : "FullAddress",
"IsDefaultDeliverTo" : true,
"IsActive" : true,
"LocationID" : 5,
"Latitude" : 1.4658129805029452,
"GUIDstring" : "GUIDstring",
"IsPostalAddress" : true,
"AddressDescription" : "AddressDescription",
"ID" : 6,
"Notes" : "Notes",
"IsDeliverTo" : true,
"IsSelectedBilling" : true,
"IsSelectedDelivery" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"City" : "City",
"Longitude" : 5.962133916683182,
"StreetAddress" : "StreetAddress",
"IsMailTo" : true,
"IsServiceTo" : true,
"State" : "State",
"IsDefaultServiceTo" : true,
"IsOfficeOrShop" : true,
"Country" : "Country",
"IsSystem" : true,
"AddressType" : 2,
"PostCode" : "PostCode",
"IsDefaultBilling" : true
},
"IsCustomerDefault" : true,
"IsActive" : true,
"CustomerID" : 9,
"ParentName" : "ParentName",
"EmailAddress" : "EmailAddress",
"IsAddCustomerLocation" : true,
"Name" : "Name",
"UtcOffset" : 7,
"TenantID" : 4,
"TenantLocationID" : 0,
"Phone" : "Phone",
"UserID" : 1,
"ID" : 3
}' \
-d 'Custom MIME type example not yet supported: text/json' \
-d '<TenantLocationInfo>
<TenantLocationID>123</TenantLocationID>
<null>
<ID>123</ID>
<GUID>00000000-0000-0000-0000-000000000000</GUID>
<FullAddress>aeiou</FullAddress>
<IsMailTo>true</IsMailTo>
<IsOfficeOrShop>true</IsOfficeOrShop>
<IsPostalAddress>true</IsPostalAddress>
<IsSelectedBilling>true</IsSelectedBilling>
<IsSelectedDelivery>true</IsSelectedDelivery>
<Latitude>3.149</Latitude>
<Longitude>3.149</Longitude>
<LocationID>123</LocationID>
<IsSystem>true</IsSystem>
<GUIDstring>aeiou</GUIDstring>
<AddressType>123</AddressType>
<AddressDescription>aeiou</AddressDescription>
<StreetAddress>aeiou</StreetAddress>
<City>aeiou</City>
<PostCode>aeiou</PostCode>
<State>aeiou</State>
<Country>aeiou</Country>
<IsDefaultDeliverTo>true</IsDefaultDeliverTo>
<IsDefaultBilling>true</IsDefaultBilling>
<IsDefaultServiceTo>true</IsDefaultServiceTo>
<IsActive>true</IsActive>
<Notes>aeiou</Notes>
<IsDeliverTo>true</IsDeliverTo>
<IsServiceTo>true</IsServiceTo>
</null>
<SelectedForUser>true</SelectedForUser>
<EmailAddress>aeiou</EmailAddress>
<Phone>aeiou</Phone>
<UtcOffset>123</UtcOffset>
<IsAddCustomerLocation>true</IsAddCustomerLocation>
<CustomerID>123</CustomerID>
<ID>123</ID>
<Name>aeiou</Name>
<Description>aeiou</Description>
<IsDefault>true</IsDefault>
<IsCustomerDefault>true</IsCustomerDefault>
<IsActive>true</IsActive>
<ParentID>123</ParentID>
<ParentName>aeiou</ParentName>
<TenantID>123</TenantID>
<WebsiteID>123</WebsiteID>
<UserID>123</UserID>
</TenantLocationInfo>' \
-d 'Custom MIME type example not yet supported: text/xml' \
-d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
TenantLocationInfo tenantLocationInfo = {"TenantLocationID":0,"Address":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // TenantLocationInfo |
try {
Object result = apiInstance.tenantLocationSave(tenantLocationInfo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#tenantLocationSave");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final TenantLocationInfo tenantLocationInfo = new TenantLocationInfo(); // TenantLocationInfo |
try {
final result = await api_instance.tenantLocationSave(tenantLocationInfo);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->tenantLocationSave: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
TenantLocationInfo tenantLocationInfo = {"TenantLocationID":0,"Address":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // TenantLocationInfo |
try {
Object result = apiInstance.tenantLocationSave(tenantLocationInfo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#tenantLocationSave");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
TenantLocationInfo *tenantLocationInfo = {"TenantLocationID":0,"Address":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // (optional)
// TenantLocation_Save
[apiInstance tenantLocationSaveWith:tenantLocationInfo
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AsServerApiTenantLocation = require('as_server_api_tenant_location');
// Create an instance of the API class
var api = new AsServerApiTenantLocation.DefaultApi()
var opts = {
'tenantLocationInfo': {"TenantLocationID":0,"Address":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0} // {TenantLocationInfo}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.tenantLocationSave(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class tenantLocationSaveExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var tenantLocationInfo = new TenantLocationInfo(); // TenantLocationInfo | (optional)
try {
// TenantLocation_Save
Object result = apiInstance.tenantLocationSave(tenantLocationInfo);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.tenantLocationSave: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$tenantLocationInfo = {"TenantLocationID":0,"Address":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // TenantLocationInfo |
try {
$result = $api_instance->tenantLocationSave($tenantLocationInfo);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->tenantLocationSave: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $tenantLocationInfo = WWW::OPenAPIClient::Object::TenantLocationInfo->new(); # TenantLocationInfo |
eval {
my $result = $api_instance->tenantLocationSave(tenantLocationInfo => $tenantLocationInfo);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->tenantLocationSave: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
tenantLocationInfo = {"TenantLocationID":0,"Address":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0} # TenantLocationInfo | (optional)
try:
# TenantLocation_Save
api_response = api_instance.tenant_location_save(tenantLocationInfo=tenantLocationInfo)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->tenantLocationSave: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let tenantLocationInfo = {"TenantLocationID":0,"Address":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"SelectedForUser":true,"EmailAddress":"string","Phone":"string","UtcOffset":0,"IsAddCustomerLocation":true,"CustomerID":0,"ID":0,"Name":"string","Description":"string","IsDefault":true,"IsCustomerDefault":true,"IsActive":true,"ParentID":0,"ParentName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // TenantLocationInfo
let mut context = DefaultApi::Context::default();
let result = client.tenantLocationSave(tenantLocationInfo, &context).wait();
println!("{:?}", result);
}