Allows a member tenant to download inventory csv.
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);
}