curl -X POST \
-H "Accept: application/json,text/json,application/xml,text/xml" \
-H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
"https://api.dev.spenda.co/api/v2/TenantLocation/" \
-d '{
"IsActive" : true,
"TotalNumberOfDistinctProducts" : 6,
"TotalWarehouses" : 1,
"TotalMobileWarehouses" : 6,
"DefaultWarehouse" : {
"Description" : "Description",
"IsActive" : true,
"TotalNumberOfDistinctProducts" : 4,
"Users" : [ {
"FirstName" : "FirstName",
"IsActive" : true,
"PositionOrOccupation" : "PositionOrOccupation",
"EmailAddress" : "EmailAddress",
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"BSID" : "BSID",
"IsEmployee" : true,
"CreatedWith" : "CreatedWith",
"ID" : 9,
"LastName" : "LastName"
}, {
"FirstName" : "FirstName",
"IsActive" : true,
"PositionOrOccupation" : "PositionOrOccupation",
"EmailAddress" : "EmailAddress",
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"BSID" : "BSID",
"IsEmployee" : true,
"CreatedWith" : "CreatedWith",
"ID" : 9,
"LastName" : "LastName"
} ],
"Name" : "Name",
"GUIDstring" : "GUIDstring",
"Version" : 7.143538047012306,
"SyncLogs" : [ {
"Status" : "Status",
"LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
"AdaptorID" : 4,
"LastImportDateTime_offset" : 8,
"LastExportDateTime_offset" : 7,
"LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"BSID" : "BSID",
"Details" : "Details",
"SyncCode" : "SyncCode",
"LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
"LastModifiedDateTime_offset" : 3,
"ID" : 0,
"LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
}, {
"Status" : "Status",
"LastImportDateTime" : "2000-01-23T04:56:07.000+00:00",
"AdaptorID" : 4,
"LastImportDateTime_offset" : 8,
"LastExportDateTime_offset" : 7,
"LastModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"LastExportDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
"BSID" : "BSID",
"Details" : "Details",
"SyncCode" : "SyncCode",
"LastExportDateTime" : "2000-01-23T04:56:07.000+00:00",
"LastModifiedDateTime_offset" : 3,
"ID" : 0,
"LastImportDateTime_utc" : "2000-01-23T04:56:07.000+00:00"
} ],
"WarehouseTypeID" : 6,
"ID" : 0,
"DefaultPOSCustomerName" : "DefaultPOSCustomerName",
"MinimumStockHoldingValue" : 7.260521264802104,
"IsDefault" : true,
"DefaultPOSCustomerID" : 0,
"TenantLocationName" : "TenantLocationName",
"Code" : "Code",
"TotalStockValue" : 4.678947989005849,
"RowNumber" : 3,
"BSID" : "BSID",
"MaximumStockHoldingValue" : 9.132027271330688,
"TenantLocationID" : 7,
"Barcode" : "Barcode",
"WarehouseType" : {
"Description" : "Description",
"WarehouseTypeID" : 6,
"ID" : 0,
"IsVirtual" : true,
"Name" : "Name",
"RefNumberPrefix" : "RefNumberPrefix"
},
"TotalSOH" : 1.041444916118296,
"IsSystem" : true,
"CostCentreCode" : "CostCentreCode",
"Location" : {
"IsActive" : true,
"TimeZoneName" : "TimeZoneName",
"GUID" : "00000000-0000-0000-0000-000000000000",
"EmailAddress" : "EmailAddress",
"Name" : "Name",
"LocationName" : "LocationName",
"GUIDstring" : "GUIDstring",
"Addresses" : [ {
"FullAddress" : "FullAddress",
"IsDefaultDeliverTo" : true,
"IsActive" : true,
"LocationID" : 3,
"Latitude" : 9.018348186070783,
"GUIDstring" : "GUIDstring",
"IsPostalAddress" : true,
"AddressDescription" : "AddressDescription",
"ID" : 8,
"Notes" : "Notes",
"IsDeliverTo" : true,
"IsSelectedBilling" : true,
"IsSelectedDelivery" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"City" : "City",
"Longitude" : 6.438423552598547,
"StreetAddress" : "StreetAddress",
"IsMailTo" : true,
"IsServiceTo" : true,
"State" : "State",
"IsDefaultServiceTo" : true,
"IsOfficeOrShop" : true,
"Country" : "Country",
"IsSystem" : true,
"AddressType" : 6,
"PostCode" : "PostCode",
"IsDefaultBilling" : true
}, {
"FullAddress" : "FullAddress",
"IsDefaultDeliverTo" : true,
"IsActive" : true,
"LocationID" : 3,
"Latitude" : 9.018348186070783,
"GUIDstring" : "GUIDstring",
"IsPostalAddress" : true,
"AddressDescription" : "AddressDescription",
"ID" : 8,
"Notes" : "Notes",
"IsDeliverTo" : true,
"IsSelectedBilling" : true,
"IsSelectedDelivery" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"City" : "City",
"Longitude" : 6.438423552598547,
"StreetAddress" : "StreetAddress",
"IsMailTo" : true,
"IsServiceTo" : true,
"State" : "State",
"IsDefaultServiceTo" : true,
"IsOfficeOrShop" : true,
"Country" : "Country",
"IsSystem" : true,
"AddressType" : 6,
"PostCode" : "PostCode",
"IsDefaultBilling" : true
} ],
"UtcOffset" : 4,
"IsVisibleToPublic" : true,
"Contacts" : [ {
"BusinessName" : "BusinessName",
"FirstName" : "FirstName",
"IsActive" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"Title" : "Title",
"BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
"Birthday" : "2000-01-23T04:56:07.000+00:00",
"Gender" : "Gender",
"PositionOrOccupation" : "PositionOrOccupation",
"IsIncludeInEmails" : true,
"EmailAddress" : "EmailAddress",
"ContactRole" : "ContactRole",
"LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
"BusinessContactID" : 5,
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"IsSystem" : true,
"ID" : 7,
"LastName" : "LastName",
"BusinessID" : 3
}, {
"BusinessName" : "BusinessName",
"FirstName" : "FirstName",
"IsActive" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"Title" : "Title",
"BusinessLocationGuid" : "00000000-0000-0000-0000-000000000000",
"Birthday" : "2000-01-23T04:56:07.000+00:00",
"Gender" : "Gender",
"PositionOrOccupation" : "PositionOrOccupation",
"IsIncludeInEmails" : true,
"EmailAddress" : "EmailAddress",
"ContactRole" : "ContactRole",
"LinkedUserGlobalIDstring" : "LinkedUserGlobalIDstring",
"BusinessContactID" : 5,
"GUIDstring" : "GUIDstring",
"PhoneMobile" : "PhoneMobile",
"IsPrimaryContact" : true,
"Phone1" : "Phone1",
"IsSystem" : true,
"ID" : 7,
"LastName" : "LastName",
"BusinessID" : 3
} ],
"Phone" : "Phone",
"IsSystem" : true,
"ID" : 3,
"Fax" : "Fax",
"IsDefaultLocation" : true
},
"IsStockOpeningBalanceComplete" : true
},
"LocationName" : "LocationName",
"TotalStockValue" : 5.944895607614016,
"GUIDstring" : "GUIDstring",
"RowNumber" : 9,
"IsVisibleToPublic" : true,
"TotalPhysicalWarehouses" : 2,
"MaximumStockHoldingValue" : 3.353193347011243,
"Version" : 9.369310271410669,
"TenantLocationAddress" : {
"FullAddress" : "FullAddress",
"IsDefaultDeliverTo" : true,
"IsActive" : true,
"LocationID" : 3,
"Latitude" : 9.018348186070783,
"GUIDstring" : "GUIDstring",
"IsPostalAddress" : true,
"AddressDescription" : "AddressDescription",
"ID" : 8,
"Notes" : "Notes",
"IsDeliverTo" : true,
"IsSelectedBilling" : true,
"IsSelectedDelivery" : true,
"GUID" : "00000000-0000-0000-0000-000000000000",
"City" : "City",
"Longitude" : 6.438423552598547,
"StreetAddress" : "StreetAddress",
"IsMailTo" : true,
"IsServiceTo" : true,
"State" : "State",
"IsDefaultServiceTo" : true,
"IsOfficeOrShop" : true,
"Country" : "Country",
"IsSystem" : true,
"AddressType" : 6,
"PostCode" : "PostCode",
"IsDefaultBilling" : true
},
"ID" : 6,
"MinimumStockHoldingValue" : 6.704019297950036,
"IsDefaultLocation" : true
}' \
-d 'Custom MIME type example not yet supported: text/json' \
-d '<TenantLocationT>
<RowNumber>123456789</RowNumber>
<Version>3.149</Version>
<ID>123</ID>
<GUIDstring>aeiou</GUIDstring>
<LocationName>aeiou</LocationName>
<IsVisibleToPublic>true</IsVisibleToPublic>
<IsDefaultLocation>true</IsDefaultLocation>
<IsActive>true</IsActive>
<null>
<ID>123</ID>
<GUID>00000000-0000-0000-0000-000000000000</GUID>
<FullAddress>aeiou</FullAddress>
<IsMailTo>true</IsMailTo>
<IsOfficeOrShop>true</IsOfficeOrShop>
<IsPostalAddress>true</IsPostalAddress>
<IsSelectedBilling>true</IsSelectedBilling>
<IsSelectedDelivery>true</IsSelectedDelivery>
<Latitude>3.149</Latitude>
<Longitude>3.149</Longitude>
<LocationID>123</LocationID>
<IsSystem>true</IsSystem>
<GUIDstring>aeiou</GUIDstring>
<AddressType>123</AddressType>
<AddressDescription>aeiou</AddressDescription>
<StreetAddress>aeiou</StreetAddress>
<City>aeiou</City>
<PostCode>aeiou</PostCode>
<State>aeiou</State>
<Country>aeiou</Country>
<IsDefaultDeliverTo>true</IsDefaultDeliverTo>
<IsDefaultBilling>true</IsDefaultBilling>
<IsDefaultServiceTo>true</IsDefaultServiceTo>
<IsActive>true</IsActive>
<Notes>aeiou</Notes>
<IsDeliverTo>true</IsDeliverTo>
<IsServiceTo>true</IsServiceTo>
</null>
<TotalWarehouses>123</TotalWarehouses>
<TotalPhysicalWarehouses>123</TotalPhysicalWarehouses>
<TotalNumberOfDistinctProducts>123</TotalNumberOfDistinctProducts>
<TotalMobileWarehouses>123</TotalMobileWarehouses>
<TotalStockValue>3.149</TotalStockValue>
<MinimumStockHoldingValue>3.149</MinimumStockHoldingValue>
<MaximumStockHoldingValue>3.149</MaximumStockHoldingValue>
<null>
<IsSystem>true</IsSystem>
<RowNumber>123456789</RowNumber>
<Version>3.149</Version>
<ID>123</ID>
<GUIDstring>aeiou</GUIDstring>
<BSID>aeiou</BSID>
<TenantLocationID>123</TenantLocationID>
<TenantLocationName>aeiou</TenantLocationName>
<WarehouseTypeID>123</WarehouseTypeID>
<Code>aeiou</Code>
<Name>aeiou</Name>
<Description>aeiou</Description>
<Barcode>aeiou</Barcode>
<IsDefault>true</IsDefault>
<IsActive>true</IsActive>
<TotalNumberOfDistinctProducts>123456789</TotalNumberOfDistinctProducts>
<TotalSOH>3.149</TotalSOH>
<TotalStockValue>3.149</TotalStockValue>
<IsStockOpeningBalanceComplete>true</IsStockOpeningBalanceComplete>
<MinimumStockHoldingValue>3.149</MinimumStockHoldingValue>
<MaximumStockHoldingValue>3.149</MaximumStockHoldingValue>
<DefaultPOSCustomerID>123</DefaultPOSCustomerID>
<DefaultPOSCustomerName>aeiou</DefaultPOSCustomerName>
<CostCentreCode>aeiou</CostCentreCode>
</null>
</TenantLocationT>' \
-d 'Custom MIME type example not yet supported: text/xml' \
-d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
TenantLocationT tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}}; // TenantLocationT |
try {
ActionResults_TenantLocationT_ result = apiInstance.tenantLocationSaveV2(tenantLocationT);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#tenantLocationSaveV2");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final TenantLocationT tenantLocationT = new TenantLocationT(); // TenantLocationT |
try {
final result = await api_instance.tenantLocationSaveV2(tenantLocationT);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->tenantLocationSaveV2: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
TenantLocationT tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}}; // TenantLocationT |
try {
ActionResults_TenantLocationT_ result = apiInstance.tenantLocationSaveV2(tenantLocationT);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#tenantLocationSaveV2");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
TenantLocationT *tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}}; // (optional)
// TenantLocation_SaveV2
[apiInstance tenantLocationSaveV2With:tenantLocationT
completionHandler: ^(ActionResults_TenantLocationT_ output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AsServerApiTenantLocationV2 = require('as_server_api_tenant_location_v2');
// Create an instance of the API class
var api = new AsServerApiTenantLocationV2.DefaultApi()
var opts = {
'tenantLocationT': {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}} // {TenantLocationT}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.tenantLocationSaveV2(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class tenantLocationSaveV2Example
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var tenantLocationT = new TenantLocationT(); // TenantLocationT | (optional)
try {
// TenantLocation_SaveV2
ActionResults_TenantLocationT_ result = apiInstance.tenantLocationSaveV2(tenantLocationT);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.tenantLocationSaveV2: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}}; // TenantLocationT |
try {
$result = $api_instance->tenantLocationSaveV2($tenantLocationT);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->tenantLocationSaveV2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $tenantLocationT = WWW::OPenAPIClient::Object::TenantLocationT->new(); # TenantLocationT |
eval {
my $result = $api_instance->tenantLocationSaveV2(tenantLocationT => $tenantLocationT);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->tenantLocationSaveV2: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}} # TenantLocationT | (optional)
try:
# TenantLocation_SaveV2
api_response = api_instance.tenant_location_save_v2(tenantLocationT=tenantLocationT)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->tenantLocationSaveV2: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let tenantLocationT = {"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","LocationName":"string","IsVisibleToPublic":true,"IsDefaultLocation":true,"IsActive":true,"TenantLocationAddress":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true},"TotalWarehouses":0,"TotalPhysicalWarehouses":0,"TotalNumberOfDistinctProducts":0,"TotalMobileWarehouses":0,"TotalStockValue":0,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultWarehouse":{"IsSystem":true,"RowNumber":0,"Version":0,"ID":0,"GUIDstring":"string","BSID":"string","TenantLocationID":0,"TenantLocationName":"string","WarehouseTypeID":0,"Code":"string","Name":"string","Description":"string","Barcode":"string","IsDefault":true,"IsActive":true,"SyncLogs":[{"LastImportDateTime":"string","LastExportDateTime":"string","ID":0,"AdaptorID":0,"BSID":"string","LastImportDateTime_utc":"string","LastImportDateTime_offset":0,"Status":"string","Details":"string","LastExportDateTime_utc":"string","LastExportDateTime_offset":0,"SyncCode":"string","LastModifiedDateTime_utc":"string","LastModifiedDateTime_offset":0}],"Location":{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","Name":"string","Contacts":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","BusinessName":"string","BusinessContactID":0,"BusinessID":0,"BusinessLocationGuid":"00000000-0000-0000-0000-000000000000","IsSystem":true,"GUIDstring":"string","FirstName":"string","LastName":"string","Phone1":"string","EmailAddress":"string","PhoneMobile":"string","IsPrimaryContact":true,"ContactRole":"string","Gender":"string","Birthday":"string","IsActive":true,"PositionOrOccupation":"string","LinkedUserGlobalIDstring":"string","Title":"string","IsIncludeInEmails":true}],"IsSystem":true,"GUIDstring":"string","IsDefaultLocation":true,"Phone":"string","Fax":"string","EmailAddress":"string","LocationName":"string","IsActive":true,"IsVisibleToPublic":true,"UtcOffset":0,"TimeZoneName":"string","Addresses":[{"ID":0,"GUID":"00000000-0000-0000-0000-000000000000","FullAddress":"string","IsMailTo":true,"IsOfficeOrShop":true,"IsPostalAddress":true,"IsSelectedBilling":true,"IsSelectedDelivery":true,"Latitude":0,"Longitude":0,"LocationID":0,"IsSystem":true,"GUIDstring":"string","AddressType":0,"AddressDescription":"string","StreetAddress":"string","City":"string","PostCode":"string","State":"string","Country":"string","IsDefaultDeliverTo":true,"IsDefaultBilling":true,"IsDefaultServiceTo":true,"IsActive":true,"Notes":"string","IsDeliverTo":true,"IsServiceTo":true}]},"WarehouseType":{"ID":0,"WarehouseTypeID":0,"Name":"string","Description":"string","IsVirtual":true,"RefNumberPrefix":"string"},"TotalNumberOfDistinctProducts":0,"TotalSOH":0,"TotalStockValue":0,"IsStockOpeningBalanceComplete":true,"MinimumStockHoldingValue":0,"MaximumStockHoldingValue":0,"DefaultPOSCustomerID":0,"DefaultPOSCustomerName":"string","CostCentreCode":"string","Users":[{"ID":0,"GUIDstring":"string","BSID":"string","CreatedWith":"string","EmailAddress":"string","FirstName":"string","LastName":"string","IsActive":true,"Phone1":"string","PhoneMobile":"string","PositionOrOccupation":"string","IsPrimaryContact":true,"IsEmployee":true}]}}; // TenantLocationT
let mut context = DefaultApi::Context::default();
let result = client.tenantLocationSaveV2(tenantLocationT, &context).wait();
println!("{:?}", result);
}