AS Server - API - StockTake

Default

stockTakeAddItem

StockTake_AddItem


/StockTake/{stocktakeid}/stockadjustment

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/StockTake/{stocktakeid}/stockadjustment?inventoryID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.
        Integer inventoryID = 56; // Integer | Format - int32.

        try {
            PagedActionResults_StockTakeLines_ result = apiInstance.stockTakeAddItem(stocktakeid, inventoryID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeAddItem");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer stocktakeid = new Integer(); // Integer | Format - int32.
final Integer inventoryID = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.
        Integer inventoryID = 56; // Integer | Format - int32.

        try {
            PagedActionResults_StockTakeLines_ result = apiInstance.stockTakeAddItem(stocktakeid, inventoryID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeAddItem");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *stocktakeid = 56; // Format - int32. (default to null)
Integer *inventoryID = 56; // Format - int32. (default to null)

// StockTake_AddItem
[apiInstance stockTakeAddItemWith:stocktakeid
    inventoryID:inventoryID
              completionHandler: ^(PagedActionResults_StockTakeLines_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var stocktakeid = 56; // {Integer} Format - int32.
var inventoryID = 56; // {Integer} Format - int32.

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var stocktakeid = 56;  // Integer | Format - int32. (default to null)
            var inventoryID = 56;  // Integer | Format - int32. (default to null)

            try {
                // StockTake_AddItem
                PagedActionResults_StockTakeLines_ result = apiInstance.stockTakeAddItem(stocktakeid, inventoryID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakeAddItem: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$stocktakeid = 56; // Integer | Format - int32.
$inventoryID = 56; // Integer | Format - int32.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $stocktakeid = 56; # Integer | Format - int32.
my $inventoryID = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->stockTakeAddItem(stocktakeid => $stocktakeid, inventoryID => $inventoryID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakeAddItem: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
stocktakeid = 56 # Integer | Format - int32. (default to null)
inventoryID = 56 # Integer | Format - int32. (default to null)

try:
    # StockTake_AddItem
    api_response = api_instance.stock_take_add_item(stocktakeid, inventoryID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakeAddItem: %s\n" % e)
extern crate DefaultApi;

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

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakeAddItem(stocktakeid, inventoryID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
stocktakeid*
Integer (int32)
Format - int32.
Required
Query parameters
Name Description
inventoryID*
Integer (int32)
Format - int32.
Required

Responses


stockTakeApproveAll

StockTake_ApproveAll


/StockTake/{stocktakeid}/approve

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/StockTake/{stocktakeid}/approve"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.

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

final api_instance = DefaultApi();

final Integer stocktakeid = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.

        try {
            ActionResults_SetApproveAllStockTakeLinesResponse_ result = apiInstance.stockTakeApproveAll(stocktakeid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeApproveAll");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *stocktakeid = 56; // Format - int32. (default to null)

// StockTake_ApproveAll
[apiInstance stockTakeApproveAllWith:stocktakeid
              completionHandler: ^(ActionResults_SetApproveAllStockTakeLinesResponse_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var stocktakeid = 56; // {Integer} Format - int32.

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var stocktakeid = 56;  // Integer | Format - int32. (default to null)

            try {
                // StockTake_ApproveAll
                ActionResults_SetApproveAllStockTakeLinesResponse_ result = apiInstance.stockTakeApproveAll(stocktakeid);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakeApproveAll: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$stocktakeid = 56; // Integer | Format - int32.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $stocktakeid = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->stockTakeApproveAll(stocktakeid => $stocktakeid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakeApproveAll: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
stocktakeid = 56 # Integer | Format - int32. (default to null)

try:
    # StockTake_ApproveAll
    api_response = api_instance.stock_take_approve_all(stocktakeid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakeApproveAll: %s\n" % e)
extern crate DefaultApi;

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

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakeApproveAll(stocktakeid, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
stocktakeid*
Integer (int32)
Format - int32.
Required

Responses


stockTakeCommitStockTake

StockTake_CommitStockTake


/StockTake/{stocktakeid}/commit

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/StockTake/{stocktakeid}/commit?effectiveDate=2013-10-20T19:20:30+01:00"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.
        Date effectiveDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).

        try {
            ActionResults_CommitStockTakeResult_ result = apiInstance.stockTakeCommitStockTake(stocktakeid, effectiveDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeCommitStockTake");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer stocktakeid = new Integer(); // Integer | Format - int32.
final Date effectiveDate = new Date(); // Date | Format - date-time (as date-time in RFC3339).

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.
        Date effectiveDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).

        try {
            ActionResults_CommitStockTakeResult_ result = apiInstance.stockTakeCommitStockTake(stocktakeid, effectiveDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeCommitStockTake");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *stocktakeid = 56; // Format - int32. (default to null)
Date *effectiveDate = 2013-10-20T19:20:30+01:00; // Format - date-time (as date-time in RFC3339). (default to null)

// StockTake_CommitStockTake
[apiInstance stockTakeCommitStockTakeWith:stocktakeid
    effectiveDate:effectiveDate
              completionHandler: ^(ActionResults_CommitStockTakeResult_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var stocktakeid = 56; // {Integer} Format - int32.
var effectiveDate = 2013-10-20T19:20:30+01:00; // {Date} Format - date-time (as date-time in RFC3339).

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var stocktakeid = 56;  // Integer | Format - int32. (default to null)
            var effectiveDate = 2013-10-20T19:20:30+01:00;  // Date | Format - date-time (as date-time in RFC3339). (default to null)

            try {
                // StockTake_CommitStockTake
                ActionResults_CommitStockTakeResult_ result = apiInstance.stockTakeCommitStockTake(stocktakeid, effectiveDate);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakeCommitStockTake: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$stocktakeid = 56; // Integer | Format - int32.
$effectiveDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $stocktakeid = 56; # Integer | Format - int32.
my $effectiveDate = 2013-10-20T19:20:30+01:00; # Date | Format - date-time (as date-time in RFC3339).

eval {
    my $result = $api_instance->stockTakeCommitStockTake(stocktakeid => $stocktakeid, effectiveDate => $effectiveDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakeCommitStockTake: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
stocktakeid = 56 # Integer | Format - int32. (default to null)
effectiveDate = 2013-10-20T19:20:30+01:00 # Date | Format - date-time (as date-time in RFC3339). (default to null)

try:
    # StockTake_CommitStockTake
    api_response = api_instance.stock_take_commit_stock_take(stocktakeid, effectiveDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakeCommitStockTake: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let stocktakeid = 56; // Integer
    let effectiveDate = 2013-10-20T19:20:30+01:00; // Date

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakeCommitStockTake(stocktakeid, effectiveDate, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
stocktakeid*
Integer (int32)
Format - int32.
Required
Query parameters
Name Description
effectiveDate*
Date (date-time)
Format - date-time (as date-time in RFC3339).
Required

Responses


stockTakeDelete

StockTake_Delete


/StockTake/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/StockTake/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

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

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

        try {
            ActionResults result = apiInstance.stockTakeDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; // Format - int32. (default to null)

// StockTake_Delete
[apiInstance stockTakeDeleteWith:id
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var id = 56; // {Integer} Format - int32.

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Format - int32. (default to null)

            try {
                // StockTake_Delete
                ActionResults result = apiInstance.stockTakeDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakeDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | Format - int32.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->stockTakeDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakeDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | Format - int32. (default to null)

try:
    # StockTake_Delete
    api_response = api_instance.stock_take_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakeDelete: %s\n" % e)
extern crate DefaultApi;

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

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakeDelete(id, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Format - int32.
Required

Responses


stockTakeDeleteStockTakeLine

StockTake_DeleteStockTakeLine


/StockTake/{stocktakeid}/lines/{lineId}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/StockTake/{stocktakeid}/lines/{lineId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.
        Integer lineId = 56; // Integer | Format - int32.

        try {
            ActionResults result = apiInstance.stockTakeDeleteStockTakeLine(stocktakeid, lineId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeDeleteStockTakeLine");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer stocktakeid = new Integer(); // Integer | Format - int32.
final Integer lineId = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.
        Integer lineId = 56; // Integer | Format - int32.

        try {
            ActionResults result = apiInstance.stockTakeDeleteStockTakeLine(stocktakeid, lineId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeDeleteStockTakeLine");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *stocktakeid = 56; // Format - int32. (default to null)
Integer *lineId = 56; // Format - int32. (default to null)

// StockTake_DeleteStockTakeLine
[apiInstance stockTakeDeleteStockTakeLineWith:stocktakeid
    lineId:lineId
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var stocktakeid = 56; // {Integer} Format - int32.
var lineId = 56; // {Integer} Format - int32.

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var stocktakeid = 56;  // Integer | Format - int32. (default to null)
            var lineId = 56;  // Integer | Format - int32. (default to null)

            try {
                // StockTake_DeleteStockTakeLine
                ActionResults result = apiInstance.stockTakeDeleteStockTakeLine(stocktakeid, lineId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakeDeleteStockTakeLine: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$stocktakeid = 56; // Integer | Format - int32.
$lineId = 56; // Integer | Format - int32.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $stocktakeid = 56; # Integer | Format - int32.
my $lineId = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->stockTakeDeleteStockTakeLine(stocktakeid => $stocktakeid, lineId => $lineId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakeDeleteStockTakeLine: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
stocktakeid = 56 # Integer | Format - int32. (default to null)
lineId = 56 # Integer | Format - int32. (default to null)

try:
    # StockTake_DeleteStockTakeLine
    api_response = api_instance.stock_take_delete_stock_take_line(stocktakeid, lineId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakeDeleteStockTakeLine: %s\n" % e)
extern crate DefaultApi;

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

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakeDeleteStockTakeLine(stocktakeid, lineId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
stocktakeid*
Integer (int32)
Format - int32.
Required
lineId*
Integer (int32)
Format - int32.
Required

Responses


stockTakeGetByID

StockTake_GetByID


/StockTake/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/StockTake/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

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

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.

        try {
            ActionResults_StockTakeT_ result = apiInstance.stockTakeGetByID(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeGetByID");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; // Format - int32. (default to null)

// StockTake_GetByID
[apiInstance stockTakeGetByIDWith:id
              completionHandler: ^(ActionResults_StockTakeT_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var id = 56; // {Integer} Format - int32.

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Format - int32. (default to null)

            try {
                // StockTake_GetByID
                ActionResults_StockTakeT_ result = apiInstance.stockTakeGetByID(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakeGetByID: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | Format - int32.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->stockTakeGetByID(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakeGetByID: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | Format - int32. (default to null)

try:
    # StockTake_GetByID
    api_response = api_instance.stock_take_get_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakeGetByID: %s\n" % e)
extern crate DefaultApi;

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

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakeGetByID(id, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Format - int32.
Required

Responses


stockTakeGetStockTakeLines

StockTake_GetStockTakeLines


/StockTake/{id}/lines

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/StockTake/{id}/lines?filter.stockTakeID=56&filter.lineID=56&filter.isApproved=true&filter.inventoryID=56&filter.statuses=&filter.statusStrings=&filter.status=&filter.searchString=filterPeriodsearchString_example&filter.searchNameOnly=true&filter.search=filterPeriodsearch_example&filter.startDate=2013-10-20T19:20:30+01:00&filter.endDate=2013-10-20T19:20:30+01:00&filter.datePeriod=filterPerioddatePeriod_example&filter.isExactMatch=true&filter.isGetBasicInfo=true&filter.includeDeleted=true&filter.includeLogs=true&filter.ignoreID=56&filter.parentID=56&filter.getCountOnly=true&filter.transactionTypeDatTypeID=56&filter.categoryID=56&filter.adaptorID=56&filter.categoryIDs=&filter.brandIDs=&filter.iDs=&filter.gUIDs=&filter.linkedSupplierID=56&filter.isApprovedForPOS=true&filter.isApprovedForWeb=true&filter.isApprovedForService=true&filter.iD=56&filter.isHierarchicalSort=true&filter.types=&filter.isShowFavourites=true&filter.isHidden=true&filter.includeSystemTasks=true&filter.isSystem=true&filter.batchStatus=filterPeriodbatchStatus_example&filter.sortField=filterPeriodsortField_example&filter.sortAsc=true&filter.groupBy=filterPeriodgroupBy_example&filter.lastRowNumber=789&filter.maxResults=56&filter.tenantID=56&filter.websiteID=56&filter.userID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.
        Integer filterPeriodstockTakeID = 56; // Integer | Format - int32.
        Integer filterPeriodlineID = 56; // Integer | Format - int32.
        Boolean filterPeriodisApproved = true; // Boolean | 
        Integer filterPeriodinventoryID = 56; // Integer | Format - int32.
        array[Integer] filterPeriodstatuses = ; // array[Integer] | 
        array[String] filterPeriodstatusStrings = ; // array[String] | 
        array[String] filterPeriodstatus = ; // array[String] | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsearchNameOnly = true; // Boolean | 
        String filterPeriodsearch = filterPeriodsearch_example; // String | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        String filterPerioddatePeriod = filterPerioddatePeriod_example; // String | 
        Boolean filterPeriodisExactMatch = true; // Boolean | 
        Boolean filterPeriodisGetBasicInfo = true; // Boolean | 
        Boolean filterPeriodincludeDeleted = true; // Boolean | 
        Boolean filterPeriodincludeLogs = true; // Boolean | 
        Integer filterPeriodignoreID = 56; // Integer | Format - int32.
        Integer filterPeriodparentID = 56; // Integer | Format - int32.
        Boolean filterPeriodgetCountOnly = true; // Boolean | 
        Integer filterPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
        Integer filterPeriodcategoryID = 56; // Integer | Format - int32.
        Integer filterPeriodadaptorID = 56; // Integer | Format - int32.
        array[Integer] filterPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] filterPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] filterPeriodiDs = ; // array[Integer] | 
        array[String] filterPeriodgUIDs = ; // array[String] | 
        Integer filterPeriodlinkedSupplierID = 56; // Integer | Format - int32.
        Boolean filterPeriodisApprovedForPOS = true; // Boolean | 
        Boolean filterPeriodisApprovedForWeb = true; // Boolean | 
        Boolean filterPeriodisApprovedForService = true; // Boolean | 
        Integer filterPeriodiD = 56; // Integer | Format - int32.
        Boolean filterPeriodisHierarchicalSort = true; // Boolean | 
        array[String] filterPeriodtypes = ; // array[String] | 
        Boolean filterPeriodisShowFavourites = true; // Boolean | 
        Boolean filterPeriodisHidden = true; // Boolean | 
        Boolean filterPeriodincludeSystemTasks = true; // Boolean | 
        Boolean filterPeriodisSystem = true; // Boolean | 
        String filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        String filterPeriodgroupBy = filterPeriodgroupBy_example; // String | 
        Long filterPeriodlastRowNumber = 789; // Long | Format - int64.
        Integer filterPeriodmaxResults = 56; // Integer | Format - int32.
        Integer filterPeriodtenantID = 56; // Integer | Format - int32.
        Integer filterPeriodwebsiteID = 56; // Integer | Format - int32.
        Integer filterPerioduserID = 56; // Integer | Format - int32.

        try {
            PagedActionResults_StockTakeLines_ result = apiInstance.stockTakeGetStockTakeLines(id, filterPeriodstockTakeID, filterPeriodlineID, filterPeriodisApproved, filterPeriodinventoryID, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeGetStockTakeLines");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Format - int32.
final Integer filterPeriodstockTakeID = new Integer(); // Integer | Format - int32.
final Integer filterPeriodlineID = new Integer(); // Integer | Format - int32.
final Boolean filterPeriodisApproved = new Boolean(); // Boolean | 
final Integer filterPeriodinventoryID = new Integer(); // Integer | Format - int32.
final array[Integer] filterPeriodstatuses = new array[Integer](); // array[Integer] | 
final array[String] filterPeriodstatusStrings = new array[String](); // array[String] | 
final array[String] filterPeriodstatus = new array[String](); // array[String] | 
final String filterPeriodsearchString = new String(); // String | 
final Boolean filterPeriodsearchNameOnly = new Boolean(); // Boolean | 
final String filterPeriodsearch = new String(); // String | 
final Date filterPeriodstartDate = new Date(); // Date | Format - date-time (as date-time in RFC3339).
final Date filterPeriodendDate = new Date(); // Date | Format - date-time (as date-time in RFC3339).
final String filterPerioddatePeriod = new String(); // String | 
final Boolean filterPeriodisExactMatch = new Boolean(); // Boolean | 
final Boolean filterPeriodisGetBasicInfo = new Boolean(); // Boolean | 
final Boolean filterPeriodincludeDeleted = new Boolean(); // Boolean | 
final Boolean filterPeriodincludeLogs = new Boolean(); // Boolean | 
final Integer filterPeriodignoreID = new Integer(); // Integer | Format - int32.
final Integer filterPeriodparentID = new Integer(); // Integer | Format - int32.
final Boolean filterPeriodgetCountOnly = new Boolean(); // Boolean | 
final Integer filterPeriodtransactionTypeDatTypeID = new Integer(); // Integer | Format - int32.
final Integer filterPeriodcategoryID = new Integer(); // Integer | Format - int32.
final Integer filterPeriodadaptorID = new Integer(); // Integer | Format - int32.
final array[Integer] filterPeriodcategoryIDs = new array[Integer](); // array[Integer] | 
final array[Integer] filterPeriodbrandIDs = new array[Integer](); // array[Integer] | 
final array[Integer] filterPeriodiDs = new array[Integer](); // array[Integer] | 
final array[String] filterPeriodgUIDs = new array[String](); // array[String] | 
final Integer filterPeriodlinkedSupplierID = new Integer(); // Integer | Format - int32.
final Boolean filterPeriodisApprovedForPOS = new Boolean(); // Boolean | 
final Boolean filterPeriodisApprovedForWeb = new Boolean(); // Boolean | 
final Boolean filterPeriodisApprovedForService = new Boolean(); // Boolean | 
final Integer filterPeriodiD = new Integer(); // Integer | Format - int32.
final Boolean filterPeriodisHierarchicalSort = new Boolean(); // Boolean | 
final array[String] filterPeriodtypes = new array[String](); // array[String] | 
final Boolean filterPeriodisShowFavourites = new Boolean(); // Boolean | 
final Boolean filterPeriodisHidden = new Boolean(); // Boolean | 
final Boolean filterPeriodincludeSystemTasks = new Boolean(); // Boolean | 
final Boolean filterPeriodisSystem = new Boolean(); // Boolean | 
final String filterPeriodbatchStatus = new String(); // String | 
final String filterPeriodsortField = new String(); // String | 
final Boolean filterPeriodsortAsc = new Boolean(); // Boolean | 
final String filterPeriodgroupBy = new String(); // String | 
final Long filterPeriodlastRowNumber = new Long(); // Long | Format - int64.
final Integer filterPeriodmaxResults = new Integer(); // Integer | Format - int32.
final Integer filterPeriodtenantID = new Integer(); // Integer | Format - int32.
final Integer filterPeriodwebsiteID = new Integer(); // Integer | Format - int32.
final Integer filterPerioduserID = new Integer(); // Integer | Format - int32.

try {
    final result = await api_instance.stockTakeGetStockTakeLines(id, filterPeriodstockTakeID, filterPeriodlineID, filterPeriodisApproved, filterPeriodinventoryID, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->stockTakeGetStockTakeLines: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.
        Integer filterPeriodstockTakeID = 56; // Integer | Format - int32.
        Integer filterPeriodlineID = 56; // Integer | Format - int32.
        Boolean filterPeriodisApproved = true; // Boolean | 
        Integer filterPeriodinventoryID = 56; // Integer | Format - int32.
        array[Integer] filterPeriodstatuses = ; // array[Integer] | 
        array[String] filterPeriodstatusStrings = ; // array[String] | 
        array[String] filterPeriodstatus = ; // array[String] | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsearchNameOnly = true; // Boolean | 
        String filterPeriodsearch = filterPeriodsearch_example; // String | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        String filterPerioddatePeriod = filterPerioddatePeriod_example; // String | 
        Boolean filterPeriodisExactMatch = true; // Boolean | 
        Boolean filterPeriodisGetBasicInfo = true; // Boolean | 
        Boolean filterPeriodincludeDeleted = true; // Boolean | 
        Boolean filterPeriodincludeLogs = true; // Boolean | 
        Integer filterPeriodignoreID = 56; // Integer | Format - int32.
        Integer filterPeriodparentID = 56; // Integer | Format - int32.
        Boolean filterPeriodgetCountOnly = true; // Boolean | 
        Integer filterPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
        Integer filterPeriodcategoryID = 56; // Integer | Format - int32.
        Integer filterPeriodadaptorID = 56; // Integer | Format - int32.
        array[Integer] filterPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] filterPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] filterPeriodiDs = ; // array[Integer] | 
        array[String] filterPeriodgUIDs = ; // array[String] | 
        Integer filterPeriodlinkedSupplierID = 56; // Integer | Format - int32.
        Boolean filterPeriodisApprovedForPOS = true; // Boolean | 
        Boolean filterPeriodisApprovedForWeb = true; // Boolean | 
        Boolean filterPeriodisApprovedForService = true; // Boolean | 
        Integer filterPeriodiD = 56; // Integer | Format - int32.
        Boolean filterPeriodisHierarchicalSort = true; // Boolean | 
        array[String] filterPeriodtypes = ; // array[String] | 
        Boolean filterPeriodisShowFavourites = true; // Boolean | 
        Boolean filterPeriodisHidden = true; // Boolean | 
        Boolean filterPeriodincludeSystemTasks = true; // Boolean | 
        Boolean filterPeriodisSystem = true; // Boolean | 
        String filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        String filterPeriodgroupBy = filterPeriodgroupBy_example; // String | 
        Long filterPeriodlastRowNumber = 789; // Long | Format - int64.
        Integer filterPeriodmaxResults = 56; // Integer | Format - int32.
        Integer filterPeriodtenantID = 56; // Integer | Format - int32.
        Integer filterPeriodwebsiteID = 56; // Integer | Format - int32.
        Integer filterPerioduserID = 56; // Integer | Format - int32.

        try {
            PagedActionResults_StockTakeLines_ result = apiInstance.stockTakeGetStockTakeLines(id, filterPeriodstockTakeID, filterPeriodlineID, filterPeriodisApproved, filterPeriodinventoryID, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeGetStockTakeLines");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; // Format - int32. (default to null)
Integer *filterPeriodstockTakeID = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodlineID = 56; // Format - int32. (optional) (default to null)
Boolean *filterPeriodisApproved = true; //  (optional) (default to null)
Integer *filterPeriodinventoryID = 56; // Format - int32. (optional) (default to null)
array[Integer] *filterPeriodstatuses = ; //  (optional) (default to null)
array[String] *filterPeriodstatusStrings = ; //  (optional) (default to null)
array[String] *filterPeriodstatus = ; //  (optional) (default to null)
String *filterPeriodsearchString = filterPeriodsearchString_example; //  (optional) (default to null)
Boolean *filterPeriodsearchNameOnly = true; //  (optional) (default to null)
String *filterPeriodsearch = filterPeriodsearch_example; //  (optional) (default to null)
Date *filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Format - date-time (as date-time in RFC3339). (optional) (default to null)
Date *filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Format - date-time (as date-time in RFC3339). (optional) (default to null)
String *filterPerioddatePeriod = filterPerioddatePeriod_example; //  (optional) (default to null)
Boolean *filterPeriodisExactMatch = true; //  (optional) (default to null)
Boolean *filterPeriodisGetBasicInfo = true; //  (optional) (default to null)
Boolean *filterPeriodincludeDeleted = true; //  (optional) (default to null)
Boolean *filterPeriodincludeLogs = true; //  (optional) (default to null)
Integer *filterPeriodignoreID = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodparentID = 56; // Format - int32. (optional) (default to null)
Boolean *filterPeriodgetCountOnly = true; //  (optional) (default to null)
Integer *filterPeriodtransactionTypeDatTypeID = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodcategoryID = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodadaptorID = 56; // Format - int32. (optional) (default to null)
array[Integer] *filterPeriodcategoryIDs = ; //  (optional) (default to null)
array[Integer] *filterPeriodbrandIDs = ; //  (optional) (default to null)
array[Integer] *filterPeriodiDs = ; //  (optional) (default to null)
array[String] *filterPeriodgUIDs = ; //  (optional) (default to null)
Integer *filterPeriodlinkedSupplierID = 56; // Format - int32. (optional) (default to null)
Boolean *filterPeriodisApprovedForPOS = true; //  (optional) (default to null)
Boolean *filterPeriodisApprovedForWeb = true; //  (optional) (default to null)
Boolean *filterPeriodisApprovedForService = true; //  (optional) (default to null)
Integer *filterPeriodiD = 56; // Format - int32. (optional) (default to null)
Boolean *filterPeriodisHierarchicalSort = true; //  (optional) (default to null)
array[String] *filterPeriodtypes = ; //  (optional) (default to null)
Boolean *filterPeriodisShowFavourites = true; //  (optional) (default to null)
Boolean *filterPeriodisHidden = true; //  (optional) (default to null)
Boolean *filterPeriodincludeSystemTasks = true; //  (optional) (default to null)
Boolean *filterPeriodisSystem = true; //  (optional) (default to null)
String *filterPeriodbatchStatus = filterPeriodbatchStatus_example; //  (optional) (default to null)
String *filterPeriodsortField = filterPeriodsortField_example; //  (optional) (default to null)
Boolean *filterPeriodsortAsc = true; //  (optional) (default to null)
String *filterPeriodgroupBy = filterPeriodgroupBy_example; //  (optional) (default to null)
Long *filterPeriodlastRowNumber = 789; // Format - int64. (optional) (default to null)
Integer *filterPeriodmaxResults = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodtenantID = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodwebsiteID = 56; // Format - int32. (optional) (default to null)
Integer *filterPerioduserID = 56; // Format - int32. (optional) (default to null)

// StockTake_GetStockTakeLines
[apiInstance stockTakeGetStockTakeLinesWith:id
    filterPeriodstockTakeID:filterPeriodstockTakeID
    filterPeriodlineID:filterPeriodlineID
    filterPeriodisApproved:filterPeriodisApproved
    filterPeriodinventoryID:filterPeriodinventoryID
    filterPeriodstatuses:filterPeriodstatuses
    filterPeriodstatusStrings:filterPeriodstatusStrings
    filterPeriodstatus:filterPeriodstatus
    filterPeriodsearchString:filterPeriodsearchString
    filterPeriodsearchNameOnly:filterPeriodsearchNameOnly
    filterPeriodsearch:filterPeriodsearch
    filterPeriodstartDate:filterPeriodstartDate
    filterPeriodendDate:filterPeriodendDate
    filterPerioddatePeriod:filterPerioddatePeriod
    filterPeriodisExactMatch:filterPeriodisExactMatch
    filterPeriodisGetBasicInfo:filterPeriodisGetBasicInfo
    filterPeriodincludeDeleted:filterPeriodincludeDeleted
    filterPeriodincludeLogs:filterPeriodincludeLogs
    filterPeriodignoreID:filterPeriodignoreID
    filterPeriodparentID:filterPeriodparentID
    filterPeriodgetCountOnly:filterPeriodgetCountOnly
    filterPeriodtransactionTypeDatTypeID:filterPeriodtransactionTypeDatTypeID
    filterPeriodcategoryID:filterPeriodcategoryID
    filterPeriodadaptorID:filterPeriodadaptorID
    filterPeriodcategoryIDs:filterPeriodcategoryIDs
    filterPeriodbrandIDs:filterPeriodbrandIDs
    filterPeriodiDs:filterPeriodiDs
    filterPeriodgUIDs:filterPeriodgUIDs
    filterPeriodlinkedSupplierID:filterPeriodlinkedSupplierID
    filterPeriodisApprovedForPOS:filterPeriodisApprovedForPOS
    filterPeriodisApprovedForWeb:filterPeriodisApprovedForWeb
    filterPeriodisApprovedForService:filterPeriodisApprovedForService
    filterPeriodiD:filterPeriodiD
    filterPeriodisHierarchicalSort:filterPeriodisHierarchicalSort
    filterPeriodtypes:filterPeriodtypes
    filterPeriodisShowFavourites:filterPeriodisShowFavourites
    filterPeriodisHidden:filterPeriodisHidden
    filterPeriodincludeSystemTasks:filterPeriodincludeSystemTasks
    filterPeriodisSystem:filterPeriodisSystem
    filterPeriodbatchStatus:filterPeriodbatchStatus
    filterPeriodsortField:filterPeriodsortField
    filterPeriodsortAsc:filterPeriodsortAsc
    filterPeriodgroupBy:filterPeriodgroupBy
    filterPeriodlastRowNumber:filterPeriodlastRowNumber
    filterPeriodmaxResults:filterPeriodmaxResults
    filterPeriodtenantID:filterPeriodtenantID
    filterPeriodwebsiteID:filterPeriodwebsiteID
    filterPerioduserID:filterPerioduserID
              completionHandler: ^(PagedActionResults_StockTakeLines_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var id = 56; // {Integer} Format - int32.
var opts = {
  'filterPeriodstockTakeID': 56, // {Integer} Format - int32.
  'filterPeriodlineID': 56, // {Integer} Format - int32.
  'filterPeriodisApproved': true, // {Boolean} 
  'filterPeriodinventoryID': 56, // {Integer} Format - int32.
  'filterPeriodstatuses': , // {array[Integer]} 
  'filterPeriodstatusStrings': , // {array[String]} 
  'filterPeriodstatus': , // {array[String]} 
  'filterPeriodsearchString': filterPeriodsearchString_example, // {String} 
  'filterPeriodsearchNameOnly': true, // {Boolean} 
  'filterPeriodsearch': filterPeriodsearch_example, // {String} 
  'filterPeriodstartDate': 2013-10-20T19:20:30+01:00, // {Date} Format - date-time (as date-time in RFC3339).
  'filterPeriodendDate': 2013-10-20T19:20:30+01:00, // {Date} Format - date-time (as date-time in RFC3339).
  'filterPerioddatePeriod': filterPerioddatePeriod_example, // {String} 
  'filterPeriodisExactMatch': true, // {Boolean} 
  'filterPeriodisGetBasicInfo': true, // {Boolean} 
  'filterPeriodincludeDeleted': true, // {Boolean} 
  'filterPeriodincludeLogs': true, // {Boolean} 
  'filterPeriodignoreID': 56, // {Integer} Format - int32.
  'filterPeriodparentID': 56, // {Integer} Format - int32.
  'filterPeriodgetCountOnly': true, // {Boolean} 
  'filterPeriodtransactionTypeDatTypeID': 56, // {Integer} Format - int32.
  'filterPeriodcategoryID': 56, // {Integer} Format - int32.
  'filterPeriodadaptorID': 56, // {Integer} Format - int32.
  'filterPeriodcategoryIDs': , // {array[Integer]} 
  'filterPeriodbrandIDs': , // {array[Integer]} 
  'filterPeriodiDs': , // {array[Integer]} 
  'filterPeriodgUIDs': , // {array[String]} 
  'filterPeriodlinkedSupplierID': 56, // {Integer} Format - int32.
  'filterPeriodisApprovedForPOS': true, // {Boolean} 
  'filterPeriodisApprovedForWeb': true, // {Boolean} 
  'filterPeriodisApprovedForService': true, // {Boolean} 
  'filterPeriodiD': 56, // {Integer} Format - int32.
  'filterPeriodisHierarchicalSort': true, // {Boolean} 
  'filterPeriodtypes': , // {array[String]} 
  'filterPeriodisShowFavourites': true, // {Boolean} 
  'filterPeriodisHidden': true, // {Boolean} 
  'filterPeriodincludeSystemTasks': true, // {Boolean} 
  'filterPeriodisSystem': true, // {Boolean} 
  'filterPeriodbatchStatus': filterPeriodbatchStatus_example, // {String} 
  'filterPeriodsortField': filterPeriodsortField_example, // {String} 
  'filterPeriodsortAsc': true, // {Boolean} 
  'filterPeriodgroupBy': filterPeriodgroupBy_example, // {String} 
  'filterPeriodlastRowNumber': 789, // {Long} Format - int64.
  'filterPeriodmaxResults': 56, // {Integer} Format - int32.
  'filterPeriodtenantID': 56, // {Integer} Format - int32.
  'filterPeriodwebsiteID': 56, // {Integer} Format - int32.
  'filterPerioduserID': 56 // {Integer} Format - int32.
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Format - int32. (default to null)
            var filterPeriodstockTakeID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodlineID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodisApproved = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodinventoryID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodstatuses = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodstatusStrings = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodstatus = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodsearchString = filterPeriodsearchString_example;  // String |  (optional)  (default to null)
            var filterPeriodsearchNameOnly = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodsearch = filterPeriodsearch_example;  // String |  (optional)  (default to null)
            var filterPeriodstartDate = 2013-10-20T19:20:30+01:00;  // Date | Format - date-time (as date-time in RFC3339). (optional)  (default to null)
            var filterPeriodendDate = 2013-10-20T19:20:30+01:00;  // Date | Format - date-time (as date-time in RFC3339). (optional)  (default to null)
            var filterPerioddatePeriod = filterPerioddatePeriod_example;  // String |  (optional)  (default to null)
            var filterPeriodisExactMatch = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisGetBasicInfo = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodincludeDeleted = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodincludeLogs = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodignoreID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodparentID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodgetCountOnly = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodtransactionTypeDatTypeID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodcategoryID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodadaptorID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodcategoryIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodbrandIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodiDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodgUIDs = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodlinkedSupplierID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodisApprovedForPOS = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisApprovedForWeb = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisApprovedForService = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodiD = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodisHierarchicalSort = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodtypes = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodisShowFavourites = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisHidden = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodincludeSystemTasks = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisSystem = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodbatchStatus = filterPeriodbatchStatus_example;  // String |  (optional)  (default to null)
            var filterPeriodsortField = filterPeriodsortField_example;  // String |  (optional)  (default to null)
            var filterPeriodsortAsc = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodgroupBy = filterPeriodgroupBy_example;  // String |  (optional)  (default to null)
            var filterPeriodlastRowNumber = 789;  // Long | Format - int64. (optional)  (default to null)
            var filterPeriodmaxResults = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodtenantID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodwebsiteID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPerioduserID = 56;  // Integer | Format - int32. (optional)  (default to null)

            try {
                // StockTake_GetStockTakeLines
                PagedActionResults_StockTakeLines_ result = apiInstance.stockTakeGetStockTakeLines(id, filterPeriodstockTakeID, filterPeriodlineID, filterPeriodisApproved, filterPeriodinventoryID, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakeGetStockTakeLines: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | Format - int32.
$filterPeriodstockTakeID = 56; // Integer | Format - int32.
$filterPeriodlineID = 56; // Integer | Format - int32.
$filterPeriodisApproved = true; // Boolean | 
$filterPeriodinventoryID = 56; // Integer | Format - int32.
$filterPeriodstatuses = ; // array[Integer] | 
$filterPeriodstatusStrings = ; // array[String] | 
$filterPeriodstatus = ; // array[String] | 
$filterPeriodsearchString = filterPeriodsearchString_example; // String | 
$filterPeriodsearchNameOnly = true; // Boolean | 
$filterPeriodsearch = filterPeriodsearch_example; // String | 
$filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
$filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
$filterPerioddatePeriod = filterPerioddatePeriod_example; // String | 
$filterPeriodisExactMatch = true; // Boolean | 
$filterPeriodisGetBasicInfo = true; // Boolean | 
$filterPeriodincludeDeleted = true; // Boolean | 
$filterPeriodincludeLogs = true; // Boolean | 
$filterPeriodignoreID = 56; // Integer | Format - int32.
$filterPeriodparentID = 56; // Integer | Format - int32.
$filterPeriodgetCountOnly = true; // Boolean | 
$filterPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
$filterPeriodcategoryID = 56; // Integer | Format - int32.
$filterPeriodadaptorID = 56; // Integer | Format - int32.
$filterPeriodcategoryIDs = ; // array[Integer] | 
$filterPeriodbrandIDs = ; // array[Integer] | 
$filterPeriodiDs = ; // array[Integer] | 
$filterPeriodgUIDs = ; // array[String] | 
$filterPeriodlinkedSupplierID = 56; // Integer | Format - int32.
$filterPeriodisApprovedForPOS = true; // Boolean | 
$filterPeriodisApprovedForWeb = true; // Boolean | 
$filterPeriodisApprovedForService = true; // Boolean | 
$filterPeriodiD = 56; // Integer | Format - int32.
$filterPeriodisHierarchicalSort = true; // Boolean | 
$filterPeriodtypes = ; // array[String] | 
$filterPeriodisShowFavourites = true; // Boolean | 
$filterPeriodisHidden = true; // Boolean | 
$filterPeriodincludeSystemTasks = true; // Boolean | 
$filterPeriodisSystem = true; // Boolean | 
$filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String | 
$filterPeriodsortField = filterPeriodsortField_example; // String | 
$filterPeriodsortAsc = true; // Boolean | 
$filterPeriodgroupBy = filterPeriodgroupBy_example; // String | 
$filterPeriodlastRowNumber = 789; // Long | Format - int64.
$filterPeriodmaxResults = 56; // Integer | Format - int32.
$filterPeriodtenantID = 56; // Integer | Format - int32.
$filterPeriodwebsiteID = 56; // Integer | Format - int32.
$filterPerioduserID = 56; // Integer | Format - int32.

try {
    $result = $api_instance->stockTakeGetStockTakeLines($id, $filterPeriodstockTakeID, $filterPeriodlineID, $filterPeriodisApproved, $filterPeriodinventoryID, $filterPeriodstatuses, $filterPeriodstatusStrings, $filterPeriodstatus, $filterPeriodsearchString, $filterPeriodsearchNameOnly, $filterPeriodsearch, $filterPeriodstartDate, $filterPeriodendDate, $filterPerioddatePeriod, $filterPeriodisExactMatch, $filterPeriodisGetBasicInfo, $filterPeriodincludeDeleted, $filterPeriodincludeLogs, $filterPeriodignoreID, $filterPeriodparentID, $filterPeriodgetCountOnly, $filterPeriodtransactionTypeDatTypeID, $filterPeriodcategoryID, $filterPeriodadaptorID, $filterPeriodcategoryIDs, $filterPeriodbrandIDs, $filterPeriodiDs, $filterPeriodgUIDs, $filterPeriodlinkedSupplierID, $filterPeriodisApprovedForPOS, $filterPeriodisApprovedForWeb, $filterPeriodisApprovedForService, $filterPeriodiD, $filterPeriodisHierarchicalSort, $filterPeriodtypes, $filterPeriodisShowFavourites, $filterPeriodisHidden, $filterPeriodincludeSystemTasks, $filterPeriodisSystem, $filterPeriodbatchStatus, $filterPeriodsortField, $filterPeriodsortAsc, $filterPeriodgroupBy, $filterPeriodlastRowNumber, $filterPeriodmaxResults, $filterPeriodtenantID, $filterPeriodwebsiteID, $filterPerioduserID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->stockTakeGetStockTakeLines: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | Format - int32.
my $filterPeriodstockTakeID = 56; # Integer | Format - int32.
my $filterPeriodlineID = 56; # Integer | Format - int32.
my $filterPeriodisApproved = true; # Boolean | 
my $filterPeriodinventoryID = 56; # Integer | Format - int32.
my $filterPeriodstatuses = []; # array[Integer] | 
my $filterPeriodstatusStrings = []; # array[String] | 
my $filterPeriodstatus = []; # array[String] | 
my $filterPeriodsearchString = filterPeriodsearchString_example; # String | 
my $filterPeriodsearchNameOnly = true; # Boolean | 
my $filterPeriodsearch = filterPeriodsearch_example; # String | 
my $filterPeriodstartDate = 2013-10-20T19:20:30+01:00; # Date | Format - date-time (as date-time in RFC3339).
my $filterPeriodendDate = 2013-10-20T19:20:30+01:00; # Date | Format - date-time (as date-time in RFC3339).
my $filterPerioddatePeriod = filterPerioddatePeriod_example; # String | 
my $filterPeriodisExactMatch = true; # Boolean | 
my $filterPeriodisGetBasicInfo = true; # Boolean | 
my $filterPeriodincludeDeleted = true; # Boolean | 
my $filterPeriodincludeLogs = true; # Boolean | 
my $filterPeriodignoreID = 56; # Integer | Format - int32.
my $filterPeriodparentID = 56; # Integer | Format - int32.
my $filterPeriodgetCountOnly = true; # Boolean | 
my $filterPeriodtransactionTypeDatTypeID = 56; # Integer | Format - int32.
my $filterPeriodcategoryID = 56; # Integer | Format - int32.
my $filterPeriodadaptorID = 56; # Integer | Format - int32.
my $filterPeriodcategoryIDs = []; # array[Integer] | 
my $filterPeriodbrandIDs = []; # array[Integer] | 
my $filterPeriodiDs = []; # array[Integer] | 
my $filterPeriodgUIDs = []; # array[String] | 
my $filterPeriodlinkedSupplierID = 56; # Integer | Format - int32.
my $filterPeriodisApprovedForPOS = true; # Boolean | 
my $filterPeriodisApprovedForWeb = true; # Boolean | 
my $filterPeriodisApprovedForService = true; # Boolean | 
my $filterPeriodiD = 56; # Integer | Format - int32.
my $filterPeriodisHierarchicalSort = true; # Boolean | 
my $filterPeriodtypes = []; # array[String] | 
my $filterPeriodisShowFavourites = true; # Boolean | 
my $filterPeriodisHidden = true; # Boolean | 
my $filterPeriodincludeSystemTasks = true; # Boolean | 
my $filterPeriodisSystem = true; # Boolean | 
my $filterPeriodbatchStatus = filterPeriodbatchStatus_example; # String | 
my $filterPeriodsortField = filterPeriodsortField_example; # String | 
my $filterPeriodsortAsc = true; # Boolean | 
my $filterPeriodgroupBy = filterPeriodgroupBy_example; # String | 
my $filterPeriodlastRowNumber = 789; # Long | Format - int64.
my $filterPeriodmaxResults = 56; # Integer | Format - int32.
my $filterPeriodtenantID = 56; # Integer | Format - int32.
my $filterPeriodwebsiteID = 56; # Integer | Format - int32.
my $filterPerioduserID = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->stockTakeGetStockTakeLines(id => $id, filterPeriodstockTakeID => $filterPeriodstockTakeID, filterPeriodlineID => $filterPeriodlineID, filterPeriodisApproved => $filterPeriodisApproved, filterPeriodinventoryID => $filterPeriodinventoryID, filterPeriodstatuses => $filterPeriodstatuses, filterPeriodstatusStrings => $filterPeriodstatusStrings, filterPeriodstatus => $filterPeriodstatus, filterPeriodsearchString => $filterPeriodsearchString, filterPeriodsearchNameOnly => $filterPeriodsearchNameOnly, filterPeriodsearch => $filterPeriodsearch, filterPeriodstartDate => $filterPeriodstartDate, filterPeriodendDate => $filterPeriodendDate, filterPerioddatePeriod => $filterPerioddatePeriod, filterPeriodisExactMatch => $filterPeriodisExactMatch, filterPeriodisGetBasicInfo => $filterPeriodisGetBasicInfo, filterPeriodincludeDeleted => $filterPeriodincludeDeleted, filterPeriodincludeLogs => $filterPeriodincludeLogs, filterPeriodignoreID => $filterPeriodignoreID, filterPeriodparentID => $filterPeriodparentID, filterPeriodgetCountOnly => $filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID => $filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID => $filterPeriodcategoryID, filterPeriodadaptorID => $filterPeriodadaptorID, filterPeriodcategoryIDs => $filterPeriodcategoryIDs, filterPeriodbrandIDs => $filterPeriodbrandIDs, filterPeriodiDs => $filterPeriodiDs, filterPeriodgUIDs => $filterPeriodgUIDs, filterPeriodlinkedSupplierID => $filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS => $filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb => $filterPeriodisApprovedForWeb, filterPeriodisApprovedForService => $filterPeriodisApprovedForService, filterPeriodiD => $filterPeriodiD, filterPeriodisHierarchicalSort => $filterPeriodisHierarchicalSort, filterPeriodtypes => $filterPeriodtypes, filterPeriodisShowFavourites => $filterPeriodisShowFavourites, filterPeriodisHidden => $filterPeriodisHidden, filterPeriodincludeSystemTasks => $filterPeriodincludeSystemTasks, filterPeriodisSystem => $filterPeriodisSystem, filterPeriodbatchStatus => $filterPeriodbatchStatus, filterPeriodsortField => $filterPeriodsortField, filterPeriodsortAsc => $filterPeriodsortAsc, filterPeriodgroupBy => $filterPeriodgroupBy, filterPeriodlastRowNumber => $filterPeriodlastRowNumber, filterPeriodmaxResults => $filterPeriodmaxResults, filterPeriodtenantID => $filterPeriodtenantID, filterPeriodwebsiteID => $filterPeriodwebsiteID, filterPerioduserID => $filterPerioduserID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakeGetStockTakeLines: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | Format - int32. (default to null)
filterPeriodstockTakeID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodlineID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodisApproved = true # Boolean |  (optional) (default to null)
filterPeriodinventoryID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodstatuses =  # array[Integer] |  (optional) (default to null)
filterPeriodstatusStrings =  # array[String] |  (optional) (default to null)
filterPeriodstatus =  # array[String] |  (optional) (default to null)
filterPeriodsearchString = filterPeriodsearchString_example # String |  (optional) (default to null)
filterPeriodsearchNameOnly = true # Boolean |  (optional) (default to null)
filterPeriodsearch = filterPeriodsearch_example # String |  (optional) (default to null)
filterPeriodstartDate = 2013-10-20T19:20:30+01:00 # Date | Format - date-time (as date-time in RFC3339). (optional) (default to null)
filterPeriodendDate = 2013-10-20T19:20:30+01:00 # Date | Format - date-time (as date-time in RFC3339). (optional) (default to null)
filterPerioddatePeriod = filterPerioddatePeriod_example # String |  (optional) (default to null)
filterPeriodisExactMatch = true # Boolean |  (optional) (default to null)
filterPeriodisGetBasicInfo = true # Boolean |  (optional) (default to null)
filterPeriodincludeDeleted = true # Boolean |  (optional) (default to null)
filterPeriodincludeLogs = true # Boolean |  (optional) (default to null)
filterPeriodignoreID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodparentID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodgetCountOnly = true # Boolean |  (optional) (default to null)
filterPeriodtransactionTypeDatTypeID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodcategoryID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodadaptorID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodcategoryIDs =  # array[Integer] |  (optional) (default to null)
filterPeriodbrandIDs =  # array[Integer] |  (optional) (default to null)
filterPeriodiDs =  # array[Integer] |  (optional) (default to null)
filterPeriodgUIDs =  # array[String] |  (optional) (default to null)
filterPeriodlinkedSupplierID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodisApprovedForPOS = true # Boolean |  (optional) (default to null)
filterPeriodisApprovedForWeb = true # Boolean |  (optional) (default to null)
filterPeriodisApprovedForService = true # Boolean |  (optional) (default to null)
filterPeriodiD = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodisHierarchicalSort = true # Boolean |  (optional) (default to null)
filterPeriodtypes =  # array[String] |  (optional) (default to null)
filterPeriodisShowFavourites = true # Boolean |  (optional) (default to null)
filterPeriodisHidden = true # Boolean |  (optional) (default to null)
filterPeriodincludeSystemTasks = true # Boolean |  (optional) (default to null)
filterPeriodisSystem = true # Boolean |  (optional) (default to null)
filterPeriodbatchStatus = filterPeriodbatchStatus_example # String |  (optional) (default to null)
filterPeriodsortField = filterPeriodsortField_example # String |  (optional) (default to null)
filterPeriodsortAsc = true # Boolean |  (optional) (default to null)
filterPeriodgroupBy = filterPeriodgroupBy_example # String |  (optional) (default to null)
filterPeriodlastRowNumber = 789 # Long | Format - int64. (optional) (default to null)
filterPeriodmaxResults = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodtenantID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodwebsiteID = 56 # Integer | Format - int32. (optional) (default to null)
filterPerioduserID = 56 # Integer | Format - int32. (optional) (default to null)

try:
    # StockTake_GetStockTakeLines
    api_response = api_instance.stock_take_get_stock_take_lines(id, filterPeriodstockTakeID=filterPeriodstockTakeID, filterPeriodlineID=filterPeriodlineID, filterPeriodisApproved=filterPeriodisApproved, filterPeriodinventoryID=filterPeriodinventoryID, filterPeriodstatuses=filterPeriodstatuses, filterPeriodstatusStrings=filterPeriodstatusStrings, filterPeriodstatus=filterPeriodstatus, filterPeriodsearchString=filterPeriodsearchString, filterPeriodsearchNameOnly=filterPeriodsearchNameOnly, filterPeriodsearch=filterPeriodsearch, filterPeriodstartDate=filterPeriodstartDate, filterPeriodendDate=filterPeriodendDate, filterPerioddatePeriod=filterPerioddatePeriod, filterPeriodisExactMatch=filterPeriodisExactMatch, filterPeriodisGetBasicInfo=filterPeriodisGetBasicInfo, filterPeriodincludeDeleted=filterPeriodincludeDeleted, filterPeriodincludeLogs=filterPeriodincludeLogs, filterPeriodignoreID=filterPeriodignoreID, filterPeriodparentID=filterPeriodparentID, filterPeriodgetCountOnly=filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID=filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID=filterPeriodcategoryID, filterPeriodadaptorID=filterPeriodadaptorID, filterPeriodcategoryIDs=filterPeriodcategoryIDs, filterPeriodbrandIDs=filterPeriodbrandIDs, filterPeriodiDs=filterPeriodiDs, filterPeriodgUIDs=filterPeriodgUIDs, filterPeriodlinkedSupplierID=filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS=filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb=filterPeriodisApprovedForWeb, filterPeriodisApprovedForService=filterPeriodisApprovedForService, filterPeriodiD=filterPeriodiD, filterPeriodisHierarchicalSort=filterPeriodisHierarchicalSort, filterPeriodtypes=filterPeriodtypes, filterPeriodisShowFavourites=filterPeriodisShowFavourites, filterPeriodisHidden=filterPeriodisHidden, filterPeriodincludeSystemTasks=filterPeriodincludeSystemTasks, filterPeriodisSystem=filterPeriodisSystem, filterPeriodbatchStatus=filterPeriodbatchStatus, filterPeriodsortField=filterPeriodsortField, filterPeriodsortAsc=filterPeriodsortAsc, filterPeriodgroupBy=filterPeriodgroupBy, filterPeriodlastRowNumber=filterPeriodlastRowNumber, filterPeriodmaxResults=filterPeriodmaxResults, filterPeriodtenantID=filterPeriodtenantID, filterPeriodwebsiteID=filterPeriodwebsiteID, filterPerioduserID=filterPerioduserID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakeGetStockTakeLines: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let filterPeriodstockTakeID = 56; // Integer
    let filterPeriodlineID = 56; // Integer
    let filterPeriodisApproved = true; // Boolean
    let filterPeriodinventoryID = 56; // Integer
    let filterPeriodstatuses = ; // array[Integer]
    let filterPeriodstatusStrings = ; // array[String]
    let filterPeriodstatus = ; // array[String]
    let filterPeriodsearchString = filterPeriodsearchString_example; // String
    let filterPeriodsearchNameOnly = true; // Boolean
    let filterPeriodsearch = filterPeriodsearch_example; // String
    let filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPerioddatePeriod = filterPerioddatePeriod_example; // String
    let filterPeriodisExactMatch = true; // Boolean
    let filterPeriodisGetBasicInfo = true; // Boolean
    let filterPeriodincludeDeleted = true; // Boolean
    let filterPeriodincludeLogs = true; // Boolean
    let filterPeriodignoreID = 56; // Integer
    let filterPeriodparentID = 56; // Integer
    let filterPeriodgetCountOnly = true; // Boolean
    let filterPeriodtransactionTypeDatTypeID = 56; // Integer
    let filterPeriodcategoryID = 56; // Integer
    let filterPeriodadaptorID = 56; // Integer
    let filterPeriodcategoryIDs = ; // array[Integer]
    let filterPeriodbrandIDs = ; // array[Integer]
    let filterPeriodiDs = ; // array[Integer]
    let filterPeriodgUIDs = ; // array[String]
    let filterPeriodlinkedSupplierID = 56; // Integer
    let filterPeriodisApprovedForPOS = true; // Boolean
    let filterPeriodisApprovedForWeb = true; // Boolean
    let filterPeriodisApprovedForService = true; // Boolean
    let filterPeriodiD = 56; // Integer
    let filterPeriodisHierarchicalSort = true; // Boolean
    let filterPeriodtypes = ; // array[String]
    let filterPeriodisShowFavourites = true; // Boolean
    let filterPeriodisHidden = true; // Boolean
    let filterPeriodincludeSystemTasks = true; // Boolean
    let filterPeriodisSystem = true; // Boolean
    let filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String
    let filterPeriodsortField = filterPeriodsortField_example; // String
    let filterPeriodsortAsc = true; // Boolean
    let filterPeriodgroupBy = filterPeriodgroupBy_example; // String
    let filterPeriodlastRowNumber = 789; // Long
    let filterPeriodmaxResults = 56; // Integer
    let filterPeriodtenantID = 56; // Integer
    let filterPeriodwebsiteID = 56; // Integer
    let filterPerioduserID = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakeGetStockTakeLines(id, filterPeriodstockTakeID, filterPeriodlineID, filterPeriodisApproved, filterPeriodinventoryID, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Format - int32.
Required
Query parameters
Name Description
filter.stockTakeID
Integer (int32)
Format - int32.
filter.lineID
Integer (int32)
Format - int32.
filter.isApproved
Boolean
filter.inventoryID
Integer (int32)
Format - int32.
filter.statuses
array[Integer] (int32)
filter.statusStrings
array[String]
filter.status
array[String]
filter.searchString
String
filter.searchNameOnly
Boolean
filter.search
String
filter.startDate
Date (date-time)
Format - date-time (as date-time in RFC3339).
filter.endDate
Date (date-time)
Format - date-time (as date-time in RFC3339).
filter.datePeriod
String
filter.isExactMatch
Boolean
filter.isGetBasicInfo
Boolean
filter.includeDeleted
Boolean
filter.includeLogs
Boolean
filter.ignoreID
Integer (int32)
Format - int32.
filter.parentID
Integer (int32)
Format - int32.
filter.getCountOnly
Boolean
filter.transactionTypeDatTypeID
Integer (int32)
Format - int32.
filter.categoryID
Integer (int32)
Format - int32.
filter.adaptorID
Integer (int32)
Format - int32.
filter.categoryIDs
array[Integer] (int32)
filter.brandIDs
array[Integer] (int32)
filter.iDs
array[Integer] (int32)
filter.gUIDs
array[String]
filter.linkedSupplierID
Integer (int32)
Format - int32.
filter.isApprovedForPOS
Boolean
filter.isApprovedForWeb
Boolean
filter.isApprovedForService
Boolean
filter.iD
Integer (int32)
Format - int32.
filter.isHierarchicalSort
Boolean
filter.types
array[String]
filter.isShowFavourites
Boolean
filter.isHidden
Boolean
filter.includeSystemTasks
Boolean
filter.isSystem
Boolean
filter.batchStatus
String
filter.sortField
String
filter.sortAsc
Boolean
filter.groupBy
String
filter.lastRowNumber
Long (int64)
Format - int64.
filter.maxResults
Integer (int32)
Format - int32.
filter.tenantID
Integer (int32)
Format - int32.
filter.websiteID
Integer (int32)
Format - int32.
filter.userID
Integer (int32)
Format - int32.

Responses


stockTakeGetStockTakeSummary

StockTake_GetStockTakeSummary


/StockTake/{stocktakeid}/summary

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/StockTake/{stocktakeid}/summary"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.

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

final api_instance = DefaultApi();

final Integer stocktakeid = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.

        try {
            ActionResults result = apiInstance.stockTakeGetStockTakeSummary(stocktakeid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeGetStockTakeSummary");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *stocktakeid = 56; // Format - int32. (default to null)

// StockTake_GetStockTakeSummary
[apiInstance stockTakeGetStockTakeSummaryWith:stocktakeid
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var stocktakeid = 56; // {Integer} Format - int32.

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var stocktakeid = 56;  // Integer | Format - int32. (default to null)

            try {
                // StockTake_GetStockTakeSummary
                ActionResults result = apiInstance.stockTakeGetStockTakeSummary(stocktakeid);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakeGetStockTakeSummary: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$stocktakeid = 56; // Integer | Format - int32.

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $stocktakeid = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->stockTakeGetStockTakeSummary(stocktakeid => $stocktakeid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakeGetStockTakeSummary: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
stocktakeid = 56 # Integer | Format - int32. (default to null)

try:
    # StockTake_GetStockTakeSummary
    api_response = api_instance.stock_take_get_stock_take_summary(stocktakeid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakeGetStockTakeSummary: %s\n" % e)
extern crate DefaultApi;

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

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakeGetStockTakeSummary(stocktakeid, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
stocktakeid*
Integer (int32)
Format - int32.
Required

Responses


stockTakePost

StockTake_Post


/StockTake/

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/StockTake/" \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestStockTakeT actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestStockTakeT | 

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

final api_instance = DefaultApi();

final ActionRequestStockTakeT actionRequestStockTakeT = new ActionRequestStockTakeT(); // ActionRequestStockTakeT | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestStockTakeT actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestStockTakeT | 

        try {
            ActionResults_StockTakeT_ result = apiInstance.stockTakePost(actionRequestStockTakeT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakePost");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
ActionRequestStockTakeT *actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// StockTake_Post
[apiInstance stockTakePostWith:actionRequestStockTakeT
              completionHandler: ^(ActionResults_StockTakeT_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var opts = {
  'actionRequestStockTakeT': {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0} // {ActionRequestStockTakeT} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var actionRequestStockTakeT = new ActionRequestStockTakeT(); // ActionRequestStockTakeT |  (optional) 

            try {
                // StockTake_Post
                ActionResults_StockTakeT_ result = apiInstance.stockTakePost(actionRequestStockTakeT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestStockTakeT | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $actionRequestStockTakeT = WWW::OPenAPIClient::Object::ActionRequestStockTakeT->new(); # ActionRequestStockTakeT | 

eval {
    my $result = $api_instance->stockTakePost(actionRequestStockTakeT => $actionRequestStockTakeT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakePost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0} # ActionRequestStockTakeT |  (optional)

try:
    # StockTake_Post
    api_response = api_instance.stock_take_post(actionRequestStockTakeT=actionRequestStockTakeT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakePost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestStockTakeT

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakePost(actionRequestStockTakeT, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
actionRequestStockTakeT

Responses


stockTakePostStockTakeLine

StockTake_PostStockTakeLine


/StockTake/{stocktakeid}/lines

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/StockTake/{stocktakeid}/lines" \
 -d '{
  "Description" : "Description",
  "WarehouseLocationName" : "WarehouseLocationName",
  "IsActive" : true,
  "IsLineApproved" : true,
  "LineComment" : "LineComment",
  "TotalAdjustmentValue" : 0.10263654006109402,
  "InventoryBatchID" : 6,
  "Variance" : 6.519180951018382,
  "InventoryID" : 8,
  "GUIDstring" : "GUIDstring",
  "UoM" : "UoM",
  "TenantID" : 7,
  "AdjustmentReason" : "AdjustmentReason",
  "ID" : 9,
  "WarehouseLocationID" : 3,
  "MinStockLevel" : 9.018348186070783,
  "ModifiedDateTime_offset" : 6,
  "Status" : "Status",
  "ApprovedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "ApprovedDateTime_offset" : 3,
  "ItemCodeOrSKU" : "ItemCodeOrSKU",
  "ModifiedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "StockTakeImportLineID" : 7,
  "Quantity" : 1.284659006116532,
  "ApprovedByUserID" : 3,
  "MaxStockLevel" : 6.438423552598547,
  "StockTakeID" : 6,
  "UnitCost" : 0.8851374739011653,
  "RowNumber" : 9,
  "CreatedByUserID" : 6,
  "ExpectedQuantity" : 2.8841621266687802,
  "IsStockAdjustmentComplete" : true,
  "CreatedDateTime_utc" : "2000-01-23T04:56:07.000+00:00",
  "ModifiedByUserID" : 5,
  "CreatedDateTime_offset" : 6
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<StockTakeLineT>
  <RowNumber>123</RowNumber>
  <ID>123</ID>
  <GUIDstring>aeiou</GUIDstring>
  <StockTakeID>123</StockTakeID>
  <Status>aeiou</Status>
  <InventoryID>123</InventoryID>
  <ItemCodeOrSKU>aeiou</ItemCodeOrSKU>
  <Description>aeiou</Description>
  <UoM>aeiou</UoM>
  <MinStockLevel>3.149</MinStockLevel>
  <MaxStockLevel>3.149</MaxStockLevel>
  <WarehouseLocationID>123</WarehouseLocationID>
  <WarehouseLocationName>aeiou</WarehouseLocationName>
  <InventoryBatchID>123</InventoryBatchID>
  <Quantity>3.149</Quantity>
  <ExpectedQuantity>3.149</ExpectedQuantity>
  <IsActive>true</IsActive>
  <IsLineApproved>true</IsLineApproved>
  <LineComment>aeiou</LineComment>
  <CreatedByUserID>123</CreatedByUserID>
  <CreatedDateTime_utc>2000-01-23T04:56:07.000Z</CreatedDateTime_utc>
  <CreatedDateTime_offset>123</CreatedDateTime_offset>
  <ModifiedByUserID>123</ModifiedByUserID>
  <ModifiedDateTime_utc>2000-01-23T04:56:07.000Z</ModifiedDateTime_utc>
  <ModifiedDateTime_offset>123</ModifiedDateTime_offset>
  <ApprovedByUserID>123</ApprovedByUserID>
  <ApprovedDateTime_utc>2000-01-23T04:56:07.000Z</ApprovedDateTime_utc>
  <ApprovedDateTime_offset>123</ApprovedDateTime_offset>
  <IsStockAdjustmentComplete>true</IsStockAdjustmentComplete>
  <TenantID>123</TenantID>
  <AdjustmentReason>aeiou</AdjustmentReason>
  <UnitCost>3.149</UnitCost>
  <StockTakeImportLineID>123</StockTakeImportLineID>
  <Variance>3.149</Variance>
  <TotalAdjustmentValue>3.149</TotalAdjustmentValue>
</StockTakeLineT>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.
        StockTakeLineT stockTakeLineT = {"RowNumber":0,"ID":0,"GUIDstring":"string","StockTakeID":0,"Status":"string","InventoryID":0,"ItemCodeOrSKU":"string","Description":"string","UoM":"string","MinStockLevel":0,"MaxStockLevel":0,"WarehouseLocationID":0,"WarehouseLocationName":"string","InventoryBatchID":0,"Quantity":0,"ExpectedQuantity":0,"IsActive":true,"IsLineApproved":true,"LineComment":"string","CreatedByUserID":0,"CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"ApprovedByUserID":0,"ApprovedDateTime_utc":"string","ApprovedDateTime_offset":0,"IsStockAdjustmentComplete":true,"TenantID":0,"AdjustmentReason":"string","UnitCost":0,"StockTakeImportLineID":0,"Variance":0,"TotalAdjustmentValue":0}; // StockTakeLineT | 

        try {
            ActionResults_StockTakeLineT_ result = apiInstance.stockTakePostStockTakeLine(stocktakeid, stockTakeLineT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakePostStockTakeLine");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer stocktakeid = new Integer(); // Integer | Format - int32.
final StockTakeLineT stockTakeLineT = new StockTakeLineT(); // StockTakeLineT | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer stocktakeid = 56; // Integer | Format - int32.
        StockTakeLineT stockTakeLineT = {"RowNumber":0,"ID":0,"GUIDstring":"string","StockTakeID":0,"Status":"string","InventoryID":0,"ItemCodeOrSKU":"string","Description":"string","UoM":"string","MinStockLevel":0,"MaxStockLevel":0,"WarehouseLocationID":0,"WarehouseLocationName":"string","InventoryBatchID":0,"Quantity":0,"ExpectedQuantity":0,"IsActive":true,"IsLineApproved":true,"LineComment":"string","CreatedByUserID":0,"CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"ApprovedByUserID":0,"ApprovedDateTime_utc":"string","ApprovedDateTime_offset":0,"IsStockAdjustmentComplete":true,"TenantID":0,"AdjustmentReason":"string","UnitCost":0,"StockTakeImportLineID":0,"Variance":0,"TotalAdjustmentValue":0}; // StockTakeLineT | 

        try {
            ActionResults_StockTakeLineT_ result = apiInstance.stockTakePostStockTakeLine(stocktakeid, stockTakeLineT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakePostStockTakeLine");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *stocktakeid = 56; // Format - int32. (default to null)
StockTakeLineT *stockTakeLineT = {"RowNumber":0,"ID":0,"GUIDstring":"string","StockTakeID":0,"Status":"string","InventoryID":0,"ItemCodeOrSKU":"string","Description":"string","UoM":"string","MinStockLevel":0,"MaxStockLevel":0,"WarehouseLocationID":0,"WarehouseLocationName":"string","InventoryBatchID":0,"Quantity":0,"ExpectedQuantity":0,"IsActive":true,"IsLineApproved":true,"LineComment":"string","CreatedByUserID":0,"CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"ApprovedByUserID":0,"ApprovedDateTime_utc":"string","ApprovedDateTime_offset":0,"IsStockAdjustmentComplete":true,"TenantID":0,"AdjustmentReason":"string","UnitCost":0,"StockTakeImportLineID":0,"Variance":0,"TotalAdjustmentValue":0}; //  (optional)

// StockTake_PostStockTakeLine
[apiInstance stockTakePostStockTakeLineWith:stocktakeid
    stockTakeLineT:stockTakeLineT
              completionHandler: ^(ActionResults_StockTakeLineT_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var stocktakeid = 56; // {Integer} Format - int32.
var opts = {
  'stockTakeLineT': {"RowNumber":0,"ID":0,"GUIDstring":"string","StockTakeID":0,"Status":"string","InventoryID":0,"ItemCodeOrSKU":"string","Description":"string","UoM":"string","MinStockLevel":0,"MaxStockLevel":0,"WarehouseLocationID":0,"WarehouseLocationName":"string","InventoryBatchID":0,"Quantity":0,"ExpectedQuantity":0,"IsActive":true,"IsLineApproved":true,"LineComment":"string","CreatedByUserID":0,"CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"ApprovedByUserID":0,"ApprovedDateTime_utc":"string","ApprovedDateTime_offset":0,"IsStockAdjustmentComplete":true,"TenantID":0,"AdjustmentReason":"string","UnitCost":0,"StockTakeImportLineID":0,"Variance":0,"TotalAdjustmentValue":0} // {StockTakeLineT} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var stocktakeid = 56;  // Integer | Format - int32. (default to null)
            var stockTakeLineT = new StockTakeLineT(); // StockTakeLineT |  (optional) 

            try {
                // StockTake_PostStockTakeLine
                ActionResults_StockTakeLineT_ result = apiInstance.stockTakePostStockTakeLine(stocktakeid, stockTakeLineT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakePostStockTakeLine: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$stocktakeid = 56; // Integer | Format - int32.
$stockTakeLineT = {"RowNumber":0,"ID":0,"GUIDstring":"string","StockTakeID":0,"Status":"string","InventoryID":0,"ItemCodeOrSKU":"string","Description":"string","UoM":"string","MinStockLevel":0,"MaxStockLevel":0,"WarehouseLocationID":0,"WarehouseLocationName":"string","InventoryBatchID":0,"Quantity":0,"ExpectedQuantity":0,"IsActive":true,"IsLineApproved":true,"LineComment":"string","CreatedByUserID":0,"CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"ApprovedByUserID":0,"ApprovedDateTime_utc":"string","ApprovedDateTime_offset":0,"IsStockAdjustmentComplete":true,"TenantID":0,"AdjustmentReason":"string","UnitCost":0,"StockTakeImportLineID":0,"Variance":0,"TotalAdjustmentValue":0}; // StockTakeLineT | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $stocktakeid = 56; # Integer | Format - int32.
my $stockTakeLineT = WWW::OPenAPIClient::Object::StockTakeLineT->new(); # StockTakeLineT | 

eval {
    my $result = $api_instance->stockTakePostStockTakeLine(stocktakeid => $stocktakeid, stockTakeLineT => $stockTakeLineT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakePostStockTakeLine: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
stocktakeid = 56 # Integer | Format - int32. (default to null)
stockTakeLineT = {"RowNumber":0,"ID":0,"GUIDstring":"string","StockTakeID":0,"Status":"string","InventoryID":0,"ItemCodeOrSKU":"string","Description":"string","UoM":"string","MinStockLevel":0,"MaxStockLevel":0,"WarehouseLocationID":0,"WarehouseLocationName":"string","InventoryBatchID":0,"Quantity":0,"ExpectedQuantity":0,"IsActive":true,"IsLineApproved":true,"LineComment":"string","CreatedByUserID":0,"CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"ApprovedByUserID":0,"ApprovedDateTime_utc":"string","ApprovedDateTime_offset":0,"IsStockAdjustmentComplete":true,"TenantID":0,"AdjustmentReason":"string","UnitCost":0,"StockTakeImportLineID":0,"Variance":0,"TotalAdjustmentValue":0} # StockTakeLineT |  (optional)

try:
    # StockTake_PostStockTakeLine
    api_response = api_instance.stock_take_post_stock_take_line(stocktakeid, stockTakeLineT=stockTakeLineT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakePostStockTakeLine: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let stocktakeid = 56; // Integer
    let stockTakeLineT = {"RowNumber":0,"ID":0,"GUIDstring":"string","StockTakeID":0,"Status":"string","InventoryID":0,"ItemCodeOrSKU":"string","Description":"string","UoM":"string","MinStockLevel":0,"MaxStockLevel":0,"WarehouseLocationID":0,"WarehouseLocationName":"string","InventoryBatchID":0,"Quantity":0,"ExpectedQuantity":0,"IsActive":true,"IsLineApproved":true,"LineComment":"string","CreatedByUserID":0,"CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"ModifiedByUserID":0,"ModifiedDateTime_utc":"string","ModifiedDateTime_offset":0,"ApprovedByUserID":0,"ApprovedDateTime_utc":"string","ApprovedDateTime_offset":0,"IsStockAdjustmentComplete":true,"TenantID":0,"AdjustmentReason":"string","UnitCost":0,"StockTakeImportLineID":0,"Variance":0,"TotalAdjustmentValue":0}; // StockTakeLineT

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakePostStockTakeLine(stocktakeid, stockTakeLineT, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
stocktakeid*
Integer (int32)
Format - int32.
Required
Body parameters
Name Description
stockTakeLineT

Responses


stockTakePut

StockTake_Put


/StockTake/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/StockTake/{id}" \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.
        ActionRequestStockTakeT actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestStockTakeT | 

        try {
            ActionResults_StockTakeT_ result = apiInstance.stockTakePut(id, actionRequestStockTakeT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakePut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Format - int32.
final ActionRequestStockTakeT actionRequestStockTakeT = new ActionRequestStockTakeT(); // ActionRequestStockTakeT | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer id = 56; // Integer | Format - int32.
        ActionRequestStockTakeT actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestStockTakeT | 

        try {
            ActionResults_StockTakeT_ result = apiInstance.stockTakePut(id, actionRequestStockTakeT);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakePut");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *id = 56; // Format - int32. (default to null)
ActionRequestStockTakeT *actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// StockTake_Put
[apiInstance stockTakePutWith:id
    actionRequestStockTakeT:actionRequestStockTakeT
              completionHandler: ^(ActionResults_StockTakeT_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var id = 56; // {Integer} Format - int32.
var opts = {
  'actionRequestStockTakeT': {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0} // {ActionRequestStockTakeT} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var id = 56;  // Integer | Format - int32. (default to null)
            var actionRequestStockTakeT = new ActionRequestStockTakeT(); // ActionRequestStockTakeT |  (optional) 

            try {
                // StockTake_Put
                ActionResults_StockTakeT_ result = apiInstance.stockTakePut(id, actionRequestStockTakeT);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakePut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$id = 56; // Integer | Format - int32.
$actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestStockTakeT | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $id = 56; # Integer | Format - int32.
my $actionRequestStockTakeT = WWW::OPenAPIClient::Object::ActionRequestStockTakeT->new(); # ActionRequestStockTakeT | 

eval {
    my $result = $api_instance->stockTakePut(id => $id, actionRequestStockTakeT => $actionRequestStockTakeT);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakePut: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
id = 56 # Integer | Format - int32. (default to null)
actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0} # ActionRequestStockTakeT |  (optional)

try:
    # StockTake_Put
    api_response = api_instance.stock_take_put(id, actionRequestStockTakeT=actionRequestStockTakeT)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakePut: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let id = 56; // Integer
    let actionRequestStockTakeT = {"Value":{"GUID":"00000000-0000-0000-0000-000000000000","ID":0,"TenantID":0,"GUIDstring":"string","RefNumber":"string","Status":"string","CreatedDateTime_utc":"string","CreatedDateTime_offset":0,"CompletedDateTime_utc":"string","CompletedDateTime_offset":0,"WarehouseID":0,"IsActive":true,"Name":"string","CreatedByUserID":0,"CompletedByUserID":0,"IsEntireWarehouse":true,"StockTakeType":"string","Description":"string","EffectiveDateTime_utc":"string","EffectiveDateTime_offset":0,"TotalNumberOfDistinctProducts":0,"TotalQuantity":0,"TotalStockValue":0,"WarehouseName":"string","CreatedByUserName":"string","CompletedByUserName":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestStockTakeT

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakePut(id, actionRequestStockTakeT, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Format - int32.
Required
Body parameters
Name Description
actionRequestStockTakeT

Responses


stockTakeSearch

StockTake_Search


/StockTake/

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/StockTake/?filter.warehouseID=56&filter.createdByUserID=56&filter.completedByUserID=56&filter.stockTakeType=filterPeriodstockTakeType_example&filter.statuses=&filter.statusStrings=&filter.status=&filter.searchString=filterPeriodsearchString_example&filter.searchNameOnly=true&filter.search=filterPeriodsearch_example&filter.startDate=2013-10-20T19:20:30+01:00&filter.endDate=2013-10-20T19:20:30+01:00&filter.datePeriod=filterPerioddatePeriod_example&filter.isExactMatch=true&filter.isGetBasicInfo=true&filter.includeDeleted=true&filter.includeLogs=true&filter.ignoreID=56&filter.parentID=56&filter.getCountOnly=true&filter.transactionTypeDatTypeID=56&filter.categoryID=56&filter.adaptorID=56&filter.categoryIDs=&filter.brandIDs=&filter.iDs=&filter.gUIDs=&filter.linkedSupplierID=56&filter.isApprovedForPOS=true&filter.isApprovedForWeb=true&filter.isApprovedForService=true&filter.iD=56&filter.isHierarchicalSort=true&filter.types=&filter.isShowFavourites=true&filter.isHidden=true&filter.includeSystemTasks=true&filter.isSystem=true&filter.batchStatus=filterPeriodbatchStatus_example&filter.sortField=filterPeriodsortField_example&filter.sortAsc=true&filter.groupBy=filterPeriodgroupBy_example&filter.lastRowNumber=789&filter.maxResults=56&filter.tenantID=56&filter.websiteID=56&filter.userID=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

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

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        Integer filterPeriodwarehouseID = 56; // Integer | Format - int32.
        Integer filterPeriodcreatedByUserID = 56; // Integer | Format - int32.
        Integer filterPeriodcompletedByUserID = 56; // Integer | Format - int32.
        String filterPeriodstockTakeType = filterPeriodstockTakeType_example; // String | 
        array[Integer] filterPeriodstatuses = ; // array[Integer] | 
        array[String] filterPeriodstatusStrings = ; // array[String] | 
        array[String] filterPeriodstatus = ; // array[String] | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsearchNameOnly = true; // Boolean | 
        String filterPeriodsearch = filterPeriodsearch_example; // String | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        String filterPerioddatePeriod = filterPerioddatePeriod_example; // String | 
        Boolean filterPeriodisExactMatch = true; // Boolean | 
        Boolean filterPeriodisGetBasicInfo = true; // Boolean | 
        Boolean filterPeriodincludeDeleted = true; // Boolean | 
        Boolean filterPeriodincludeLogs = true; // Boolean | 
        Integer filterPeriodignoreID = 56; // Integer | Format - int32.
        Integer filterPeriodparentID = 56; // Integer | Format - int32.
        Boolean filterPeriodgetCountOnly = true; // Boolean | 
        Integer filterPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
        Integer filterPeriodcategoryID = 56; // Integer | Format - int32.
        Integer filterPeriodadaptorID = 56; // Integer | Format - int32.
        array[Integer] filterPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] filterPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] filterPeriodiDs = ; // array[Integer] | 
        array[String] filterPeriodgUIDs = ; // array[String] | 
        Integer filterPeriodlinkedSupplierID = 56; // Integer | Format - int32.
        Boolean filterPeriodisApprovedForPOS = true; // Boolean | 
        Boolean filterPeriodisApprovedForWeb = true; // Boolean | 
        Boolean filterPeriodisApprovedForService = true; // Boolean | 
        Integer filterPeriodiD = 56; // Integer | Format - int32.
        Boolean filterPeriodisHierarchicalSort = true; // Boolean | 
        array[String] filterPeriodtypes = ; // array[String] | 
        Boolean filterPeriodisShowFavourites = true; // Boolean | 
        Boolean filterPeriodisHidden = true; // Boolean | 
        Boolean filterPeriodincludeSystemTasks = true; // Boolean | 
        Boolean filterPeriodisSystem = true; // Boolean | 
        String filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        String filterPeriodgroupBy = filterPeriodgroupBy_example; // String | 
        Long filterPeriodlastRowNumber = 789; // Long | Format - int64.
        Integer filterPeriodmaxResults = 56; // Integer | Format - int32.
        Integer filterPeriodtenantID = 56; // Integer | Format - int32.
        Integer filterPeriodwebsiteID = 56; // Integer | Format - int32.
        Integer filterPerioduserID = 56; // Integer | Format - int32.

        try {
            PagedActionResults_StockTakes_ result = apiInstance.stockTakeSearch(filterPeriodwarehouseID, filterPeriodcreatedByUserID, filterPeriodcompletedByUserID, filterPeriodstockTakeType, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeSearch");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer filterPeriodwarehouseID = new Integer(); // Integer | Format - int32.
final Integer filterPeriodcreatedByUserID = new Integer(); // Integer | Format - int32.
final Integer filterPeriodcompletedByUserID = new Integer(); // Integer | Format - int32.
final String filterPeriodstockTakeType = new String(); // String | 
final array[Integer] filterPeriodstatuses = new array[Integer](); // array[Integer] | 
final array[String] filterPeriodstatusStrings = new array[String](); // array[String] | 
final array[String] filterPeriodstatus = new array[String](); // array[String] | 
final String filterPeriodsearchString = new String(); // String | 
final Boolean filterPeriodsearchNameOnly = new Boolean(); // Boolean | 
final String filterPeriodsearch = new String(); // String | 
final Date filterPeriodstartDate = new Date(); // Date | Format - date-time (as date-time in RFC3339).
final Date filterPeriodendDate = new Date(); // Date | Format - date-time (as date-time in RFC3339).
final String filterPerioddatePeriod = new String(); // String | 
final Boolean filterPeriodisExactMatch = new Boolean(); // Boolean | 
final Boolean filterPeriodisGetBasicInfo = new Boolean(); // Boolean | 
final Boolean filterPeriodincludeDeleted = new Boolean(); // Boolean | 
final Boolean filterPeriodincludeLogs = new Boolean(); // Boolean | 
final Integer filterPeriodignoreID = new Integer(); // Integer | Format - int32.
final Integer filterPeriodparentID = new Integer(); // Integer | Format - int32.
final Boolean filterPeriodgetCountOnly = new Boolean(); // Boolean | 
final Integer filterPeriodtransactionTypeDatTypeID = new Integer(); // Integer | Format - int32.
final Integer filterPeriodcategoryID = new Integer(); // Integer | Format - int32.
final Integer filterPeriodadaptorID = new Integer(); // Integer | Format - int32.
final array[Integer] filterPeriodcategoryIDs = new array[Integer](); // array[Integer] | 
final array[Integer] filterPeriodbrandIDs = new array[Integer](); // array[Integer] | 
final array[Integer] filterPeriodiDs = new array[Integer](); // array[Integer] | 
final array[String] filterPeriodgUIDs = new array[String](); // array[String] | 
final Integer filterPeriodlinkedSupplierID = new Integer(); // Integer | Format - int32.
final Boolean filterPeriodisApprovedForPOS = new Boolean(); // Boolean | 
final Boolean filterPeriodisApprovedForWeb = new Boolean(); // Boolean | 
final Boolean filterPeriodisApprovedForService = new Boolean(); // Boolean | 
final Integer filterPeriodiD = new Integer(); // Integer | Format - int32.
final Boolean filterPeriodisHierarchicalSort = new Boolean(); // Boolean | 
final array[String] filterPeriodtypes = new array[String](); // array[String] | 
final Boolean filterPeriodisShowFavourites = new Boolean(); // Boolean | 
final Boolean filterPeriodisHidden = new Boolean(); // Boolean | 
final Boolean filterPeriodincludeSystemTasks = new Boolean(); // Boolean | 
final Boolean filterPeriodisSystem = new Boolean(); // Boolean | 
final String filterPeriodbatchStatus = new String(); // String | 
final String filterPeriodsortField = new String(); // String | 
final Boolean filterPeriodsortAsc = new Boolean(); // Boolean | 
final String filterPeriodgroupBy = new String(); // String | 
final Long filterPeriodlastRowNumber = new Long(); // Long | Format - int64.
final Integer filterPeriodmaxResults = new Integer(); // Integer | Format - int32.
final Integer filterPeriodtenantID = new Integer(); // Integer | Format - int32.
final Integer filterPeriodwebsiteID = new Integer(); // Integer | Format - int32.
final Integer filterPerioduserID = new Integer(); // Integer | Format - int32.

try {
    final result = await api_instance.stockTakeSearch(filterPeriodwarehouseID, filterPeriodcreatedByUserID, filterPeriodcompletedByUserID, filterPeriodstockTakeType, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->stockTakeSearch: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Integer filterPeriodwarehouseID = 56; // Integer | Format - int32.
        Integer filterPeriodcreatedByUserID = 56; // Integer | Format - int32.
        Integer filterPeriodcompletedByUserID = 56; // Integer | Format - int32.
        String filterPeriodstockTakeType = filterPeriodstockTakeType_example; // String | 
        array[Integer] filterPeriodstatuses = ; // array[Integer] | 
        array[String] filterPeriodstatusStrings = ; // array[String] | 
        array[String] filterPeriodstatus = ; // array[String] | 
        String filterPeriodsearchString = filterPeriodsearchString_example; // String | 
        Boolean filterPeriodsearchNameOnly = true; // Boolean | 
        String filterPeriodsearch = filterPeriodsearch_example; // String | 
        Date filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        Date filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
        String filterPerioddatePeriod = filterPerioddatePeriod_example; // String | 
        Boolean filterPeriodisExactMatch = true; // Boolean | 
        Boolean filterPeriodisGetBasicInfo = true; // Boolean | 
        Boolean filterPeriodincludeDeleted = true; // Boolean | 
        Boolean filterPeriodincludeLogs = true; // Boolean | 
        Integer filterPeriodignoreID = 56; // Integer | Format - int32.
        Integer filterPeriodparentID = 56; // Integer | Format - int32.
        Boolean filterPeriodgetCountOnly = true; // Boolean | 
        Integer filterPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
        Integer filterPeriodcategoryID = 56; // Integer | Format - int32.
        Integer filterPeriodadaptorID = 56; // Integer | Format - int32.
        array[Integer] filterPeriodcategoryIDs = ; // array[Integer] | 
        array[Integer] filterPeriodbrandIDs = ; // array[Integer] | 
        array[Integer] filterPeriodiDs = ; // array[Integer] | 
        array[String] filterPeriodgUIDs = ; // array[String] | 
        Integer filterPeriodlinkedSupplierID = 56; // Integer | Format - int32.
        Boolean filterPeriodisApprovedForPOS = true; // Boolean | 
        Boolean filterPeriodisApprovedForWeb = true; // Boolean | 
        Boolean filterPeriodisApprovedForService = true; // Boolean | 
        Integer filterPeriodiD = 56; // Integer | Format - int32.
        Boolean filterPeriodisHierarchicalSort = true; // Boolean | 
        array[String] filterPeriodtypes = ; // array[String] | 
        Boolean filterPeriodisShowFavourites = true; // Boolean | 
        Boolean filterPeriodisHidden = true; // Boolean | 
        Boolean filterPeriodincludeSystemTasks = true; // Boolean | 
        Boolean filterPeriodisSystem = true; // Boolean | 
        String filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String | 
        String filterPeriodsortField = filterPeriodsortField_example; // String | 
        Boolean filterPeriodsortAsc = true; // Boolean | 
        String filterPeriodgroupBy = filterPeriodgroupBy_example; // String | 
        Long filterPeriodlastRowNumber = 789; // Long | Format - int64.
        Integer filterPeriodmaxResults = 56; // Integer | Format - int32.
        Integer filterPeriodtenantID = 56; // Integer | Format - int32.
        Integer filterPeriodwebsiteID = 56; // Integer | Format - int32.
        Integer filterPerioduserID = 56; // Integer | Format - int32.

        try {
            PagedActionResults_StockTakes_ result = apiInstance.stockTakeSearch(filterPeriodwarehouseID, filterPeriodcreatedByUserID, filterPeriodcompletedByUserID, filterPeriodstockTakeType, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeSearch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *filterPeriodwarehouseID = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodcreatedByUserID = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodcompletedByUserID = 56; // Format - int32. (optional) (default to null)
String *filterPeriodstockTakeType = filterPeriodstockTakeType_example; //  (optional) (default to null)
array[Integer] *filterPeriodstatuses = ; //  (optional) (default to null)
array[String] *filterPeriodstatusStrings = ; //  (optional) (default to null)
array[String] *filterPeriodstatus = ; //  (optional) (default to null)
String *filterPeriodsearchString = filterPeriodsearchString_example; //  (optional) (default to null)
Boolean *filterPeriodsearchNameOnly = true; //  (optional) (default to null)
String *filterPeriodsearch = filterPeriodsearch_example; //  (optional) (default to null)
Date *filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Format - date-time (as date-time in RFC3339). (optional) (default to null)
Date *filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Format - date-time (as date-time in RFC3339). (optional) (default to null)
String *filterPerioddatePeriod = filterPerioddatePeriod_example; //  (optional) (default to null)
Boolean *filterPeriodisExactMatch = true; //  (optional) (default to null)
Boolean *filterPeriodisGetBasicInfo = true; //  (optional) (default to null)
Boolean *filterPeriodincludeDeleted = true; //  (optional) (default to null)
Boolean *filterPeriodincludeLogs = true; //  (optional) (default to null)
Integer *filterPeriodignoreID = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodparentID = 56; // Format - int32. (optional) (default to null)
Boolean *filterPeriodgetCountOnly = true; //  (optional) (default to null)
Integer *filterPeriodtransactionTypeDatTypeID = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodcategoryID = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodadaptorID = 56; // Format - int32. (optional) (default to null)
array[Integer] *filterPeriodcategoryIDs = ; //  (optional) (default to null)
array[Integer] *filterPeriodbrandIDs = ; //  (optional) (default to null)
array[Integer] *filterPeriodiDs = ; //  (optional) (default to null)
array[String] *filterPeriodgUIDs = ; //  (optional) (default to null)
Integer *filterPeriodlinkedSupplierID = 56; // Format - int32. (optional) (default to null)
Boolean *filterPeriodisApprovedForPOS = true; //  (optional) (default to null)
Boolean *filterPeriodisApprovedForWeb = true; //  (optional) (default to null)
Boolean *filterPeriodisApprovedForService = true; //  (optional) (default to null)
Integer *filterPeriodiD = 56; // Format - int32. (optional) (default to null)
Boolean *filterPeriodisHierarchicalSort = true; //  (optional) (default to null)
array[String] *filterPeriodtypes = ; //  (optional) (default to null)
Boolean *filterPeriodisShowFavourites = true; //  (optional) (default to null)
Boolean *filterPeriodisHidden = true; //  (optional) (default to null)
Boolean *filterPeriodincludeSystemTasks = true; //  (optional) (default to null)
Boolean *filterPeriodisSystem = true; //  (optional) (default to null)
String *filterPeriodbatchStatus = filterPeriodbatchStatus_example; //  (optional) (default to null)
String *filterPeriodsortField = filterPeriodsortField_example; //  (optional) (default to null)
Boolean *filterPeriodsortAsc = true; //  (optional) (default to null)
String *filterPeriodgroupBy = filterPeriodgroupBy_example; //  (optional) (default to null)
Long *filterPeriodlastRowNumber = 789; // Format - int64. (optional) (default to null)
Integer *filterPeriodmaxResults = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodtenantID = 56; // Format - int32. (optional) (default to null)
Integer *filterPeriodwebsiteID = 56; // Format - int32. (optional) (default to null)
Integer *filterPerioduserID = 56; // Format - int32. (optional) (default to null)

// StockTake_Search
[apiInstance stockTakeSearchWith:filterPeriodwarehouseID
    filterPeriodcreatedByUserID:filterPeriodcreatedByUserID
    filterPeriodcompletedByUserID:filterPeriodcompletedByUserID
    filterPeriodstockTakeType:filterPeriodstockTakeType
    filterPeriodstatuses:filterPeriodstatuses
    filterPeriodstatusStrings:filterPeriodstatusStrings
    filterPeriodstatus:filterPeriodstatus
    filterPeriodsearchString:filterPeriodsearchString
    filterPeriodsearchNameOnly:filterPeriodsearchNameOnly
    filterPeriodsearch:filterPeriodsearch
    filterPeriodstartDate:filterPeriodstartDate
    filterPeriodendDate:filterPeriodendDate
    filterPerioddatePeriod:filterPerioddatePeriod
    filterPeriodisExactMatch:filterPeriodisExactMatch
    filterPeriodisGetBasicInfo:filterPeriodisGetBasicInfo
    filterPeriodincludeDeleted:filterPeriodincludeDeleted
    filterPeriodincludeLogs:filterPeriodincludeLogs
    filterPeriodignoreID:filterPeriodignoreID
    filterPeriodparentID:filterPeriodparentID
    filterPeriodgetCountOnly:filterPeriodgetCountOnly
    filterPeriodtransactionTypeDatTypeID:filterPeriodtransactionTypeDatTypeID
    filterPeriodcategoryID:filterPeriodcategoryID
    filterPeriodadaptorID:filterPeriodadaptorID
    filterPeriodcategoryIDs:filterPeriodcategoryIDs
    filterPeriodbrandIDs:filterPeriodbrandIDs
    filterPeriodiDs:filterPeriodiDs
    filterPeriodgUIDs:filterPeriodgUIDs
    filterPeriodlinkedSupplierID:filterPeriodlinkedSupplierID
    filterPeriodisApprovedForPOS:filterPeriodisApprovedForPOS
    filterPeriodisApprovedForWeb:filterPeriodisApprovedForWeb
    filterPeriodisApprovedForService:filterPeriodisApprovedForService
    filterPeriodiD:filterPeriodiD
    filterPeriodisHierarchicalSort:filterPeriodisHierarchicalSort
    filterPeriodtypes:filterPeriodtypes
    filterPeriodisShowFavourites:filterPeriodisShowFavourites
    filterPeriodisHidden:filterPeriodisHidden
    filterPeriodincludeSystemTasks:filterPeriodincludeSystemTasks
    filterPeriodisSystem:filterPeriodisSystem
    filterPeriodbatchStatus:filterPeriodbatchStatus
    filterPeriodsortField:filterPeriodsortField
    filterPeriodsortAsc:filterPeriodsortAsc
    filterPeriodgroupBy:filterPeriodgroupBy
    filterPeriodlastRowNumber:filterPeriodlastRowNumber
    filterPeriodmaxResults:filterPeriodmaxResults
    filterPeriodtenantID:filterPeriodtenantID
    filterPeriodwebsiteID:filterPeriodwebsiteID
    filterPerioduserID:filterPerioduserID
              completionHandler: ^(PagedActionResults_StockTakes_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTake = require('as_server_api_stock_take');

// Create an instance of the API class
var api = new AsServerApiStockTake.DefaultApi()
var opts = {
  'filterPeriodwarehouseID': 56, // {Integer} Format - int32.
  'filterPeriodcreatedByUserID': 56, // {Integer} Format - int32.
  'filterPeriodcompletedByUserID': 56, // {Integer} Format - int32.
  'filterPeriodstockTakeType': filterPeriodstockTakeType_example, // {String} 
  'filterPeriodstatuses': , // {array[Integer]} 
  'filterPeriodstatusStrings': , // {array[String]} 
  'filterPeriodstatus': , // {array[String]} 
  'filterPeriodsearchString': filterPeriodsearchString_example, // {String} 
  'filterPeriodsearchNameOnly': true, // {Boolean} 
  'filterPeriodsearch': filterPeriodsearch_example, // {String} 
  'filterPeriodstartDate': 2013-10-20T19:20:30+01:00, // {Date} Format - date-time (as date-time in RFC3339).
  'filterPeriodendDate': 2013-10-20T19:20:30+01:00, // {Date} Format - date-time (as date-time in RFC3339).
  'filterPerioddatePeriod': filterPerioddatePeriod_example, // {String} 
  'filterPeriodisExactMatch': true, // {Boolean} 
  'filterPeriodisGetBasicInfo': true, // {Boolean} 
  'filterPeriodincludeDeleted': true, // {Boolean} 
  'filterPeriodincludeLogs': true, // {Boolean} 
  'filterPeriodignoreID': 56, // {Integer} Format - int32.
  'filterPeriodparentID': 56, // {Integer} Format - int32.
  'filterPeriodgetCountOnly': true, // {Boolean} 
  'filterPeriodtransactionTypeDatTypeID': 56, // {Integer} Format - int32.
  'filterPeriodcategoryID': 56, // {Integer} Format - int32.
  'filterPeriodadaptorID': 56, // {Integer} Format - int32.
  'filterPeriodcategoryIDs': , // {array[Integer]} 
  'filterPeriodbrandIDs': , // {array[Integer]} 
  'filterPeriodiDs': , // {array[Integer]} 
  'filterPeriodgUIDs': , // {array[String]} 
  'filterPeriodlinkedSupplierID': 56, // {Integer} Format - int32.
  'filterPeriodisApprovedForPOS': true, // {Boolean} 
  'filterPeriodisApprovedForWeb': true, // {Boolean} 
  'filterPeriodisApprovedForService': true, // {Boolean} 
  'filterPeriodiD': 56, // {Integer} Format - int32.
  'filterPeriodisHierarchicalSort': true, // {Boolean} 
  'filterPeriodtypes': , // {array[String]} 
  'filterPeriodisShowFavourites': true, // {Boolean} 
  'filterPeriodisHidden': true, // {Boolean} 
  'filterPeriodincludeSystemTasks': true, // {Boolean} 
  'filterPeriodisSystem': true, // {Boolean} 
  'filterPeriodbatchStatus': filterPeriodbatchStatus_example, // {String} 
  'filterPeriodsortField': filterPeriodsortField_example, // {String} 
  'filterPeriodsortAsc': true, // {Boolean} 
  'filterPeriodgroupBy': filterPeriodgroupBy_example, // {String} 
  'filterPeriodlastRowNumber': 789, // {Long} Format - int64.
  'filterPeriodmaxResults': 56, // {Integer} Format - int32.
  'filterPeriodtenantID': 56, // {Integer} Format - int32.
  'filterPeriodwebsiteID': 56, // {Integer} Format - int32.
  'filterPerioduserID': 56 // {Integer} Format - int32.
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var filterPeriodwarehouseID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodcreatedByUserID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodcompletedByUserID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodstockTakeType = filterPeriodstockTakeType_example;  // String |  (optional)  (default to null)
            var filterPeriodstatuses = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodstatusStrings = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodstatus = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodsearchString = filterPeriodsearchString_example;  // String |  (optional)  (default to null)
            var filterPeriodsearchNameOnly = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodsearch = filterPeriodsearch_example;  // String |  (optional)  (default to null)
            var filterPeriodstartDate = 2013-10-20T19:20:30+01:00;  // Date | Format - date-time (as date-time in RFC3339). (optional)  (default to null)
            var filterPeriodendDate = 2013-10-20T19:20:30+01:00;  // Date | Format - date-time (as date-time in RFC3339). (optional)  (default to null)
            var filterPerioddatePeriod = filterPerioddatePeriod_example;  // String |  (optional)  (default to null)
            var filterPeriodisExactMatch = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisGetBasicInfo = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodincludeDeleted = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodincludeLogs = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodignoreID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodparentID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodgetCountOnly = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodtransactionTypeDatTypeID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodcategoryID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodadaptorID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodcategoryIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodbrandIDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodiDs = new array[Integer](); // array[Integer] |  (optional)  (default to null)
            var filterPeriodgUIDs = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodlinkedSupplierID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodisApprovedForPOS = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisApprovedForWeb = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisApprovedForService = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodiD = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodisHierarchicalSort = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodtypes = new array[String](); // array[String] |  (optional)  (default to null)
            var filterPeriodisShowFavourites = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisHidden = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodincludeSystemTasks = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodisSystem = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodbatchStatus = filterPeriodbatchStatus_example;  // String |  (optional)  (default to null)
            var filterPeriodsortField = filterPeriodsortField_example;  // String |  (optional)  (default to null)
            var filterPeriodsortAsc = true;  // Boolean |  (optional)  (default to null)
            var filterPeriodgroupBy = filterPeriodgroupBy_example;  // String |  (optional)  (default to null)
            var filterPeriodlastRowNumber = 789;  // Long | Format - int64. (optional)  (default to null)
            var filterPeriodmaxResults = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodtenantID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPeriodwebsiteID = 56;  // Integer | Format - int32. (optional)  (default to null)
            var filterPerioduserID = 56;  // Integer | Format - int32. (optional)  (default to null)

            try {
                // StockTake_Search
                PagedActionResults_StockTakes_ result = apiInstance.stockTakeSearch(filterPeriodwarehouseID, filterPeriodcreatedByUserID, filterPeriodcompletedByUserID, filterPeriodstockTakeType, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakeSearch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$filterPeriodwarehouseID = 56; // Integer | Format - int32.
$filterPeriodcreatedByUserID = 56; // Integer | Format - int32.
$filterPeriodcompletedByUserID = 56; // Integer | Format - int32.
$filterPeriodstockTakeType = filterPeriodstockTakeType_example; // String | 
$filterPeriodstatuses = ; // array[Integer] | 
$filterPeriodstatusStrings = ; // array[String] | 
$filterPeriodstatus = ; // array[String] | 
$filterPeriodsearchString = filterPeriodsearchString_example; // String | 
$filterPeriodsearchNameOnly = true; // Boolean | 
$filterPeriodsearch = filterPeriodsearch_example; // String | 
$filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
$filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date | Format - date-time (as date-time in RFC3339).
$filterPerioddatePeriod = filterPerioddatePeriod_example; // String | 
$filterPeriodisExactMatch = true; // Boolean | 
$filterPeriodisGetBasicInfo = true; // Boolean | 
$filterPeriodincludeDeleted = true; // Boolean | 
$filterPeriodincludeLogs = true; // Boolean | 
$filterPeriodignoreID = 56; // Integer | Format - int32.
$filterPeriodparentID = 56; // Integer | Format - int32.
$filterPeriodgetCountOnly = true; // Boolean | 
$filterPeriodtransactionTypeDatTypeID = 56; // Integer | Format - int32.
$filterPeriodcategoryID = 56; // Integer | Format - int32.
$filterPeriodadaptorID = 56; // Integer | Format - int32.
$filterPeriodcategoryIDs = ; // array[Integer] | 
$filterPeriodbrandIDs = ; // array[Integer] | 
$filterPeriodiDs = ; // array[Integer] | 
$filterPeriodgUIDs = ; // array[String] | 
$filterPeriodlinkedSupplierID = 56; // Integer | Format - int32.
$filterPeriodisApprovedForPOS = true; // Boolean | 
$filterPeriodisApprovedForWeb = true; // Boolean | 
$filterPeriodisApprovedForService = true; // Boolean | 
$filterPeriodiD = 56; // Integer | Format - int32.
$filterPeriodisHierarchicalSort = true; // Boolean | 
$filterPeriodtypes = ; // array[String] | 
$filterPeriodisShowFavourites = true; // Boolean | 
$filterPeriodisHidden = true; // Boolean | 
$filterPeriodincludeSystemTasks = true; // Boolean | 
$filterPeriodisSystem = true; // Boolean | 
$filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String | 
$filterPeriodsortField = filterPeriodsortField_example; // String | 
$filterPeriodsortAsc = true; // Boolean | 
$filterPeriodgroupBy = filterPeriodgroupBy_example; // String | 
$filterPeriodlastRowNumber = 789; // Long | Format - int64.
$filterPeriodmaxResults = 56; // Integer | Format - int32.
$filterPeriodtenantID = 56; // Integer | Format - int32.
$filterPeriodwebsiteID = 56; // Integer | Format - int32.
$filterPerioduserID = 56; // Integer | Format - int32.

try {
    $result = $api_instance->stockTakeSearch($filterPeriodwarehouseID, $filterPeriodcreatedByUserID, $filterPeriodcompletedByUserID, $filterPeriodstockTakeType, $filterPeriodstatuses, $filterPeriodstatusStrings, $filterPeriodstatus, $filterPeriodsearchString, $filterPeriodsearchNameOnly, $filterPeriodsearch, $filterPeriodstartDate, $filterPeriodendDate, $filterPerioddatePeriod, $filterPeriodisExactMatch, $filterPeriodisGetBasicInfo, $filterPeriodincludeDeleted, $filterPeriodincludeLogs, $filterPeriodignoreID, $filterPeriodparentID, $filterPeriodgetCountOnly, $filterPeriodtransactionTypeDatTypeID, $filterPeriodcategoryID, $filterPeriodadaptorID, $filterPeriodcategoryIDs, $filterPeriodbrandIDs, $filterPeriodiDs, $filterPeriodgUIDs, $filterPeriodlinkedSupplierID, $filterPeriodisApprovedForPOS, $filterPeriodisApprovedForWeb, $filterPeriodisApprovedForService, $filterPeriodiD, $filterPeriodisHierarchicalSort, $filterPeriodtypes, $filterPeriodisShowFavourites, $filterPeriodisHidden, $filterPeriodincludeSystemTasks, $filterPeriodisSystem, $filterPeriodbatchStatus, $filterPeriodsortField, $filterPeriodsortAsc, $filterPeriodgroupBy, $filterPeriodlastRowNumber, $filterPeriodmaxResults, $filterPeriodtenantID, $filterPeriodwebsiteID, $filterPerioduserID);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->stockTakeSearch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $filterPeriodwarehouseID = 56; # Integer | Format - int32.
my $filterPeriodcreatedByUserID = 56; # Integer | Format - int32.
my $filterPeriodcompletedByUserID = 56; # Integer | Format - int32.
my $filterPeriodstockTakeType = filterPeriodstockTakeType_example; # String | 
my $filterPeriodstatuses = []; # array[Integer] | 
my $filterPeriodstatusStrings = []; # array[String] | 
my $filterPeriodstatus = []; # array[String] | 
my $filterPeriodsearchString = filterPeriodsearchString_example; # String | 
my $filterPeriodsearchNameOnly = true; # Boolean | 
my $filterPeriodsearch = filterPeriodsearch_example; # String | 
my $filterPeriodstartDate = 2013-10-20T19:20:30+01:00; # Date | Format - date-time (as date-time in RFC3339).
my $filterPeriodendDate = 2013-10-20T19:20:30+01:00; # Date | Format - date-time (as date-time in RFC3339).
my $filterPerioddatePeriod = filterPerioddatePeriod_example; # String | 
my $filterPeriodisExactMatch = true; # Boolean | 
my $filterPeriodisGetBasicInfo = true; # Boolean | 
my $filterPeriodincludeDeleted = true; # Boolean | 
my $filterPeriodincludeLogs = true; # Boolean | 
my $filterPeriodignoreID = 56; # Integer | Format - int32.
my $filterPeriodparentID = 56; # Integer | Format - int32.
my $filterPeriodgetCountOnly = true; # Boolean | 
my $filterPeriodtransactionTypeDatTypeID = 56; # Integer | Format - int32.
my $filterPeriodcategoryID = 56; # Integer | Format - int32.
my $filterPeriodadaptorID = 56; # Integer | Format - int32.
my $filterPeriodcategoryIDs = []; # array[Integer] | 
my $filterPeriodbrandIDs = []; # array[Integer] | 
my $filterPeriodiDs = []; # array[Integer] | 
my $filterPeriodgUIDs = []; # array[String] | 
my $filterPeriodlinkedSupplierID = 56; # Integer | Format - int32.
my $filterPeriodisApprovedForPOS = true; # Boolean | 
my $filterPeriodisApprovedForWeb = true; # Boolean | 
my $filterPeriodisApprovedForService = true; # Boolean | 
my $filterPeriodiD = 56; # Integer | Format - int32.
my $filterPeriodisHierarchicalSort = true; # Boolean | 
my $filterPeriodtypes = []; # array[String] | 
my $filterPeriodisShowFavourites = true; # Boolean | 
my $filterPeriodisHidden = true; # Boolean | 
my $filterPeriodincludeSystemTasks = true; # Boolean | 
my $filterPeriodisSystem = true; # Boolean | 
my $filterPeriodbatchStatus = filterPeriodbatchStatus_example; # String | 
my $filterPeriodsortField = filterPeriodsortField_example; # String | 
my $filterPeriodsortAsc = true; # Boolean | 
my $filterPeriodgroupBy = filterPeriodgroupBy_example; # String | 
my $filterPeriodlastRowNumber = 789; # Long | Format - int64.
my $filterPeriodmaxResults = 56; # Integer | Format - int32.
my $filterPeriodtenantID = 56; # Integer | Format - int32.
my $filterPeriodwebsiteID = 56; # Integer | Format - int32.
my $filterPerioduserID = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->stockTakeSearch(filterPeriodwarehouseID => $filterPeriodwarehouseID, filterPeriodcreatedByUserID => $filterPeriodcreatedByUserID, filterPeriodcompletedByUserID => $filterPeriodcompletedByUserID, filterPeriodstockTakeType => $filterPeriodstockTakeType, filterPeriodstatuses => $filterPeriodstatuses, filterPeriodstatusStrings => $filterPeriodstatusStrings, filterPeriodstatus => $filterPeriodstatus, filterPeriodsearchString => $filterPeriodsearchString, filterPeriodsearchNameOnly => $filterPeriodsearchNameOnly, filterPeriodsearch => $filterPeriodsearch, filterPeriodstartDate => $filterPeriodstartDate, filterPeriodendDate => $filterPeriodendDate, filterPerioddatePeriod => $filterPerioddatePeriod, filterPeriodisExactMatch => $filterPeriodisExactMatch, filterPeriodisGetBasicInfo => $filterPeriodisGetBasicInfo, filterPeriodincludeDeleted => $filterPeriodincludeDeleted, filterPeriodincludeLogs => $filterPeriodincludeLogs, filterPeriodignoreID => $filterPeriodignoreID, filterPeriodparentID => $filterPeriodparentID, filterPeriodgetCountOnly => $filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID => $filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID => $filterPeriodcategoryID, filterPeriodadaptorID => $filterPeriodadaptorID, filterPeriodcategoryIDs => $filterPeriodcategoryIDs, filterPeriodbrandIDs => $filterPeriodbrandIDs, filterPeriodiDs => $filterPeriodiDs, filterPeriodgUIDs => $filterPeriodgUIDs, filterPeriodlinkedSupplierID => $filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS => $filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb => $filterPeriodisApprovedForWeb, filterPeriodisApprovedForService => $filterPeriodisApprovedForService, filterPeriodiD => $filterPeriodiD, filterPeriodisHierarchicalSort => $filterPeriodisHierarchicalSort, filterPeriodtypes => $filterPeriodtypes, filterPeriodisShowFavourites => $filterPeriodisShowFavourites, filterPeriodisHidden => $filterPeriodisHidden, filterPeriodincludeSystemTasks => $filterPeriodincludeSystemTasks, filterPeriodisSystem => $filterPeriodisSystem, filterPeriodbatchStatus => $filterPeriodbatchStatus, filterPeriodsortField => $filterPeriodsortField, filterPeriodsortAsc => $filterPeriodsortAsc, filterPeriodgroupBy => $filterPeriodgroupBy, filterPeriodlastRowNumber => $filterPeriodlastRowNumber, filterPeriodmaxResults => $filterPeriodmaxResults, filterPeriodtenantID => $filterPeriodtenantID, filterPeriodwebsiteID => $filterPeriodwebsiteID, filterPerioduserID => $filterPerioduserID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->stockTakeSearch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
filterPeriodwarehouseID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodcreatedByUserID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodcompletedByUserID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodstockTakeType = filterPeriodstockTakeType_example # String |  (optional) (default to null)
filterPeriodstatuses =  # array[Integer] |  (optional) (default to null)
filterPeriodstatusStrings =  # array[String] |  (optional) (default to null)
filterPeriodstatus =  # array[String] |  (optional) (default to null)
filterPeriodsearchString = filterPeriodsearchString_example # String |  (optional) (default to null)
filterPeriodsearchNameOnly = true # Boolean |  (optional) (default to null)
filterPeriodsearch = filterPeriodsearch_example # String |  (optional) (default to null)
filterPeriodstartDate = 2013-10-20T19:20:30+01:00 # Date | Format - date-time (as date-time in RFC3339). (optional) (default to null)
filterPeriodendDate = 2013-10-20T19:20:30+01:00 # Date | Format - date-time (as date-time in RFC3339). (optional) (default to null)
filterPerioddatePeriod = filterPerioddatePeriod_example # String |  (optional) (default to null)
filterPeriodisExactMatch = true # Boolean |  (optional) (default to null)
filterPeriodisGetBasicInfo = true # Boolean |  (optional) (default to null)
filterPeriodincludeDeleted = true # Boolean |  (optional) (default to null)
filterPeriodincludeLogs = true # Boolean |  (optional) (default to null)
filterPeriodignoreID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodparentID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodgetCountOnly = true # Boolean |  (optional) (default to null)
filterPeriodtransactionTypeDatTypeID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodcategoryID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodadaptorID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodcategoryIDs =  # array[Integer] |  (optional) (default to null)
filterPeriodbrandIDs =  # array[Integer] |  (optional) (default to null)
filterPeriodiDs =  # array[Integer] |  (optional) (default to null)
filterPeriodgUIDs =  # array[String] |  (optional) (default to null)
filterPeriodlinkedSupplierID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodisApprovedForPOS = true # Boolean |  (optional) (default to null)
filterPeriodisApprovedForWeb = true # Boolean |  (optional) (default to null)
filterPeriodisApprovedForService = true # Boolean |  (optional) (default to null)
filterPeriodiD = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodisHierarchicalSort = true # Boolean |  (optional) (default to null)
filterPeriodtypes =  # array[String] |  (optional) (default to null)
filterPeriodisShowFavourites = true # Boolean |  (optional) (default to null)
filterPeriodisHidden = true # Boolean |  (optional) (default to null)
filterPeriodincludeSystemTasks = true # Boolean |  (optional) (default to null)
filterPeriodisSystem = true # Boolean |  (optional) (default to null)
filterPeriodbatchStatus = filterPeriodbatchStatus_example # String |  (optional) (default to null)
filterPeriodsortField = filterPeriodsortField_example # String |  (optional) (default to null)
filterPeriodsortAsc = true # Boolean |  (optional) (default to null)
filterPeriodgroupBy = filterPeriodgroupBy_example # String |  (optional) (default to null)
filterPeriodlastRowNumber = 789 # Long | Format - int64. (optional) (default to null)
filterPeriodmaxResults = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodtenantID = 56 # Integer | Format - int32. (optional) (default to null)
filterPeriodwebsiteID = 56 # Integer | Format - int32. (optional) (default to null)
filterPerioduserID = 56 # Integer | Format - int32. (optional) (default to null)

try:
    # StockTake_Search
    api_response = api_instance.stock_take_search(filterPeriodwarehouseID=filterPeriodwarehouseID, filterPeriodcreatedByUserID=filterPeriodcreatedByUserID, filterPeriodcompletedByUserID=filterPeriodcompletedByUserID, filterPeriodstockTakeType=filterPeriodstockTakeType, filterPeriodstatuses=filterPeriodstatuses, filterPeriodstatusStrings=filterPeriodstatusStrings, filterPeriodstatus=filterPeriodstatus, filterPeriodsearchString=filterPeriodsearchString, filterPeriodsearchNameOnly=filterPeriodsearchNameOnly, filterPeriodsearch=filterPeriodsearch, filterPeriodstartDate=filterPeriodstartDate, filterPeriodendDate=filterPeriodendDate, filterPerioddatePeriod=filterPerioddatePeriod, filterPeriodisExactMatch=filterPeriodisExactMatch, filterPeriodisGetBasicInfo=filterPeriodisGetBasicInfo, filterPeriodincludeDeleted=filterPeriodincludeDeleted, filterPeriodincludeLogs=filterPeriodincludeLogs, filterPeriodignoreID=filterPeriodignoreID, filterPeriodparentID=filterPeriodparentID, filterPeriodgetCountOnly=filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID=filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID=filterPeriodcategoryID, filterPeriodadaptorID=filterPeriodadaptorID, filterPeriodcategoryIDs=filterPeriodcategoryIDs, filterPeriodbrandIDs=filterPeriodbrandIDs, filterPeriodiDs=filterPeriodiDs, filterPeriodgUIDs=filterPeriodgUIDs, filterPeriodlinkedSupplierID=filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS=filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb=filterPeriodisApprovedForWeb, filterPeriodisApprovedForService=filterPeriodisApprovedForService, filterPeriodiD=filterPeriodiD, filterPeriodisHierarchicalSort=filterPeriodisHierarchicalSort, filterPeriodtypes=filterPeriodtypes, filterPeriodisShowFavourites=filterPeriodisShowFavourites, filterPeriodisHidden=filterPeriodisHidden, filterPeriodincludeSystemTasks=filterPeriodincludeSystemTasks, filterPeriodisSystem=filterPeriodisSystem, filterPeriodbatchStatus=filterPeriodbatchStatus, filterPeriodsortField=filterPeriodsortField, filterPeriodsortAsc=filterPeriodsortAsc, filterPeriodgroupBy=filterPeriodgroupBy, filterPeriodlastRowNumber=filterPeriodlastRowNumber, filterPeriodmaxResults=filterPeriodmaxResults, filterPeriodtenantID=filterPeriodtenantID, filterPeriodwebsiteID=filterPeriodwebsiteID, filterPerioduserID=filterPerioduserID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakeSearch: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let filterPeriodwarehouseID = 56; // Integer
    let filterPeriodcreatedByUserID = 56; // Integer
    let filterPeriodcompletedByUserID = 56; // Integer
    let filterPeriodstockTakeType = filterPeriodstockTakeType_example; // String
    let filterPeriodstatuses = ; // array[Integer]
    let filterPeriodstatusStrings = ; // array[String]
    let filterPeriodstatus = ; // array[String]
    let filterPeriodsearchString = filterPeriodsearchString_example; // String
    let filterPeriodsearchNameOnly = true; // Boolean
    let filterPeriodsearch = filterPeriodsearch_example; // String
    let filterPeriodstartDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPeriodendDate = 2013-10-20T19:20:30+01:00; // Date
    let filterPerioddatePeriod = filterPerioddatePeriod_example; // String
    let filterPeriodisExactMatch = true; // Boolean
    let filterPeriodisGetBasicInfo = true; // Boolean
    let filterPeriodincludeDeleted = true; // Boolean
    let filterPeriodincludeLogs = true; // Boolean
    let filterPeriodignoreID = 56; // Integer
    let filterPeriodparentID = 56; // Integer
    let filterPeriodgetCountOnly = true; // Boolean
    let filterPeriodtransactionTypeDatTypeID = 56; // Integer
    let filterPeriodcategoryID = 56; // Integer
    let filterPeriodadaptorID = 56; // Integer
    let filterPeriodcategoryIDs = ; // array[Integer]
    let filterPeriodbrandIDs = ; // array[Integer]
    let filterPeriodiDs = ; // array[Integer]
    let filterPeriodgUIDs = ; // array[String]
    let filterPeriodlinkedSupplierID = 56; // Integer
    let filterPeriodisApprovedForPOS = true; // Boolean
    let filterPeriodisApprovedForWeb = true; // Boolean
    let filterPeriodisApprovedForService = true; // Boolean
    let filterPeriodiD = 56; // Integer
    let filterPeriodisHierarchicalSort = true; // Boolean
    let filterPeriodtypes = ; // array[String]
    let filterPeriodisShowFavourites = true; // Boolean
    let filterPeriodisHidden = true; // Boolean
    let filterPeriodincludeSystemTasks = true; // Boolean
    let filterPeriodisSystem = true; // Boolean
    let filterPeriodbatchStatus = filterPeriodbatchStatus_example; // String
    let filterPeriodsortField = filterPeriodsortField_example; // String
    let filterPeriodsortAsc = true; // Boolean
    let filterPeriodgroupBy = filterPeriodgroupBy_example; // String
    let filterPeriodlastRowNumber = 789; // Long
    let filterPeriodmaxResults = 56; // Integer
    let filterPeriodtenantID = 56; // Integer
    let filterPeriodwebsiteID = 56; // Integer
    let filterPerioduserID = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.stockTakeSearch(filterPeriodwarehouseID, filterPeriodcreatedByUserID, filterPeriodcompletedByUserID, filterPeriodstockTakeType, filterPeriodstatuses, filterPeriodstatusStrings, filterPeriodstatus, filterPeriodsearchString, filterPeriodsearchNameOnly, filterPeriodsearch, filterPeriodstartDate, filterPeriodendDate, filterPerioddatePeriod, filterPeriodisExactMatch, filterPeriodisGetBasicInfo, filterPeriodincludeDeleted, filterPeriodincludeLogs, filterPeriodignoreID, filterPeriodparentID, filterPeriodgetCountOnly, filterPeriodtransactionTypeDatTypeID, filterPeriodcategoryID, filterPeriodadaptorID, filterPeriodcategoryIDs, filterPeriodbrandIDs, filterPeriodiDs, filterPeriodgUIDs, filterPeriodlinkedSupplierID, filterPeriodisApprovedForPOS, filterPeriodisApprovedForWeb, filterPeriodisApprovedForService, filterPeriodiD, filterPeriodisHierarchicalSort, filterPeriodtypes, filterPeriodisShowFavourites, filterPeriodisHidden, filterPeriodincludeSystemTasks, filterPeriodisSystem, filterPeriodbatchStatus, filterPeriodsortField, filterPeriodsortAsc, filterPeriodgroupBy, filterPeriodlastRowNumber, filterPeriodmaxResults, filterPeriodtenantID, filterPeriodwebsiteID, filterPerioduserID, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
filter.warehouseID
Integer (int32)
Format - int32.
filter.createdByUserID
Integer (int32)
Format - int32.
filter.completedByUserID
Integer (int32)
Format - int32.
filter.stockTakeType
String
filter.statuses
array[Integer] (int32)
filter.statusStrings
array[String]
filter.status
array[String]
filter.searchString
String
filter.searchNameOnly
Boolean
filter.search
String
filter.startDate
Date (date-time)
Format - date-time (as date-time in RFC3339).
filter.endDate
Date (date-time)
Format - date-time (as date-time in RFC3339).
filter.datePeriod
String
filter.isExactMatch
Boolean
filter.isGetBasicInfo
Boolean
filter.includeDeleted
Boolean
filter.includeLogs
Boolean
filter.ignoreID
Integer (int32)
Format - int32.
filter.parentID
Integer (int32)
Format - int32.
filter.getCountOnly
Boolean
filter.transactionTypeDatTypeID
Integer (int32)
Format - int32.
filter.categoryID
Integer (int32)
Format - int32.
filter.adaptorID
Integer (int32)
Format - int32.
filter.categoryIDs
array[Integer] (int32)
filter.brandIDs
array[Integer] (int32)
filter.iDs
array[Integer] (int32)
filter.gUIDs
array[String]
filter.linkedSupplierID
Integer (int32)
Format - int32.
filter.isApprovedForPOS
Boolean
filter.isApprovedForWeb
Boolean
filter.isApprovedForService
Boolean
filter.iD
Integer (int32)
Format - int32.
filter.isHierarchicalSort
Boolean
filter.types
array[String]
filter.isShowFavourites
Boolean
filter.isHidden
Boolean
filter.includeSystemTasks
Boolean
filter.isSystem
Boolean
filter.batchStatus
String
filter.sortField
String
filter.sortAsc
Boolean
filter.groupBy
String
filter.lastRowNumber
Long (int64)
Format - int64.
filter.maxResults
Integer (int32)
Format - int32.
filter.tenantID
Integer (int32)
Format - int32.
filter.websiteID
Integer (int32)
Format - int32.
filter.userID
Integer (int32)
Format - int32.

Responses