Spenda.Services.WarehouseManagement

WarehouseLocations

createWarehouseLocation

Create Warehouse Location

Create Warehouse location under a specified warehouse


/Spenda/WarehouseManagement/Warehouses/{warehouseID}/Locations

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        WarehouseLocationsApi apiInstance = new WarehouseLocationsApi();
        Integer warehouseID = 56; // Integer | The warehouse ID
        WarehouseLocationRequest warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0}; // WarehouseLocationRequest | 

        try {
            httpActionResult_warehouseLocationResponse result = apiInstance.createWarehouseLocation(warehouseID, warehouseLocationRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehouseLocationsApi#createWarehouseLocation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer warehouseID = new Integer(); // Integer | The warehouse ID
final WarehouseLocationRequest warehouseLocationRequest = new WarehouseLocationRequest(); // WarehouseLocationRequest | 

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

import org.openapitools.client.api.WarehouseLocationsApi;

public class WarehouseLocationsApiExample {
    public static void main(String[] args) {
        WarehouseLocationsApi apiInstance = new WarehouseLocationsApi();
        Integer warehouseID = 56; // Integer | The warehouse ID
        WarehouseLocationRequest warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0}; // WarehouseLocationRequest | 

        try {
            httpActionResult_warehouseLocationResponse result = apiInstance.createWarehouseLocation(warehouseID, warehouseLocationRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehouseLocationsApi#createWarehouseLocation");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
WarehouseLocationsApi *apiInstance = [[WarehouseLocationsApi alloc] init];
Integer *warehouseID = 56; // The warehouse ID (default to null)
WarehouseLocationRequest *warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0}; //  (optional)

// Create Warehouse Location
[apiInstance createWarehouseLocationWith:warehouseID
    warehouseLocationRequest:warehouseLocationRequest
              completionHandler: ^(httpActionResult_warehouseLocationResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesWarehouseManagement = require('spenda_services_warehouse_management');

// Create an instance of the API class
var api = new SpendaServicesWarehouseManagement.WarehouseLocationsApi()
var warehouseID = 56; // {Integer} The warehouse ID
var opts = {
  'warehouseLocationRequest': {"name":"string","description":"string","parentWarehouseLocationID":0} // {WarehouseLocationRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new WarehouseLocationsApi();
            var warehouseID = 56;  // Integer | The warehouse ID (default to null)
            var warehouseLocationRequest = new WarehouseLocationRequest(); // WarehouseLocationRequest |  (optional) 

            try {
                // Create Warehouse Location
                httpActionResult_warehouseLocationResponse result = apiInstance.createWarehouseLocation(warehouseID, warehouseLocationRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling WarehouseLocationsApi.createWarehouseLocation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\WarehouseLocationsApi();
$warehouseID = 56; // Integer | The warehouse ID
$warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0}; // WarehouseLocationRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::WarehouseLocationsApi->new();
my $warehouseID = 56; # Integer | The warehouse ID
my $warehouseLocationRequest = WWW::OPenAPIClient::Object::WarehouseLocationRequest->new(); # WarehouseLocationRequest | 

eval {
    my $result = $api_instance->createWarehouseLocation(warehouseID => $warehouseID, warehouseLocationRequest => $warehouseLocationRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WarehouseLocationsApi->createWarehouseLocation: $@\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.WarehouseLocationsApi()
warehouseID = 56 # Integer | The warehouse ID (default to null)
warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0} # WarehouseLocationRequest |  (optional)

try:
    # Create Warehouse Location
    api_response = api_instance.create_warehouse_location(warehouseID, warehouseLocationRequest=warehouseLocationRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WarehouseLocationsApi->createWarehouseLocation: %s\n" % e)
extern crate WarehouseLocationsApi;

pub fn main() {
    let warehouseID = 56; // Integer
    let warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0}; // WarehouseLocationRequest

    let mut context = WarehouseLocationsApi::Context::default();
    let result = client.createWarehouseLocation(warehouseID, warehouseLocationRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
warehouseID*
Integer (int32)
The warehouse ID
Required
Body parameters
Name Description
warehouseLocationRequest

Responses


deleteWarehouseLocation

Delete Warehouse Location

Delete a Warehouse Location


/Spenda/WarehouseManagement/Warehouses/{warehouseID}/Locations/{locationID}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/WarehouseManagement/Warehouses/{warehouseID}/Locations/{locationID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.WarehouseLocationsApi;

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

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

        // Create an instance of the API class
        WarehouseLocationsApi apiInstance = new WarehouseLocationsApi();
        Integer warehouseID = 56; // Integer | Warehouse ID of the tenant
        Integer locationID = 56; // Integer | Warehouse location ID

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

final api_instance = DefaultApi();

final Integer warehouseID = new Integer(); // Integer | Warehouse ID of the tenant
final Integer locationID = new Integer(); // Integer | Warehouse location ID

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

import org.openapitools.client.api.WarehouseLocationsApi;

public class WarehouseLocationsApiExample {
    public static void main(String[] args) {
        WarehouseLocationsApi apiInstance = new WarehouseLocationsApi();
        Integer warehouseID = 56; // Integer | Warehouse ID of the tenant
        Integer locationID = 56; // Integer | Warehouse location ID

        try {
            httpActionResult result = apiInstance.deleteWarehouseLocation(warehouseID, locationID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehouseLocationsApi#deleteWarehouseLocation");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
WarehouseLocationsApi *apiInstance = [[WarehouseLocationsApi alloc] init];
Integer *warehouseID = 56; // Warehouse ID of the tenant (default to null)
Integer *locationID = 56; // Warehouse location ID (default to null)

// Delete Warehouse Location
[apiInstance deleteWarehouseLocationWith:warehouseID
    locationID:locationID
              completionHandler: ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesWarehouseManagement = require('spenda_services_warehouse_management');

// Create an instance of the API class
var api = new SpendaServicesWarehouseManagement.WarehouseLocationsApi()
var warehouseID = 56; // {Integer} Warehouse ID of the tenant
var locationID = 56; // {Integer} Warehouse location ID

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

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

            // Create an instance of the API class
            var apiInstance = new WarehouseLocationsApi();
            var warehouseID = 56;  // Integer | Warehouse ID of the tenant (default to null)
            var locationID = 56;  // Integer | Warehouse location ID (default to null)

            try {
                // Delete Warehouse Location
                httpActionResult result = apiInstance.deleteWarehouseLocation(warehouseID, locationID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling WarehouseLocationsApi.deleteWarehouseLocation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\WarehouseLocationsApi();
$warehouseID = 56; // Integer | Warehouse ID of the tenant
$locationID = 56; // Integer | Warehouse location ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::WarehouseLocationsApi->new();
my $warehouseID = 56; # Integer | Warehouse ID of the tenant
my $locationID = 56; # Integer | Warehouse location ID

eval {
    my $result = $api_instance->deleteWarehouseLocation(warehouseID => $warehouseID, locationID => $locationID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WarehouseLocationsApi->deleteWarehouseLocation: $@\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.WarehouseLocationsApi()
warehouseID = 56 # Integer | Warehouse ID of the tenant (default to null)
locationID = 56 # Integer | Warehouse location ID (default to null)

try:
    # Delete Warehouse Location
    api_response = api_instance.delete_warehouse_location(warehouseID, locationID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WarehouseLocationsApi->deleteWarehouseLocation: %s\n" % e)
extern crate WarehouseLocationsApi;

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

    let mut context = WarehouseLocationsApi::Context::default();
    let result = client.deleteWarehouseLocation(warehouseID, locationID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
warehouseID*
Integer (int32)
Warehouse ID of the tenant
Required
locationID*
Integer (int32)
Warehouse location ID
Required

Responses


getWarehouseLocations

Get or Search Warehouse Locations

Get or Search warehouse location under a specified warehouse


/Spenda/WarehouseManagement/Warehouses/{warehouseID}/Locations

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/WarehouseManagement/Warehouses/{warehouseID}/Locations?searchByName=searchByName_example&includeSystemWarehouseTypes=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.WarehouseLocationsApi;

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

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

        // Create an instance of the API class
        WarehouseLocationsApi apiInstance = new WarehouseLocationsApi();
        Integer warehouseID = 56; // Integer | The Warehouse ID
        String searchByName = searchByName_example; // String | The search string for filtering warehouse locations
        Boolean includeSystemWarehouseTypes = true; // Boolean | The search param for filtering warehouse locations

        try {
            httpActionResult_warehouseLocationSearchResponse result = apiInstance.getWarehouseLocations(warehouseID, searchByName, includeSystemWarehouseTypes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehouseLocationsApi#getWarehouseLocations");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer warehouseID = new Integer(); // Integer | The Warehouse ID
final String searchByName = new String(); // String | The search string for filtering warehouse locations
final Boolean includeSystemWarehouseTypes = new Boolean(); // Boolean | The search param for filtering warehouse locations

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

import org.openapitools.client.api.WarehouseLocationsApi;

public class WarehouseLocationsApiExample {
    public static void main(String[] args) {
        WarehouseLocationsApi apiInstance = new WarehouseLocationsApi();
        Integer warehouseID = 56; // Integer | The Warehouse ID
        String searchByName = searchByName_example; // String | The search string for filtering warehouse locations
        Boolean includeSystemWarehouseTypes = true; // Boolean | The search param for filtering warehouse locations

        try {
            httpActionResult_warehouseLocationSearchResponse result = apiInstance.getWarehouseLocations(warehouseID, searchByName, includeSystemWarehouseTypes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehouseLocationsApi#getWarehouseLocations");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
WarehouseLocationsApi *apiInstance = [[WarehouseLocationsApi alloc] init];
Integer *warehouseID = 56; // The Warehouse ID (default to null)
String *searchByName = searchByName_example; // The search string for filtering warehouse locations (optional) (default to null)
Boolean *includeSystemWarehouseTypes = true; // The search param for filtering warehouse locations (optional) (default to null)

// Get or Search Warehouse Locations
[apiInstance getWarehouseLocationsWith:warehouseID
    searchByName:searchByName
    includeSystemWarehouseTypes:includeSystemWarehouseTypes
              completionHandler: ^(httpActionResult_warehouseLocationSearchResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesWarehouseManagement = require('spenda_services_warehouse_management');

// Create an instance of the API class
var api = new SpendaServicesWarehouseManagement.WarehouseLocationsApi()
var warehouseID = 56; // {Integer} The Warehouse ID
var opts = {
  'searchByName': searchByName_example, // {String} The search string for filtering warehouse locations
  'includeSystemWarehouseTypes': true // {Boolean} The search param for filtering warehouse locations
};

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

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

            // Create an instance of the API class
            var apiInstance = new WarehouseLocationsApi();
            var warehouseID = 56;  // Integer | The Warehouse ID (default to null)
            var searchByName = searchByName_example;  // String | The search string for filtering warehouse locations (optional)  (default to null)
            var includeSystemWarehouseTypes = true;  // Boolean | The search param for filtering warehouse locations (optional)  (default to null)

            try {
                // Get or Search Warehouse Locations
                httpActionResult_warehouseLocationSearchResponse result = apiInstance.getWarehouseLocations(warehouseID, searchByName, includeSystemWarehouseTypes);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling WarehouseLocationsApi.getWarehouseLocations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\WarehouseLocationsApi();
$warehouseID = 56; // Integer | The Warehouse ID
$searchByName = searchByName_example; // String | The search string for filtering warehouse locations
$includeSystemWarehouseTypes = true; // Boolean | The search param for filtering warehouse locations

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::WarehouseLocationsApi->new();
my $warehouseID = 56; # Integer | The Warehouse ID
my $searchByName = searchByName_example; # String | The search string for filtering warehouse locations
my $includeSystemWarehouseTypes = true; # Boolean | The search param for filtering warehouse locations

eval {
    my $result = $api_instance->getWarehouseLocations(warehouseID => $warehouseID, searchByName => $searchByName, includeSystemWarehouseTypes => $includeSystemWarehouseTypes);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WarehouseLocationsApi->getWarehouseLocations: $@\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.WarehouseLocationsApi()
warehouseID = 56 # Integer | The Warehouse ID (default to null)
searchByName = searchByName_example # String | The search string for filtering warehouse locations (optional) (default to null)
includeSystemWarehouseTypes = true # Boolean | The search param for filtering warehouse locations (optional) (default to null)

try:
    # Get or Search Warehouse Locations
    api_response = api_instance.get_warehouse_locations(warehouseID, searchByName=searchByName, includeSystemWarehouseTypes=includeSystemWarehouseTypes)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WarehouseLocationsApi->getWarehouseLocations: %s\n" % e)
extern crate WarehouseLocationsApi;

pub fn main() {
    let warehouseID = 56; // Integer
    let searchByName = searchByName_example; // String
    let includeSystemWarehouseTypes = true; // Boolean

    let mut context = WarehouseLocationsApi::Context::default();
    let result = client.getWarehouseLocations(warehouseID, searchByName, includeSystemWarehouseTypes, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
warehouseID*
Integer (int32)
The Warehouse ID
Required
Query parameters
Name Description
searchByName
String
The search string for filtering warehouse locations
includeSystemWarehouseTypes
Boolean
The search param for filtering warehouse locations

Responses


renameWarehouseLocation

Rename a warehouse location

Allows a tenant to rename a warehouse location under a specified warehouse


/Spenda/WarehouseManagement/Warehouses/{warehouseID}/Locations/{locationID}

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        WarehouseLocationsApi apiInstance = new WarehouseLocationsApi();
        Integer warehouseID = 56; // Integer | The warehouse ID
        Integer locationID = 56; // Integer | The warehouse location ID
        WarehouseLocationRequest warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0}; // WarehouseLocationRequest | 

        try {
            httpActionResult_warehouseLocationResponse result = apiInstance.renameWarehouseLocation(warehouseID, locationID, warehouseLocationRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehouseLocationsApi#renameWarehouseLocation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer warehouseID = new Integer(); // Integer | The warehouse ID
final Integer locationID = new Integer(); // Integer | The warehouse location ID
final WarehouseLocationRequest warehouseLocationRequest = new WarehouseLocationRequest(); // WarehouseLocationRequest | 

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

import org.openapitools.client.api.WarehouseLocationsApi;

public class WarehouseLocationsApiExample {
    public static void main(String[] args) {
        WarehouseLocationsApi apiInstance = new WarehouseLocationsApi();
        Integer warehouseID = 56; // Integer | The warehouse ID
        Integer locationID = 56; // Integer | The warehouse location ID
        WarehouseLocationRequest warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0}; // WarehouseLocationRequest | 

        try {
            httpActionResult_warehouseLocationResponse result = apiInstance.renameWarehouseLocation(warehouseID, locationID, warehouseLocationRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehouseLocationsApi#renameWarehouseLocation");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
WarehouseLocationsApi *apiInstance = [[WarehouseLocationsApi alloc] init];
Integer *warehouseID = 56; // The warehouse ID (default to null)
Integer *locationID = 56; // The warehouse location ID (default to null)
WarehouseLocationRequest *warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0}; //  (optional)

// Rename a warehouse location
[apiInstance renameWarehouseLocationWith:warehouseID
    locationID:locationID
    warehouseLocationRequest:warehouseLocationRequest
              completionHandler: ^(httpActionResult_warehouseLocationResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesWarehouseManagement = require('spenda_services_warehouse_management');

// Create an instance of the API class
var api = new SpendaServicesWarehouseManagement.WarehouseLocationsApi()
var warehouseID = 56; // {Integer} The warehouse ID
var locationID = 56; // {Integer} The warehouse location ID
var opts = {
  'warehouseLocationRequest': {"name":"string","description":"string","parentWarehouseLocationID":0} // {WarehouseLocationRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new WarehouseLocationsApi();
            var warehouseID = 56;  // Integer | The warehouse ID (default to null)
            var locationID = 56;  // Integer | The warehouse location ID (default to null)
            var warehouseLocationRequest = new WarehouseLocationRequest(); // WarehouseLocationRequest |  (optional) 

            try {
                // Rename a warehouse location
                httpActionResult_warehouseLocationResponse result = apiInstance.renameWarehouseLocation(warehouseID, locationID, warehouseLocationRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling WarehouseLocationsApi.renameWarehouseLocation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\WarehouseLocationsApi();
$warehouseID = 56; // Integer | The warehouse ID
$locationID = 56; // Integer | The warehouse location ID
$warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0}; // WarehouseLocationRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::WarehouseLocationsApi->new();
my $warehouseID = 56; # Integer | The warehouse ID
my $locationID = 56; # Integer | The warehouse location ID
my $warehouseLocationRequest = WWW::OPenAPIClient::Object::WarehouseLocationRequest->new(); # WarehouseLocationRequest | 

eval {
    my $result = $api_instance->renameWarehouseLocation(warehouseID => $warehouseID, locationID => $locationID, warehouseLocationRequest => $warehouseLocationRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WarehouseLocationsApi->renameWarehouseLocation: $@\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.WarehouseLocationsApi()
warehouseID = 56 # Integer | The warehouse ID (default to null)
locationID = 56 # Integer | The warehouse location ID (default to null)
warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0} # WarehouseLocationRequest |  (optional)

try:
    # Rename a warehouse location
    api_response = api_instance.rename_warehouse_location(warehouseID, locationID, warehouseLocationRequest=warehouseLocationRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WarehouseLocationsApi->renameWarehouseLocation: %s\n" % e)
extern crate WarehouseLocationsApi;

pub fn main() {
    let warehouseID = 56; // Integer
    let locationID = 56; // Integer
    let warehouseLocationRequest = {"name":"string","description":"string","parentWarehouseLocationID":0}; // WarehouseLocationRequest

    let mut context = WarehouseLocationsApi::Context::default();
    let result = client.renameWarehouseLocation(warehouseID, locationID, warehouseLocationRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
warehouseID*
Integer (int32)
The warehouse ID
Required
locationID*
Integer (int32)
The warehouse location ID
Required
Body parameters
Name Description
warehouseLocationRequest

Responses


Warehouses

createWarehouse

Create warehouses

Create warehouses for the tenant


/Spenda/WarehouseManagement/Warehouses

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        WarehousesApi apiInstance = new WarehousesApi();
        CreateWarehouseRequest createWarehouseRequest = {"tenantLocationID":0,"warehouseName":"string","warehouseCode":"string","description":"string","isMobileWarehouse":true,"reOrderWarehouseID":0,"assignedUserID":0}; // CreateWarehouseRequest | 

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

final api_instance = DefaultApi();

final CreateWarehouseRequest createWarehouseRequest = new CreateWarehouseRequest(); // CreateWarehouseRequest | 

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

import org.openapitools.client.api.WarehousesApi;

public class WarehousesApiExample {
    public static void main(String[] args) {
        WarehousesApi apiInstance = new WarehousesApi();
        CreateWarehouseRequest createWarehouseRequest = {"tenantLocationID":0,"warehouseName":"string","warehouseCode":"string","description":"string","isMobileWarehouse":true,"reOrderWarehouseID":0,"assignedUserID":0}; // CreateWarehouseRequest | 

        try {
            httpActionResult_createWarehouseResponse result = apiInstance.createWarehouse(createWarehouseRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehousesApi#createWarehouse");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
WarehousesApi *apiInstance = [[WarehousesApi alloc] init];
CreateWarehouseRequest *createWarehouseRequest = {"tenantLocationID":0,"warehouseName":"string","warehouseCode":"string","description":"string","isMobileWarehouse":true,"reOrderWarehouseID":0,"assignedUserID":0}; //  (optional)

// Create warehouses
[apiInstance createWarehouseWith:createWarehouseRequest
              completionHandler: ^(httpActionResult_createWarehouseResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesWarehouseManagement = require('spenda_services_warehouse_management');

// Create an instance of the API class
var api = new SpendaServicesWarehouseManagement.WarehousesApi()
var opts = {
  'createWarehouseRequest': {"tenantLocationID":0,"warehouseName":"string","warehouseCode":"string","description":"string","isMobileWarehouse":true,"reOrderWarehouseID":0,"assignedUserID":0} // {CreateWarehouseRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new WarehousesApi();
            var createWarehouseRequest = new CreateWarehouseRequest(); // CreateWarehouseRequest |  (optional) 

            try {
                // Create warehouses
                httpActionResult_createWarehouseResponse result = apiInstance.createWarehouse(createWarehouseRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling WarehousesApi.createWarehouse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\WarehousesApi();
$createWarehouseRequest = {"tenantLocationID":0,"warehouseName":"string","warehouseCode":"string","description":"string","isMobileWarehouse":true,"reOrderWarehouseID":0,"assignedUserID":0}; // CreateWarehouseRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::WarehousesApi->new();
my $createWarehouseRequest = WWW::OPenAPIClient::Object::CreateWarehouseRequest->new(); # CreateWarehouseRequest | 

eval {
    my $result = $api_instance->createWarehouse(createWarehouseRequest => $createWarehouseRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WarehousesApi->createWarehouse: $@\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.WarehousesApi()
createWarehouseRequest = {"tenantLocationID":0,"warehouseName":"string","warehouseCode":"string","description":"string","isMobileWarehouse":true,"reOrderWarehouseID":0,"assignedUserID":0} # CreateWarehouseRequest |  (optional)

try:
    # Create warehouses
    api_response = api_instance.create_warehouse(createWarehouseRequest=createWarehouseRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WarehousesApi->createWarehouse: %s\n" % e)
extern crate WarehousesApi;

pub fn main() {
    let createWarehouseRequest = {"tenantLocationID":0,"warehouseName":"string","warehouseCode":"string","description":"string","isMobileWarehouse":true,"reOrderWarehouseID":0,"assignedUserID":0}; // CreateWarehouseRequest

    let mut context = WarehousesApi::Context::default();
    let result = client.createWarehouse(createWarehouseRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
createWarehouseRequest

Responses


deleteWarehouse

Delete a warehouse

Delete a warehouse for a tenant


/Spenda/WarehouseManagement/Warehouses/{warehouseID}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/WarehouseManagement/Warehouses/{warehouseID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.WarehousesApi;

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

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

        // Create an instance of the API class
        WarehousesApi apiInstance = new WarehousesApi();
        Integer warehouseID = 56; // Integer | The Warehouse ID

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

final api_instance = DefaultApi();

final Integer warehouseID = new Integer(); // Integer | The Warehouse ID

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

import org.openapitools.client.api.WarehousesApi;

public class WarehousesApiExample {
    public static void main(String[] args) {
        WarehousesApi apiInstance = new WarehousesApi();
        Integer warehouseID = 56; // Integer | The Warehouse ID

        try {
            httpActionResult_deleteWarehouseResponse result = apiInstance.deleteWarehouse(warehouseID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehousesApi#deleteWarehouse");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
WarehousesApi *apiInstance = [[WarehousesApi alloc] init];
Integer *warehouseID = 56; // The Warehouse ID (default to null)

// Delete a warehouse
[apiInstance deleteWarehouseWith:warehouseID
              completionHandler: ^(httpActionResult_deleteWarehouseResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesWarehouseManagement = require('spenda_services_warehouse_management');

// Create an instance of the API class
var api = new SpendaServicesWarehouseManagement.WarehousesApi()
var warehouseID = 56; // {Integer} The Warehouse ID

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

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

            // Create an instance of the API class
            var apiInstance = new WarehousesApi();
            var warehouseID = 56;  // Integer | The Warehouse ID (default to null)

            try {
                // Delete a warehouse
                httpActionResult_deleteWarehouseResponse result = apiInstance.deleteWarehouse(warehouseID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling WarehousesApi.deleteWarehouse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\WarehousesApi();
$warehouseID = 56; // Integer | The Warehouse ID

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::WarehousesApi->new();
my $warehouseID = 56; # Integer | The Warehouse ID

eval {
    my $result = $api_instance->deleteWarehouse(warehouseID => $warehouseID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WarehousesApi->deleteWarehouse: $@\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.WarehousesApi()
warehouseID = 56 # Integer | The Warehouse ID (default to null)

try:
    # Delete a warehouse
    api_response = api_instance.delete_warehouse(warehouseID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WarehousesApi->deleteWarehouse: %s\n" % e)
extern crate WarehousesApi;

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

    let mut context = WarehousesApi::Context::default();
    let result = client.deleteWarehouse(warehouseID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
warehouseID*
Integer (int32)
The Warehouse ID
Required

Responses


getAllWarehouses

Get all warehouses

Get all warehouses for the tenant


/Spenda/WarehouseManagement/Warehouses

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/WarehouseManagement/Warehouses?MaxRecords=56&LastRecordID=56&WarehouseType=warehouseType_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.WarehousesApi;

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

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

        // Create an instance of the API class
        WarehousesApi apiInstance = new WarehousesApi();
        Integer maxRecords = 56; // Integer | The maximum number of warehouse records to return
        Integer lastRecordID = 56; // Integer | The last warehouse ID from the previous page, used for pagination
        String warehouseType = warehouseType_example; // String | Filter on a specific warehouse type. Default = undefined

        try {
            httpActionResult_getAllWarehousesResponse result = apiInstance.getAllWarehouses(maxRecords, lastRecordID, warehouseType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehousesApi#getAllWarehouses");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer maxRecords = new Integer(); // Integer | The maximum number of warehouse records to return
final Integer lastRecordID = new Integer(); // Integer | The last warehouse ID from the previous page, used for pagination
final String warehouseType = new String(); // String | Filter on a specific warehouse type. Default = undefined

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

import org.openapitools.client.api.WarehousesApi;

public class WarehousesApiExample {
    public static void main(String[] args) {
        WarehousesApi apiInstance = new WarehousesApi();
        Integer maxRecords = 56; // Integer | The maximum number of warehouse records to return
        Integer lastRecordID = 56; // Integer | The last warehouse ID from the previous page, used for pagination
        String warehouseType = warehouseType_example; // String | Filter on a specific warehouse type. Default = undefined

        try {
            httpActionResult_getAllWarehousesResponse result = apiInstance.getAllWarehouses(maxRecords, lastRecordID, warehouseType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehousesApi#getAllWarehouses");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
WarehousesApi *apiInstance = [[WarehousesApi alloc] init];
Integer *maxRecords = 56; // The maximum number of warehouse records to return (optional) (default to null)
Integer *lastRecordID = 56; // The last warehouse ID from the previous page, used for pagination (optional) (default to null)
String *warehouseType = warehouseType_example; // Filter on a specific warehouse type. Default = undefined (optional) (default to unknown)

// Get all warehouses
[apiInstance getAllWarehousesWith:maxRecords
    lastRecordID:lastRecordID
    warehouseType:warehouseType
              completionHandler: ^(httpActionResult_getAllWarehousesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesWarehouseManagement = require('spenda_services_warehouse_management');

// Create an instance of the API class
var api = new SpendaServicesWarehouseManagement.WarehousesApi()
var opts = {
  'maxRecords': 56, // {Integer} The maximum number of warehouse records to return
  'lastRecordID': 56, // {Integer} The last warehouse ID from the previous page, used for pagination
  'warehouseType': warehouseType_example // {String} Filter on a specific warehouse type. Default = undefined
};

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

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

            // Create an instance of the API class
            var apiInstance = new WarehousesApi();
            var maxRecords = 56;  // Integer | The maximum number of warehouse records to return (optional)  (default to null)
            var lastRecordID = 56;  // Integer | The last warehouse ID from the previous page, used for pagination (optional)  (default to null)
            var warehouseType = warehouseType_example;  // String | Filter on a specific warehouse type. Default = undefined (optional)  (default to unknown)

            try {
                // Get all warehouses
                httpActionResult_getAllWarehousesResponse result = apiInstance.getAllWarehouses(maxRecords, lastRecordID, warehouseType);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling WarehousesApi.getAllWarehouses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\WarehousesApi();
$maxRecords = 56; // Integer | The maximum number of warehouse records to return
$lastRecordID = 56; // Integer | The last warehouse ID from the previous page, used for pagination
$warehouseType = warehouseType_example; // String | Filter on a specific warehouse type. Default = undefined

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::WarehousesApi->new();
my $maxRecords = 56; # Integer | The maximum number of warehouse records to return
my $lastRecordID = 56; # Integer | The last warehouse ID from the previous page, used for pagination
my $warehouseType = warehouseType_example; # String | Filter on a specific warehouse type. Default = undefined

eval {
    my $result = $api_instance->getAllWarehouses(maxRecords => $maxRecords, lastRecordID => $lastRecordID, warehouseType => $warehouseType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WarehousesApi->getAllWarehouses: $@\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.WarehousesApi()
maxRecords = 56 # Integer | The maximum number of warehouse records to return (optional) (default to null)
lastRecordID = 56 # Integer | The last warehouse ID from the previous page, used for pagination (optional) (default to null)
warehouseType = warehouseType_example # String | Filter on a specific warehouse type. Default = undefined (optional) (default to unknown)

try:
    # Get all warehouses
    api_response = api_instance.get_all_warehouses(maxRecords=maxRecords, lastRecordID=lastRecordID, warehouseType=warehouseType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WarehousesApi->getAllWarehouses: %s\n" % e)
extern crate WarehousesApi;

pub fn main() {
    let maxRecords = 56; // Integer
    let lastRecordID = 56; // Integer
    let warehouseType = warehouseType_example; // String

    let mut context = WarehousesApi::Context::default();
    let result = client.getAllWarehouses(maxRecords, lastRecordID, warehouseType, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
MaxRecords
Integer (int32)
The maximum number of warehouse records to return
LastRecordID
Integer (int32)
The last warehouse ID from the previous page, used for pagination
WarehouseType
String
Filter on a specific warehouse type. Default = undefined

Responses


updateWarehouse

Update a warehouse

Update a warehouse


/Spenda/WarehouseManagement/Warehouses/{warehouseID}

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        WarehousesApi apiInstance = new WarehousesApi();
        Integer warehouseID = 56; // Integer | The warehouse ID
        UpdateWarehouseRequest updateWarehouseRequest = {"warehouseName":"string","warehouseCode":"string","description":"string","reOrderWarehouseID":0,"assignedUserID":0}; // UpdateWarehouseRequest | 

        try {
            httpActionResult_updateWarehouseResponse result = apiInstance.updateWarehouse(warehouseID, updateWarehouseRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehousesApi#updateWarehouse");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer warehouseID = new Integer(); // Integer | The warehouse ID
final UpdateWarehouseRequest updateWarehouseRequest = new UpdateWarehouseRequest(); // UpdateWarehouseRequest | 

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

import org.openapitools.client.api.WarehousesApi;

public class WarehousesApiExample {
    public static void main(String[] args) {
        WarehousesApi apiInstance = new WarehousesApi();
        Integer warehouseID = 56; // Integer | The warehouse ID
        UpdateWarehouseRequest updateWarehouseRequest = {"warehouseName":"string","warehouseCode":"string","description":"string","reOrderWarehouseID":0,"assignedUserID":0}; // UpdateWarehouseRequest | 

        try {
            httpActionResult_updateWarehouseResponse result = apiInstance.updateWarehouse(warehouseID, updateWarehouseRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarehousesApi#updateWarehouse");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
WarehousesApi *apiInstance = [[WarehousesApi alloc] init];
Integer *warehouseID = 56; // The warehouse ID (default to null)
UpdateWarehouseRequest *updateWarehouseRequest = {"warehouseName":"string","warehouseCode":"string","description":"string","reOrderWarehouseID":0,"assignedUserID":0}; //  (optional)

// Update a warehouse
[apiInstance updateWarehouseWith:warehouseID
    updateWarehouseRequest:updateWarehouseRequest
              completionHandler: ^(httpActionResult_updateWarehouseResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesWarehouseManagement = require('spenda_services_warehouse_management');

// Create an instance of the API class
var api = new SpendaServicesWarehouseManagement.WarehousesApi()
var warehouseID = 56; // {Integer} The warehouse ID
var opts = {
  'updateWarehouseRequest': {"warehouseName":"string","warehouseCode":"string","description":"string","reOrderWarehouseID":0,"assignedUserID":0} // {UpdateWarehouseRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new WarehousesApi();
            var warehouseID = 56;  // Integer | The warehouse ID (default to null)
            var updateWarehouseRequest = new UpdateWarehouseRequest(); // UpdateWarehouseRequest |  (optional) 

            try {
                // Update a warehouse
                httpActionResult_updateWarehouseResponse result = apiInstance.updateWarehouse(warehouseID, updateWarehouseRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling WarehousesApi.updateWarehouse: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\WarehousesApi();
$warehouseID = 56; // Integer | The warehouse ID
$updateWarehouseRequest = {"warehouseName":"string","warehouseCode":"string","description":"string","reOrderWarehouseID":0,"assignedUserID":0}; // UpdateWarehouseRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::WarehousesApi->new();
my $warehouseID = 56; # Integer | The warehouse ID
my $updateWarehouseRequest = WWW::OPenAPIClient::Object::UpdateWarehouseRequest->new(); # UpdateWarehouseRequest | 

eval {
    my $result = $api_instance->updateWarehouse(warehouseID => $warehouseID, updateWarehouseRequest => $updateWarehouseRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WarehousesApi->updateWarehouse: $@\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.WarehousesApi()
warehouseID = 56 # Integer | The warehouse ID (default to null)
updateWarehouseRequest = {"warehouseName":"string","warehouseCode":"string","description":"string","reOrderWarehouseID":0,"assignedUserID":0} # UpdateWarehouseRequest |  (optional)

try:
    # Update a warehouse
    api_response = api_instance.update_warehouse(warehouseID, updateWarehouseRequest=updateWarehouseRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WarehousesApi->updateWarehouse: %s\n" % e)
extern crate WarehousesApi;

pub fn main() {
    let warehouseID = 56; // Integer
    let updateWarehouseRequest = {"warehouseName":"string","warehouseCode":"string","description":"string","reOrderWarehouseID":0,"assignedUserID":0}; // UpdateWarehouseRequest

    let mut context = WarehousesApi::Context::default();
    let result = client.updateWarehouse(warehouseID, updateWarehouseRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
warehouseID*
Integer (int32)
The warehouse ID
Required
Body parameters
Name Description
updateWarehouseRequest

Responses