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/Tenant/Save" \
-d '{
"Tenant" : {
"LogoURI" : "LogoURI",
"AgreedTsAndCs" : true,
"FirstName" : "FirstName",
"Locations" : [ {
"IsActive" : true,
"TimeZoneName" : "TimeZoneName",
"GUID" : "00000000-0000-0000-0000-000000000000",
"EmailAddress" : "EmailAddress",
"Name" : "Name",
"Addresses" : [ {
"FullAddress" : "FullAddress",
"IsDefaultDeliverTo" : true,
"IsActive" : true,
"LocationID" : 9,
"Latitude" : 2.3021358869347655,
"GUIDstring" : "GUIDstring",
"IsPostalAddress" : true,
"AddressDescription" : "AddressDescription",
"ID" : 5,
"Notes" : "Notes",
"IsDeliverTo" : true,
"IsSelectedBilling" : true,
"IsSelectedDelivery" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"City" : "City",
"Longitude" : 7.061401241503109,
"StreetAddress" : "StreetAddress",
"IsMailTo" : true,
"IsServiceTo" : true,
"State" : "State",
"IsDefaultServiceTo" : true,
"IsOfficeOrShop" : true,
"Country" : "Country",
"IsSystem" : true,
"AddressType" : 3,
"PostCode" : "PostCode",
"IsDefaultBilling" : true
}, {
"FullAddress" : "FullAddress",
"IsDefaultDeliverTo" : true,
"IsActive" : true,
"LocationID" : 9,
"Latitude" : 2.3021358869347655,
"GUIDstring" : "GUIDstring",
"IsPostalAddress" : true,
"AddressDescription" : "AddressDescription",
"ID" : 5,
"Notes" : "Notes",
"IsDeliverTo" : true,
"IsSelectedBilling" : true,
"IsSelectedDelivery" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"City" : "City",
"Longitude" : 7.061401241503109,
"StreetAddress" : "StreetAddress",
"IsMailTo" : true,
"IsServiceTo" : true,
"State" : "State",
"IsDefaultServiceTo" : true,
"IsOfficeOrShop" : true,
"Country" : "Country",
"IsSystem" : true,
"AddressType" : 3,
"PostCode" : "PostCode",
"IsDefaultBilling" : true
} ],
"UtcOffset" : 5,
"IsVisibleToPublic" : true,
"OwnerID" : 6,
"Contacts" : [ {
"BusinessName" : "BusinessName",
"FirstName" : "FirstName",
"IsActive" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"Title" : "Title",
"BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
"Birthday" : "2000-01-23T04:56:07.000+00:00",
"Gender" : "Gender",
"PositionOrOccupation" : "PositionOrOccupation",
"IsIncludeInEmails" : true,
"EmailAddress" : "EmailAddress",
"ContactRole" : "ContactRole",
"LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
"BusinessContactID" : 4,
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"IsSystem" : true,
"ID" : 2,
"LastName" : "LastName",
"BusinessID" : 7
}, {
"BusinessName" : "BusinessName",
"FirstName" : "FirstName",
"IsActive" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"Title" : "Title",
"BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
"Birthday" : "2000-01-23T04:56:07.000+00:00",
"Gender" : "Gender",
"PositionOrOccupation" : "PositionOrOccupation",
"IsIncludeInEmails" : true,
"EmailAddress" : "EmailAddress",
"ContactRole" : "ContactRole",
"LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
"BusinessContactID" : 4,
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"IsSystem" : true,
"ID" : 2,
"LastName" : "LastName",
"BusinessID" : 7
} ],
"Phone" : "Phone",
"IsSystem" : true,
"ID" : 1,
"IsDefaultLocation" : true
}, {
"IsActive" : true,
"TimeZoneName" : "TimeZoneName",
"GUID" : "00000000-0000-0000-0000-000000000000",
"EmailAddress" : "EmailAddress",
"Name" : "Name",
"Addresses" : [ {
"FullAddress" : "FullAddress",
"IsDefaultDeliverTo" : true,
"IsActive" : true,
"LocationID" : 9,
"Latitude" : 2.3021358869347655,
"GUIDstring" : "GUIDstring",
"IsPostalAddress" : true,
"AddressDescription" : "AddressDescription",
"ID" : 5,
"Notes" : "Notes",
"IsDeliverTo" : true,
"IsSelectedBilling" : true,
"IsSelectedDelivery" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"City" : "City",
"Longitude" : 7.061401241503109,
"StreetAddress" : "StreetAddress",
"IsMailTo" : true,
"IsServiceTo" : true,
"State" : "State",
"IsDefaultServiceTo" : true,
"IsOfficeOrShop" : true,
"Country" : "Country",
"IsSystem" : true,
"AddressType" : 3,
"PostCode" : "PostCode",
"IsDefaultBilling" : true
}, {
"FullAddress" : "FullAddress",
"IsDefaultDeliverTo" : true,
"IsActive" : true,
"LocationID" : 9,
"Latitude" : 2.3021358869347655,
"GUIDstring" : "GUIDstring",
"IsPostalAddress" : true,
"AddressDescription" : "AddressDescription",
"ID" : 5,
"Notes" : "Notes",
"IsDeliverTo" : true,
"IsSelectedBilling" : true,
"IsSelectedDelivery" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"City" : "City",
"Longitude" : 7.061401241503109,
"StreetAddress" : "StreetAddress",
"IsMailTo" : true,
"IsServiceTo" : true,
"State" : "State",
"IsDefaultServiceTo" : true,
"IsOfficeOrShop" : true,
"Country" : "Country",
"IsSystem" : true,
"AddressType" : 3,
"PostCode" : "PostCode",
"IsDefaultBilling" : true
} ],
"UtcOffset" : 5,
"IsVisibleToPublic" : true,
"OwnerID" : 6,
"Contacts" : [ {
"BusinessName" : "BusinessName",
"FirstName" : "FirstName",
"IsActive" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"Title" : "Title",
"BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
"Birthday" : "2000-01-23T04:56:07.000+00:00",
"Gender" : "Gender",
"PositionOrOccupation" : "PositionOrOccupation",
"IsIncludeInEmails" : true,
"EmailAddress" : "EmailAddress",
"ContactRole" : "ContactRole",
"LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
"BusinessContactID" : 4,
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"IsSystem" : true,
"ID" : 2,
"LastName" : "LastName",
"BusinessID" : 7
}, {
"BusinessName" : "BusinessName",
"FirstName" : "FirstName",
"IsActive" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"Title" : "Title",
"BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
"Birthday" : "2000-01-23T04:56:07.000+00:00",
"Gender" : "Gender",
"PositionOrOccupation" : "PositionOrOccupation",
"IsIncludeInEmails" : true,
"EmailAddress" : "EmailAddress",
"ContactRole" : "ContactRole",
"LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
"BusinessContactID" : 4,
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"IsSystem" : true,
"ID" : 2,
"LastName" : "LastName",
"BusinessID" : 7
} ],
"Phone" : "Phone",
"IsSystem" : true,
"ID" : 1,
"IsDefaultLocation" : true
} ],
"GlobalCode" : "GlobalCode",
"IsSetupComplete" : true,
"Users" : [ {
"UserName" : "UserName",
"Position" : "Position",
"IsEnabled" : true,
"FirstName" : "FirstName",
"IsActive" : true,
"Mobile" : "Mobile",
"EmailAddress" : "EmailAddress",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"UserGlobalID" : "00000000-0000-0000-0000-000000000000",
"UserID" : 0,
"Barcode" : "Barcode",
"DisplayName" : "DisplayName",
"LastName" : "LastName"
}, {
"UserName" : "UserName",
"Position" : "Position",
"IsEnabled" : true,
"FirstName" : "FirstName",
"IsActive" : true,
"Mobile" : "Mobile",
"EmailAddress" : "EmailAddress",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"UserGlobalID" : "00000000-0000-0000-0000-000000000000",
"UserID" : 0,
"Barcode" : "Barcode",
"DisplayName" : "DisplayName",
"LastName" : "LastName"
} ],
"IsDemo" : true,
"Logos" : [ {
"ThumbnailURL" : "ThumbnailURL",
"GUID" : "00000000-0000-0000-0000-000000000000",
"RedirectURI" : "RedirectURI",
"LogoTypeID" : 1,
"URI" : "URI"
}, {
"ThumbnailURL" : "ThumbnailURL",
"GUID" : "00000000-0000-0000-0000-000000000000",
"RedirectURI" : "RedirectURI",
"LogoTypeID" : 1,
"URI" : "URI"
} ],
"ABN" : "ABN",
"EmailAddress" : "EmailAddress",
"GlobalID" : "00000000-0000-0000-0000-000000000000",
"Name" : "Name",
"LogoThumbnailURI" : "LogoThumbnailURI",
"TagLine" : "TagLine",
"IsIndividual" : true,
"Phone" : "Phone",
"MarketPlacePath" : "MarketPlacePath",
"BankAccountDetails" : {
"BankName" : "BankName",
"Description" : "Description",
"OpeningBalance" : 7.457744773683766,
"IsActive" : true,
"ParentAccountName" : "ParentAccountName",
"ParentAccountCode" : "ParentAccountCode",
"Name" : "Name",
"GUIDstring" : "GUIDstring",
"CurrencyCode" : "CurrencyCode",
"BankBSB" : "BankBSB",
"Version" : 1.4894159098541704,
"SyncLogs" : [ {
"Status" : "Status",
"LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
"AdaptorID" : 9,
"LastImportDateTime_offset" : 9,
"LastExportDateTime_offset" : 6,
"LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"BSID" : "BSID",
"Details" : "Details",
"SyncCode" : "SyncCode",
"LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
"LastModifiedDateTime_offset" : 8,
"ID" : 5,
"LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
}, {
"Status" : "Status",
"LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
"AdaptorID" : 9,
"LastImportDateTime_offset" : 9,
"LastExportDateTime_offset" : 6,
"LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"BSID" : "BSID",
"Details" : "Details",
"SyncCode" : "SyncCode",
"LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
"LastModifiedDateTime_offset" : 8,
"ID" : 5,
"LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
} ],
"ID" : 6,
"OpeningDate" : "2000-01-23T04:56:07.000+00:00",
"IsEnablePayments" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"Code" : "Code",
"TaxType" : "TaxType",
"ClosingBalance" : 1.1730742509559433,
"RowNumber" : 1,
"Type" : "Type",
"BankAccountName" : "BankAccountName",
"ParentAccountBSID" : "ParentAccountBSID",
"BSID" : "BSID",
"IsShowOnInvoice" : true,
"IsParentAccount" : true,
"BankAccountType" : "BankAccountType",
"Class" : "Class",
"ClosingDate" : "2000-01-23T04:56:07.000+00:00",
"Balance" : 4.965218492984954,
"BankAccountNumber" : "BankAccountNumber",
"IsShowInExpenseClaims" : true,
"ParentAccountID" : 9
},
"WebSiteURL" : "WebSiteURL",
"IsSystem" : true,
"LastName" : "LastName",
"GoodToTrade" : true,
"RemitterName" : "RemitterName"
},
"POSReceiptFooterText" : "POSReceiptFooterText",
"IsShowBusinessLogoOnPOSReceipt" : true,
"IsCapricornPreferredSupplier" : true,
"ARContactEmailAddress" : "ARContactEmailAddress"
}' \
-d 'Custom MIME type example not yet supported: text/json' \
-d '<TenantSetupDetails>
<TenantDetails>
<GlobalCode>aeiou</GlobalCode>
<GlobalID>00000000-0000-0000-0000-000000000000</GlobalID>
<Name>aeiou</Name>
<FirstName>aeiou</FirstName>
<LastName>aeiou</LastName>
<ABN>aeiou</ABN>
<Phone>aeiou</Phone>
<WebSiteURL>aeiou</WebSiteURL>
<null>
<UserID>123</UserID>
<UserName>aeiou</UserName>
<DisplayName>aeiou</DisplayName>
<FirstName>aeiou</FirstName>
<LastName>aeiou</LastName>
<EmailAddress>aeiou</EmailAddress>
<Barcode>aeiou</Barcode>
<Position>aeiou</Position>
<Phone1>aeiou</Phone1>
<Mobile>aeiou</Mobile>
<IsEnabled>true</IsEnabled>
<IsActive>true</IsActive>
<IsPrimaryContact>true</IsPrimaryContact>
<UserGlobalID>00000000-0000-0000-0000-000000000000</UserGlobalID>
</null>
<null>
<OwnerID>123</OwnerID>
<ID>123</ID>
<Name>aeiou</Name>
<EmailAddress>aeiou</EmailAddress>
<Phone>aeiou</Phone>
<IsDefaultLocation>true</IsDefaultLocation>
<UtcOffset>123</UtcOffset>
<TimeZoneName>aeiou</TimeZoneName>
<GUID>00000000-0000-0000-0000-000000000000</GUID>
<IsVisibleToPublic>true</IsVisibleToPublic>
<IsActive>true</IsActive>
<IsSystem>true</IsSystem>
</null>
<IsIndividual>true</IsIndividual>
<IsSetupComplete>true</IsSetupComplete>
<MarketPlacePath>aeiou</MarketPlacePath>
<IsSystem>true</IsSystem>
<IsDemo>true</IsDemo>
<null>
<URI>aeiou</URI>
<ThumbnailURL>aeiou</ThumbnailURL>
<LogoTypeID>123</LogoTypeID>
<RedirectURI>aeiou</RedirectURI>
<GUID>00000000-0000-0000-0000-000000000000</GUID>
</null>
<LogoURI>aeiou</LogoURI>
<LogoThumbnailURI>aeiou</LogoThumbnailURI>
<GoodToTrade>true</GoodToTrade>
<AgreedTsAndCs>true</AgreedTsAndCs>
<EmailAddress>aeiou</EmailAddress>
<TagLine>aeiou</TagLine>
<RemitterName>aeiou</RemitterName>
<null>
<GUID>00000000-0000-0000-0000-000000000000</GUID>
<RowNumber>123456789</RowNumber>
<Version>3.149</Version>
<ID>123</ID>
<GUIDstring>aeiou</GUIDstring>
<BSID>aeiou</BSID>
<Code>aeiou</Code>
<Name>aeiou</Name>
<Description>aeiou</Description>
<Type>aeiou</Type>
<TaxType>aeiou</TaxType>
<Class>aeiou</Class>
<IsEnablePayments>true</IsEnablePayments>
<IsShowInExpenseClaims>true</IsShowInExpenseClaims>
<BankAccountNumber>aeiou</BankAccountNumber>
<BankAccountName>aeiou</BankAccountName>
<BankAccountType>aeiou</BankAccountType>
<BankBSB>aeiou</BankBSB>
<BankName>aeiou</BankName>
<CurrencyCode>aeiou</CurrencyCode>
<IsActive>true</IsActive>
<IsShowOnInvoice>true</IsShowOnInvoice>
<OpeningBalance>3.149</OpeningBalance>
<OpeningDate>2000-01-23T04:56:07.000Z</OpeningDate>
<ClosingBalance>3.149</ClosingBalance>
<ClosingDate>2000-01-23T04:56:07.000Z</ClosingDate>
<Balance>3.149</Balance>
<IsParentAccount>true</IsParentAccount>
<ParentAccountID>123</ParentAccountID>
<ParentAccountBSID>aeiou</ParentAccountBSID>
<ParentAccountCode>aeiou</ParentAccountCode>
<ParentAccountName>aeiou</ParentAccountName>
</null>
</TenantDetails>
<IsShowBusinessLogoOnPOSReceipt>true</IsShowBusinessLogoOnPOSReceipt>
<POSReceiptFooterText>aeiou</POSReceiptFooterText>
<ARContactEmailAddress>aeiou</ARContactEmailAddress>
<IsCapricornPreferredSupplier>true</IsCapricornPreferredSupplier>
</TenantSetupDetails>' \
-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();
TenantSetupDetails tenantSetupDetails = {"Tenant":{"GlobalCode":"string","GlobalID":"00000000-0000-0000-0000-000000000000","Name":"string","FirstName":"string","LastName":"string","ABN":"string","Phone":"string","WebSiteURL":"string","Users":[{"UserID":0,"UserName":"string","DisplayName":"string","FirstName":"string","LastName":"string","EmailAddress":"string","Barcode":"string","Position":"string","Phone1":"string","Mobile":"string","IsEnabled":true,"IsActive":true,"IsPrimaryContact":true,"UserGlobalID":"00000000-0000-0000-0000-000000000000"}],"Locations":[{"OwnerID":0,"ID":0,"Name":"string","EmailAddress":"string","Phone":"string","IsDefaultLocation":true,"UtcOffset":0,"TimeZoneName":"string","GUID":"00000000-0000-0000-0000-000000000000","IsVisibleToPublic":true,"IsActive":true,"Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}],"Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true}],"IsIndividual":true,"IsSetupComplete":true,"MarketPlacePath":"string","IsSystem":true,"IsDemo":true,"Logos":[{"URI":"string","ThumbnailURL":"string","LogoTypeID":1,"RedirectURI":"string","GUID":"00000000-0000-0000-0000-000000000000"}],"LogoURI":"string","LogoThumbnailURI":"string","GoodToTrade":true,"AgreedTsAndCs":true,"EmailAddress":"string","TagLine":"string","RemitterName":"string","BankAccountDetails":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"}},"IsShowBusinessLogoOnPOSReceipt":true,"POSReceiptFooterText":"string","ARContactEmailAddress":"string","IsCapricornPreferredSupplier":true}; // TenantSetupDetails |
try {
Object result = apiInstance.tenantSave(tenantSetupDetails);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#tenantSave");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final TenantSetupDetails tenantSetupDetails = new TenantSetupDetails(); // TenantSetupDetails |
try {
final result = await api_instance.tenantSave(tenantSetupDetails);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->tenantSave: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
TenantSetupDetails tenantSetupDetails = {"Tenant":{"GlobalCode":"string","GlobalID":"00000000-0000-0000-0000-000000000000","Name":"string","FirstName":"string","LastName":"string","ABN":"string","Phone":"string","WebSiteURL":"string","Users":[{"UserID":0,"UserName":"string","DisplayName":"string","FirstName":"string","LastName":"string","EmailAddress":"string","Barcode":"string","Position":"string","Phone1":"string","Mobile":"string","IsEnabled":true,"IsActive":true,"IsPrimaryContact":true,"UserGlobalID":"00000000-0000-0000-0000-000000000000"}],"Locations":[{"OwnerID":0,"ID":0,"Name":"string","EmailAddress":"string","Phone":"string","IsDefaultLocation":true,"UtcOffset":0,"TimeZoneName":"string","GUID":"00000000-0000-0000-0000-000000000000","IsVisibleToPublic":true,"IsActive":true,"Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}],"Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true}],"IsIndividual":true,"IsSetupComplete":true,"MarketPlacePath":"string","IsSystem":true,"IsDemo":true,"Logos":[{"URI":"string","ThumbnailURL":"string","LogoTypeID":1,"RedirectURI":"string","GUID":"00000000-0000-0000-0000-000000000000"}],"LogoURI":"string","LogoThumbnailURI":"string","GoodToTrade":true,"AgreedTsAndCs":true,"EmailAddress":"string","TagLine":"string","RemitterName":"string","BankAccountDetails":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"}},"IsShowBusinessLogoOnPOSReceipt":true,"POSReceiptFooterText":"string","ARContactEmailAddress":"string","IsCapricornPreferredSupplier":true}; // TenantSetupDetails |
try {
Object result = apiInstance.tenantSave(tenantSetupDetails);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#tenantSave");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
TenantSetupDetails *tenantSetupDetails = {"Tenant":{"GlobalCode":"string","GlobalID":"00000000-0000-0000-0000-000000000000","Name":"string","FirstName":"string","LastName":"string","ABN":"string","Phone":"string","WebSiteURL":"string","Users":[{"UserID":0,"UserName":"string","DisplayName":"string","FirstName":"string","LastName":"string","EmailAddress":"string","Barcode":"string","Position":"string","Phone1":"string","Mobile":"string","IsEnabled":true,"IsActive":true,"IsPrimaryContact":true,"UserGlobalID":"00000000-0000-0000-0000-000000000000"}],"Locations":[{"OwnerID":0,"ID":0,"Name":"string","EmailAddress":"string","Phone":"string","IsDefaultLocation":true,"UtcOffset":0,"TimeZoneName":"string","GUID":"00000000-0000-0000-0000-000000000000","IsVisibleToPublic":true,"IsActive":true,"Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}],"Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true}],"IsIndividual":true,"IsSetupComplete":true,"MarketPlacePath":"string","IsSystem":true,"IsDemo":true,"Logos":[{"URI":"string","ThumbnailURL":"string","LogoTypeID":1,"RedirectURI":"string","GUID":"00000000-0000-0000-0000-000000000000"}],"LogoURI":"string","LogoThumbnailURI":"string","GoodToTrade":true,"AgreedTsAndCs":true,"EmailAddress":"string","TagLine":"string","RemitterName":"string","BankAccountDetails":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"}},"IsShowBusinessLogoOnPOSReceipt":true,"POSReceiptFooterText":"string","ARContactEmailAddress":"string","IsCapricornPreferredSupplier":true}; // (optional)
// Tenant_Save
[apiInstance tenantSaveWith:tenantSetupDetails
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AsServerApiTenant = require('as_server_api_tenant');
// Create an instance of the API class
var api = new AsServerApiTenant.DefaultApi()
var opts = {
'tenantSetupDetails': {"Tenant":{"GlobalCode":"string","GlobalID":"00000000-0000-0000-0000-000000000000","Name":"string","FirstName":"string","LastName":"string","ABN":"string","Phone":"string","WebSiteURL":"string","Users":[{"UserID":0,"UserName":"string","DisplayName":"string","FirstName":"string","LastName":"string","EmailAddress":"string","Barcode":"string","Position":"string","Phone1":"string","Mobile":"string","IsEnabled":true,"IsActive":true,"IsPrimaryContact":true,"UserGlobalID":"00000000-0000-0000-0000-000000000000"}],"Locations":[{"OwnerID":0,"ID":0,"Name":"string","EmailAddress":"string","Phone":"string","IsDefaultLocation":true,"UtcOffset":0,"TimeZoneName":"string","GUID":"00000000-0000-0000-0000-000000000000","IsVisibleToPublic":true,"IsActive":true,"Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}],"Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true}],"IsIndividual":true,"IsSetupComplete":true,"MarketPlacePath":"string","IsSystem":true,"IsDemo":true,"Logos":[{"URI":"string","ThumbnailURL":"string","LogoTypeID":1,"RedirectURI":"string","GUID":"00000000-0000-0000-0000-000000000000"}],"LogoURI":"string","LogoThumbnailURI":"string","GoodToTrade":true,"AgreedTsAndCs":true,"EmailAddress":"string","TagLine":"string","RemitterName":"string","BankAccountDetails":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"}},"IsShowBusinessLogoOnPOSReceipt":true,"POSReceiptFooterText":"string","ARContactEmailAddress":"string","IsCapricornPreferredSupplier":true} // {TenantSetupDetails}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.tenantSave(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class tenantSaveExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var tenantSetupDetails = new TenantSetupDetails(); // TenantSetupDetails | (optional)
try {
// Tenant_Save
Object result = apiInstance.tenantSave(tenantSetupDetails);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.tenantSave: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$tenantSetupDetails = {"Tenant":{"GlobalCode":"string","GlobalID":"00000000-0000-0000-0000-000000000000","Name":"string","FirstName":"string","LastName":"string","ABN":"string","Phone":"string","WebSiteURL":"string","Users":[{"UserID":0,"UserName":"string","DisplayName":"string","FirstName":"string","LastName":"string","EmailAddress":"string","Barcode":"string","Position":"string","Phone1":"string","Mobile":"string","IsEnabled":true,"IsActive":true,"IsPrimaryContact":true,"UserGlobalID":"00000000-0000-0000-0000-000000000000"}],"Locations":[{"OwnerID":0,"ID":0,"Name":"string","EmailAddress":"string","Phone":"string","IsDefaultLocation":true,"UtcOffset":0,"TimeZoneName":"string","GUID":"00000000-0000-0000-0000-000000000000","IsVisibleToPublic":true,"IsActive":true,"Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}],"Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true}],"IsIndividual":true,"IsSetupComplete":true,"MarketPlacePath":"string","IsSystem":true,"IsDemo":true,"Logos":[{"URI":"string","ThumbnailURL":"string","LogoTypeID":1,"RedirectURI":"string","GUID":"00000000-0000-0000-0000-000000000000"}],"LogoURI":"string","LogoThumbnailURI":"string","GoodToTrade":true,"AgreedTsAndCs":true,"EmailAddress":"string","TagLine":"string","RemitterName":"string","BankAccountDetails":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"}},"IsShowBusinessLogoOnPOSReceipt":true,"POSReceiptFooterText":"string","ARContactEmailAddress":"string","IsCapricornPreferredSupplier":true}; // TenantSetupDetails |
try {
$result = $api_instance->tenantSave($tenantSetupDetails);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->tenantSave: ', $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 $tenantSetupDetails = WWW::OPenAPIClient::Object::TenantSetupDetails->new(); # TenantSetupDetails |
eval {
my $result = $api_instance->tenantSave(tenantSetupDetails => $tenantSetupDetails);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->tenantSave: $@\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()
tenantSetupDetails = {"Tenant":{"GlobalCode":"string","GlobalID":"00000000-0000-0000-0000-000000000000","Name":"string","FirstName":"string","LastName":"string","ABN":"string","Phone":"string","WebSiteURL":"string","Users":[{"UserID":0,"UserName":"string","DisplayName":"string","FirstName":"string","LastName":"string","EmailAddress":"string","Barcode":"string","Position":"string","Phone1":"string","Mobile":"string","IsEnabled":true,"IsActive":true,"IsPrimaryContact":true,"UserGlobalID":"00000000-0000-0000-0000-000000000000"}],"Locations":[{"OwnerID":0,"ID":0,"Name":"string","EmailAddress":"string","Phone":"string","IsDefaultLocation":true,"UtcOffset":0,"TimeZoneName":"string","GUID":"00000000-0000-0000-0000-000000000000","IsVisibleToPublic":true,"IsActive":true,"Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}],"Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true}],"IsIndividual":true,"IsSetupComplete":true,"MarketPlacePath":"string","IsSystem":true,"IsDemo":true,"Logos":[{"URI":"string","ThumbnailURL":"string","LogoTypeID":1,"RedirectURI":"string","GUID":"00000000-0000-0000-0000-000000000000"}],"LogoURI":"string","LogoThumbnailURI":"string","GoodToTrade":true,"AgreedTsAndCs":true,"EmailAddress":"string","TagLine":"string","RemitterName":"string","BankAccountDetails":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"}},"IsShowBusinessLogoOnPOSReceipt":true,"POSReceiptFooterText":"string","ARContactEmailAddress":"string","IsCapricornPreferredSupplier":true} # TenantSetupDetails | (optional)
try:
# Tenant_Save
api_response = api_instance.tenant_save(tenantSetupDetails=tenantSetupDetails)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->tenantSave: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let tenantSetupDetails = {"Tenant":{"GlobalCode":"string","GlobalID":"00000000-0000-0000-0000-000000000000","Name":"string","FirstName":"string","LastName":"string","ABN":"string","Phone":"string","WebSiteURL":"string","Users":[{"UserID":0,"UserName":"string","DisplayName":"string","FirstName":"string","LastName":"string","EmailAddress":"string","Barcode":"string","Position":"string","Phone1":"string","Mobile":"string","IsEnabled":true,"IsActive":true,"IsPrimaryContact":true,"UserGlobalID":"00000000-0000-0000-0000-000000000000"}],"Locations":[{"OwnerID":0,"ID":0,"Name":"string","EmailAddress":"string","Phone":"string","IsDefaultLocation":true,"UtcOffset":0,"TimeZoneName":"string","GUID":"00000000-0000-0000-0000-000000000000","IsVisibleToPublic":true,"IsActive":true,"Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}],"Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true}],"IsIndividual":true,"IsSetupComplete":true,"MarketPlacePath":"string","IsSystem":true,"IsDemo":true,"Logos":[{"URI":"string","ThumbnailURL":"string","LogoTypeID":1,"RedirectURI":"string","GUID":"00000000-0000-0000-0000-000000000000"}],"LogoURI":"string","LogoThumbnailURI":"string","GoodToTrade":true,"AgreedTsAndCs":true,"EmailAddress":"string","TagLine":"string","RemitterName":"string","BankAccountDetails":{"GUID":"00000000-0000-0000-0000-000000000000","RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","Code":"string","Name":"string","Description":"string","Type":"string","TaxType":"string","Class":"string","IsEnablePayments":true,"IsShowInExpenseClaims":true,"BankAccountNumber":"string","BankAccountName":"string","BankAccountType":"string","BankBSB":"string","BankName":"string","CurrencyCode":"string","IsActive":true,"IsShowOnInvoice":true,"OpeningBalance":0,"OpeningDate":"string","ClosingBalance":0,"ClosingDate":"string","Balance":0,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"IsParentAccount":true,"ParentAccountID":0,"ParentAccountBSID":"string","ParentAccountCode":"string","ParentAccountName":"string"}},"IsShowBusinessLogoOnPOSReceipt":true,"POSReceiptFooterText":"string","ARContactEmailAddress":"string","IsCapricornPreferredSupplier":true}; // TenantSetupDetails
let mut context = DefaultApi::Context::default();
let result = client.tenantSave(tenantSetupDetails, &context).wait();
println!("{:?}", result);
}