Vending admin

Category

GetAllCategories Get

Отримати всі категорії.


/api/Category/GetAllCategories

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
"//api/Category/GetAllCategories"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategoryApi;

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

public class CategoryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        CategoryApi apiInstance = new CategoryApi();
        try {
            array[CategoryViewModel] result = apiInstance.apiCategoryGetAllCategoriesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategoryApi#apiCategoryGetAllCategoriesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CategoryApi;

public class CategoryApiExample {

    public static void main(String[] args) {
        CategoryApi apiInstance = new CategoryApi();
        try {
            array[CategoryViewModel] result = apiInstance.apiCategoryGetAllCategoriesGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategoryApi#apiCategoryGetAllCategoriesGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

CategoryApi *apiInstance = [[CategoryApi alloc] init];

// Отримати всі категорії.
[apiInstance apiCategoryGetAllCategoriesGetWithCompletionHandler: 
              ^(array[CategoryViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.CategoryApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiCategoryGetAllCategoriesGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new CategoryApi();

            try
            {
                // Отримати всі категорії.
                array[CategoryViewModel] result = apiInstance.apiCategoryGetAllCategoriesGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CategoryApi.apiCategoryGetAllCategoriesGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiCategoryApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CategoryApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CategoryApi()

try: 
    # Отримати всі категорії.
    api_response = api_instance.api_category_get_all_categories_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CategoryApi->apiCategoryGetAllCategoriesGet: %s\n" % e)

Parameters

Responses

Status: 200 - categories successfuly returned.

Status: 204 - No any categories for return.

Status: 500 - Failure to gets categories.


GetCategoryById Get

Отримати категорію за id.


/api/Category/GetCategoryById/{categoryId}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Category/GetCategoryById/{categoryId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategoryApi;

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

public class CategoryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        CategoryApi apiInstance = new CategoryApi();
        UUID categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            CategoryViewModel result = apiInstance.apiCategoryGetCategoryByIdCategoryIdGet(categoryId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategoryApi#apiCategoryGetCategoryByIdCategoryIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CategoryApi;

public class CategoryApiExample {

    public static void main(String[] args) {
        CategoryApi apiInstance = new CategoryApi();
        UUID categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            CategoryViewModel result = apiInstance.apiCategoryGetCategoryByIdCategoryIdGet(categoryId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategoryApi#apiCategoryGetCategoryByIdCategoryIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

CategoryApi *apiInstance = [[CategoryApi alloc] init];

// Отримати категорію за id.
[apiInstance apiCategoryGetCategoryByIdCategoryIdGetWith:categoryId
              completionHandler: ^(CategoryViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.CategoryApi()
var categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

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

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new CategoryApi();
            var categoryId = new UUID(); // UUID | 

            try
            {
                // Отримати категорію за id.
                CategoryViewModel result = apiInstance.apiCategoryGetCategoryByIdCategoryIdGet(categoryId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CategoryApi.apiCategoryGetCategoryByIdCategoryIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiCategoryApi();
$categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CategoryApi->new();
my $categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CategoryApi()
categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Отримати категорію за id.
    api_response = api_instance.api_category_get_category_by_id_category_id_get(categoryId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CategoryApi->apiCategoryGetCategoryByIdCategoryIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
categoryId*
UUID (uuid)
Required

Responses

Status: 200 - categories successfuly returned.

Status: 500 - Failure to gets categories.


GetCategoryImage Get

Отримати зображення категорії.


/api/Category/GetCategoryImage/{categoryId}/{isSmall}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Category/GetCategoryImage/{categoryId}/{isSmall}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategoryApi;

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

public class CategoryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        CategoryApi apiInstance = new CategoryApi();
        UUID categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Boolean isSmall = true; // Boolean | 
        try {
            byte[] result = apiInstance.apiCategoryGetCategoryImageCategoryIdIsSmallGet(categoryId, isSmall);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategoryApi#apiCategoryGetCategoryImageCategoryIdIsSmallGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CategoryApi;

public class CategoryApiExample {

    public static void main(String[] args) {
        CategoryApi apiInstance = new CategoryApi();
        UUID categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Boolean isSmall = true; // Boolean | 
        try {
            byte[] result = apiInstance.apiCategoryGetCategoryImageCategoryIdIsSmallGet(categoryId, isSmall);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategoryApi#apiCategoryGetCategoryImageCategoryIdIsSmallGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 
Boolean *isSmall = true; // 

CategoryApi *apiInstance = [[CategoryApi alloc] init];

// Отримати зображення категорії.
[apiInstance apiCategoryGetCategoryImageCategoryIdIsSmallGetWith:categoryId
    isSmall:isSmall
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.CategoryApi()
var categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 
var isSmall = true; // {{Boolean}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiCategoryGetCategoryImageCategoryIdIsSmallGet(categoryId, isSmall, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new CategoryApi();
            var categoryId = new UUID(); // UUID | 
            var isSmall = true;  // Boolean | 

            try
            {
                // Отримати зображення категорії.
                byte[] result = apiInstance.apiCategoryGetCategoryImageCategoryIdIsSmallGet(categoryId, isSmall);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CategoryApi.apiCategoryGetCategoryImageCategoryIdIsSmallGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiCategoryApi();
$categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
$isSmall = true; // Boolean | 

try {
    $result = $api_instance->apiCategoryGetCategoryImageCategoryIdIsSmallGet($categoryId, $isSmall);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CategoryApi->apiCategoryGetCategoryImageCategoryIdIsSmallGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CategoryApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CategoryApi->new();
my $categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 
my $isSmall = true; # Boolean | 

eval { 
    my $result = $api_instance->apiCategoryGetCategoryImageCategoryIdIsSmallGet(categoryId => $categoryId, isSmall => $isSmall);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CategoryApi->apiCategoryGetCategoryImageCategoryIdIsSmallGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CategoryApi()
categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 
isSmall = true # Boolean | 

try: 
    # Отримати зображення категорії.
    api_response = api_instance.api_category_get_category_image_category_id_is_small_get(categoryId, isSmall)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CategoryApi->apiCategoryGetCategoryImageCategoryIdIsSmallGet: %s\n" % e)

Parameters

Path parameters
Name Description
categoryId*
UUID (uuid)
Required
isSmall*
Boolean
Required

Responses

Status: 200 - categories successfuly returned.

Status: 204 - No any categories for return.

Status: 500 - Failure to gets categories.


GetCategoryNameById Get

Отримати назву категорії за id.


/api/Category/GetCategoryNameById/{id}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Category/GetCategoryNameById/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CategoryApi;

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

public class CategoryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        CategoryApi apiInstance = new CategoryApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            'String' result = apiInstance.apiCategoryGetCategoryNameByIdIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategoryApi#apiCategoryGetCategoryNameByIdIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CategoryApi;

public class CategoryApiExample {

    public static void main(String[] args) {
        CategoryApi apiInstance = new CategoryApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            'String' result = apiInstance.apiCategoryGetCategoryNameByIdIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategoryApi#apiCategoryGetCategoryNameByIdIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

CategoryApi *apiInstance = [[CategoryApi alloc] init];

// Отримати назву категорії за id.
[apiInstance apiCategoryGetCategoryNameByIdIdGetWith:id
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.CategoryApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

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

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new CategoryApi();
            var id = new UUID(); // UUID | 

            try
            {
                // Отримати назву категорії за id.
                'String' result = apiInstance.apiCategoryGetCategoryNameByIdIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CategoryApi.apiCategoryGetCategoryNameByIdIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiCategoryApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CategoryApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CategoryApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Отримати назву категорії за id.
    api_response = api_instance.api_category_get_category_name_by_id_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CategoryApi->apiCategoryGetCategoryNameByIdIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
UUID (uuid)
Required

Responses

Status: 200 - categories successfuly returned.

Status: 500 - Failure to gets categories.


Company

GetCountryCode Get

Отримати код країни компанії.


/api/Company/GetCountryCode

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Company/GetCountryCode"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompanyApi;

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

public class CompanyApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        CompanyApi apiInstance = new CompanyApi();
        try {
            'String' result = apiInstance.apiCompanyGetCountryCodeGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompanyApi#apiCompanyGetCountryCodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompanyApi;

public class CompanyApiExample {

    public static void main(String[] args) {
        CompanyApi apiInstance = new CompanyApi();
        try {
            'String' result = apiInstance.apiCompanyGetCountryCodeGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompanyApi#apiCompanyGetCountryCodeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

CompanyApi *apiInstance = [[CompanyApi alloc] init];

// Отримати код країни компанії.
[apiInstance apiCompanyGetCountryCodeGetWithCompletionHandler: 
              ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.CompanyApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiCompanyGetCountryCodeGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new CompanyApi();

            try
            {
                // Отримати код країни компанії.
                'String' result = apiInstance.apiCompanyGetCountryCodeGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompanyApi.apiCompanyGetCountryCodeGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiCompanyApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CompanyApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CompanyApi()

try: 
    # Отримати код країни компанії.
    api_response = api_instance.api_company_get_country_code_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompanyApi->apiCompanyGetCountryCodeGet: %s\n" % e)

Parameters

Responses

Status: 200 - companies successfuly returned.

Status: 400 - Bad Request

Status: 500 - Failure to gets companies.


GetCurrentCompany Get

Отримати інформацію компанії.


/api/Company/GetCurrentCompany

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Company/GetCurrentCompany"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompanyApi;

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

public class CompanyApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        CompanyApi apiInstance = new CompanyApi();
        try {
            CompanyBase result = apiInstance.apiCompanyGetCurrentCompanyGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompanyApi#apiCompanyGetCurrentCompanyGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompanyApi;

public class CompanyApiExample {

    public static void main(String[] args) {
        CompanyApi apiInstance = new CompanyApi();
        try {
            CompanyBase result = apiInstance.apiCompanyGetCurrentCompanyGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompanyApi#apiCompanyGetCurrentCompanyGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

CompanyApi *apiInstance = [[CompanyApi alloc] init];

// Отримати інформацію компанії.
[apiInstance apiCompanyGetCurrentCompanyGetWithCompletionHandler: 
              ^(CompanyBase output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.CompanyApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiCompanyGetCurrentCompanyGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new CompanyApi();

            try
            {
                // Отримати інформацію компанії.
                CompanyBase result = apiInstance.apiCompanyGetCurrentCompanyGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompanyApi.apiCompanyGetCurrentCompanyGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiCompanyApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CompanyApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CompanyApi()

try: 
    # Отримати інформацію компанії.
    api_response = api_instance.api_company_get_current_company_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompanyApi->apiCompanyGetCurrentCompanyGet: %s\n" % e)

Parameters

Responses

Status: 200 - companies successfuly returned.

Status: 204 - No any companies for return.

Status: 400 - Failure to gets companies.

Status: 500 - Server Error


Device

GetAll Get

Отримати всі вендінг апарати.


/api/Device/GetAll

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Device/GetAll"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeviceApi;

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

public class DeviceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        DeviceApi apiInstance = new DeviceApi();
        try {
            array[VendingShortModel] result = apiInstance.apiDeviceGetAllGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetAllGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeviceApi;

public class DeviceApiExample {

    public static void main(String[] args) {
        DeviceApi apiInstance = new DeviceApi();
        try {
            array[VendingShortModel] result = apiInstance.apiDeviceGetAllGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetAllGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

DeviceApi *apiInstance = [[DeviceApi alloc] init];

// Отримати всі вендінг апарати.
[apiInstance apiDeviceGetAllGetWithCompletionHandler: 
              ^(array[VendingShortModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.DeviceApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiDeviceGetAllGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new DeviceApi();

            try
            {
                // Отримати всі вендінг апарати.
                array[VendingShortModel] result = apiInstance.apiDeviceGetAllGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeviceApi.apiDeviceGetAllGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiDeviceApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DeviceApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DeviceApi()

try: 
    # Отримати всі вендінг апарати.
    api_response = api_instance.api_device_get_all_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeviceApi->apiDeviceGetAllGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetAllInactiveCount Get

Отримати всі неактивні вендінг апарати.


/api/Device/GetAllInactiveCount

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Device/GetAllInactiveCount"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeviceApi;

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

public class DeviceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        DeviceApi apiInstance = new DeviceApi();
        try {
            'Integer' result = apiInstance.apiDeviceGetAllInactiveCountGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetAllInactiveCountGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeviceApi;

public class DeviceApiExample {

    public static void main(String[] args) {
        DeviceApi apiInstance = new DeviceApi();
        try {
            'Integer' result = apiInstance.apiDeviceGetAllInactiveCountGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetAllInactiveCountGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

DeviceApi *apiInstance = [[DeviceApi alloc] init];

// Отримати всі неактивні вендінг апарати.
[apiInstance apiDeviceGetAllInactiveCountGetWithCompletionHandler: 
              ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.DeviceApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiDeviceGetAllInactiveCountGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new DeviceApi();

            try
            {
                // Отримати всі неактивні вендінг апарати.
                'Integer' result = apiInstance.apiDeviceGetAllInactiveCountGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeviceApi.apiDeviceGetAllInactiveCountGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiDeviceApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DeviceApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DeviceApi()

try: 
    # Отримати всі неактивні вендінг апарати.
    api_response = api_instance.api_device_get_all_inactive_count_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeviceApi->apiDeviceGetAllInactiveCountGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetById Get

Отримати вендінг апарати по id.


/api/Device/GetById

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Device/GetById?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeviceApi;

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

public class DeviceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        DeviceApi apiInstance = new DeviceApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[VendingViewModel] result = apiInstance.apiDeviceGetByIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetByIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeviceApi;

public class DeviceApiExample {

    public static void main(String[] args) {
        DeviceApi apiInstance = new DeviceApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[VendingViewModel] result = apiInstance.apiDeviceGetByIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetByIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; //  (optional)

DeviceApi *apiInstance = [[DeviceApi alloc] init];

// Отримати вендінг апарати по id.
[apiInstance apiDeviceGetByIdGetWith:id
              completionHandler: ^(array[VendingViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.DeviceApi()
var opts = { 
  'id': 38400000-8cf0-11bd-b23e-10b96e4ef00d // {{UUID}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiDeviceGetByIdGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new DeviceApi();
            var id = new UUID(); // UUID |  (optional) 

            try
            {
                // Отримати вендінг апарати по id.
                array[VendingViewModel] result = apiInstance.apiDeviceGetByIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeviceApi.apiDeviceGetByIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiDeviceApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DeviceApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DeviceApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID |  (optional)

try: 
    # Отримати вендінг апарати по id.
    api_response = api_instance.api_device_get_by_id_get(id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeviceApi->apiDeviceGetByIdGet: %s\n" % e)

Parameters

Query parameters
Name Description
id
UUID (uuid)

Responses

Status: 200 - Дані успішно надіслані.

Status: 204 - No Content

Status: 500 - Дані не надіслано.


GetDeviceBoxesByVendingProductId Get

Отримати перелік шахт вендінг апарата по id.


/api/Device/GetDeviceBoxesByVendingProductId

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Device/GetDeviceBoxesByVendingProductId?deviceId=&productId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeviceApi;

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

public class DeviceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        DeviceApi apiInstance = new DeviceApi();
        UUID deviceId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        UUID productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[VendingSchemaBoxModel] result = apiInstance.apiDeviceGetDeviceBoxesByVendingProductIdGet(deviceId, productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetDeviceBoxesByVendingProductIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeviceApi;

public class DeviceApiExample {

    public static void main(String[] args) {
        DeviceApi apiInstance = new DeviceApi();
        UUID deviceId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        UUID productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[VendingSchemaBoxModel] result = apiInstance.apiDeviceGetDeviceBoxesByVendingProductIdGet(deviceId, productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetDeviceBoxesByVendingProductIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *deviceId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; //  (optional)
UUID *productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; //  (optional)

DeviceApi *apiInstance = [[DeviceApi alloc] init];

// Отримати перелік шахт вендінг апарата по id.
[apiInstance apiDeviceGetDeviceBoxesByVendingProductIdGetWith:deviceId
    productId:productId
              completionHandler: ^(array[VendingSchemaBoxModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.DeviceApi()
var opts = { 
  'deviceId': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {{UUID}} 
  'productId': 38400000-8cf0-11bd-b23e-10b96e4ef00d // {{UUID}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiDeviceGetDeviceBoxesByVendingProductIdGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new DeviceApi();
            var deviceId = new UUID(); // UUID |  (optional) 
            var productId = new UUID(); // UUID |  (optional) 

            try
            {
                // Отримати перелік шахт вендінг апарата по id.
                array[VendingSchemaBoxModel] result = apiInstance.apiDeviceGetDeviceBoxesByVendingProductIdGet(deviceId, productId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeviceApi.apiDeviceGetDeviceBoxesByVendingProductIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiDeviceApi();
$deviceId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
$productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

try {
    $result = $api_instance->apiDeviceGetDeviceBoxesByVendingProductIdGet($deviceId, $productId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DeviceApi->apiDeviceGetDeviceBoxesByVendingProductIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DeviceApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DeviceApi->new();
my $deviceId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 
my $productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

eval { 
    my $result = $api_instance->apiDeviceGetDeviceBoxesByVendingProductIdGet(deviceId => $deviceId, productId => $productId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DeviceApi->apiDeviceGetDeviceBoxesByVendingProductIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DeviceApi()
deviceId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID |  (optional)
productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID |  (optional)

try: 
    # Отримати перелік шахт вендінг апарата по id.
    api_response = api_instance.api_device_get_device_boxes_by_vending_product_id_get(deviceId=deviceId, productId=productId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeviceApi->apiDeviceGetDeviceBoxesByVendingProductIdGet: %s\n" % e)

Parameters

Query parameters
Name Description
deviceId
UUID (uuid)
productId
UUID (uuid)

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetDeviceNameById Get

Отримати назву вендінг апарата по id.


/api/Device/GetDeviceNameById

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Device/GetDeviceNameById?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeviceApi;

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

public class DeviceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        DeviceApi apiInstance = new DeviceApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            'String' result = apiInstance.apiDeviceGetDeviceNameByIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetDeviceNameByIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeviceApi;

public class DeviceApiExample {

    public static void main(String[] args) {
        DeviceApi apiInstance = new DeviceApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            'String' result = apiInstance.apiDeviceGetDeviceNameByIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetDeviceNameByIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; //  (optional)

DeviceApi *apiInstance = [[DeviceApi alloc] init];

// Отримати назву вендінг апарата по id.
[apiInstance apiDeviceGetDeviceNameByIdGetWith:id
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.DeviceApi()
var opts = { 
  'id': 38400000-8cf0-11bd-b23e-10b96e4ef00d // {{UUID}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiDeviceGetDeviceNameByIdGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new DeviceApi();
            var id = new UUID(); // UUID |  (optional) 

            try
            {
                // Отримати назву вендінг апарата по id.
                'String' result = apiInstance.apiDeviceGetDeviceNameByIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeviceApi.apiDeviceGetDeviceNameByIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiDeviceApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DeviceApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DeviceApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID |  (optional)

try: 
    # Отримати назву вендінг апарата по id.
    api_response = api_instance.api_device_get_device_name_by_id_get(id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeviceApi->apiDeviceGetDeviceNameByIdGet: %s\n" % e)

Parameters

Query parameters
Name Description
id
UUID (uuid)

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetDeviceProductsDetailByVendingId Get

Отримати перелік продуктів вендінг апарата по id.


/api/Device/GetDeviceProductsDetailByVendingId

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Device/GetDeviceProductsDetailByVendingId?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeviceApi;

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

public class DeviceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        DeviceApi apiInstance = new DeviceApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[VendingSchemaProductModel] result = apiInstance.apiDeviceGetDeviceProductsDetailByVendingIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetDeviceProductsDetailByVendingIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeviceApi;

public class DeviceApiExample {

    public static void main(String[] args) {
        DeviceApi apiInstance = new DeviceApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[VendingSchemaProductModel] result = apiInstance.apiDeviceGetDeviceProductsDetailByVendingIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetDeviceProductsDetailByVendingIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; //  (optional)

DeviceApi *apiInstance = [[DeviceApi alloc] init];

// Отримати перелік продуктів вендінг апарата по id.
[apiInstance apiDeviceGetDeviceProductsDetailByVendingIdGetWith:id
              completionHandler: ^(array[VendingSchemaProductModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.DeviceApi()
var opts = { 
  'id': 38400000-8cf0-11bd-b23e-10b96e4ef00d // {{UUID}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiDeviceGetDeviceProductsDetailByVendingIdGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new DeviceApi();
            var id = new UUID(); // UUID |  (optional) 

            try
            {
                // Отримати перелік продуктів вендінг апарата по id.
                array[VendingSchemaProductModel] result = apiInstance.apiDeviceGetDeviceProductsDetailByVendingIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeviceApi.apiDeviceGetDeviceProductsDetailByVendingIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiDeviceApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DeviceApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DeviceApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID |  (optional)

try: 
    # Отримати перелік продуктів вендінг апарата по id.
    api_response = api_instance.api_device_get_device_products_detail_by_vending_id_get(id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeviceApi->apiDeviceGetDeviceProductsDetailByVendingIdGet: %s\n" % e)

Parameters

Query parameters
Name Description
id
UUID (uuid)

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetDevicesWithAddress Get

Отримати перелік вендінг апаратів з адресами.


/api/Device/GetDevicesWithAddress

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Device/GetDevicesWithAddress"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeviceApi;

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

public class DeviceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        DeviceApi apiInstance = new DeviceApi();
        try {
            array[DeviceMapModel] result = apiInstance.apiDeviceGetDevicesWithAddressGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetDevicesWithAddressGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeviceApi;

public class DeviceApiExample {

    public static void main(String[] args) {
        DeviceApi apiInstance = new DeviceApi();
        try {
            array[DeviceMapModel] result = apiInstance.apiDeviceGetDevicesWithAddressGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeviceApi#apiDeviceGetDevicesWithAddressGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

DeviceApi *apiInstance = [[DeviceApi alloc] init];

// Отримати перелік вендінг апаратів з адресами.
[apiInstance apiDeviceGetDevicesWithAddressGetWithCompletionHandler: 
              ^(array[DeviceMapModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.DeviceApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiDeviceGetDevicesWithAddressGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new DeviceApi();

            try
            {
                // Отримати перелік вендінг апаратів з адресами.
                array[DeviceMapModel] result = apiInstance.apiDeviceGetDevicesWithAddressGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeviceApi.apiDeviceGetDevicesWithAddressGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiDeviceApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DeviceApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DeviceApi()

try: 
    # Отримати перелік вендінг апаратів з адресами.
    api_response = api_instance.api_device_get_devices_with_address_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeviceApi->apiDeviceGetDevicesWithAddressGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 404 - Not Found

Status: 500 - Дані не надіслано.


LoadOrder

GetLoadOrderById Get

Отримати накладну по id накладної.


/api/LoadOrder/GetLoadOrderById

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/LoadOrder/GetLoadOrderById?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LoadOrderApi;

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

public class LoadOrderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        LoadOrderApi apiInstance = new LoadOrderApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            LoadOrderModel result = apiInstance.apiLoadOrderGetLoadOrderByIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoadOrderApi#apiLoadOrderGetLoadOrderByIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LoadOrderApi;

public class LoadOrderApiExample {

    public static void main(String[] args) {
        LoadOrderApi apiInstance = new LoadOrderApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            LoadOrderModel result = apiInstance.apiLoadOrderGetLoadOrderByIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoadOrderApi#apiLoadOrderGetLoadOrderByIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; //  (optional)

LoadOrderApi *apiInstance = [[LoadOrderApi alloc] init];

// Отримати накладну по id накладної.
[apiInstance apiLoadOrderGetLoadOrderByIdGetWith:id
              completionHandler: ^(LoadOrderModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.LoadOrderApi()
var opts = { 
  'id': 38400000-8cf0-11bd-b23e-10b96e4ef00d // {{UUID}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiLoadOrderGetLoadOrderByIdGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LoadOrderApi();
            var id = new UUID(); // UUID |  (optional) 

            try
            {
                // Отримати накладну по id накладної.
                LoadOrderModel result = apiInstance.apiLoadOrderGetLoadOrderByIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LoadOrderApi.apiLoadOrderGetLoadOrderByIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiLoadOrderApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LoadOrderApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LoadOrderApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID |  (optional)

try: 
    # Отримати накладну по id накладної.
    api_response = api_instance.api_load_order_get_load_order_by_id_get(id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoadOrderApi->apiLoadOrderGetLoadOrderByIdGet: %s\n" % e)

Parameters

Query parameters
Name Description
id
UUID (uuid)

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetLoadOrderGridRows Get

Отримати перелік накладних.


/api/LoadOrder/GetLoadOrderGridRows

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/LoadOrder/GetLoadOrderGridRows"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LoadOrderApi;

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

public class LoadOrderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        LoadOrderApi apiInstance = new LoadOrderApi();
        try {
            array[LoadOrderGridRowModel] result = apiInstance.apiLoadOrderGetLoadOrderGridRowsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoadOrderApi#apiLoadOrderGetLoadOrderGridRowsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LoadOrderApi;

public class LoadOrderApiExample {

    public static void main(String[] args) {
        LoadOrderApi apiInstance = new LoadOrderApi();
        try {
            array[LoadOrderGridRowModel] result = apiInstance.apiLoadOrderGetLoadOrderGridRowsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoadOrderApi#apiLoadOrderGetLoadOrderGridRowsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

LoadOrderApi *apiInstance = [[LoadOrderApi alloc] init];

// Отримати перелік накладних.
[apiInstance apiLoadOrderGetLoadOrderGridRowsGetWithCompletionHandler: 
              ^(array[LoadOrderGridRowModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.LoadOrderApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiLoadOrderGetLoadOrderGridRowsGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LoadOrderApi();

            try
            {
                // Отримати перелік накладних.
                array[LoadOrderGridRowModel] result = apiInstance.apiLoadOrderGetLoadOrderGridRowsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LoadOrderApi.apiLoadOrderGetLoadOrderGridRowsGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiLoadOrderApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LoadOrderApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LoadOrderApi()

try: 
    # Отримати перелік накладних.
    api_response = api_instance.api_load_order_get_load_order_grid_rows_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoadOrderApi->apiLoadOrderGetLoadOrderGridRowsGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetLoadOrderItemById Get

Отримати елементи накладної по id.


/api/LoadOrder/GetLoadOrderItemById

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/LoadOrder/GetLoadOrderItemById?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LoadOrderApi;

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

public class LoadOrderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        LoadOrderApi apiInstance = new LoadOrderApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            LoadOrderItemsModel result = apiInstance.apiLoadOrderGetLoadOrderItemByIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoadOrderApi#apiLoadOrderGetLoadOrderItemByIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LoadOrderApi;

public class LoadOrderApiExample {

    public static void main(String[] args) {
        LoadOrderApi apiInstance = new LoadOrderApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            LoadOrderItemsModel result = apiInstance.apiLoadOrderGetLoadOrderItemByIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoadOrderApi#apiLoadOrderGetLoadOrderItemByIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; //  (optional)

LoadOrderApi *apiInstance = [[LoadOrderApi alloc] init];

// Отримати елементи накладної по id.
[apiInstance apiLoadOrderGetLoadOrderItemByIdGetWith:id
              completionHandler: ^(LoadOrderItemsModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.LoadOrderApi()
var opts = { 
  'id': 38400000-8cf0-11bd-b23e-10b96e4ef00d // {{UUID}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiLoadOrderGetLoadOrderItemByIdGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LoadOrderApi();
            var id = new UUID(); // UUID |  (optional) 

            try
            {
                // Отримати елементи накладної по id.
                LoadOrderItemsModel result = apiInstance.apiLoadOrderGetLoadOrderItemByIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LoadOrderApi.apiLoadOrderGetLoadOrderItemByIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiLoadOrderApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LoadOrderApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LoadOrderApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID |  (optional)

try: 
    # Отримати елементи накладної по id.
    api_response = api_instance.api_load_order_get_load_order_item_by_id_get(id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoadOrderApi->apiLoadOrderGetLoadOrderItemByIdGet: %s\n" % e)

Parameters

Query parameters
Name Description
id
UUID (uuid)

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetLoadOrderItems Get

Отримати елементи накладної по id накладної.


/api/LoadOrder/GetLoadOrderItems

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/LoadOrder/GetLoadOrderItems?orderId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LoadOrderApi;

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

public class LoadOrderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        LoadOrderApi apiInstance = new LoadOrderApi();
        UUID orderId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[SchemaWithOrderItemModel] result = apiInstance.apiLoadOrderGetLoadOrderItemsGet(orderId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoadOrderApi#apiLoadOrderGetLoadOrderItemsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LoadOrderApi;

public class LoadOrderApiExample {

    public static void main(String[] args) {
        LoadOrderApi apiInstance = new LoadOrderApi();
        UUID orderId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[SchemaWithOrderItemModel] result = apiInstance.apiLoadOrderGetLoadOrderItemsGet(orderId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoadOrderApi#apiLoadOrderGetLoadOrderItemsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *orderId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; //  (optional)

LoadOrderApi *apiInstance = [[LoadOrderApi alloc] init];

// Отримати елементи накладної по id накладної.
[apiInstance apiLoadOrderGetLoadOrderItemsGetWith:orderId
              completionHandler: ^(array[SchemaWithOrderItemModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.LoadOrderApi()
var opts = { 
  'orderId': 38400000-8cf0-11bd-b23e-10b96e4ef00d // {{UUID}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiLoadOrderGetLoadOrderItemsGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LoadOrderApi();
            var orderId = new UUID(); // UUID |  (optional) 

            try
            {
                // Отримати елементи накладної по id накладної.
                array[SchemaWithOrderItemModel] result = apiInstance.apiLoadOrderGetLoadOrderItemsGet(orderId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LoadOrderApi.apiLoadOrderGetLoadOrderItemsGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiLoadOrderApi();
$orderId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LoadOrderApi->new();
my $orderId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LoadOrderApi()
orderId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID |  (optional)

try: 
    # Отримати елементи накладної по id накладної.
    api_response = api_instance.api_load_order_get_load_order_items_get(orderId=orderId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoadOrderApi->apiLoadOrderGetLoadOrderItemsGet: %s\n" % e)

Parameters

Query parameters
Name Description
orderId
UUID (uuid)

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


Product

GetAllProducts Get

Отримати всі продукти.


/api/Product/GetAllProducts

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Product/GetAllProducts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductApi;

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

public class ProductApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        ProductApi apiInstance = new ProductApi();
        try {
            array[ProductViewModel] result = apiInstance.apiProductGetAllProductsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetAllProductsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductApi;

public class ProductApiExample {

    public static void main(String[] args) {
        ProductApi apiInstance = new ProductApi();
        try {
            array[ProductViewModel] result = apiInstance.apiProductGetAllProductsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetAllProductsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

ProductApi *apiInstance = [[ProductApi alloc] init];

// Отримати всі продукти.
[apiInstance apiProductGetAllProductsGetWithCompletionHandler: 
              ^(array[ProductViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.ProductApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiProductGetAllProductsGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ProductApi();

            try
            {
                // Отримати всі продукти.
                array[ProductViewModel] result = apiInstance.apiProductGetAllProductsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductApi.apiProductGetAllProductsGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiProductApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProductApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProductApi()

try: 
    # Отримати всі продукти.
    api_response = api_instance.api_product_get_all_products_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductApi->apiProductGetAllProductsGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetProductById Get

Отримати продукт по id.


/api/Product/GetProductById/{productId}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Product/GetProductById/{productId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductApi;

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

public class ProductApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        ProductApi apiInstance = new ProductApi();
        UUID productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            ProductViewModel result = apiInstance.apiProductGetProductByIdProductIdGet(productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetProductByIdProductIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductApi;

public class ProductApiExample {

    public static void main(String[] args) {
        ProductApi apiInstance = new ProductApi();
        UUID productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            ProductViewModel result = apiInstance.apiProductGetProductByIdProductIdGet(productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetProductByIdProductIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

ProductApi *apiInstance = [[ProductApi alloc] init];

// Отримати продукт по id.
[apiInstance apiProductGetProductByIdProductIdGetWith:productId
              completionHandler: ^(ProductViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.ProductApi()
var productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

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

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ProductApi();
            var productId = new UUID(); // UUID | 

            try
            {
                // Отримати продукт по id.
                ProductViewModel result = apiInstance.apiProductGetProductByIdProductIdGet(productId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductApi.apiProductGetProductByIdProductIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiProductApi();
$productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProductApi->new();
my $productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProductApi()
productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Отримати продукт по id.
    api_response = api_instance.api_product_get_product_by_id_product_id_get(productId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductApi->apiProductGetProductByIdProductIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
productId*
UUID (uuid)
Required

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetProductByIdWithoutImage Get

Отримати продукт по id без зображення.


/api/Product/GetProductByIdWithoutImage/{productId}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Product/GetProductByIdWithoutImage/{productId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductApi;

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

public class ProductApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        ProductApi apiInstance = new ProductApi();
        UUID productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            ProductViewModel result = apiInstance.apiProductGetProductByIdWithoutImageProductIdGet(productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetProductByIdWithoutImageProductIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductApi;

public class ProductApiExample {

    public static void main(String[] args) {
        ProductApi apiInstance = new ProductApi();
        UUID productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            ProductViewModel result = apiInstance.apiProductGetProductByIdWithoutImageProductIdGet(productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetProductByIdWithoutImageProductIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

ProductApi *apiInstance = [[ProductApi alloc] init];

// Отримати продукт по id без зображення.
[apiInstance apiProductGetProductByIdWithoutImageProductIdGetWith:productId
              completionHandler: ^(ProductViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.ProductApi()
var productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

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

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ProductApi();
            var productId = new UUID(); // UUID | 

            try
            {
                // Отримати продукт по id без зображення.
                ProductViewModel result = apiInstance.apiProductGetProductByIdWithoutImageProductIdGet(productId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductApi.apiProductGetProductByIdWithoutImageProductIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiProductApi();
$productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProductApi->new();
my $productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProductApi()
productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Отримати продукт по id без зображення.
    api_response = api_instance.api_product_get_product_by_id_without_image_product_id_get(productId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductApi->apiProductGetProductByIdWithoutImageProductIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
productId*
UUID (uuid)
Required

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetProductImage Get

Отримати зображення продукту по id.


/api/Product/GetProductImage/{productId}/{isSmall}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Product/GetProductImage/{productId}/{isSmall}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductApi;

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

public class ProductApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        ProductApi apiInstance = new ProductApi();
        UUID productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Boolean isSmall = true; // Boolean | 
        try {
            byte[] result = apiInstance.apiProductGetProductImageProductIdIsSmallGet(productId, isSmall);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetProductImageProductIdIsSmallGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductApi;

public class ProductApiExample {

    public static void main(String[] args) {
        ProductApi apiInstance = new ProductApi();
        UUID productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        Boolean isSmall = true; // Boolean | 
        try {
            byte[] result = apiInstance.apiProductGetProductImageProductIdIsSmallGet(productId, isSmall);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetProductImageProductIdIsSmallGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 
Boolean *isSmall = true; // 

ProductApi *apiInstance = [[ProductApi alloc] init];

// Отримати зображення продукту по id.
[apiInstance apiProductGetProductImageProductIdIsSmallGetWith:productId
    isSmall:isSmall
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.ProductApi()
var productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 
var isSmall = true; // {{Boolean}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiProductGetProductImageProductIdIsSmallGet(productId, isSmall, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ProductApi();
            var productId = new UUID(); // UUID | 
            var isSmall = true;  // Boolean | 

            try
            {
                // Отримати зображення продукту по id.
                byte[] result = apiInstance.apiProductGetProductImageProductIdIsSmallGet(productId, isSmall);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductApi.apiProductGetProductImageProductIdIsSmallGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiProductApi();
$productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
$isSmall = true; // Boolean | 

try {
    $result = $api_instance->apiProductGetProductImageProductIdIsSmallGet($productId, $isSmall);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductApi->apiProductGetProductImageProductIdIsSmallGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProductApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProductApi->new();
my $productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 
my $isSmall = true; # Boolean | 

eval { 
    my $result = $api_instance->apiProductGetProductImageProductIdIsSmallGet(productId => $productId, isSmall => $isSmall);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductApi->apiProductGetProductImageProductIdIsSmallGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProductApi()
productId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 
isSmall = true # Boolean | 

try: 
    # Отримати зображення продукту по id.
    api_response = api_instance.api_product_get_product_image_product_id_is_small_get(productId, isSmall)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductApi->apiProductGetProductImageProductIdIsSmallGet: %s\n" % e)

Parameters

Path parameters
Name Description
productId*
UUID (uuid)
Required
isSmall*
Boolean
Required

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetProductNameById Get

Отримати назву продукту по id.


/api/Product/GetProductNameById/{id}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Product/GetProductNameById/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductApi;

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

public class ProductApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        ProductApi apiInstance = new ProductApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            'String' result = apiInstance.apiProductGetProductNameByIdIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetProductNameByIdIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductApi;

public class ProductApiExample {

    public static void main(String[] args) {
        ProductApi apiInstance = new ProductApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            'String' result = apiInstance.apiProductGetProductNameByIdIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetProductNameByIdIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

ProductApi *apiInstance = [[ProductApi alloc] init];

// Отримати назву продукту по id.
[apiInstance apiProductGetProductNameByIdIdGetWith:id
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.ProductApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

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

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ProductApi();
            var id = new UUID(); // UUID | 

            try
            {
                // Отримати назву продукту по id.
                'String' result = apiInstance.apiProductGetProductNameByIdIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductApi.apiProductGetProductNameByIdIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiProductApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProductApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProductApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Отримати назву продукту по id.
    api_response = api_instance.api_product_get_product_name_by_id_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductApi->apiProductGetProductNameByIdIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
UUID (uuid)
Required

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetProductsByCategoryId Get

Отримати продукти по id категорії.


/api/Product/GetProductsByCategoryId/{categoryId}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Product/GetProductsByCategoryId/{categoryId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductApi;

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

public class ProductApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        ProductApi apiInstance = new ProductApi();
        UUID categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[ProductViewModel] result = apiInstance.apiProductGetProductsByCategoryIdCategoryIdGet(categoryId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetProductsByCategoryIdCategoryIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductApi;

public class ProductApiExample {

    public static void main(String[] args) {
        ProductApi apiInstance = new ProductApi();
        UUID categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[ProductViewModel] result = apiInstance.apiProductGetProductsByCategoryIdCategoryIdGet(categoryId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductApi#apiProductGetProductsByCategoryIdCategoryIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

ProductApi *apiInstance = [[ProductApi alloc] init];

// Отримати продукти по id категорії.
[apiInstance apiProductGetProductsByCategoryIdCategoryIdGetWith:categoryId
              completionHandler: ^(array[ProductViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.ProductApi()
var categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

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

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ProductApi();
            var categoryId = new UUID(); // UUID | 

            try
            {
                // Отримати продукти по id категорії.
                array[ProductViewModel] result = apiInstance.apiProductGetProductsByCategoryIdCategoryIdGet(categoryId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductApi.apiProductGetProductsByCategoryIdCategoryIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiProductApi();
$categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProductApi->new();
my $categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProductApi()
categoryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Отримати продукти по id категорії.
    api_response = api_instance.api_product_get_products_by_category_id_category_id_get(categoryId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductApi->apiProductGetProductsByCategoryIdCategoryIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
categoryId*
UUID (uuid)
Required

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


Receipt

GetAllReceipts Get

Отримати всі чеки на продажі.


/api/Receipt/GetAllReceipts

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Receipt/GetAllReceipts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReceiptApi;

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

public class ReceiptApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        ReceiptApi apiInstance = new ReceiptApi();
        try {
            array[ReceiptViewModel] result = apiInstance.apiReceiptGetAllReceiptsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReceiptApi#apiReceiptGetAllReceiptsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReceiptApi;

public class ReceiptApiExample {

    public static void main(String[] args) {
        ReceiptApi apiInstance = new ReceiptApi();
        try {
            array[ReceiptViewModel] result = apiInstance.apiReceiptGetAllReceiptsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReceiptApi#apiReceiptGetAllReceiptsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

ReceiptApi *apiInstance = [[ReceiptApi alloc] init];

// Отримати всі чеки на продажі.
[apiInstance apiReceiptGetAllReceiptsGetWithCompletionHandler: 
              ^(array[ReceiptViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.ReceiptApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiReceiptGetAllReceiptsGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ReceiptApi();

            try
            {
                // Отримати всі чеки на продажі.
                array[ReceiptViewModel] result = apiInstance.apiReceiptGetAllReceiptsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReceiptApi.apiReceiptGetAllReceiptsGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiReceiptApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ReceiptApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ReceiptApi()

try: 
    # Отримати всі чеки на продажі.
    api_response = api_instance.api_receipt_get_all_receipts_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReceiptApi->apiReceiptGetAllReceiptsGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetById Get

Отримати чек на продажу по id.


/api/Receipt/GetById/{receiptId}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Receipt/GetById/{receiptId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReceiptApi;

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

public class ReceiptApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        ReceiptApi apiInstance = new ReceiptApi();
        UUID receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[ReceiptViewModel] result = apiInstance.apiReceiptGetByIdReceiptIdGet(receiptId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReceiptApi#apiReceiptGetByIdReceiptIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReceiptApi;

public class ReceiptApiExample {

    public static void main(String[] args) {
        ReceiptApi apiInstance = new ReceiptApi();
        UUID receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[ReceiptViewModel] result = apiInstance.apiReceiptGetByIdReceiptIdGet(receiptId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReceiptApi#apiReceiptGetByIdReceiptIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

ReceiptApi *apiInstance = [[ReceiptApi alloc] init];

// Отримати чек на продажу по id.
[apiInstance apiReceiptGetByIdReceiptIdGetWith:receiptId
              completionHandler: ^(array[ReceiptViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.ReceiptApi()
var receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

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

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ReceiptApi();
            var receiptId = new UUID(); // UUID | 

            try
            {
                // Отримати чек на продажу по id.
                array[ReceiptViewModel] result = apiInstance.apiReceiptGetByIdReceiptIdGet(receiptId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReceiptApi.apiReceiptGetByIdReceiptIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiReceiptApi();
$receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ReceiptApi->new();
my $receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ReceiptApi()
receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Отримати чек на продажу по id.
    api_response = api_instance.api_receipt_get_by_id_receipt_id_get(receiptId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReceiptApi->apiReceiptGetByIdReceiptIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
receiptId*
UUID (uuid)
Required

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetInfoById Get

Отримати інформацію про чек на продаж по id.


/api/Receipt/GetInfoById/{receiptId}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/Receipt/GetInfoById/{receiptId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReceiptApi;

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

public class ReceiptApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        ReceiptApi apiInstance = new ReceiptApi();
        UUID receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[ReceiptViewModel] result = apiInstance.apiReceiptGetInfoByIdReceiptIdGet(receiptId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReceiptApi#apiReceiptGetInfoByIdReceiptIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReceiptApi;

public class ReceiptApiExample {

    public static void main(String[] args) {
        ReceiptApi apiInstance = new ReceiptApi();
        UUID receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[ReceiptViewModel] result = apiInstance.apiReceiptGetInfoByIdReceiptIdGet(receiptId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReceiptApi#apiReceiptGetInfoByIdReceiptIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

ReceiptApi *apiInstance = [[ReceiptApi alloc] init];

// Отримати інформацію про чек на продаж по id.
[apiInstance apiReceiptGetInfoByIdReceiptIdGetWith:receiptId
              completionHandler: ^(array[ReceiptViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.ReceiptApi()
var receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

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

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new ReceiptApi();
            var receiptId = new UUID(); // UUID | 

            try
            {
                // Отримати інформацію про чек на продаж по id.
                array[ReceiptViewModel] result = apiInstance.apiReceiptGetInfoByIdReceiptIdGet(receiptId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReceiptApi.apiReceiptGetInfoByIdReceiptIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiReceiptApi();
$receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ReceiptApi->new();
my $receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ReceiptApi()
receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Отримати інформацію про чек на продаж по id.
    api_response = api_instance.api_receipt_get_info_by_id_receipt_id_get(receiptId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReceiptApi->apiReceiptGetInfoByIdReceiptIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
receiptId*
UUID (uuid)
Required

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


Redemption

GetAllCodesCompanyId Get


/api/Redemption/GetAllCodes/{companyId}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
"//api/Redemption/GetAllCodes/{companyId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RedemptionApi;

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

public class RedemptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        RedemptionApi apiInstance = new RedemptionApi();
        UUID companyId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            apiInstance.apiRedemptionGetAllCodesCompanyIdGet(companyId);
        } catch (ApiException e) {
            System.err.println("Exception when calling RedemptionApi#apiRedemptionGetAllCodesCompanyIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RedemptionApi;

public class RedemptionApiExample {

    public static void main(String[] args) {
        RedemptionApi apiInstance = new RedemptionApi();
        UUID companyId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            apiInstance.apiRedemptionGetAllCodesCompanyIdGet(companyId);
        } catch (ApiException e) {
            System.err.println("Exception when calling RedemptionApi#apiRedemptionGetAllCodesCompanyIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *companyId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

RedemptionApi *apiInstance = [[RedemptionApi alloc] init];

[apiInstance apiRedemptionGetAllCodesCompanyIdGetWith:companyId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.RedemptionApi()
var companyId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.apiRedemptionGetAllCodesCompanyIdGet(companyId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new RedemptionApi();
            var companyId = new UUID(); // UUID | 

            try
            {
                apiInstance.apiRedemptionGetAllCodesCompanyIdGet(companyId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RedemptionApi.apiRedemptionGetAllCodesCompanyIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiRedemptionApi();
$companyId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

try {
    $api_instance->apiRedemptionGetAllCodesCompanyIdGet($companyId);
} catch (Exception $e) {
    echo 'Exception when calling RedemptionApi->apiRedemptionGetAllCodesCompanyIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RedemptionApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::RedemptionApi->new();
my $companyId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

eval { 
    $api_instance->apiRedemptionGetAllCodesCompanyIdGet(companyId => $companyId);
};
if ($@) {
    warn "Exception when calling RedemptionApi->apiRedemptionGetAllCodesCompanyIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.RedemptionApi()
companyId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    api_instance.api_redemption_get_all_codes_company_id_get(companyId)
except ApiException as e:
    print("Exception when calling RedemptionApi->apiRedemptionGetAllCodesCompanyIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
companyId*
UUID (uuid)
Required

Responses

Status: 200 - Success


GetByRadeemCode Get


/api/Redemption/GetByRadeemCode

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
"//api/Redemption/GetByRadeemCode?radeemCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RedemptionApi;

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

public class RedemptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        RedemptionApi apiInstance = new RedemptionApi();
        String radeemCode = radeemCode_example; // String | 
        try {
            apiInstance.apiRedemptionGetByRadeemCodeGet(radeemCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling RedemptionApi#apiRedemptionGetByRadeemCodeGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RedemptionApi;

public class RedemptionApiExample {

    public static void main(String[] args) {
        RedemptionApi apiInstance = new RedemptionApi();
        String radeemCode = radeemCode_example; // String | 
        try {
            apiInstance.apiRedemptionGetByRadeemCodeGet(radeemCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling RedemptionApi#apiRedemptionGetByRadeemCodeGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *radeemCode = radeemCode_example; //  (optional)

RedemptionApi *apiInstance = [[RedemptionApi alloc] init];

[apiInstance apiRedemptionGetByRadeemCodeGetWith:radeemCode
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.RedemptionApi()
var opts = { 
  'radeemCode': radeemCode_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.apiRedemptionGetByRadeemCodeGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new RedemptionApi();
            var radeemCode = radeemCode_example;  // String |  (optional) 

            try
            {
                apiInstance.apiRedemptionGetByRadeemCodeGet(radeemCode);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RedemptionApi.apiRedemptionGetByRadeemCodeGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiRedemptionApi();
$radeemCode = radeemCode_example; // String | 

try {
    $api_instance->apiRedemptionGetByRadeemCodeGet($radeemCode);
} catch (Exception $e) {
    echo 'Exception when calling RedemptionApi->apiRedemptionGetByRadeemCodeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RedemptionApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::RedemptionApi->new();
my $radeemCode = radeemCode_example; # String | 

eval { 
    $api_instance->apiRedemptionGetByRadeemCodeGet(radeemCode => $radeemCode);
};
if ($@) {
    warn "Exception when calling RedemptionApi->apiRedemptionGetByRadeemCodeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.RedemptionApi()
radeemCode = radeemCode_example # String |  (optional)

try: 
    api_instance.api_redemption_get_by_radeem_code_get(radeemCode=radeemCode)
except ApiException as e:
    print("Exception when calling RedemptionApi->apiRedemptionGetByRadeemCodeGet: %s\n" % e)

Parameters

Query parameters
Name Description
radeemCode
String

Responses

Status: 200 - Success


LoadFile Post


/api/Redemption/LoadFile

Usage and SDK Samples

curl -X POST\
-H "Authorization: [[apiKey]]"\
-H "Content-Type: application/json,text/json,application/*+json"\
"//api/Redemption/LoadFile"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RedemptionApi;

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

public class RedemptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        RedemptionApi apiInstance = new RedemptionApi();
        array[RedemptionViewModel] body = ; // array[RedemptionViewModel] | 
        try {
            apiInstance.apiRedemptionLoadFilePost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling RedemptionApi#apiRedemptionLoadFilePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RedemptionApi;

public class RedemptionApiExample {

    public static void main(String[] args) {
        RedemptionApi apiInstance = new RedemptionApi();
        array[RedemptionViewModel] body = ; // array[RedemptionViewModel] | 
        try {
            apiInstance.apiRedemptionLoadFilePost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling RedemptionApi#apiRedemptionLoadFilePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
array[RedemptionViewModel] *body = ; //  (optional)

RedemptionApi *apiInstance = [[RedemptionApi alloc] init];

[apiInstance apiRedemptionLoadFilePostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.RedemptionApi()
var opts = { 
  'body':  // {{array[RedemptionViewModel]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.apiRedemptionLoadFilePost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new RedemptionApi();
            var body = new array[RedemptionViewModel](); // array[RedemptionViewModel] |  (optional) 

            try
            {
                apiInstance.apiRedemptionLoadFilePost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RedemptionApi.apiRedemptionLoadFilePost: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiRedemptionApi();
$body = ; // array[RedemptionViewModel] | 

try {
    $api_instance->apiRedemptionLoadFilePost($body);
} catch (Exception $e) {
    echo 'Exception when calling RedemptionApi->apiRedemptionLoadFilePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RedemptionApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::RedemptionApi->new();
my $body = [WWW::SwaggerClient::Object::array[RedemptionViewModel]->new()]; # array[RedemptionViewModel] | 

eval { 
    $api_instance->apiRedemptionLoadFilePost(body => $body);
};
if ($@) {
    warn "Exception when calling RedemptionApi->apiRedemptionLoadFilePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.RedemptionApi()
body =  # array[RedemptionViewModel] |  (optional)

try: 
    api_instance.api_redemption_load_file_post(body=body)
except ApiException as e:
    print("Exception when calling RedemptionApi->apiRedemptionLoadFilePost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Success


UpdateCode Put


/api/Redemption/UpdateCode

Usage and SDK Samples

curl -X PUT\
-H "Authorization: [[apiKey]]"\
-H "Content-Type: application/json,text/json,application/*+json"\
"//api/Redemption/UpdateCode"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RedemptionApi;

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

public class RedemptionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        RedemptionApi apiInstance = new RedemptionApi();
        RedemptionModel body = ; // RedemptionModel | 
        try {
            apiInstance.apiRedemptionUpdateCodePut(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling RedemptionApi#apiRedemptionUpdateCodePut");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RedemptionApi;

public class RedemptionApiExample {

    public static void main(String[] args) {
        RedemptionApi apiInstance = new RedemptionApi();
        RedemptionModel body = ; // RedemptionModel | 
        try {
            apiInstance.apiRedemptionUpdateCodePut(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling RedemptionApi#apiRedemptionUpdateCodePut");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
RedemptionModel *body = ; //  (optional)

RedemptionApi *apiInstance = [[RedemptionApi alloc] init];

[apiInstance apiRedemptionUpdateCodePutWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.RedemptionApi()
var opts = { 
  'body':  // {{RedemptionModel}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.apiRedemptionUpdateCodePut(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new RedemptionApi();
            var body = new RedemptionModel(); // RedemptionModel |  (optional) 

            try
            {
                apiInstance.apiRedemptionUpdateCodePut(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RedemptionApi.apiRedemptionUpdateCodePut: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiRedemptionApi();
$body = ; // RedemptionModel | 

try {
    $api_instance->apiRedemptionUpdateCodePut($body);
} catch (Exception $e) {
    echo 'Exception when calling RedemptionApi->apiRedemptionUpdateCodePut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RedemptionApi;

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::RedemptionApi->new();
my $body = WWW::SwaggerClient::Object::RedemptionModel->new(); # RedemptionModel | 

eval { 
    $api_instance->apiRedemptionUpdateCodePut(body => $body);
};
if ($@) {
    warn "Exception when calling RedemptionApi->apiRedemptionUpdateCodePut: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.RedemptionApi()
body =  # RedemptionModel |  (optional)

try: 
    api_instance.api_redemption_update_code_put(body=body)
except ApiException as e:
    print("Exception when calling RedemptionApi->apiRedemptionUpdateCodePut: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Success


SaleHistory

GetSaleInfo Get

Отримати інформацію по продажу по id.


/api/SaleHistory/GetSaleInfo/{receiptId}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/SaleHistory/GetSaleInfo/{receiptId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SaleHistoryApi;

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

public class SaleHistoryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        SaleHistoryApi apiInstance = new SaleHistoryApi();
        UUID receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[SaleHistoryInfoViewModel] result = apiInstance.apiSaleHistoryGetSaleInfoReceiptIdGet(receiptId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SaleHistoryApi#apiSaleHistoryGetSaleInfoReceiptIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SaleHistoryApi;

public class SaleHistoryApiExample {

    public static void main(String[] args) {
        SaleHistoryApi apiInstance = new SaleHistoryApi();
        UUID receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[SaleHistoryInfoViewModel] result = apiInstance.apiSaleHistoryGetSaleInfoReceiptIdGet(receiptId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SaleHistoryApi#apiSaleHistoryGetSaleInfoReceiptIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

SaleHistoryApi *apiInstance = [[SaleHistoryApi alloc] init];

// Отримати інформацію по продажу по id.
[apiInstance apiSaleHistoryGetSaleInfoReceiptIdGetWith:receiptId
              completionHandler: ^(array[SaleHistoryInfoViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.SaleHistoryApi()
var receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

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

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new SaleHistoryApi();
            var receiptId = new UUID(); // UUID | 

            try
            {
                // Отримати інформацію по продажу по id.
                array[SaleHistoryInfoViewModel] result = apiInstance.apiSaleHistoryGetSaleInfoReceiptIdGet(receiptId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SaleHistoryApi.apiSaleHistoryGetSaleInfoReceiptIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiSaleHistoryApi();
$receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SaleHistoryApi->new();
my $receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SaleHistoryApi()
receiptId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Отримати інформацію по продажу по id.
    api_response = api_instance.api_sale_history_get_sale_info_receipt_id_get(receiptId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SaleHistoryApi->apiSaleHistoryGetSaleInfoReceiptIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
receiptId*
UUID (uuid)
Required

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetSalesInfoByVendingIdAndDate Post

Отримати інформацію про продаж на вендінг апараті за його id і визначений відрізок часу.


/api/SaleHistory/GetSalesInfoByVendingIdAndDate

Usage and SDK Samples

curl -X POST\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
-H "Content-Type: application/json,text/json,application/*+json"\
"//api/SaleHistory/GetSalesInfoByVendingIdAndDate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SaleHistoryApi;

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

public class SaleHistoryApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        SaleHistoryApi apiInstance = new SaleHistoryApi();
        SalesFilterModel body = ; // SalesFilterModel | 
        try {
            array[SaleHistoryInfoViewModel] result = apiInstance.apiSaleHistoryGetSalesInfoByVendingIdAndDatePost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SaleHistoryApi#apiSaleHistoryGetSalesInfoByVendingIdAndDatePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SaleHistoryApi;

public class SaleHistoryApiExample {

    public static void main(String[] args) {
        SaleHistoryApi apiInstance = new SaleHistoryApi();
        SalesFilterModel body = ; // SalesFilterModel | 
        try {
            array[SaleHistoryInfoViewModel] result = apiInstance.apiSaleHistoryGetSalesInfoByVendingIdAndDatePost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SaleHistoryApi#apiSaleHistoryGetSalesInfoByVendingIdAndDatePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
SalesFilterModel *body = ; //  (optional)

SaleHistoryApi *apiInstance = [[SaleHistoryApi alloc] init];

// Отримати інформацію про продаж на вендінг апараті за його id і визначений відрізок часу.
[apiInstance apiSaleHistoryGetSalesInfoByVendingIdAndDatePostWith:body
              completionHandler: ^(array[SaleHistoryInfoViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.SaleHistoryApi()
var opts = { 
  'body':  // {{SalesFilterModel}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiSaleHistoryGetSalesInfoByVendingIdAndDatePost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new SaleHistoryApi();
            var body = new SalesFilterModel(); // SalesFilterModel |  (optional) 

            try
            {
                // Отримати інформацію про продаж на вендінг апараті за його id і визначений відрізок часу.
                array[SaleHistoryInfoViewModel] result = apiInstance.apiSaleHistoryGetSalesInfoByVendingIdAndDatePost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SaleHistoryApi.apiSaleHistoryGetSalesInfoByVendingIdAndDatePost: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiSaleHistoryApi();
$body = ; // SalesFilterModel | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SaleHistoryApi->new();
my $body = WWW::SwaggerClient::Object::SalesFilterModel->new(); # SalesFilterModel | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SaleHistoryApi()
body =  # SalesFilterModel |  (optional)

try: 
    # Отримати інформацію про продаж на вендінг апараті за його id і визначений відрізок часу.
    api_response = api_instance.api_sale_history_get_sales_info_by_vending_id_and_date_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SaleHistoryApi->apiSaleHistoryGetSalesInfoByVendingIdAndDatePost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


User

GetActiveUsers Get

Отримати активних користувачів.


/api/User/GetActiveUsers

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/User/GetActiveUsers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        try {
            array[UserViewModel] result = apiInstance.apiUserGetActiveUsersGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetActiveUsersGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        try {
            array[UserViewModel] result = apiInstance.apiUserGetActiveUsersGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetActiveUsersGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

UserApi *apiInstance = [[UserApi alloc] init];

// Отримати активних користувачів.
[apiInstance apiUserGetActiveUsersGetWithCompletionHandler: 
              ^(array[UserViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.UserApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiUserGetActiveUsersGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new UserApi();

            try
            {
                // Отримати активних користувачів.
                array[UserViewModel] result = apiInstance.apiUserGetActiveUsersGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.apiUserGetActiveUsersGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiUserApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()

try: 
    # Отримати активних користувачів.
    api_response = api_instance.api_user_get_active_users_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->apiUserGetActiveUsersGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetAllUsers Get

Отримати всіх користувачів.


/api/User/GetAllUsers

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/User/GetAllUsers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        try {
            array[UserViewModel] result = apiInstance.apiUserGetAllUsersGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetAllUsersGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        try {
            array[UserViewModel] result = apiInstance.apiUserGetAllUsersGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetAllUsersGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

UserApi *apiInstance = [[UserApi alloc] init];

// Отримати всіх користувачів.
[apiInstance apiUserGetAllUsersGetWithCompletionHandler: 
              ^(array[UserViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.UserApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiUserGetAllUsersGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new UserApi();

            try
            {
                // Отримати всіх користувачів.
                array[UserViewModel] result = apiInstance.apiUserGetAllUsersGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.apiUserGetAllUsersGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiUserApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()

try: 
    # Отримати всіх користувачів.
    api_response = api_instance.api_user_get_all_users_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->apiUserGetAllUsersGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetCompanyCouriers Get

Отримати кур'єрів компанії.


/api/User/GetCompanyCouriers

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/User/GetCompanyCouriers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        try {
            array[UserViewModel] result = apiInstance.apiUserGetCompanyCouriersGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetCompanyCouriersGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        try {
            array[UserViewModel] result = apiInstance.apiUserGetCompanyCouriersGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetCompanyCouriersGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

UserApi *apiInstance = [[UserApi alloc] init];

// Отримати кур'єрів компанії.
[apiInstance apiUserGetCompanyCouriersGetWithCompletionHandler: 
              ^(array[UserViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.UserApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiUserGetCompanyCouriersGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new UserApi();

            try
            {
                // Отримати кур'єрів компанії.
                array[UserViewModel] result = apiInstance.apiUserGetCompanyCouriersGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.apiUserGetCompanyCouriersGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiUserApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()

try: 
    # Отримати кур'єрів компанії.
    api_response = api_instance.api_user_get_company_couriers_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->apiUserGetCompanyCouriersGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetCompanyOperators Get

Отримати операторів компанії.


/api/User/GetCompanyOperators

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/User/GetCompanyOperators"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        try {
            array[UserViewModel] result = apiInstance.apiUserGetCompanyOperatorsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetCompanyOperatorsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        try {
            array[UserViewModel] result = apiInstance.apiUserGetCompanyOperatorsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetCompanyOperatorsGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

UserApi *apiInstance = [[UserApi alloc] init];

// Отримати операторів компанії.
[apiInstance apiUserGetCompanyOperatorsGetWithCompletionHandler: 
              ^(array[UserViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.UserApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiUserGetCompanyOperatorsGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new UserApi();

            try
            {
                // Отримати операторів компанії.
                array[UserViewModel] result = apiInstance.apiUserGetCompanyOperatorsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.apiUserGetCompanyOperatorsGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiUserApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()

try: 
    # Отримати операторів компанії.
    api_response = api_instance.api_user_get_company_operators_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->apiUserGetCompanyOperatorsGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetCurrentUserId Get

Отримати id поточного користувача.


/api/User/GetCurrentUserId

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/User/GetCurrentUserId"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        try {
            UUID result = apiInstance.apiUserGetCurrentUserIdGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetCurrentUserIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        try {
            UUID result = apiInstance.apiUserGetCurrentUserIdGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetCurrentUserIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

UserApi *apiInstance = [[UserApi alloc] init];

// Отримати id поточного користувача.
[apiInstance apiUserGetCurrentUserIdGetWithCompletionHandler: 
              ^(UUID output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.UserApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiUserGetCurrentUserIdGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new UserApi();

            try
            {
                // Отримати id поточного користувача.
                UUID result = apiInstance.apiUserGetCurrentUserIdGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.apiUserGetCurrentUserIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiUserApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()

try: 
    # Отримати id поточного користувача.
    api_response = api_instance.api_user_get_current_user_id_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->apiUserGetCurrentUserIdGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetInactiveUsers Get

Отримати неактивних користувачів.


/api/User/GetInactiveUsers

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/User/GetInactiveUsers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        try {
            array[UserViewModel] result = apiInstance.apiUserGetInactiveUsersGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetInactiveUsersGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        try {
            array[UserViewModel] result = apiInstance.apiUserGetInactiveUsersGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetInactiveUsersGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

UserApi *apiInstance = [[UserApi alloc] init];

// Отримати неактивних користувачів.
[apiInstance apiUserGetInactiveUsersGetWithCompletionHandler: 
              ^(array[UserViewModel] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.UserApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiUserGetInactiveUsersGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new UserApi();

            try
            {
                // Отримати неактивних користувачів.
                array[UserViewModel] result = apiInstance.apiUserGetInactiveUsersGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.apiUserGetInactiveUsersGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiUserApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()

try: 
    # Отримати неактивних користувачів.
    api_response = api_instance.api_user_get_inactive_users_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->apiUserGetInactiveUsersGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetUserInfo Get

Отримати інформацію про поточного користувача.


/api/User/GetUserInfo

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/User/GetUserInfo"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        try {
            UserViewModel result = apiInstance.apiUserGetUserInfoGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetUserInfoGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        try {
            UserViewModel result = apiInstance.apiUserGetUserInfoGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetUserInfoGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

UserApi *apiInstance = [[UserApi alloc] init];

// Отримати інформацію про поточного користувача.
[apiInstance apiUserGetUserInfoGetWithCompletionHandler: 
              ^(UserViewModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.UserApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.apiUserGetUserInfoGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new UserApi();

            try
            {
                // Отримати інформацію про поточного користувача.
                UserViewModel result = apiInstance.apiUserGetUserInfoGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.apiUserGetUserInfoGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiUserApi();

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()

try: 
    # Отримати інформацію про поточного користувача.
    api_response = api_instance.api_user_get_user_info_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->apiUserGetUserInfoGet: %s\n" % e)

Parameters

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.


GetUserNameById Get

Отримати ім'я користувача по id.


/api/User/GetUserNameById/{userId}

Usage and SDK Samples

curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: text/plain,application/json,text/json"\
"//api/User/GetUserNameById/{userId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        UserApi apiInstance = new UserApi();
        UUID userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            'String' result = apiInstance.apiUserGetUserNameByIdUserIdGet(userId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetUserNameByIdUserIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        UUID userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            'String' result = apiInstance.apiUserGetUserNameByIdUserIdGet(userId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#apiUserGetUserNameByIdUserIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
UUID *userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

UserApi *apiInstance = [[UserApi alloc] init];

// Отримати ім'я користувача по id.
[apiInstance apiUserGetUserNameByIdUserIdGetWith:userId
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var VendingAdmin = require('vending_admin');
var defaultClient = VendingAdmin.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"

var api = new VendingAdmin.UserApi()
var userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

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

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

            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new UserApi();
            var userId = new UUID(); // UUID | 

            try
            {
                // Отримати ім'я користувача по id.
                'String' result = apiInstance.apiUserGetUserNameByIdUserIdGet(userId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.apiUserGetUserNameByIdUserIdGet: " + e.Message );
            }
        }
    }
}
?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\ApiUserApi();
$userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UserApi()
userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Отримати ім'я користувача по id.
    api_response = api_instance.api_user_get_user_name_by_id_user_id_get(userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->apiUserGetUserNameByIdUserIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
UUID (uuid)
Required

Responses

Status: 200 - Дані успішно надіслані.

Status: 500 - Дані не надіслано.