Spenda.Services.Inventory

Categories

upsertCategories

Add or update Categories.

Add or update Categories.


/Spenda/Inventory/Categories

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/Categories" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CategoriesApi;

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

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

        // Create an instance of the API class
        CategoriesApi apiInstance = new CategoriesApi();
        UpsertCategoriesRequest upsertCategoriesRequest = {"categories":[{"categoryID":0,"parentCategoryID":0,"name":"string","description":"string","mediaFileIDs":[0]}]}; // UpsertCategoriesRequest | 

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

final api_instance = DefaultApi();

final UpsertCategoriesRequest upsertCategoriesRequest = new UpsertCategoriesRequest(); // UpsertCategoriesRequest | 

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

import org.openapitools.client.api.CategoriesApi;

public class CategoriesApiExample {
    public static void main(String[] args) {
        CategoriesApi apiInstance = new CategoriesApi();
        UpsertCategoriesRequest upsertCategoriesRequest = {"categories":[{"categoryID":0,"parentCategoryID":0,"name":"string","description":"string","mediaFileIDs":[0]}]}; // UpsertCategoriesRequest | 

        try {
            httpActionResult_upsertCategoriesResponse result = apiInstance.upsertCategories(upsertCategoriesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategoriesApi#upsertCategories");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
CategoriesApi *apiInstance = [[CategoriesApi alloc] init];
UpsertCategoriesRequest *upsertCategoriesRequest = {"categories":[{"categoryID":0,"parentCategoryID":0,"name":"string","description":"string","mediaFileIDs":[0]}]}; //  (optional)

// Add or update Categories.
[apiInstance upsertCategoriesWith:upsertCategoriesRequest
              completionHandler: ^(httpActionResult_upsertCategoriesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.CategoriesApi()
var opts = {
  'upsertCategoriesRequest': {"categories":[{"categoryID":0,"parentCategoryID":0,"name":"string","description":"string","mediaFileIDs":[0]}]} // {UpsertCategoriesRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new CategoriesApi();
            var upsertCategoriesRequest = new UpsertCategoriesRequest(); // UpsertCategoriesRequest |  (optional) 

            try {
                // Add or update Categories.
                httpActionResult_upsertCategoriesResponse result = apiInstance.upsertCategories(upsertCategoriesRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CategoriesApi.upsertCategories: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CategoriesApi();
$upsertCategoriesRequest = {"categories":[{"categoryID":0,"parentCategoryID":0,"name":"string","description":"string","mediaFileIDs":[0]}]}; // UpsertCategoriesRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CategoriesApi->new();
my $upsertCategoriesRequest = WWW::OPenAPIClient::Object::UpsertCategoriesRequest->new(); # UpsertCategoriesRequest | 

eval {
    my $result = $api_instance->upsertCategories(upsertCategoriesRequest => $upsertCategoriesRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CategoriesApi->upsertCategories: $@\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.CategoriesApi()
upsertCategoriesRequest = {"categories":[{"categoryID":0,"parentCategoryID":0,"name":"string","description":"string","mediaFileIDs":[0]}]} # UpsertCategoriesRequest |  (optional)

try:
    # Add or update Categories.
    api_response = api_instance.upsert_categories(upsertCategoriesRequest=upsertCategoriesRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CategoriesApi->upsertCategories: %s\n" % e)
extern crate CategoriesApi;

pub fn main() {
    let upsertCategoriesRequest = {"categories":[{"categoryID":0,"parentCategoryID":0,"name":"string","description":"string","mediaFileIDs":[0]}]}; // UpsertCategoriesRequest

    let mut context = CategoriesApi::Context::default();
    let result = client.upsertCategories(upsertCategoriesRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
upsertCategoriesRequest

Responses


Inventory

checkCSVType

Determine the upload type of a csv file.

Determine the upload type of a csv file.


/Spenda/Inventory/CheckCSVType

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: text/plain" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/CheckCSVType" \
 -d 'Custom MIME type example not yet supported: text/plain'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        String body = body_example; // String | 

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

final api_instance = DefaultApi();

final String body = new String(); // String | 

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

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        String body = body_example; // String | 

        try {
            httpActionResult_uploadFileResponse result = apiInstance.checkCSVType(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#checkCSVType");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
String *body = body_example; //  (optional)

// Determine the upload type of a csv file.
[apiInstance checkCSVTypeWith:body
              completionHandler: ^(httpActionResult_uploadFileResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var opts = {
  'body': body_example // {String} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var body = body_example;  // String |  (optional) 

            try {
                // Determine the upload type of a csv file.
                httpActionResult_uploadFileResponse result = apiInstance.checkCSVType(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.checkCSVType: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$body = body_example; // String | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $body = WWW::OPenAPIClient::Object::String->new(); # String | 

eval {
    my $result = $api_instance->checkCSVType(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->checkCSVType: $@\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.InventoryApi()
body = body_example # String |  (optional)

try:
    # Determine the upload type of a csv file.
    api_response = api_instance.check_csv_type(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->checkCSVType: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let body = body_example; // String

    let mut context = InventoryApi::Context::default();
    let result = client.checkCSVType(body, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
body

Gets upload type.

Responses


commitStagingInventory

Commit staging inventory in context of the member tenant.

Allows a member tenant to commit staging inventory.


/Spenda/Inventory/StagingInventory/Commit

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/StagingInventory/Commit"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.InventoryApi;

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

        try {
            httpActionResult_commitStagingInventoryResponse result = apiInstance.commitStagingInventory();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#commitStagingInventory");
            e.printStackTrace();
        }
    }
}


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

// Commit staging inventory in context of the member tenant.
[apiInstance commitStagingInventoryWithCompletionHandler: 
              ^(httpActionResult_commitStagingInventoryResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

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

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

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

            try {
                // Commit staging inventory in context of the member tenant.
                httpActionResult_commitStagingInventoryResponse result = apiInstance.commitStagingInventory();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.commitStagingInventory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Commit staging inventory in context of the member tenant.
    api_response = api_instance.commit_staging_inventory()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->commitStagingInventory: %s\n" % e)
extern crate InventoryApi;

pub fn main() {

    let mut context = InventoryApi::Context::default();
    let result = client.commitStagingInventory(&context).wait();

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

Scopes

Parameters

Responses


commitStagingVariant

Commit staging variant in context of the member tenant.

Allows a member tenant to commit staging variant.


/Spenda/Inventory/StagingVariant/Commit

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/StagingVariant/Commit"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.InventoryApi;

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

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


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

// Commit staging variant in context of the member tenant.
[apiInstance commitStagingVariantWithCompletionHandler: 
              ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

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

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

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

            try {
                // Commit staging variant in context of the member tenant.
                httpActionResult result = apiInstance.commitStagingVariant();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.commitStagingVariant: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Commit staging variant in context of the member tenant.
    api_response = api_instance.commit_staging_variant()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->commitStagingVariant: %s\n" % e)
extern crate InventoryApi;

pub fn main() {

    let mut context = InventoryApi::Context::default();
    let result = client.commitStagingVariant(&context).wait();

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

Scopes

Parameters

Responses


commitStagingVariationOption

Commit staging variation option in context of the member tenant.

Allows a member tenant to commit staging variation option.


/Spenda/Inventory/StagingVariationOption/Commit

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/StagingVariationOption/Commit"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.InventoryApi;

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

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


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

// Commit staging variation option in context of the member tenant.
[apiInstance commitStagingVariationOptionWithCompletionHandler: 
              ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

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

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

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

            try {
                // Commit staging variation option in context of the member tenant.
                httpActionResult result = apiInstance.commitStagingVariationOption();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.commitStagingVariationOption: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Commit staging variation option in context of the member tenant.
    api_response = api_instance.commit_staging_variation_option()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->commitStagingVariationOption: %s\n" % e)
extern crate InventoryApi;

pub fn main() {

    let mut context = InventoryApi::Context::default();
    let result = client.commitStagingVariationOption(&context).wait();

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

Scopes

Parameters

Responses


commitStagingWarranty

Commit staging warranty in context of the member tenant.

Allows a member tenant to commit staging warranty.


/Spenda/Inventory/StagingWarranty/Commit

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/StagingWarranty/Commit"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.InventoryApi;

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

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


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

// Commit staging warranty in context of the member tenant.
[apiInstance commitStagingWarrantyWithCompletionHandler: 
              ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

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

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

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

            try {
                // Commit staging warranty in context of the member tenant.
                httpActionResult result = apiInstance.commitStagingWarranty();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.commitStagingWarranty: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Commit staging warranty in context of the member tenant.
    api_response = api_instance.commit_staging_warranty()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->commitStagingWarranty: %s\n" % e)
extern crate InventoryApi;

pub fn main() {

    let mut context = InventoryApi::Context::default();
    let result = client.commitStagingWarranty(&context).wait();

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

Scopes

Parameters

Responses


deleteCatalogue

Deletes an upload in context of the member tenant.

Allows a member tenant to delete Inventory staging.


/Spenda/Inventory/Staging/{UploadTypeID}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/Staging/{UploadTypeID}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        String uploadTypeID = uploadTypeID_example; // String | Import Identifier: Inventory, Variants, Warranty

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

final api_instance = DefaultApi();

final String uploadTypeID = new String(); // String | Import Identifier: Inventory, Variants, Warranty

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

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        String uploadTypeID = uploadTypeID_example; // String | Import Identifier: Inventory, Variants, Warranty

        try {
            httpActionResult_deleteCatalogueResponse result = apiInstance.deleteCatalogue(uploadTypeID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#deleteCatalogue");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
String *uploadTypeID = uploadTypeID_example; // Import Identifier: Inventory, Variants, Warranty (default to none)

// Deletes an upload in context of the member tenant.
[apiInstance deleteCatalogueWith:uploadTypeID
              completionHandler: ^(httpActionResult_deleteCatalogueResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var uploadTypeID = uploadTypeID_example; // {String} Import Identifier: Inventory, Variants, Warranty

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var uploadTypeID = uploadTypeID_example;  // String | Import Identifier: Inventory, Variants, Warranty (default to none)

            try {
                // Deletes an upload in context of the member tenant.
                httpActionResult_deleteCatalogueResponse result = apiInstance.deleteCatalogue(uploadTypeID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.deleteCatalogue: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$uploadTypeID = uploadTypeID_example; // String | Import Identifier: Inventory, Variants, Warranty

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $uploadTypeID = uploadTypeID_example; # String | Import Identifier: Inventory, Variants, Warranty

eval {
    my $result = $api_instance->deleteCatalogue(uploadTypeID => $uploadTypeID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->deleteCatalogue: $@\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.InventoryApi()
uploadTypeID = uploadTypeID_example # String | Import Identifier: Inventory, Variants, Warranty (default to none)

try:
    # Deletes an upload in context of the member tenant.
    api_response = api_instance.delete_catalogue(uploadTypeID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->deleteCatalogue: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let uploadTypeID = uploadTypeID_example; // String

    let mut context = InventoryApi::Context::default();
    let result = client.deleteCatalogue(uploadTypeID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
UploadTypeID*
String
Import Identifier: Inventory, Variants, Warranty
Required

Responses


deleteStagingInventory

Deletes staging inventory in context of the member tenant.

Allows a member tenant to delete specific Inventory staging.


/Spenda/Inventory/StagingInventory

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/StagingInventory" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        DeleteStagingInventoryRequest deleteStagingInventoryRequest = {"inventoryCSVIDs":[0]}; // DeleteStagingInventoryRequest | 

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

final api_instance = DefaultApi();

final DeleteStagingInventoryRequest deleteStagingInventoryRequest = new DeleteStagingInventoryRequest(); // DeleteStagingInventoryRequest | 

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

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        DeleteStagingInventoryRequest deleteStagingInventoryRequest = {"inventoryCSVIDs":[0]}; // DeleteStagingInventoryRequest | 

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


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
DeleteStagingInventoryRequest *deleteStagingInventoryRequest = {"inventoryCSVIDs":[0]}; //  (optional)

// Deletes staging inventory in context of the member tenant.
[apiInstance deleteStagingInventoryWith:deleteStagingInventoryRequest
              completionHandler: ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var opts = {
  'deleteStagingInventoryRequest': {"inventoryCSVIDs":[0]} // {DeleteStagingInventoryRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var deleteStagingInventoryRequest = new DeleteStagingInventoryRequest(); // DeleteStagingInventoryRequest |  (optional) 

            try {
                // Deletes staging inventory in context of the member tenant.
                httpActionResult result = apiInstance.deleteStagingInventory(deleteStagingInventoryRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.deleteStagingInventory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$deleteStagingInventoryRequest = {"inventoryCSVIDs":[0]}; // DeleteStagingInventoryRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $deleteStagingInventoryRequest = WWW::OPenAPIClient::Object::DeleteStagingInventoryRequest->new(); # DeleteStagingInventoryRequest | 

eval {
    my $result = $api_instance->deleteStagingInventory(deleteStagingInventoryRequest => $deleteStagingInventoryRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->deleteStagingInventory: $@\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.InventoryApi()
deleteStagingInventoryRequest = {"inventoryCSVIDs":[0]} # DeleteStagingInventoryRequest |  (optional)

try:
    # Deletes staging inventory in context of the member tenant.
    api_response = api_instance.delete_staging_inventory(deleteStagingInventoryRequest=deleteStagingInventoryRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->deleteStagingInventory: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let deleteStagingInventoryRequest = {"inventoryCSVIDs":[0]}; // DeleteStagingInventoryRequest

    let mut context = InventoryApi::Context::default();
    let result = client.deleteStagingInventory(deleteStagingInventoryRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
deleteStagingInventoryRequest

Responses


deleteStagingInventoryVariant

Deletes staging inventory variant in context of the member tenant.

Allows a member tenant to delete specific Inventory variant staging.


/Spenda/Inventory/StagingVariant

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/StagingVariant" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        DeleteStagingVariantRequest deleteStagingVariantRequest = {"inventoryVariantCSVIDs":[0]}; // DeleteStagingVariantRequest | 

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

final api_instance = DefaultApi();

final DeleteStagingVariantRequest deleteStagingVariantRequest = new DeleteStagingVariantRequest(); // DeleteStagingVariantRequest | 

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

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        DeleteStagingVariantRequest deleteStagingVariantRequest = {"inventoryVariantCSVIDs":[0]}; // DeleteStagingVariantRequest | 

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


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
DeleteStagingVariantRequest *deleteStagingVariantRequest = {"inventoryVariantCSVIDs":[0]}; //  (optional)

// Deletes staging inventory variant in context of the member tenant.
[apiInstance deleteStagingInventoryVariantWith:deleteStagingVariantRequest
              completionHandler: ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var opts = {
  'deleteStagingVariantRequest': {"inventoryVariantCSVIDs":[0]} // {DeleteStagingVariantRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var deleteStagingVariantRequest = new DeleteStagingVariantRequest(); // DeleteStagingVariantRequest |  (optional) 

            try {
                // Deletes staging inventory variant in context of the member tenant.
                httpActionResult result = apiInstance.deleteStagingInventoryVariant(deleteStagingVariantRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.deleteStagingInventoryVariant: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$deleteStagingVariantRequest = {"inventoryVariantCSVIDs":[0]}; // DeleteStagingVariantRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $deleteStagingVariantRequest = WWW::OPenAPIClient::Object::DeleteStagingVariantRequest->new(); # DeleteStagingVariantRequest | 

eval {
    my $result = $api_instance->deleteStagingInventoryVariant(deleteStagingVariantRequest => $deleteStagingVariantRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->deleteStagingInventoryVariant: $@\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.InventoryApi()
deleteStagingVariantRequest = {"inventoryVariantCSVIDs":[0]} # DeleteStagingVariantRequest |  (optional)

try:
    # Deletes staging inventory variant in context of the member tenant.
    api_response = api_instance.delete_staging_inventory_variant(deleteStagingVariantRequest=deleteStagingVariantRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->deleteStagingInventoryVariant: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let deleteStagingVariantRequest = {"inventoryVariantCSVIDs":[0]}; // DeleteStagingVariantRequest

    let mut context = InventoryApi::Context::default();
    let result = client.deleteStagingInventoryVariant(deleteStagingVariantRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
deleteStagingVariantRequest

Responses


deleteStagingInventoryWarranty

Deletes staging inventory warranty in context of the member tenant.

Allows a member tenant to delete specific Inventory warranty staging.


/Spenda/Inventory/StagingWarranty

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/StagingWarranty" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        DeleteStagingInventoryWarrantyRequest deleteStagingInventoryWarrantyRequest = {"inventoryWarrantyCSVIDs":[0]}; // DeleteStagingInventoryWarrantyRequest | 

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

final api_instance = DefaultApi();

final DeleteStagingInventoryWarrantyRequest deleteStagingInventoryWarrantyRequest = new DeleteStagingInventoryWarrantyRequest(); // DeleteStagingInventoryWarrantyRequest | 

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

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        DeleteStagingInventoryWarrantyRequest deleteStagingInventoryWarrantyRequest = {"inventoryWarrantyCSVIDs":[0]}; // DeleteStagingInventoryWarrantyRequest | 

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


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
DeleteStagingInventoryWarrantyRequest *deleteStagingInventoryWarrantyRequest = {"inventoryWarrantyCSVIDs":[0]}; //  (optional)

// Deletes staging inventory warranty in context of the member tenant.
[apiInstance deleteStagingInventoryWarrantyWith:deleteStagingInventoryWarrantyRequest
              completionHandler: ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var opts = {
  'deleteStagingInventoryWarrantyRequest': {"inventoryWarrantyCSVIDs":[0]} // {DeleteStagingInventoryWarrantyRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var deleteStagingInventoryWarrantyRequest = new DeleteStagingInventoryWarrantyRequest(); // DeleteStagingInventoryWarrantyRequest |  (optional) 

            try {
                // Deletes staging inventory warranty in context of the member tenant.
                httpActionResult result = apiInstance.deleteStagingInventoryWarranty(deleteStagingInventoryWarrantyRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.deleteStagingInventoryWarranty: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$deleteStagingInventoryWarrantyRequest = {"inventoryWarrantyCSVIDs":[0]}; // DeleteStagingInventoryWarrantyRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $deleteStagingInventoryWarrantyRequest = WWW::OPenAPIClient::Object::DeleteStagingInventoryWarrantyRequest->new(); # DeleteStagingInventoryWarrantyRequest | 

eval {
    my $result = $api_instance->deleteStagingInventoryWarranty(deleteStagingInventoryWarrantyRequest => $deleteStagingInventoryWarrantyRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->deleteStagingInventoryWarranty: $@\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.InventoryApi()
deleteStagingInventoryWarrantyRequest = {"inventoryWarrantyCSVIDs":[0]} # DeleteStagingInventoryWarrantyRequest |  (optional)

try:
    # Deletes staging inventory warranty in context of the member tenant.
    api_response = api_instance.delete_staging_inventory_warranty(deleteStagingInventoryWarrantyRequest=deleteStagingInventoryWarrantyRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->deleteStagingInventoryWarranty: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let deleteStagingInventoryWarrantyRequest = {"inventoryWarrantyCSVIDs":[0]}; // DeleteStagingInventoryWarrantyRequest

    let mut context = InventoryApi::Context::default();
    let result = client.deleteStagingInventoryWarranty(deleteStagingInventoryWarrantyRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
deleteStagingInventoryWarrantyRequest

Responses


deleteStagingVariationOption

Deletes staging variation option in context of the member tenant.

Allows a member tenant to delete specific Inventory variation option staging.


/Spenda/Inventory/StagingVariationOption

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/StagingVariationOption" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        DeleteStagingVariationOptionRequest deleteStagingVariationOptionRequest = {"variationOptionCSVIDs":[0]}; // DeleteStagingVariationOptionRequest | 

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

final api_instance = DefaultApi();

final DeleteStagingVariationOptionRequest deleteStagingVariationOptionRequest = new DeleteStagingVariationOptionRequest(); // DeleteStagingVariationOptionRequest | 

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

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        DeleteStagingVariationOptionRequest deleteStagingVariationOptionRequest = {"variationOptionCSVIDs":[0]}; // DeleteStagingVariationOptionRequest | 

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


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
DeleteStagingVariationOptionRequest *deleteStagingVariationOptionRequest = {"variationOptionCSVIDs":[0]}; //  (optional)

// Deletes staging variation option in context of the member tenant.
[apiInstance deleteStagingVariationOptionWith:deleteStagingVariationOptionRequest
              completionHandler: ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var opts = {
  'deleteStagingVariationOptionRequest': {"variationOptionCSVIDs":[0]} // {DeleteStagingVariationOptionRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var deleteStagingVariationOptionRequest = new DeleteStagingVariationOptionRequest(); // DeleteStagingVariationOptionRequest |  (optional) 

            try {
                // Deletes staging variation option in context of the member tenant.
                httpActionResult result = apiInstance.deleteStagingVariationOption(deleteStagingVariationOptionRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.deleteStagingVariationOption: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$deleteStagingVariationOptionRequest = {"variationOptionCSVIDs":[0]}; // DeleteStagingVariationOptionRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $deleteStagingVariationOptionRequest = WWW::OPenAPIClient::Object::DeleteStagingVariationOptionRequest->new(); # DeleteStagingVariationOptionRequest | 

eval {
    my $result = $api_instance->deleteStagingVariationOption(deleteStagingVariationOptionRequest => $deleteStagingVariationOptionRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->deleteStagingVariationOption: $@\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.InventoryApi()
deleteStagingVariationOptionRequest = {"variationOptionCSVIDs":[0]} # DeleteStagingVariationOptionRequest |  (optional)

try:
    # Deletes staging variation option in context of the member tenant.
    api_response = api_instance.delete_staging_variation_option(deleteStagingVariationOptionRequest=deleteStagingVariationOptionRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->deleteStagingVariationOption: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let deleteStagingVariationOptionRequest = {"variationOptionCSVIDs":[0]}; // DeleteStagingVariationOptionRequest

    let mut context = InventoryApi::Context::default();
    let result = client.deleteStagingVariationOption(deleteStagingVariationOptionRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
deleteStagingVariationOptionRequest

Responses


downloadCSVTemplate

Download CSV template (headers) for bulk imports.

Download CSV template (headers) for bulk imports.


/Spenda/Inventory/Download/Template/{DownloadFileType}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/csv" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/Download/Template/{DownloadFileType}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        String downloadFileType = downloadFileType_example; // String | The type of template file to download: Inventory, Variants, Warranty

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

final api_instance = DefaultApi();

final String downloadFileType = new String(); // String | The type of template file to download: Inventory, Variants, Warranty

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

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        String downloadFileType = downloadFileType_example; // String | The type of template file to download: Inventory, Variants, Warranty

        try {
            'String' result = apiInstance.downloadCSVTemplate(downloadFileType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#downloadCSVTemplate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
String *downloadFileType = downloadFileType_example; // The type of template file to download: Inventory, Variants, Warranty (default to none)

// Download CSV template (headers) for bulk imports.
[apiInstance downloadCSVTemplateWith:downloadFileType
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var downloadFileType = downloadFileType_example; // {String} The type of template file to download: Inventory, Variants, Warranty

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var downloadFileType = downloadFileType_example;  // String | The type of template file to download: Inventory, Variants, Warranty (default to none)

            try {
                // Download CSV template (headers) for bulk imports.
                'String' result = apiInstance.downloadCSVTemplate(downloadFileType);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.downloadCSVTemplate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$downloadFileType = downloadFileType_example; // String | The type of template file to download: Inventory, Variants, Warranty

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $downloadFileType = downloadFileType_example; # String | The type of template file to download: Inventory, Variants, Warranty

eval {
    my $result = $api_instance->downloadCSVTemplate(downloadFileType => $downloadFileType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->downloadCSVTemplate: $@\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.InventoryApi()
downloadFileType = downloadFileType_example # String | The type of template file to download: Inventory, Variants, Warranty (default to none)

try:
    # Download CSV template (headers) for bulk imports.
    api_response = api_instance.download_csv_template(downloadFileType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->downloadCSVTemplate: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let downloadFileType = downloadFileType_example; // String

    let mut context = InventoryApi::Context::default();
    let result = client.downloadCSVTemplate(downloadFileType, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
DownloadFileType*
String
The type of template file to download: Inventory, Variants, Warranty
Required

Responses


downloadInventory

Download Inventory CSV.

Allows a member tenant to download inventory csv.


/Spenda/Inventory/Download/Inventory

Usage and SDK Samples

curl -X GET \
 -H "Accept: text/csv,application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/Download/Inventory?SortField=sortField_example&SortOrder=sortOrder_example&SearchString=searchString_example&IsShowActiveOnly=true&IsShowChildVariants=true&CategoryIDs=&IDs=&BrandIDs=&Types=&SupplierID=56&ClassID=56&WarehouseID=56&IsShowPostingInventoryOnly=true&IsShowPublishedOnly=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        String sortField = sortField_example; // String | Sort Field
        String sortOrder = sortOrder_example; // String | Sort order
        String searchString = searchString_example; // String | The search string
        Boolean isShowActiveOnly = true; // Boolean | Download active inventory 
        Boolean isShowChildVariants = true; // Boolean | Download child variant 
        array[Integer] categoryIDs = ; // array[Integer] | Category IDs
        array[Integer] iDs = ; // array[Integer] | IDs
        array[Integer] brandIDs = ; // array[Integer] | Brand IDs
        array[String] types = ; // array[String] | Types
        Integer supplierID = 56; // Integer | Supplier ID
        Integer classID = 56; // Integer | Class ID
        Integer warehouseID = 56; // Integer | Warehouse ID
        Boolean isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
        Boolean isShowPublishedOnly = true; // Boolean | Download published only 

        try {
            'String' result = apiInstance.downloadInventory(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#downloadInventory");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String sortField = new String(); // String | Sort Field
final String sortOrder = new String(); // String | Sort order
final String searchString = new String(); // String | The search string
final Boolean isShowActiveOnly = new Boolean(); // Boolean | Download active inventory 
final Boolean isShowChildVariants = new Boolean(); // Boolean | Download child variant 
final array[Integer] categoryIDs = new array[Integer](); // array[Integer] | Category IDs
final array[Integer] iDs = new array[Integer](); // array[Integer] | IDs
final array[Integer] brandIDs = new array[Integer](); // array[Integer] | Brand IDs
final array[String] types = new array[String](); // array[String] | Types
final Integer supplierID = new Integer(); // Integer | Supplier ID
final Integer classID = new Integer(); // Integer | Class ID
final Integer warehouseID = new Integer(); // Integer | Warehouse ID
final Boolean isShowPostingInventoryOnly = new Boolean(); // Boolean | Download posting inventory only 
final Boolean isShowPublishedOnly = new Boolean(); // Boolean | Download published only 

try {
    final result = await api_instance.downloadInventory(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->downloadInventory: $e\n');
}

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        String sortField = sortField_example; // String | Sort Field
        String sortOrder = sortOrder_example; // String | Sort order
        String searchString = searchString_example; // String | The search string
        Boolean isShowActiveOnly = true; // Boolean | Download active inventory 
        Boolean isShowChildVariants = true; // Boolean | Download child variant 
        array[Integer] categoryIDs = ; // array[Integer] | Category IDs
        array[Integer] iDs = ; // array[Integer] | IDs
        array[Integer] brandIDs = ; // array[Integer] | Brand IDs
        array[String] types = ; // array[String] | Types
        Integer supplierID = 56; // Integer | Supplier ID
        Integer classID = 56; // Integer | Class ID
        Integer warehouseID = 56; // Integer | Warehouse ID
        Boolean isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
        Boolean isShowPublishedOnly = true; // Boolean | Download published only 

        try {
            'String' result = apiInstance.downloadInventory(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#downloadInventory");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
String *sortField = sortField_example; // Sort Field (default to null)
String *sortOrder = sortOrder_example; // Sort order (default to null)
String *searchString = searchString_example; // The search string (optional) (default to null)
Boolean *isShowActiveOnly = true; // Download active inventory  (optional) (default to null)
Boolean *isShowChildVariants = true; // Download child variant  (optional) (default to null)
array[Integer] *categoryIDs = ; // Category IDs (optional) (default to null)
array[Integer] *iDs = ; // IDs (optional) (default to null)
array[Integer] *brandIDs = ; // Brand IDs (optional) (default to null)
array[String] *types = ; // Types (optional) (default to null)
Integer *supplierID = 56; // Supplier ID (optional) (default to null)
Integer *classID = 56; // Class ID (optional) (default to null)
Integer *warehouseID = 56; // Warehouse ID (optional) (default to null)
Boolean *isShowPostingInventoryOnly = true; // Download posting inventory only  (optional) (default to null)
Boolean *isShowPublishedOnly = true; // Download published only  (optional) (default to null)

// Download Inventory CSV.
[apiInstance downloadInventoryWith:sortField
    sortOrder:sortOrder
    searchString:searchString
    isShowActiveOnly:isShowActiveOnly
    isShowChildVariants:isShowChildVariants
    categoryIDs:categoryIDs
    iDs:iDs
    brandIDs:brandIDs
    types:types
    supplierID:supplierID
    classID:classID
    warehouseID:warehouseID
    isShowPostingInventoryOnly:isShowPostingInventoryOnly
    isShowPublishedOnly:isShowPublishedOnly
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var sortField = sortField_example; // {String} Sort Field
var sortOrder = sortOrder_example; // {String} Sort order
var opts = {
  'searchString': searchString_example, // {String} The search string
  'isShowActiveOnly': true, // {Boolean} Download active inventory 
  'isShowChildVariants': true, // {Boolean} Download child variant 
  'categoryIDs': , // {array[Integer]} Category IDs
  'iDs': , // {array[Integer]} IDs
  'brandIDs': , // {array[Integer]} Brand IDs
  'types': , // {array[String]} Types
  'supplierID': 56, // {Integer} Supplier ID
  'classID': 56, // {Integer} Class ID
  'warehouseID': 56, // {Integer} Warehouse ID
  'isShowPostingInventoryOnly': true, // {Boolean} Download posting inventory only 
  'isShowPublishedOnly': true // {Boolean} Download published only 
};

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var sortField = sortField_example;  // String | Sort Field (default to null)
            var sortOrder = sortOrder_example;  // String | Sort order (default to null)
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)
            var isShowActiveOnly = true;  // Boolean | Download active inventory  (optional)  (default to null)
            var isShowChildVariants = true;  // Boolean | Download child variant  (optional)  (default to null)
            var categoryIDs = new array[Integer](); // array[Integer] | Category IDs (optional)  (default to null)
            var iDs = new array[Integer](); // array[Integer] | IDs (optional)  (default to null)
            var brandIDs = new array[Integer](); // array[Integer] | Brand IDs (optional)  (default to null)
            var types = new array[String](); // array[String] | Types (optional)  (default to null)
            var supplierID = 56;  // Integer | Supplier ID (optional)  (default to null)
            var classID = 56;  // Integer | Class ID (optional)  (default to null)
            var warehouseID = 56;  // Integer | Warehouse ID (optional)  (default to null)
            var isShowPostingInventoryOnly = true;  // Boolean | Download posting inventory only  (optional)  (default to null)
            var isShowPublishedOnly = true;  // Boolean | Download published only  (optional)  (default to null)

            try {
                // Download Inventory CSV.
                'String' result = apiInstance.downloadInventory(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.downloadInventory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$sortField = sortField_example; // String | Sort Field
$sortOrder = sortOrder_example; // String | Sort order
$searchString = searchString_example; // String | The search string
$isShowActiveOnly = true; // Boolean | Download active inventory 
$isShowChildVariants = true; // Boolean | Download child variant 
$categoryIDs = ; // array[Integer] | Category IDs
$iDs = ; // array[Integer] | IDs
$brandIDs = ; // array[Integer] | Brand IDs
$types = ; // array[String] | Types
$supplierID = 56; // Integer | Supplier ID
$classID = 56; // Integer | Class ID
$warehouseID = 56; // Integer | Warehouse ID
$isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
$isShowPublishedOnly = true; // Boolean | Download published only 

try {
    $result = $api_instance->downloadInventory($sortField, $sortOrder, $searchString, $isShowActiveOnly, $isShowChildVariants, $categoryIDs, $iDs, $brandIDs, $types, $supplierID, $classID, $warehouseID, $isShowPostingInventoryOnly, $isShowPublishedOnly);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InventoryApi->downloadInventory: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InventoryApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $sortField = sortField_example; # String | Sort Field
my $sortOrder = sortOrder_example; # String | Sort order
my $searchString = searchString_example; # String | The search string
my $isShowActiveOnly = true; # Boolean | Download active inventory 
my $isShowChildVariants = true; # Boolean | Download child variant 
my $categoryIDs = []; # array[Integer] | Category IDs
my $iDs = []; # array[Integer] | IDs
my $brandIDs = []; # array[Integer] | Brand IDs
my $types = []; # array[String] | Types
my $supplierID = 56; # Integer | Supplier ID
my $classID = 56; # Integer | Class ID
my $warehouseID = 56; # Integer | Warehouse ID
my $isShowPostingInventoryOnly = true; # Boolean | Download posting inventory only 
my $isShowPublishedOnly = true; # Boolean | Download published only 

eval {
    my $result = $api_instance->downloadInventory(sortField => $sortField, sortOrder => $sortOrder, searchString => $searchString, isShowActiveOnly => $isShowActiveOnly, isShowChildVariants => $isShowChildVariants, categoryIDs => $categoryIDs, iDs => $iDs, brandIDs => $brandIDs, types => $types, supplierID => $supplierID, classID => $classID, warehouseID => $warehouseID, isShowPostingInventoryOnly => $isShowPostingInventoryOnly, isShowPublishedOnly => $isShowPublishedOnly);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->downloadInventory: $@\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.InventoryApi()
sortField = sortField_example # String | Sort Field (default to null)
sortOrder = sortOrder_example # String | Sort order (default to null)
searchString = searchString_example # String | The search string (optional) (default to null)
isShowActiveOnly = true # Boolean | Download active inventory  (optional) (default to null)
isShowChildVariants = true # Boolean | Download child variant  (optional) (default to null)
categoryIDs =  # array[Integer] | Category IDs (optional) (default to null)
iDs =  # array[Integer] | IDs (optional) (default to null)
brandIDs =  # array[Integer] | Brand IDs (optional) (default to null)
types =  # array[String] | Types (optional) (default to null)
supplierID = 56 # Integer | Supplier ID (optional) (default to null)
classID = 56 # Integer | Class ID (optional) (default to null)
warehouseID = 56 # Integer | Warehouse ID (optional) (default to null)
isShowPostingInventoryOnly = true # Boolean | Download posting inventory only  (optional) (default to null)
isShowPublishedOnly = true # Boolean | Download published only  (optional) (default to null)

try:
    # Download Inventory CSV.
    api_response = api_instance.download_inventory(sortField, sortOrder, searchString=searchString, isShowActiveOnly=isShowActiveOnly, isShowChildVariants=isShowChildVariants, categoryIDs=categoryIDs, iDs=iDs, brandIDs=brandIDs, types=types, supplierID=supplierID, classID=classID, warehouseID=warehouseID, isShowPostingInventoryOnly=isShowPostingInventoryOnly, isShowPublishedOnly=isShowPublishedOnly)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->downloadInventory: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let sortField = sortField_example; // String
    let sortOrder = sortOrder_example; // String
    let searchString = searchString_example; // String
    let isShowActiveOnly = true; // Boolean
    let isShowChildVariants = true; // Boolean
    let categoryIDs = ; // array[Integer]
    let iDs = ; // array[Integer]
    let brandIDs = ; // array[Integer]
    let types = ; // array[String]
    let supplierID = 56; // Integer
    let classID = 56; // Integer
    let warehouseID = 56; // Integer
    let isShowPostingInventoryOnly = true; // Boolean
    let isShowPublishedOnly = true; // Boolean

    let mut context = InventoryApi::Context::default();
    let result = client.downloadInventory(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
SortField*
String
Sort Field
Required
SortOrder*
String
Sort order
Required
SearchString
String
The search string
IsShowActiveOnly
Boolean
Download active inventory
IsShowChildVariants
Boolean
Download child variant
CategoryIDs
array[Integer] (int32)
Category IDs
IDs
array[Integer] (int32)
IDs
BrandIDs
array[Integer] (int32)
Brand IDs
Types
array[String]
Types
SupplierID
Integer (int32)
Supplier ID
ClassID
Integer (int32)
Class ID
WarehouseID
Integer (int32)
Warehouse ID
IsShowPostingInventoryOnly
Boolean
Download posting inventory only
IsShowPublishedOnly
Boolean
Download published only

Responses


downloadVariant

Download Inventory Variant CSV.

Allows a member tenant to download inventory variant csv.


/Spenda/Inventory/Download/Variant

Usage and SDK Samples

curl -X GET \
 -H "Accept: text/csv,application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/Download/Variant?SortField=sortField_example&SortOrder=sortOrder_example&SearchString=searchString_example&IsShowActiveOnly=true&IsShowChildVariants=true&CategoryIDs=&IDs=&BrandIDs=&Types=&SupplierID=56&ClassID=56&WarehouseID=56&IsShowPostingInventoryOnly=true&IsShowPublishedOnly=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        String sortField = sortField_example; // String | Sort Field
        String sortOrder = sortOrder_example; // String | Sort order
        String searchString = searchString_example; // String | The search string
        Boolean isShowActiveOnly = true; // Boolean | Download active inventory 
        Boolean isShowChildVariants = true; // Boolean | Download child variant 
        array[Integer] categoryIDs = ; // array[Integer] | Category IDs
        array[Integer] iDs = ; // array[Integer] | IDs
        array[Integer] brandIDs = ; // array[Integer] | Brand IDs
        array[String] types = ; // array[String] | Types
        Integer supplierID = 56; // Integer | Supplier ID
        Integer classID = 56; // Integer | Class ID
        Integer warehouseID = 56; // Integer | Warehouse ID
        Boolean isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
        Boolean isShowPublishedOnly = true; // Boolean | Download published only 

        try {
            'String' result = apiInstance.downloadVariant(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#downloadVariant");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String sortField = new String(); // String | Sort Field
final String sortOrder = new String(); // String | Sort order
final String searchString = new String(); // String | The search string
final Boolean isShowActiveOnly = new Boolean(); // Boolean | Download active inventory 
final Boolean isShowChildVariants = new Boolean(); // Boolean | Download child variant 
final array[Integer] categoryIDs = new array[Integer](); // array[Integer] | Category IDs
final array[Integer] iDs = new array[Integer](); // array[Integer] | IDs
final array[Integer] brandIDs = new array[Integer](); // array[Integer] | Brand IDs
final array[String] types = new array[String](); // array[String] | Types
final Integer supplierID = new Integer(); // Integer | Supplier ID
final Integer classID = new Integer(); // Integer | Class ID
final Integer warehouseID = new Integer(); // Integer | Warehouse ID
final Boolean isShowPostingInventoryOnly = new Boolean(); // Boolean | Download posting inventory only 
final Boolean isShowPublishedOnly = new Boolean(); // Boolean | Download published only 

try {
    final result = await api_instance.downloadVariant(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->downloadVariant: $e\n');
}

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        String sortField = sortField_example; // String | Sort Field
        String sortOrder = sortOrder_example; // String | Sort order
        String searchString = searchString_example; // String | The search string
        Boolean isShowActiveOnly = true; // Boolean | Download active inventory 
        Boolean isShowChildVariants = true; // Boolean | Download child variant 
        array[Integer] categoryIDs = ; // array[Integer] | Category IDs
        array[Integer] iDs = ; // array[Integer] | IDs
        array[Integer] brandIDs = ; // array[Integer] | Brand IDs
        array[String] types = ; // array[String] | Types
        Integer supplierID = 56; // Integer | Supplier ID
        Integer classID = 56; // Integer | Class ID
        Integer warehouseID = 56; // Integer | Warehouse ID
        Boolean isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
        Boolean isShowPublishedOnly = true; // Boolean | Download published only 

        try {
            'String' result = apiInstance.downloadVariant(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#downloadVariant");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
String *sortField = sortField_example; // Sort Field (default to null)
String *sortOrder = sortOrder_example; // Sort order (default to null)
String *searchString = searchString_example; // The search string (optional) (default to null)
Boolean *isShowActiveOnly = true; // Download active inventory  (optional) (default to null)
Boolean *isShowChildVariants = true; // Download child variant  (optional) (default to null)
array[Integer] *categoryIDs = ; // Category IDs (optional) (default to null)
array[Integer] *iDs = ; // IDs (optional) (default to null)
array[Integer] *brandIDs = ; // Brand IDs (optional) (default to null)
array[String] *types = ; // Types (optional) (default to null)
Integer *supplierID = 56; // Supplier ID (optional) (default to null)
Integer *classID = 56; // Class ID (optional) (default to null)
Integer *warehouseID = 56; // Warehouse ID (optional) (default to null)
Boolean *isShowPostingInventoryOnly = true; // Download posting inventory only  (optional) (default to null)
Boolean *isShowPublishedOnly = true; // Download published only  (optional) (default to null)

// Download Inventory Variant CSV.
[apiInstance downloadVariantWith:sortField
    sortOrder:sortOrder
    searchString:searchString
    isShowActiveOnly:isShowActiveOnly
    isShowChildVariants:isShowChildVariants
    categoryIDs:categoryIDs
    iDs:iDs
    brandIDs:brandIDs
    types:types
    supplierID:supplierID
    classID:classID
    warehouseID:warehouseID
    isShowPostingInventoryOnly:isShowPostingInventoryOnly
    isShowPublishedOnly:isShowPublishedOnly
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var sortField = sortField_example; // {String} Sort Field
var sortOrder = sortOrder_example; // {String} Sort order
var opts = {
  'searchString': searchString_example, // {String} The search string
  'isShowActiveOnly': true, // {Boolean} Download active inventory 
  'isShowChildVariants': true, // {Boolean} Download child variant 
  'categoryIDs': , // {array[Integer]} Category IDs
  'iDs': , // {array[Integer]} IDs
  'brandIDs': , // {array[Integer]} Brand IDs
  'types': , // {array[String]} Types
  'supplierID': 56, // {Integer} Supplier ID
  'classID': 56, // {Integer} Class ID
  'warehouseID': 56, // {Integer} Warehouse ID
  'isShowPostingInventoryOnly': true, // {Boolean} Download posting inventory only 
  'isShowPublishedOnly': true // {Boolean} Download published only 
};

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var sortField = sortField_example;  // String | Sort Field (default to null)
            var sortOrder = sortOrder_example;  // String | Sort order (default to null)
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)
            var isShowActiveOnly = true;  // Boolean | Download active inventory  (optional)  (default to null)
            var isShowChildVariants = true;  // Boolean | Download child variant  (optional)  (default to null)
            var categoryIDs = new array[Integer](); // array[Integer] | Category IDs (optional)  (default to null)
            var iDs = new array[Integer](); // array[Integer] | IDs (optional)  (default to null)
            var brandIDs = new array[Integer](); // array[Integer] | Brand IDs (optional)  (default to null)
            var types = new array[String](); // array[String] | Types (optional)  (default to null)
            var supplierID = 56;  // Integer | Supplier ID (optional)  (default to null)
            var classID = 56;  // Integer | Class ID (optional)  (default to null)
            var warehouseID = 56;  // Integer | Warehouse ID (optional)  (default to null)
            var isShowPostingInventoryOnly = true;  // Boolean | Download posting inventory only  (optional)  (default to null)
            var isShowPublishedOnly = true;  // Boolean | Download published only  (optional)  (default to null)

            try {
                // Download Inventory Variant CSV.
                'String' result = apiInstance.downloadVariant(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.downloadVariant: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$sortField = sortField_example; // String | Sort Field
$sortOrder = sortOrder_example; // String | Sort order
$searchString = searchString_example; // String | The search string
$isShowActiveOnly = true; // Boolean | Download active inventory 
$isShowChildVariants = true; // Boolean | Download child variant 
$categoryIDs = ; // array[Integer] | Category IDs
$iDs = ; // array[Integer] | IDs
$brandIDs = ; // array[Integer] | Brand IDs
$types = ; // array[String] | Types
$supplierID = 56; // Integer | Supplier ID
$classID = 56; // Integer | Class ID
$warehouseID = 56; // Integer | Warehouse ID
$isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
$isShowPublishedOnly = true; // Boolean | Download published only 

try {
    $result = $api_instance->downloadVariant($sortField, $sortOrder, $searchString, $isShowActiveOnly, $isShowChildVariants, $categoryIDs, $iDs, $brandIDs, $types, $supplierID, $classID, $warehouseID, $isShowPostingInventoryOnly, $isShowPublishedOnly);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InventoryApi->downloadVariant: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InventoryApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $sortField = sortField_example; # String | Sort Field
my $sortOrder = sortOrder_example; # String | Sort order
my $searchString = searchString_example; # String | The search string
my $isShowActiveOnly = true; # Boolean | Download active inventory 
my $isShowChildVariants = true; # Boolean | Download child variant 
my $categoryIDs = []; # array[Integer] | Category IDs
my $iDs = []; # array[Integer] | IDs
my $brandIDs = []; # array[Integer] | Brand IDs
my $types = []; # array[String] | Types
my $supplierID = 56; # Integer | Supplier ID
my $classID = 56; # Integer | Class ID
my $warehouseID = 56; # Integer | Warehouse ID
my $isShowPostingInventoryOnly = true; # Boolean | Download posting inventory only 
my $isShowPublishedOnly = true; # Boolean | Download published only 

eval {
    my $result = $api_instance->downloadVariant(sortField => $sortField, sortOrder => $sortOrder, searchString => $searchString, isShowActiveOnly => $isShowActiveOnly, isShowChildVariants => $isShowChildVariants, categoryIDs => $categoryIDs, iDs => $iDs, brandIDs => $brandIDs, types => $types, supplierID => $supplierID, classID => $classID, warehouseID => $warehouseID, isShowPostingInventoryOnly => $isShowPostingInventoryOnly, isShowPublishedOnly => $isShowPublishedOnly);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->downloadVariant: $@\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.InventoryApi()
sortField = sortField_example # String | Sort Field (default to null)
sortOrder = sortOrder_example # String | Sort order (default to null)
searchString = searchString_example # String | The search string (optional) (default to null)
isShowActiveOnly = true # Boolean | Download active inventory  (optional) (default to null)
isShowChildVariants = true # Boolean | Download child variant  (optional) (default to null)
categoryIDs =  # array[Integer] | Category IDs (optional) (default to null)
iDs =  # array[Integer] | IDs (optional) (default to null)
brandIDs =  # array[Integer] | Brand IDs (optional) (default to null)
types =  # array[String] | Types (optional) (default to null)
supplierID = 56 # Integer | Supplier ID (optional) (default to null)
classID = 56 # Integer | Class ID (optional) (default to null)
warehouseID = 56 # Integer | Warehouse ID (optional) (default to null)
isShowPostingInventoryOnly = true # Boolean | Download posting inventory only  (optional) (default to null)
isShowPublishedOnly = true # Boolean | Download published only  (optional) (default to null)

try:
    # Download Inventory Variant CSV.
    api_response = api_instance.download_variant(sortField, sortOrder, searchString=searchString, isShowActiveOnly=isShowActiveOnly, isShowChildVariants=isShowChildVariants, categoryIDs=categoryIDs, iDs=iDs, brandIDs=brandIDs, types=types, supplierID=supplierID, classID=classID, warehouseID=warehouseID, isShowPostingInventoryOnly=isShowPostingInventoryOnly, isShowPublishedOnly=isShowPublishedOnly)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->downloadVariant: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let sortField = sortField_example; // String
    let sortOrder = sortOrder_example; // String
    let searchString = searchString_example; // String
    let isShowActiveOnly = true; // Boolean
    let isShowChildVariants = true; // Boolean
    let categoryIDs = ; // array[Integer]
    let iDs = ; // array[Integer]
    let brandIDs = ; // array[Integer]
    let types = ; // array[String]
    let supplierID = 56; // Integer
    let classID = 56; // Integer
    let warehouseID = 56; // Integer
    let isShowPostingInventoryOnly = true; // Boolean
    let isShowPublishedOnly = true; // Boolean

    let mut context = InventoryApi::Context::default();
    let result = client.downloadVariant(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
SortField*
String
Sort Field
Required
SortOrder*
String
Sort order
Required
SearchString
String
The search string
IsShowActiveOnly
Boolean
Download active inventory
IsShowChildVariants
Boolean
Download child variant
CategoryIDs
array[Integer] (int32)
Category IDs
IDs
array[Integer] (int32)
IDs
BrandIDs
array[Integer] (int32)
Brand IDs
Types
array[String]
Types
SupplierID
Integer (int32)
Supplier ID
ClassID
Integer (int32)
Class ID
WarehouseID
Integer (int32)
Warehouse ID
IsShowPostingInventoryOnly
Boolean
Download posting inventory only
IsShowPublishedOnly
Boolean
Download published only

Responses


downloadVariationOption

Download Inventory Variation Option CSV.

Allows a member tenant to download inventory variation option csv.


/Spenda/Inventory/Download/VariationOption

Usage and SDK Samples

curl -X GET \
 -H "Accept: text/csv,application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/Download/VariationOption?SortField=sortField_example&SortOrder=sortOrder_example&SearchString=searchString_example&IsShowActiveOnly=true&IsShowChildVariants=true&CategoryIDs=&IDs=&BrandIDs=&Types=&SupplierID=56&ClassID=56&WarehouseID=56&IsShowPostingInventoryOnly=true&IsShowPublishedOnly=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        String sortField = sortField_example; // String | Sort Field
        String sortOrder = sortOrder_example; // String | Sort order
        String searchString = searchString_example; // String | The search string
        Boolean isShowActiveOnly = true; // Boolean | Download active inventory 
        Boolean isShowChildVariants = true; // Boolean | Download child variant 
        array[Integer] categoryIDs = ; // array[Integer] | Category IDs
        array[Integer] iDs = ; // array[Integer] | IDs
        array[Integer] brandIDs = ; // array[Integer] | Brand IDs
        array[String] types = ; // array[String] | Types
        Integer supplierID = 56; // Integer | Supplier ID
        Integer classID = 56; // Integer | Class ID
        Integer warehouseID = 56; // Integer | Warehouse ID
        Boolean isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
        Boolean isShowPublishedOnly = true; // Boolean | Download published only 

        try {
            'String' result = apiInstance.downloadVariationOption(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#downloadVariationOption");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String sortField = new String(); // String | Sort Field
final String sortOrder = new String(); // String | Sort order
final String searchString = new String(); // String | The search string
final Boolean isShowActiveOnly = new Boolean(); // Boolean | Download active inventory 
final Boolean isShowChildVariants = new Boolean(); // Boolean | Download child variant 
final array[Integer] categoryIDs = new array[Integer](); // array[Integer] | Category IDs
final array[Integer] iDs = new array[Integer](); // array[Integer] | IDs
final array[Integer] brandIDs = new array[Integer](); // array[Integer] | Brand IDs
final array[String] types = new array[String](); // array[String] | Types
final Integer supplierID = new Integer(); // Integer | Supplier ID
final Integer classID = new Integer(); // Integer | Class ID
final Integer warehouseID = new Integer(); // Integer | Warehouse ID
final Boolean isShowPostingInventoryOnly = new Boolean(); // Boolean | Download posting inventory only 
final Boolean isShowPublishedOnly = new Boolean(); // Boolean | Download published only 

try {
    final result = await api_instance.downloadVariationOption(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->downloadVariationOption: $e\n');
}

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        String sortField = sortField_example; // String | Sort Field
        String sortOrder = sortOrder_example; // String | Sort order
        String searchString = searchString_example; // String | The search string
        Boolean isShowActiveOnly = true; // Boolean | Download active inventory 
        Boolean isShowChildVariants = true; // Boolean | Download child variant 
        array[Integer] categoryIDs = ; // array[Integer] | Category IDs
        array[Integer] iDs = ; // array[Integer] | IDs
        array[Integer] brandIDs = ; // array[Integer] | Brand IDs
        array[String] types = ; // array[String] | Types
        Integer supplierID = 56; // Integer | Supplier ID
        Integer classID = 56; // Integer | Class ID
        Integer warehouseID = 56; // Integer | Warehouse ID
        Boolean isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
        Boolean isShowPublishedOnly = true; // Boolean | Download published only 

        try {
            'String' result = apiInstance.downloadVariationOption(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#downloadVariationOption");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
String *sortField = sortField_example; // Sort Field (default to null)
String *sortOrder = sortOrder_example; // Sort order (default to null)
String *searchString = searchString_example; // The search string (optional) (default to null)
Boolean *isShowActiveOnly = true; // Download active inventory  (optional) (default to null)
Boolean *isShowChildVariants = true; // Download child variant  (optional) (default to null)
array[Integer] *categoryIDs = ; // Category IDs (optional) (default to null)
array[Integer] *iDs = ; // IDs (optional) (default to null)
array[Integer] *brandIDs = ; // Brand IDs (optional) (default to null)
array[String] *types = ; // Types (optional) (default to null)
Integer *supplierID = 56; // Supplier ID (optional) (default to null)
Integer *classID = 56; // Class ID (optional) (default to null)
Integer *warehouseID = 56; // Warehouse ID (optional) (default to null)
Boolean *isShowPostingInventoryOnly = true; // Download posting inventory only  (optional) (default to null)
Boolean *isShowPublishedOnly = true; // Download published only  (optional) (default to null)

// Download Inventory Variation Option CSV.
[apiInstance downloadVariationOptionWith:sortField
    sortOrder:sortOrder
    searchString:searchString
    isShowActiveOnly:isShowActiveOnly
    isShowChildVariants:isShowChildVariants
    categoryIDs:categoryIDs
    iDs:iDs
    brandIDs:brandIDs
    types:types
    supplierID:supplierID
    classID:classID
    warehouseID:warehouseID
    isShowPostingInventoryOnly:isShowPostingInventoryOnly
    isShowPublishedOnly:isShowPublishedOnly
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var sortField = sortField_example; // {String} Sort Field
var sortOrder = sortOrder_example; // {String} Sort order
var opts = {
  'searchString': searchString_example, // {String} The search string
  'isShowActiveOnly': true, // {Boolean} Download active inventory 
  'isShowChildVariants': true, // {Boolean} Download child variant 
  'categoryIDs': , // {array[Integer]} Category IDs
  'iDs': , // {array[Integer]} IDs
  'brandIDs': , // {array[Integer]} Brand IDs
  'types': , // {array[String]} Types
  'supplierID': 56, // {Integer} Supplier ID
  'classID': 56, // {Integer} Class ID
  'warehouseID': 56, // {Integer} Warehouse ID
  'isShowPostingInventoryOnly': true, // {Boolean} Download posting inventory only 
  'isShowPublishedOnly': true // {Boolean} Download published only 
};

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var sortField = sortField_example;  // String | Sort Field (default to null)
            var sortOrder = sortOrder_example;  // String | Sort order (default to null)
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)
            var isShowActiveOnly = true;  // Boolean | Download active inventory  (optional)  (default to null)
            var isShowChildVariants = true;  // Boolean | Download child variant  (optional)  (default to null)
            var categoryIDs = new array[Integer](); // array[Integer] | Category IDs (optional)  (default to null)
            var iDs = new array[Integer](); // array[Integer] | IDs (optional)  (default to null)
            var brandIDs = new array[Integer](); // array[Integer] | Brand IDs (optional)  (default to null)
            var types = new array[String](); // array[String] | Types (optional)  (default to null)
            var supplierID = 56;  // Integer | Supplier ID (optional)  (default to null)
            var classID = 56;  // Integer | Class ID (optional)  (default to null)
            var warehouseID = 56;  // Integer | Warehouse ID (optional)  (default to null)
            var isShowPostingInventoryOnly = true;  // Boolean | Download posting inventory only  (optional)  (default to null)
            var isShowPublishedOnly = true;  // Boolean | Download published only  (optional)  (default to null)

            try {
                // Download Inventory Variation Option CSV.
                'String' result = apiInstance.downloadVariationOption(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.downloadVariationOption: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$sortField = sortField_example; // String | Sort Field
$sortOrder = sortOrder_example; // String | Sort order
$searchString = searchString_example; // String | The search string
$isShowActiveOnly = true; // Boolean | Download active inventory 
$isShowChildVariants = true; // Boolean | Download child variant 
$categoryIDs = ; // array[Integer] | Category IDs
$iDs = ; // array[Integer] | IDs
$brandIDs = ; // array[Integer] | Brand IDs
$types = ; // array[String] | Types
$supplierID = 56; // Integer | Supplier ID
$classID = 56; // Integer | Class ID
$warehouseID = 56; // Integer | Warehouse ID
$isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
$isShowPublishedOnly = true; // Boolean | Download published only 

try {
    $result = $api_instance->downloadVariationOption($sortField, $sortOrder, $searchString, $isShowActiveOnly, $isShowChildVariants, $categoryIDs, $iDs, $brandIDs, $types, $supplierID, $classID, $warehouseID, $isShowPostingInventoryOnly, $isShowPublishedOnly);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InventoryApi->downloadVariationOption: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InventoryApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $sortField = sortField_example; # String | Sort Field
my $sortOrder = sortOrder_example; # String | Sort order
my $searchString = searchString_example; # String | The search string
my $isShowActiveOnly = true; # Boolean | Download active inventory 
my $isShowChildVariants = true; # Boolean | Download child variant 
my $categoryIDs = []; # array[Integer] | Category IDs
my $iDs = []; # array[Integer] | IDs
my $brandIDs = []; # array[Integer] | Brand IDs
my $types = []; # array[String] | Types
my $supplierID = 56; # Integer | Supplier ID
my $classID = 56; # Integer | Class ID
my $warehouseID = 56; # Integer | Warehouse ID
my $isShowPostingInventoryOnly = true; # Boolean | Download posting inventory only 
my $isShowPublishedOnly = true; # Boolean | Download published only 

eval {
    my $result = $api_instance->downloadVariationOption(sortField => $sortField, sortOrder => $sortOrder, searchString => $searchString, isShowActiveOnly => $isShowActiveOnly, isShowChildVariants => $isShowChildVariants, categoryIDs => $categoryIDs, iDs => $iDs, brandIDs => $brandIDs, types => $types, supplierID => $supplierID, classID => $classID, warehouseID => $warehouseID, isShowPostingInventoryOnly => $isShowPostingInventoryOnly, isShowPublishedOnly => $isShowPublishedOnly);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->downloadVariationOption: $@\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.InventoryApi()
sortField = sortField_example # String | Sort Field (default to null)
sortOrder = sortOrder_example # String | Sort order (default to null)
searchString = searchString_example # String | The search string (optional) (default to null)
isShowActiveOnly = true # Boolean | Download active inventory  (optional) (default to null)
isShowChildVariants = true # Boolean | Download child variant  (optional) (default to null)
categoryIDs =  # array[Integer] | Category IDs (optional) (default to null)
iDs =  # array[Integer] | IDs (optional) (default to null)
brandIDs =  # array[Integer] | Brand IDs (optional) (default to null)
types =  # array[String] | Types (optional) (default to null)
supplierID = 56 # Integer | Supplier ID (optional) (default to null)
classID = 56 # Integer | Class ID (optional) (default to null)
warehouseID = 56 # Integer | Warehouse ID (optional) (default to null)
isShowPostingInventoryOnly = true # Boolean | Download posting inventory only  (optional) (default to null)
isShowPublishedOnly = true # Boolean | Download published only  (optional) (default to null)

try:
    # Download Inventory Variation Option CSV.
    api_response = api_instance.download_variation_option(sortField, sortOrder, searchString=searchString, isShowActiveOnly=isShowActiveOnly, isShowChildVariants=isShowChildVariants, categoryIDs=categoryIDs, iDs=iDs, brandIDs=brandIDs, types=types, supplierID=supplierID, classID=classID, warehouseID=warehouseID, isShowPostingInventoryOnly=isShowPostingInventoryOnly, isShowPublishedOnly=isShowPublishedOnly)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->downloadVariationOption: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let sortField = sortField_example; // String
    let sortOrder = sortOrder_example; // String
    let searchString = searchString_example; // String
    let isShowActiveOnly = true; // Boolean
    let isShowChildVariants = true; // Boolean
    let categoryIDs = ; // array[Integer]
    let iDs = ; // array[Integer]
    let brandIDs = ; // array[Integer]
    let types = ; // array[String]
    let supplierID = 56; // Integer
    let classID = 56; // Integer
    let warehouseID = 56; // Integer
    let isShowPostingInventoryOnly = true; // Boolean
    let isShowPublishedOnly = true; // Boolean

    let mut context = InventoryApi::Context::default();
    let result = client.downloadVariationOption(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
SortField*
String
Sort Field
Required
SortOrder*
String
Sort order
Required
SearchString
String
The search string
IsShowActiveOnly
Boolean
Download active inventory
IsShowChildVariants
Boolean
Download child variant
CategoryIDs
array[Integer] (int32)
Category IDs
IDs
array[Integer] (int32)
IDs
BrandIDs
array[Integer] (int32)
Brand IDs
Types
array[String]
Types
SupplierID
Integer (int32)
Supplier ID
ClassID
Integer (int32)
Class ID
WarehouseID
Integer (int32)
Warehouse ID
IsShowPostingInventoryOnly
Boolean
Download posting inventory only
IsShowPublishedOnly
Boolean
Download published only

Responses


downloadWarranty

Download Inventory Warranty CSV.

Allows a member tenant to download inventory warranty csv.


/Spenda/Inventory/Download/Warranty

Usage and SDK Samples

curl -X GET \
 -H "Accept: text/csv,application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/Download/Warranty?SortField=sortField_example&SortOrder=sortOrder_example&SearchString=searchString_example&IsShowActiveOnly=true&IsShowChildVariants=true&CategoryIDs=&IDs=&BrandIDs=&Types=&SupplierID=56&ClassID=56&WarehouseID=56&IsShowPostingInventoryOnly=true&IsShowPublishedOnly=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        String sortField = sortField_example; // String | Sort Field
        String sortOrder = sortOrder_example; // String | Sort order
        String searchString = searchString_example; // String | The search string
        Boolean isShowActiveOnly = true; // Boolean | Download active inventory 
        Boolean isShowChildVariants = true; // Boolean | Download child variant 
        array[Integer] categoryIDs = ; // array[Integer] | Category IDs
        array[Integer] iDs = ; // array[Integer] | IDs
        array[Integer] brandIDs = ; // array[Integer] | Brand IDs
        array[String] types = ; // array[String] | Types
        Integer supplierID = 56; // Integer | Supplier ID
        Integer classID = 56; // Integer | Class ID
        Integer warehouseID = 56; // Integer | Warehouse ID
        Boolean isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
        Boolean isShowPublishedOnly = true; // Boolean | Download published only 

        try {
            'String' result = apiInstance.downloadWarranty(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#downloadWarranty");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String sortField = new String(); // String | Sort Field
final String sortOrder = new String(); // String | Sort order
final String searchString = new String(); // String | The search string
final Boolean isShowActiveOnly = new Boolean(); // Boolean | Download active inventory 
final Boolean isShowChildVariants = new Boolean(); // Boolean | Download child variant 
final array[Integer] categoryIDs = new array[Integer](); // array[Integer] | Category IDs
final array[Integer] iDs = new array[Integer](); // array[Integer] | IDs
final array[Integer] brandIDs = new array[Integer](); // array[Integer] | Brand IDs
final array[String] types = new array[String](); // array[String] | Types
final Integer supplierID = new Integer(); // Integer | Supplier ID
final Integer classID = new Integer(); // Integer | Class ID
final Integer warehouseID = new Integer(); // Integer | Warehouse ID
final Boolean isShowPostingInventoryOnly = new Boolean(); // Boolean | Download posting inventory only 
final Boolean isShowPublishedOnly = new Boolean(); // Boolean | Download published only 

try {
    final result = await api_instance.downloadWarranty(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->downloadWarranty: $e\n');
}

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        String sortField = sortField_example; // String | Sort Field
        String sortOrder = sortOrder_example; // String | Sort order
        String searchString = searchString_example; // String | The search string
        Boolean isShowActiveOnly = true; // Boolean | Download active inventory 
        Boolean isShowChildVariants = true; // Boolean | Download child variant 
        array[Integer] categoryIDs = ; // array[Integer] | Category IDs
        array[Integer] iDs = ; // array[Integer] | IDs
        array[Integer] brandIDs = ; // array[Integer] | Brand IDs
        array[String] types = ; // array[String] | Types
        Integer supplierID = 56; // Integer | Supplier ID
        Integer classID = 56; // Integer | Class ID
        Integer warehouseID = 56; // Integer | Warehouse ID
        Boolean isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
        Boolean isShowPublishedOnly = true; // Boolean | Download published only 

        try {
            'String' result = apiInstance.downloadWarranty(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#downloadWarranty");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
String *sortField = sortField_example; // Sort Field (default to null)
String *sortOrder = sortOrder_example; // Sort order (default to null)
String *searchString = searchString_example; // The search string (optional) (default to null)
Boolean *isShowActiveOnly = true; // Download active inventory  (optional) (default to null)
Boolean *isShowChildVariants = true; // Download child variant  (optional) (default to null)
array[Integer] *categoryIDs = ; // Category IDs (optional) (default to null)
array[Integer] *iDs = ; // IDs (optional) (default to null)
array[Integer] *brandIDs = ; // Brand IDs (optional) (default to null)
array[String] *types = ; // Types (optional) (default to null)
Integer *supplierID = 56; // Supplier ID (optional) (default to null)
Integer *classID = 56; // Class ID (optional) (default to null)
Integer *warehouseID = 56; // Warehouse ID (optional) (default to null)
Boolean *isShowPostingInventoryOnly = true; // Download posting inventory only  (optional) (default to null)
Boolean *isShowPublishedOnly = true; // Download published only  (optional) (default to null)

// Download Inventory Warranty CSV.
[apiInstance downloadWarrantyWith:sortField
    sortOrder:sortOrder
    searchString:searchString
    isShowActiveOnly:isShowActiveOnly
    isShowChildVariants:isShowChildVariants
    categoryIDs:categoryIDs
    iDs:iDs
    brandIDs:brandIDs
    types:types
    supplierID:supplierID
    classID:classID
    warehouseID:warehouseID
    isShowPostingInventoryOnly:isShowPostingInventoryOnly
    isShowPublishedOnly:isShowPublishedOnly
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var sortField = sortField_example; // {String} Sort Field
var sortOrder = sortOrder_example; // {String} Sort order
var opts = {
  'searchString': searchString_example, // {String} The search string
  'isShowActiveOnly': true, // {Boolean} Download active inventory 
  'isShowChildVariants': true, // {Boolean} Download child variant 
  'categoryIDs': , // {array[Integer]} Category IDs
  'iDs': , // {array[Integer]} IDs
  'brandIDs': , // {array[Integer]} Brand IDs
  'types': , // {array[String]} Types
  'supplierID': 56, // {Integer} Supplier ID
  'classID': 56, // {Integer} Class ID
  'warehouseID': 56, // {Integer} Warehouse ID
  'isShowPostingInventoryOnly': true, // {Boolean} Download posting inventory only 
  'isShowPublishedOnly': true // {Boolean} Download published only 
};

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var sortField = sortField_example;  // String | Sort Field (default to null)
            var sortOrder = sortOrder_example;  // String | Sort order (default to null)
            var searchString = searchString_example;  // String | The search string (optional)  (default to null)
            var isShowActiveOnly = true;  // Boolean | Download active inventory  (optional)  (default to null)
            var isShowChildVariants = true;  // Boolean | Download child variant  (optional)  (default to null)
            var categoryIDs = new array[Integer](); // array[Integer] | Category IDs (optional)  (default to null)
            var iDs = new array[Integer](); // array[Integer] | IDs (optional)  (default to null)
            var brandIDs = new array[Integer](); // array[Integer] | Brand IDs (optional)  (default to null)
            var types = new array[String](); // array[String] | Types (optional)  (default to null)
            var supplierID = 56;  // Integer | Supplier ID (optional)  (default to null)
            var classID = 56;  // Integer | Class ID (optional)  (default to null)
            var warehouseID = 56;  // Integer | Warehouse ID (optional)  (default to null)
            var isShowPostingInventoryOnly = true;  // Boolean | Download posting inventory only  (optional)  (default to null)
            var isShowPublishedOnly = true;  // Boolean | Download published only  (optional)  (default to null)

            try {
                // Download Inventory Warranty CSV.
                'String' result = apiInstance.downloadWarranty(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.downloadWarranty: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$sortField = sortField_example; // String | Sort Field
$sortOrder = sortOrder_example; // String | Sort order
$searchString = searchString_example; // String | The search string
$isShowActiveOnly = true; // Boolean | Download active inventory 
$isShowChildVariants = true; // Boolean | Download child variant 
$categoryIDs = ; // array[Integer] | Category IDs
$iDs = ; // array[Integer] | IDs
$brandIDs = ; // array[Integer] | Brand IDs
$types = ; // array[String] | Types
$supplierID = 56; // Integer | Supplier ID
$classID = 56; // Integer | Class ID
$warehouseID = 56; // Integer | Warehouse ID
$isShowPostingInventoryOnly = true; // Boolean | Download posting inventory only 
$isShowPublishedOnly = true; // Boolean | Download published only 

try {
    $result = $api_instance->downloadWarranty($sortField, $sortOrder, $searchString, $isShowActiveOnly, $isShowChildVariants, $categoryIDs, $iDs, $brandIDs, $types, $supplierID, $classID, $warehouseID, $isShowPostingInventoryOnly, $isShowPublishedOnly);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InventoryApi->downloadWarranty: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InventoryApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $sortField = sortField_example; # String | Sort Field
my $sortOrder = sortOrder_example; # String | Sort order
my $searchString = searchString_example; # String | The search string
my $isShowActiveOnly = true; # Boolean | Download active inventory 
my $isShowChildVariants = true; # Boolean | Download child variant 
my $categoryIDs = []; # array[Integer] | Category IDs
my $iDs = []; # array[Integer] | IDs
my $brandIDs = []; # array[Integer] | Brand IDs
my $types = []; # array[String] | Types
my $supplierID = 56; # Integer | Supplier ID
my $classID = 56; # Integer | Class ID
my $warehouseID = 56; # Integer | Warehouse ID
my $isShowPostingInventoryOnly = true; # Boolean | Download posting inventory only 
my $isShowPublishedOnly = true; # Boolean | Download published only 

eval {
    my $result = $api_instance->downloadWarranty(sortField => $sortField, sortOrder => $sortOrder, searchString => $searchString, isShowActiveOnly => $isShowActiveOnly, isShowChildVariants => $isShowChildVariants, categoryIDs => $categoryIDs, iDs => $iDs, brandIDs => $brandIDs, types => $types, supplierID => $supplierID, classID => $classID, warehouseID => $warehouseID, isShowPostingInventoryOnly => $isShowPostingInventoryOnly, isShowPublishedOnly => $isShowPublishedOnly);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->downloadWarranty: $@\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.InventoryApi()
sortField = sortField_example # String | Sort Field (default to null)
sortOrder = sortOrder_example # String | Sort order (default to null)
searchString = searchString_example # String | The search string (optional) (default to null)
isShowActiveOnly = true # Boolean | Download active inventory  (optional) (default to null)
isShowChildVariants = true # Boolean | Download child variant  (optional) (default to null)
categoryIDs =  # array[Integer] | Category IDs (optional) (default to null)
iDs =  # array[Integer] | IDs (optional) (default to null)
brandIDs =  # array[Integer] | Brand IDs (optional) (default to null)
types =  # array[String] | Types (optional) (default to null)
supplierID = 56 # Integer | Supplier ID (optional) (default to null)
classID = 56 # Integer | Class ID (optional) (default to null)
warehouseID = 56 # Integer | Warehouse ID (optional) (default to null)
isShowPostingInventoryOnly = true # Boolean | Download posting inventory only  (optional) (default to null)
isShowPublishedOnly = true # Boolean | Download published only  (optional) (default to null)

try:
    # Download Inventory Warranty CSV.
    api_response = api_instance.download_warranty(sortField, sortOrder, searchString=searchString, isShowActiveOnly=isShowActiveOnly, isShowChildVariants=isShowChildVariants, categoryIDs=categoryIDs, iDs=iDs, brandIDs=brandIDs, types=types, supplierID=supplierID, classID=classID, warehouseID=warehouseID, isShowPostingInventoryOnly=isShowPostingInventoryOnly, isShowPublishedOnly=isShowPublishedOnly)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->downloadWarranty: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let sortField = sortField_example; // String
    let sortOrder = sortOrder_example; // String
    let searchString = searchString_example; // String
    let isShowActiveOnly = true; // Boolean
    let isShowChildVariants = true; // Boolean
    let categoryIDs = ; // array[Integer]
    let iDs = ; // array[Integer]
    let brandIDs = ; // array[Integer]
    let types = ; // array[String]
    let supplierID = 56; // Integer
    let classID = 56; // Integer
    let warehouseID = 56; // Integer
    let isShowPostingInventoryOnly = true; // Boolean
    let isShowPublishedOnly = true; // Boolean

    let mut context = InventoryApi::Context::default();
    let result = client.downloadWarranty(sortField, sortOrder, searchString, isShowActiveOnly, isShowChildVariants, categoryIDs, iDs, brandIDs, types, supplierID, classID, warehouseID, isShowPostingInventoryOnly, isShowPublishedOnly, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
SortField*
String
Sort Field
Required
SortOrder*
String
Sort order
Required
SearchString
String
The search string
IsShowActiveOnly
Boolean
Download active inventory
IsShowChildVariants
Boolean
Download child variant
CategoryIDs
array[Integer] (int32)
Category IDs
IDs
array[Integer] (int32)
IDs
BrandIDs
array[Integer] (int32)
Brand IDs
Types
array[String]
Types
SupplierID
Integer (int32)
Supplier ID
ClassID
Integer (int32)
Class ID
WarehouseID
Integer (int32)
Warehouse ID
IsShowPostingInventoryOnly
Boolean
Download posting inventory only
IsShowPublishedOnly
Boolean
Download published only

Responses


getMarketplaceInventoryTemplate

Fetches inventory template in context of the marketplace.

Get list of inventory for a marketplace.


/Spenda/Inventory/Marketplaces/{MarketplaceID}/InventoryTemplate

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/Marketplaces/{MarketplaceID}/InventoryTemplate"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        Integer marketplaceID = 56; // Integer | Marketplace Identifier

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

final api_instance = DefaultApi();

final Integer marketplaceID = new Integer(); // Integer | Marketplace Identifier

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

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        Integer marketplaceID = 56; // Integer | Marketplace Identifier

        try {
            httpActionResult_marketplaceInventoryTemplateResponse result = apiInstance.getMarketplaceInventoryTemplate(marketplaceID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#getMarketplaceInventoryTemplate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
Integer *marketplaceID = 56; // Marketplace Identifier (default to null)

// Fetches inventory template in context of the marketplace.
[apiInstance getMarketplaceInventoryTemplateWith:marketplaceID
              completionHandler: ^(httpActionResult_marketplaceInventoryTemplateResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var marketplaceID = 56; // {Integer} Marketplace Identifier

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var marketplaceID = 56;  // Integer | Marketplace Identifier (default to null)

            try {
                // Fetches inventory template in context of the marketplace.
                httpActionResult_marketplaceInventoryTemplateResponse result = apiInstance.getMarketplaceInventoryTemplate(marketplaceID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.getMarketplaceInventoryTemplate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$marketplaceID = 56; // Integer | Marketplace Identifier

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $marketplaceID = 56; # Integer | Marketplace Identifier

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

try:
    # Fetches inventory template in context of the marketplace.
    api_response = api_instance.get_marketplace_inventory_template(marketplaceID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->getMarketplaceInventoryTemplate: %s\n" % e)
extern crate InventoryApi;

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

    let mut context = InventoryApi::Context::default();
    let result = client.getMarketplaceInventoryTemplate(marketplaceID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
MarketplaceID*
Integer (int32)
Marketplace Identifier
Required

Responses


getStagingDataStatus

Get staging data count context of the member tenant.

Allows a member tenant to get staging data count.


/Spenda/Inventory/StagingData/Status

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/StagingData/Status"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.InventoryApi;

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

        try {
            httpActionResult_getStagingDataStatusResponse result = apiInstance.getStagingDataStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#getStagingDataStatus");
            e.printStackTrace();
        }
    }
}


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

// Get staging data count context of the member tenant.
[apiInstance getStagingDataStatusWithCompletionHandler: 
              ^(httpActionResult_getStagingDataStatusResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

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

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

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

            try {
                // Get staging data count context of the member tenant.
                httpActionResult_getStagingDataStatusResponse result = apiInstance.getStagingDataStatus();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.getStagingDataStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get staging data count context of the member tenant.
    api_response = api_instance.get_staging_data_status()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->getStagingDataStatus: %s\n" % e)
extern crate InventoryApi;

pub fn main() {

    let mut context = InventoryApi::Context::default();
    let result = client.getStagingDataStatus(&context).wait();

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

Scopes

Parameters

Responses


getStagingInventory

Get staging Inventory in context of the member tenant.

Allows a member tenant to get staging inventory.


/Spenda/Inventory/StagingInventory

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.InventoryApi;

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

        try {
            httpActionResult_getStagingInventoryResponse result = apiInstance.getStagingInventory();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#getStagingInventory");
            e.printStackTrace();
        }
    }
}


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

// Get staging Inventory in context of the member tenant.
[apiInstance getStagingInventoryWithCompletionHandler: 
              ^(httpActionResult_getStagingInventoryResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

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

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

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

            try {
                // Get staging Inventory in context of the member tenant.
                httpActionResult_getStagingInventoryResponse result = apiInstance.getStagingInventory();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.getStagingInventory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get staging Inventory in context of the member tenant.
    api_response = api_instance.get_staging_inventory()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->getStagingInventory: %s\n" % e)
extern crate InventoryApi;

pub fn main() {

    let mut context = InventoryApi::Context::default();
    let result = client.getStagingInventory(&context).wait();

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

Scopes

Parameters

Responses


getStagingVariant

Get staging Variant in context of the member tenant.

Allows a member tenant to get staging Variant.


/Spenda/Inventory/StagingVariant

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.InventoryApi;

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

        try {
            httpActionResult_getStagingVariantResponse result = apiInstance.getStagingVariant();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#getStagingVariant");
            e.printStackTrace();
        }
    }
}


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

// Get staging Variant in context of the member tenant.
[apiInstance getStagingVariantWithCompletionHandler: 
              ^(httpActionResult_getStagingVariantResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

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

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

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

            try {
                // Get staging Variant in context of the member tenant.
                httpActionResult_getStagingVariantResponse result = apiInstance.getStagingVariant();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.getStagingVariant: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get staging Variant in context of the member tenant.
    api_response = api_instance.get_staging_variant()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->getStagingVariant: %s\n" % e)
extern crate InventoryApi;

pub fn main() {

    let mut context = InventoryApi::Context::default();
    let result = client.getStagingVariant(&context).wait();

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

Scopes

Parameters

Responses


getStagingVariationOption

Get staging Variation Option in context of the member tenant.

Allows a member tenant to get staging Variation Option.


/Spenda/Inventory/StagingVariationOption

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.InventoryApi;

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

        try {
            httpActionResult_getStagingVariationOptionResponse result = apiInstance.getStagingVariationOption();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#getStagingVariationOption");
            e.printStackTrace();
        }
    }
}


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

// Get staging Variation Option in context of the member tenant.
[apiInstance getStagingVariationOptionWithCompletionHandler: 
              ^(httpActionResult_getStagingVariationOptionResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

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

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

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

            try {
                // Get staging Variation Option in context of the member tenant.
                httpActionResult_getStagingVariationOptionResponse result = apiInstance.getStagingVariationOption();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.getStagingVariationOption: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get staging Variation Option in context of the member tenant.
    api_response = api_instance.get_staging_variation_option()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->getStagingVariationOption: %s\n" % e)
extern crate InventoryApi;

pub fn main() {

    let mut context = InventoryApi::Context::default();
    let result = client.getStagingVariationOption(&context).wait();

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

Scopes

Parameters

Responses


getStagingWarranty

Get staging warranty in context of the member tenant.

Allows a member tenant to get staging warranty.


/Spenda/Inventory/StagingWarranty

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.InventoryApi;

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

        try {
            httpActionResult_getStagingWarrantyResponse result = apiInstance.getStagingWarranty();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#getStagingWarranty");
            e.printStackTrace();
        }
    }
}


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

// Get staging warranty in context of the member tenant.
[apiInstance getStagingWarrantyWithCompletionHandler: 
              ^(httpActionResult_getStagingWarrantyResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

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

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

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

            try {
                // Get staging warranty in context of the member tenant.
                httpActionResult_getStagingWarrantyResponse result = apiInstance.getStagingWarranty();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.getStagingWarranty: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get staging warranty in context of the member tenant.
    api_response = api_instance.get_staging_warranty()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->getStagingWarranty: %s\n" % e)
extern crate InventoryApi;

pub fn main() {

    let mut context = InventoryApi::Context::default();
    let result = client.getStagingWarranty(&context).wait();

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

Scopes

Parameters

Responses


saveMarketplaceInventories

Save marketplace inventories.

Save marketplace inventories.


/Spenda/Inventory/Marketplaces/Inventories

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        MarketplaceInventoryRequest marketplaceInventoryRequest = {"inventories":[{"inventoryCode":"string","shortDescription":"string","expenseAccount":"string"}]}; // MarketplaceInventoryRequest | 

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

final api_instance = DefaultApi();

final MarketplaceInventoryRequest marketplaceInventoryRequest = new MarketplaceInventoryRequest(); // MarketplaceInventoryRequest | 

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

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        MarketplaceInventoryRequest marketplaceInventoryRequest = {"inventories":[{"inventoryCode":"string","shortDescription":"string","expenseAccount":"string"}]}; // MarketplaceInventoryRequest | 

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


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
MarketplaceInventoryRequest *marketplaceInventoryRequest = {"inventories":[{"inventoryCode":"string","shortDescription":"string","expenseAccount":"string"}]}; //  (optional)

// Save marketplace inventories.
[apiInstance saveMarketplaceInventoriesWith:marketplaceInventoryRequest
              completionHandler: ^(httpActionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var opts = {
  'marketplaceInventoryRequest': {"inventories":[{"inventoryCode":"string","shortDescription":"string","expenseAccount":"string"}]} // {MarketplaceInventoryRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var marketplaceInventoryRequest = new MarketplaceInventoryRequest(); // MarketplaceInventoryRequest |  (optional) 

            try {
                // Save marketplace inventories.
                httpActionResult result = apiInstance.saveMarketplaceInventories(marketplaceInventoryRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.saveMarketplaceInventories: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$marketplaceInventoryRequest = {"inventories":[{"inventoryCode":"string","shortDescription":"string","expenseAccount":"string"}]}; // MarketplaceInventoryRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $marketplaceInventoryRequest = WWW::OPenAPIClient::Object::MarketplaceInventoryRequest->new(); # MarketplaceInventoryRequest | 

eval {
    my $result = $api_instance->saveMarketplaceInventories(marketplaceInventoryRequest => $marketplaceInventoryRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->saveMarketplaceInventories: $@\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.InventoryApi()
marketplaceInventoryRequest = {"inventories":[{"inventoryCode":"string","shortDescription":"string","expenseAccount":"string"}]} # MarketplaceInventoryRequest |  (optional)

try:
    # Save marketplace inventories.
    api_response = api_instance.save_marketplace_inventories(marketplaceInventoryRequest=marketplaceInventoryRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->saveMarketplaceInventories: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let marketplaceInventoryRequest = {"inventories":[{"inventoryCode":"string","shortDescription":"string","expenseAccount":"string"}]}; // MarketplaceInventoryRequest

    let mut context = InventoryApi::Context::default();
    let result = client.saveMarketplaceInventories(marketplaceInventoryRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
marketplaceInventoryRequest

Responses


uploadCatalogue

Uploads an inventory file in context of the member tenant.

Allows a member tenant to upload a Inventory file.


/Spenda/Inventory/Catalogue

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/Catalogue?IsSuppressOutput=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InventoryApi;

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

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

        // Create an instance of the API class
        InventoryApi apiInstance = new InventoryApi();
        Boolean isSuppressOutput = true; // Boolean | Allow tenant to suppress the output

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

final api_instance = DefaultApi();

final Boolean isSuppressOutput = new Boolean(); // Boolean | Allow tenant to suppress the output

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

import org.openapitools.client.api.InventoryApi;

public class InventoryApiExample {
    public static void main(String[] args) {
        InventoryApi apiInstance = new InventoryApi();
        Boolean isSuppressOutput = true; // Boolean | Allow tenant to suppress the output

        try {
            httpActionResult_uploadFileResponse result = apiInstance.uploadCatalogue(isSuppressOutput);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InventoryApi#uploadCatalogue");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InventoryApi *apiInstance = [[InventoryApi alloc] init];
Boolean *isSuppressOutput = true; // Allow tenant to suppress the output (optional) (default to null)

// Uploads an inventory file in context of the member tenant.
[apiInstance uploadCatalogueWith:isSuppressOutput
              completionHandler: ^(httpActionResult_uploadFileResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.InventoryApi()
var opts = {
  'isSuppressOutput': true // {Boolean} Allow tenant to suppress the output
};

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

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

            // Create an instance of the API class
            var apiInstance = new InventoryApi();
            var isSuppressOutput = true;  // Boolean | Allow tenant to suppress the output (optional)  (default to null)

            try {
                // Uploads an inventory file in context of the member tenant.
                httpActionResult_uploadFileResponse result = apiInstance.uploadCatalogue(isSuppressOutput);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InventoryApi.uploadCatalogue: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InventoryApi();
$isSuppressOutput = true; // Boolean | Allow tenant to suppress the output

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InventoryApi->new();
my $isSuppressOutput = true; # Boolean | Allow tenant to suppress the output

eval {
    my $result = $api_instance->uploadCatalogue(isSuppressOutput => $isSuppressOutput);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InventoryApi->uploadCatalogue: $@\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.InventoryApi()
isSuppressOutput = true # Boolean | Allow tenant to suppress the output (optional) (default to null)

try:
    # Uploads an inventory file in context of the member tenant.
    api_response = api_instance.upload_catalogue(isSuppressOutput=isSuppressOutput)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InventoryApi->uploadCatalogue: %s\n" % e)
extern crate InventoryApi;

pub fn main() {
    let isSuppressOutput = true; // Boolean

    let mut context = InventoryApi::Context::default();
    let result = client.uploadCatalogue(isSuppressOutput, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
IsSuppressOutput
Boolean
Allow tenant to suppress the output

Responses


Variants

uploadVariants

Uploads variant(s) file in context of the member tenant.

Allows a member tenant to upload a variant(s) file.


/Spenda/Inventory/Variants

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/Variants?IsSuppressOutput=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VariantsApi;

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

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

        // Create an instance of the API class
        VariantsApi apiInstance = new VariantsApi();
        Boolean isSuppressOutput = true; // Boolean | Allow tenant to suppress the output

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

final api_instance = DefaultApi();

final Boolean isSuppressOutput = new Boolean(); // Boolean | Allow tenant to suppress the output

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

import org.openapitools.client.api.VariantsApi;

public class VariantsApiExample {
    public static void main(String[] args) {
        VariantsApi apiInstance = new VariantsApi();
        Boolean isSuppressOutput = true; // Boolean | Allow tenant to suppress the output

        try {
            httpActionResult_uploadFileResponse result = apiInstance.uploadVariants(isSuppressOutput);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VariantsApi#uploadVariants");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
VariantsApi *apiInstance = [[VariantsApi alloc] init];
Boolean *isSuppressOutput = true; // Allow tenant to suppress the output (optional) (default to null)

// Uploads variant(s) file in context of the member tenant.
[apiInstance uploadVariantsWith:isSuppressOutput
              completionHandler: ^(httpActionResult_uploadFileResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

// Create an instance of the API class
var api = new SpendaServicesInventory.VariantsApi()
var opts = {
  'isSuppressOutput': true // {Boolean} Allow tenant to suppress the output
};

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

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

            // Create an instance of the API class
            var apiInstance = new VariantsApi();
            var isSuppressOutput = true;  // Boolean | Allow tenant to suppress the output (optional)  (default to null)

            try {
                // Uploads variant(s) file in context of the member tenant.
                httpActionResult_uploadFileResponse result = apiInstance.uploadVariants(isSuppressOutput);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VariantsApi.uploadVariants: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VariantsApi();
$isSuppressOutput = true; // Boolean | Allow tenant to suppress the output

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VariantsApi->new();
my $isSuppressOutput = true; # Boolean | Allow tenant to suppress the output

eval {
    my $result = $api_instance->uploadVariants(isSuppressOutput => $isSuppressOutput);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VariantsApi->uploadVariants: $@\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.VariantsApi()
isSuppressOutput = true # Boolean | Allow tenant to suppress the output (optional) (default to null)

try:
    # Uploads variant(s) file in context of the member tenant.
    api_response = api_instance.upload_variants(isSuppressOutput=isSuppressOutput)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VariantsApi->uploadVariants: %s\n" % e)
extern crate VariantsApi;

pub fn main() {
    let isSuppressOutput = true; // Boolean

    let mut context = VariantsApi::Context::default();
    let result = client.uploadVariants(isSuppressOutput, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
IsSuppressOutput
Boolean
Allow tenant to suppress the output

Responses


uploadVariationOptions

Uploads Variation Option file in context of the member tenant.

Allows a member tenant to upload a Variation Option file.


/Spenda/Inventory/VariationOption

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/VariationOption"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VariantsApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.VariantsApi;

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

        try {
            httpActionResult_uploadFileResponse result = apiInstance.uploadVariationOptions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VariantsApi#uploadVariationOptions");
            e.printStackTrace();
        }
    }
}


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

// Uploads Variation Option file in context of the member tenant.
[apiInstance uploadVariationOptionsWithCompletionHandler: 
              ^(httpActionResult_uploadFileResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

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

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

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

            try {
                // Uploads Variation Option file in context of the member tenant.
                httpActionResult_uploadFileResponse result = apiInstance.uploadVariationOptions();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VariantsApi.uploadVariationOptions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Uploads Variation Option file in context of the member tenant.
    api_response = api_instance.upload_variation_options()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VariantsApi->uploadVariationOptions: %s\n" % e)
extern crate VariantsApi;

pub fn main() {

    let mut context = VariantsApi::Context::default();
    let result = client.uploadVariationOptions(&context).wait();

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

Scopes

Parameters

Responses


Warranty

uploadWarranty

Uploads warranty file in context of the member tenant.

Allows a member tenant to upload a warranty file.


/Spenda/Inventory/Warranty

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "https://api.dev.spenda.co/api/Spenda/Inventory/Warranty"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.WarrantyApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.WarrantyApi;

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

        try {
            httpActionResult_uploadFileResponse result = apiInstance.uploadWarranty();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WarrantyApi#uploadWarranty");
            e.printStackTrace();
        }
    }
}


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

// Uploads warranty file in context of the member tenant.
[apiInstance uploadWarrantyWithCompletionHandler: 
              ^(httpActionResult_uploadFileResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var SpendaServicesInventory = require('spenda_services_inventory');

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

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

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

            try {
                // Uploads warranty file in context of the member tenant.
                httpActionResult_uploadFileResponse result = apiInstance.uploadWarranty();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling WarrantyApi.uploadWarranty: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Uploads warranty file in context of the member tenant.
    api_response = api_instance.upload_warranty()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WarrantyApi->uploadWarranty: %s\n" % e)
extern crate WarrantyApi;

pub fn main() {

    let mut context = WarrantyApi::Context::default();
    let result = client.uploadWarranty(&context).wait();

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

Scopes

Parameters

Responses