Datapac OEC API

Default

addAuthIdSet

Pridá AuthId set pre pokladňu

Pridá AuthId set pre pokladňu. AuthSet Id nastaví na max(AuthSetId)+1


/authidset/{CashRegisterCode}

Usage and SDK Samples

curl -X POST "http://virtserver.swaggerhub.com/oec/api/authidset/{CashRegisterCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        AuthIdSet authIdSet = ; // AuthIdSet | AuthIdSet
        try {
            apiInstance.addAuthIdSet(cashRegisterCode, authIdSet);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addAuthIdSet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        AuthIdSet authIdSet = ; // AuthIdSet | AuthIdSet
        try {
            apiInstance.addAuthIdSet(cashRegisterCode, authIdSet);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addAuthIdSet");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
AuthIdSet *authIdSet = ; // AuthIdSet

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

// Pridá AuthId set pre pokladňu
[apiInstance addAuthIdSetWith:cashRegisterCode
    authIdSet:authIdSet
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var authIdSet = ; // {AuthIdSet} AuthIdSet


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

namespace Example
{
    public class addAuthIdSetExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var authIdSet = new AuthIdSet(); // AuthIdSet | AuthIdSet

            try
            {
                // Pridá AuthId set pre pokladňu
                apiInstance.addAuthIdSet(cashRegisterCode, authIdSet);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addAuthIdSet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$authIdSet = ; // AuthIdSet | AuthIdSet

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $authIdSet = WWW::SwaggerClient::Object::AuthIdSet->new(); # AuthIdSet | AuthIdSet

eval { 
    $api_instance->addAuthIdSet(cashRegisterCode => $cashRegisterCode, authIdSet => $authIdSet);
};
if ($@) {
    warn "Exception when calling DefaultApi->addAuthIdSet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
authIdSet =  # AuthIdSet | AuthIdSet

try: 
    # Pridá AuthId set pre pokladňu
    api_instance.add_auth_id_set(cashRegisterCode, authIdSet)
except ApiException as e:
    print("Exception when calling DefaultApi->addAuthIdSet: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Body parameters
Name Description
authIdSet *

Responses

Status: 201 - AuthId set pridaný

Status: 507 - Kapacita CHDU vyčerpaná


addAuthIdSetRaw

Pridá raw AuthId set pre pokladňu

Pridá AuthId set pre pokladňu. AuthSet Id nastaví na max(AuthSetId)+1 Vstup sú autentifikačné alebo identifikačné údaje a heslo. * Ak sú špecifikované autentifikačné aj identifikačné údaje, OEC pridá oba * Ak sú špecifikované len autentifikačné alebo len identifikačné, OEC pridá len tie, ktoré sú špecifikované a druhé použije existujúce. Je teda možné poslať len autentifikačné údaje * Heslo je povinné pokiaľ sa posielajú autentifikačné údaje


/authidsetraw/{CashRegisterCode}

Usage and SDK Samples

curl -X POST "http://virtserver.swaggerhub.com/oec/api/authidsetraw/{CashRegisterCode}?password="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        File upfile1 = /path/to/file.txt; // File | XML súbor
        File upfile2 = /path/to/file.txt; // File | XML súbor
        String password = password_example; // String | Heslo k autentifikačným údajom ak sú poslané
        try {
            apiInstance.addAuthIdSetRaw(cashRegisterCode, upfile1, upfile2, password);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addAuthIdSetRaw");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        File upfile1 = /path/to/file.txt; // File | XML súbor
        File upfile2 = /path/to/file.txt; // File | XML súbor
        String password = password_example; // String | Heslo k autentifikačným údajom ak sú poslané
        try {
            apiInstance.addAuthIdSetRaw(cashRegisterCode, upfile1, upfile2, password);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addAuthIdSetRaw");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
File *upfile1 = /path/to/file.txt; // XML súbor
File *upfile2 = /path/to/file.txt; // XML súbor (optional)
String *password = password_example; // Heslo k autentifikačným údajom ak sú poslané (optional)

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

// Pridá raw AuthId set pre pokladňu
[apiInstance addAuthIdSetRawWith:cashRegisterCode
    upfile1:upfile1
    upfile2:upfile2
    password:password
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var upfile1 = /path/to/file.txt; // {File} XML súbor

var opts = { 
  'upfile2': /path/to/file.txt, // {File} XML súbor
  'password': password_example // {String} Heslo k autentifikačným údajom ak sú poslané
};

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

namespace Example
{
    public class addAuthIdSetRawExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var upfile1 = new File(); // File | XML súbor
            var upfile2 = new File(); // File | XML súbor (optional) 
            var password = password_example;  // String | Heslo k autentifikačným údajom ak sú poslané (optional) 

            try
            {
                // Pridá raw AuthId set pre pokladňu
                apiInstance.addAuthIdSetRaw(cashRegisterCode, upfile1, upfile2, password);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addAuthIdSetRaw: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$upfile1 = /path/to/file.txt; // File | XML súbor
$upfile2 = /path/to/file.txt; // File | XML súbor
$password = password_example; // String | Heslo k autentifikačným údajom ak sú poslané

try {
    $api_instance->addAuthIdSetRaw($cashRegisterCode, $upfile1, $upfile2, $password);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addAuthIdSetRaw: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $upfile1 = /path/to/file.txt; # File | XML súbor
my $upfile2 = /path/to/file.txt; # File | XML súbor
my $password = password_example; # String | Heslo k autentifikačným údajom ak sú poslané

eval { 
    $api_instance->addAuthIdSetRaw(cashRegisterCode => $cashRegisterCode, upfile1 => $upfile1, upfile2 => $upfile2, password => $password);
};
if ($@) {
    warn "Exception when calling DefaultApi->addAuthIdSetRaw: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
upfile1 = /path/to/file.txt # File | XML súbor
upfile2 = /path/to/file.txt # File | XML súbor (optional)
password = password_example # String | Heslo k autentifikačným údajom ak sú poslané (optional)

try: 
    # Pridá raw AuthId set pre pokladňu
    api_instance.add_auth_id_set_raw(cashRegisterCode, upfile1, upfile2=upfile2, password=password)
except ApiException as e:
    print("Exception when calling DefaultApi->addAuthIdSetRaw: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Form parameters
Name Description
upfile1*
File
XML súbor
Required
upfile2
File
XML súbor
Query parameters
Name Description
password
String
Heslo k autentifikačným údajom ak sú poslané

Responses

Status: 201 - AuthId set pridaný

Status: 400 - Zlé heslo alebo autentifikačné údaje nesedia s identifikačnými alebo číslom pokladne

Status: 507 - Kapacita CHDU vyčerpaná


addReceipt

Zaeviduje doklad v eKasa

Zaeviduje doklad v eKasa systéme, CHDU a použitím zvoleného renderera ho vytlačí alebo pošle e-mailom


/receipt/{CashRegisterCode}

Usage and SDK Samples

curl -X POST "http://virtserver.swaggerhub.com/oec/api/receipt/{CashRegisterCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        ReceiptRequest receiptRequest = ; // ReceiptRequest | Receipt request
        try {
            ReceiptResponse result = apiInstance.addReceipt(cashRegisterCode, receiptRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addReceipt");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        ReceiptRequest receiptRequest = ; // ReceiptRequest | Receipt request
        try {
            ReceiptResponse result = apiInstance.addReceipt(cashRegisterCode, receiptRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addReceipt");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
ReceiptRequest *receiptRequest = ; // Receipt request

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

// Zaeviduje doklad v eKasa
[apiInstance addReceiptWith:cashRegisterCode
    receiptRequest:receiptRequest
              completionHandler: ^(ReceiptResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var receiptRequest = ; // {ReceiptRequest} Receipt request


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

namespace Example
{
    public class addReceiptExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var receiptRequest = new ReceiptRequest(); // ReceiptRequest | Receipt request

            try
            {
                // Zaeviduje doklad v eKasa
                ReceiptResponse result = apiInstance.addReceipt(cashRegisterCode, receiptRequest);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addReceipt: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$receiptRequest = ; // ReceiptRequest | Receipt request

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $receiptRequest = WWW::SwaggerClient::Object::ReceiptRequest->new(); # ReceiptRequest | Receipt request

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
receiptRequest =  # ReceiptRequest | Receipt request

try: 
    # Zaeviduje doklad v eKasa
    api_response = api_instance.add_receipt(cashRegisterCode, receiptRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->addReceipt: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Body parameters
Name Description
receiptRequest *

Responses

Status: 201 - Doklad bol úspešne zaevidovaný v eKasa buď online alebo offline, uložený v CHDU a vytlačený alebo poslaný e-mailom

Status: 202 - Doklad bol úspešne zaevidovaný v eKasa buď online alebo offline, uložený v CHDU, ale **NEBOL** vytlačený alebo poslaný e-mailom

Status: 400 - Zlý vstup

Status: 405 - Pokladňa nie je aktívna

Status: 504 - Tlačiareň nepripravená

Status: 507 - Kapacita CHDU vyčerpaná


getAuthIdSet

Vráti špecifikovaný AuthSet s Id pre pokladňu

Vráti špecifikovaný AuthSet s Id pre pokladňu


/authidset/{CashRegisterCode}/{AuthSetId}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/authidset/{CashRegisterCode}/{AuthSetId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        Integer authSetId = 56; // Integer | Id požadovaného AuthId setu
        try {
            AuthIdSet result = apiInstance.getAuthIdSet(cashRegisterCode, authSetId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAuthIdSet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        Integer authSetId = 56; // Integer | Id požadovaného AuthId setu
        try {
            AuthIdSet result = apiInstance.getAuthIdSet(cashRegisterCode, authSetId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAuthIdSet");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
Integer *authSetId = 56; // Id požadovaného AuthId setu

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

// Vráti špecifikovaný AuthSet s Id pre pokladňu
[apiInstance getAuthIdSetWith:cashRegisterCode
    authSetId:authSetId
              completionHandler: ^(AuthIdSet output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var authSetId = 56; // {Integer} Id požadovaného AuthId setu


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

namespace Example
{
    public class getAuthIdSetExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var authSetId = 56;  // Integer | Id požadovaného AuthId setu

            try
            {
                // Vráti špecifikovaný AuthSet s Id pre pokladňu
                AuthIdSet result = apiInstance.getAuthIdSet(cashRegisterCode, authSetId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getAuthIdSet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$authSetId = 56; // Integer | Id požadovaného AuthId setu

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $authSetId = 56; # Integer | Id požadovaného AuthId setu

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
authSetId = 56 # Integer | Id požadovaného AuthId setu

try: 
    # Vráti špecifikovaný AuthSet s Id pre pokladňu
    api_response = api_instance.get_auth_id_set(cashRegisterCode, authSetId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getAuthIdSet: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
AuthSetId*
Integer
Id požadovaného AuthId setu
Required

Responses

Status: 200 - Špecifikovaný AuthIdSet s Id pre pokladňu

Status: 404 - AuthIdSet pre pokladňu nenájdený


getAuthIdSets

Vráti všetky AuthId sety pre pokladňu

Vráti všetky AuthId sety pre pokladňu


/authidset/{CashRegisterCode}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/authidset/{CashRegisterCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            array[AuthIdSet] result = apiInstance.getAuthIdSets(cashRegisterCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAuthIdSets");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            array[AuthIdSet] result = apiInstance.getAuthIdSets(cashRegisterCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAuthIdSets");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice

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

// Vráti všetky AuthId sety pre pokladňu
[apiInstance getAuthIdSetsWith:cashRegisterCode
              completionHandler: ^(array[AuthIdSet] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice


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

namespace Example
{
    public class getAuthIdSetsExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice

            try
            {
                // Vráti všetky AuthId sety pre pokladňu
                array[AuthIdSet] result = apiInstance.getAuthIdSets(cashRegisterCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getAuthIdSets: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice

try: 
    # Vráti všetky AuthId sety pre pokladňu
    api_response = api_instance.get_auth_id_sets(cashRegisterCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getAuthIdSets: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required

Responses

Status: 200 - Všetky AuthId sety pre pokladňu


getCashRegisterConfiguration

Vráti konfiguráciu pre pokladňu

Vráti konfiguráciu pre pokladňu


/cashregisterconfig/{CashRegisterCode}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/cashregisterconfig/{CashRegisterCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            CashRegisterConfiguration result = apiInstance.getCashRegisterConfiguration(cashRegisterCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCashRegisterConfiguration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            CashRegisterConfiguration result = apiInstance.getCashRegisterConfiguration(cashRegisterCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCashRegisterConfiguration");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice

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

// Vráti konfiguráciu pre pokladňu
[apiInstance getCashRegisterConfigurationWith:cashRegisterCode
              completionHandler: ^(CashRegisterConfiguration output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice


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

namespace Example
{
    public class getCashRegisterConfigurationExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice

            try
            {
                // Vráti konfiguráciu pre pokladňu
                CashRegisterConfiguration result = apiInstance.getCashRegisterConfiguration(cashRegisterCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getCashRegisterConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice

try: 
    # Vráti konfiguráciu pre pokladňu
    api_response = api_instance.get_cash_register_configuration(cashRegisterCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getCashRegisterConfiguration: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required

Responses

Status: 200 - Konfigurácia pre pokladňu

Status: 400 - Konfigurácia pre pokladňu neexistuje


getCashRegistersConfiguration

Vráti konfiguráciu pre všetky pokladne

Vráti konfiguráciu pre všetky pokladne


/cashregisterconfig/

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/cashregisterconfig/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[CashRegisterConfiguration] result = apiInstance.getCashRegistersConfiguration();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCashRegistersConfiguration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[CashRegisterConfiguration] result = apiInstance.getCashRegistersConfiguration();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCashRegistersConfiguration");
            e.printStackTrace();
        }
    }
}

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

// Vráti konfiguráciu pre všetky pokladne
[apiInstance getCashRegistersConfigurationWithCompletionHandler: 
              ^(array[CashRegisterConfiguration] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

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

namespace Example
{
    public class getCashRegistersConfigurationExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // Vráti konfiguráciu pre všetky pokladne
                array[CashRegisterConfiguration] result = apiInstance.getCashRegistersConfiguration();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getCashRegistersConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

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

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

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

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

try: 
    # Vráti konfiguráciu pre všetky pokladne
    api_response = api_instance.get_cash_registers_configuration()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getCashRegistersConfiguration: %s\n" % e)

Parameters

Responses

Status: 200 - Konfigurácia pre všetky pokladne


getCurrentAuthIdSet

Vráti akuálny AuthId set pre pokladňu

Vráti AuthId set s najvyšším Id pre danú pokladňu


/authidset/{CashRegisterCode}/current

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/authidset/{CashRegisterCode}/current"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            AuthIdSet result = apiInstance.getCurrentAuthIdSet(cashRegisterCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCurrentAuthIdSet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            AuthIdSet result = apiInstance.getCurrentAuthIdSet(cashRegisterCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCurrentAuthIdSet");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice

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

// Vráti akuálny AuthId set pre pokladňu
[apiInstance getCurrentAuthIdSetWith:cashRegisterCode
              completionHandler: ^(AuthIdSet output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice


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

namespace Example
{
    public class getCurrentAuthIdSetExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice

            try
            {
                // Vráti akuálny AuthId set pre pokladňu
                AuthIdSet result = apiInstance.getCurrentAuthIdSet(cashRegisterCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getCurrentAuthIdSet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice

try: 
    # Vráti akuálny AuthId set pre pokladňu
    api_response = api_instance.get_current_auth_id_set(cashRegisterCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getCurrentAuthIdSet: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required

Responses

Status: 200 - AuthIdSet pre pokladňu


getDocumentInfo

Vráti detaily k dokladu

Vráti všetky dátové správy a záznamy v CHDU k dokladu


/documentinfo/{CashRegisterCode}/{Year}/{Month}/{ReceiptNumber}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/documentinfo/{CashRegisterCode}/{Year}/{Month}/{ReceiptNumber}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        Integer year = 56; // Integer | Rok
        Integer month = 56; // Integer | Mesiac
        Integer receiptNumber = 56; // Integer | Číslo dokladu
        try {
            array[ReceiptMessage] result = apiInstance.getDocumentInfo(cashRegisterCode, year, month, receiptNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getDocumentInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        Integer year = 56; // Integer | Rok
        Integer month = 56; // Integer | Mesiac
        Integer receiptNumber = 56; // Integer | Číslo dokladu
        try {
            array[ReceiptMessage] result = apiInstance.getDocumentInfo(cashRegisterCode, year, month, receiptNumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getDocumentInfo");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
Integer *year = 56; // Rok
Integer *month = 56; // Mesiac
Integer *receiptNumber = 56; // Číslo dokladu

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

// Vráti detaily k dokladu
[apiInstance getDocumentInfoWith:cashRegisterCode
    year:year
    month:month
    receiptNumber:receiptNumber
              completionHandler: ^(array[ReceiptMessage] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var year = 56; // {Integer} Rok

var month = 56; // {Integer} Mesiac

var receiptNumber = 56; // {Integer} Číslo dokladu


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

namespace Example
{
    public class getDocumentInfoExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var year = 56;  // Integer | Rok
            var month = 56;  // Integer | Mesiac
            var receiptNumber = 56;  // Integer | Číslo dokladu

            try
            {
                // Vráti detaily k dokladu
                array[ReceiptMessage] result = apiInstance.getDocumentInfo(cashRegisterCode, year, month, receiptNumber);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getDocumentInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$year = 56; // Integer | Rok
$month = 56; // Integer | Mesiac
$receiptNumber = 56; // Integer | Číslo dokladu

try {
    $result = $api_instance->getDocumentInfo($cashRegisterCode, $year, $month, $receiptNumber);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getDocumentInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $year = 56; # Integer | Rok
my $month = 56; # Integer | Mesiac
my $receiptNumber = 56; # Integer | Číslo dokladu

eval { 
    my $result = $api_instance->getDocumentInfo(cashRegisterCode => $cashRegisterCode, year => $year, month => $month, receiptNumber => $receiptNumber);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getDocumentInfo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
year = 56 # Integer | Rok
month = 56 # Integer | Mesiac
receiptNumber = 56 # Integer | Číslo dokladu

try: 
    # Vráti detaily k dokladu
    api_response = api_instance.get_document_info(cashRegisterCode, year, month, receiptNumber)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getDocumentInfo: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Year*
Integer
Rok
Required
Month*
Integer
Mesiac
Required
ReceiptNumber*
Integer
Číslo dokladu
Required

Responses

Status: 200 - Detaily o doklade

Status: 404 - Doklad nenájedný


getErrors

Vráti chybné správy

Vráti chybné dátové správy pre pokladňu > Chybné dátové správy sú tie, na ktoré systém eKasa vrátil kód chyby


/errors/{CashRegisterCode}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/errors/{CashRegisterCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            array[Message] result = apiInstance.getErrors(cashRegisterCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getErrors");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            array[Message] result = apiInstance.getErrors(cashRegisterCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getErrors");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice

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

// Vráti chybné správy
[apiInstance getErrorsWith:cashRegisterCode
              completionHandler: ^(array[Message] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice


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

namespace Example
{
    public class getErrorsExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice

            try
            {
                // Vráti chybné správy
                array[Message] result = apiInstance.getErrors(cashRegisterCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getErrors: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice

try: 
    # Vráti chybné správy
    api_response = api_instance.get_errors(cashRegisterCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getErrors: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required

Responses

Status: 200 - Všetky chybné dátové správy pre pokladňu


getGlobalConfiguration

Vráti globálnu konfiguráciu

Vráti globálnu konfiguráciu


/globalconfig/

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/globalconfig/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            GlobalConfiguration result = apiInstance.getGlobalConfiguration();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getGlobalConfiguration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            GlobalConfiguration result = apiInstance.getGlobalConfiguration();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getGlobalConfiguration");
            e.printStackTrace();
        }
    }
}

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

// Vráti globálnu  konfiguráciu
[apiInstance getGlobalConfigurationWithCompletionHandler: 
              ^(GlobalConfiguration output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

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

namespace Example
{
    public class getGlobalConfigurationExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // Vráti globálnu  konfiguráciu
                GlobalConfiguration result = apiInstance.getGlobalConfiguration();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getGlobalConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

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

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

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

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

try: 
    # Vráti globálnu  konfiguráciu
    api_response = api_instance.get_global_configuration()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getGlobalConfiguration: %s\n" % e)

Parameters

Responses

Status: 200 - Globálna konfigurácia


getLastTransaction

Vráti poslednú transakciu

Vráti poslednú transakciu pre danú pokladňu s jej stavom, poprípade s response


/transaction/{CashRegisterCode}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/transaction/{CashRegisterCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            array[Transaction] result = apiInstance.getLastTransaction(cashRegisterCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getLastTransaction");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            array[Transaction] result = apiInstance.getLastTransaction(cashRegisterCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getLastTransaction");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice

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

// Vráti poslednú transakciu
[apiInstance getLastTransactionWith:cashRegisterCode
              completionHandler: ^(array[Transaction] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice


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

namespace Example
{
    public class getLastTransactionExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice

            try
            {
                // Vráti poslednú transakciu
                array[Transaction] result = apiInstance.getLastTransaction(cashRegisterCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getLastTransaction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice

try: 
    # Vráti poslednú transakciu
    api_response = api_instance.get_last_transaction(cashRegisterCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getLastTransaction: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required

Responses

Status: 200 - Posledná transakcia a jej stav


getLastTransactionCount

Vráti posledné Count transakcie

Vráti poslednú transakciu pre danú pokladňu s jej stavom, poprípade s response


/transaction/{CashRegisterCode}/{Count}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/transaction/{CashRegisterCode}/{Count}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        BigDecimal count = 8.14; // BigDecimal | Počet správ na vrátenie (od najnovšej)
        try {
            array[Transaction] result = apiInstance.getLastTransactionCount(cashRegisterCode, count);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getLastTransactionCount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        BigDecimal count = 8.14; // BigDecimal | Počet správ na vrátenie (od najnovšej)
        try {
            array[Transaction] result = apiInstance.getLastTransactionCount(cashRegisterCode, count);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getLastTransactionCount");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
BigDecimal *count = 8.14; // Počet správ na vrátenie (od najnovšej)

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

// Vráti posledné Count transakcie
[apiInstance getLastTransactionCountWith:cashRegisterCode
    count:count
              completionHandler: ^(array[Transaction] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var count = 8.14; // {BigDecimal} Počet správ na vrátenie (od najnovšej)


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

namespace Example
{
    public class getLastTransactionCountExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var count = 8.14;  // BigDecimal | Počet správ na vrátenie (od najnovšej)

            try
            {
                // Vráti posledné Count transakcie
                array[Transaction] result = apiInstance.getLastTransactionCount(cashRegisterCode, count);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getLastTransactionCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$count = 8.14; // BigDecimal | Počet správ na vrátenie (od najnovšej)

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $count = 8.14; # BigDecimal | Počet správ na vrátenie (od najnovšej)

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
count = 8.14 # BigDecimal | Počet správ na vrátenie (od najnovšej)

try: 
    # Vráti posledné Count transakcie
    api_response = api_instance.get_last_transaction_count(cashRegisterCode, count)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getLastTransactionCount: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Count*
BigDecimal
Počet správ na vrátenie (od najnovšej)
Required

Responses

Status: 200 - Posledná transakcia a jej stav


getStatus

Vráti status informácie

Vráti status OEC


/status

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/status"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            Status result = apiInstance.getStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            Status result = apiInstance.getStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getStatus");
            e.printStackTrace();
        }
    }
}

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

// Vráti status informácie
[apiInstance getStatusWithCompletionHandler: 
              ^(Status output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

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

namespace Example
{
    public class getStatusExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // Vráti status informácie
                Status result = apiInstance.getStatus();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

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

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

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

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

try: 
    # Vráti status informácie
    api_response = api_instance.get_status()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getStatus: %s\n" % e)

Parameters

Responses

Status: 200 - Status OEC


getTime

Vráti systémový čas PPEKK

Vráti systémovy čas PPEKK


/time

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/time"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.getTime();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTime");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.getTime();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTime");
            e.printStackTrace();
        }
    }
}

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

// Vráti systémový čas PPEKK
[apiInstance getTimeWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

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

namespace Example
{
    public class getTimeExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // Vráti systémový čas PPEKK
                apiInstance.getTime();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getTime: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

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

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

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

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

try: 
    # Vráti systémový čas PPEKK
    api_instance.get_time()
except ApiException as e:
    print("Exception when calling DefaultApi->getTime: %s\n" % e)

Parameters

Responses

Status: 200 - Systémový čas


getTransactionFromTo

Vráti transakcie od datumu po datum

Vráti poslednú transakciu pre danú pokladňu s jej stavom, poprípade s response.


/transaction/{CashRegisterCode}/{From}/{To}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/transaction/{CashRegisterCode}/{From}/{To}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        String from = from_example; // String | Dátum od
        String to = to_example; // String | Dátum do
        try {
            array[Transaction] result = apiInstance.getTransactionFromTo(cashRegisterCode, from, to);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTransactionFromTo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        String from = from_example; // String | Dátum od
        String to = to_example; // String | Dátum do
        try {
            array[Transaction] result = apiInstance.getTransactionFromTo(cashRegisterCode, from, to);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTransactionFromTo");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
String *from = from_example; // Dátum od
String *to = to_example; // Dátum do

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

// Vráti transakcie od datumu po datum
[apiInstance getTransactionFromToWith:cashRegisterCode
    from:from
    to:to
              completionHandler: ^(array[Transaction] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var from = from_example; // {String} Dátum od

var to = to_example; // {String} Dátum do


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

namespace Example
{
    public class getTransactionFromToExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var from = from_example;  // String | Dátum od
            var to = to_example;  // String | Dátum do

            try
            {
                // Vráti transakcie od datumu po datum
                array[Transaction] result = apiInstance.getTransactionFromTo(cashRegisterCode, from, to);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getTransactionFromTo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$from = from_example; // String | Dátum od
$to = to_example; // String | Dátum do

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $from = from_example; # String | Dátum od
my $to = to_example; # String | Dátum do

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
from = from_example # String | Dátum od
to = to_example # String | Dátum do

try: 
    # Vráti transakcie od datumu po datum
    api_response = api_instance.get_transaction_from_to(cashRegisterCode, from, to)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getTransactionFromTo: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
From*
String
Dátum od
Required
To*
String
Dátum do
Required

Responses

Status: 200 - Posledná transakcia a jej stav


getUnsentMessagesCount

Vráti počty neodoslaných správ pre všetky pokladne

Vráti počty neodoslaných správ pre všetky pokladne


/unsentmessages

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/unsentmessages"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[UnsentState] result = apiInstance.getUnsentMessagesCount();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getUnsentMessagesCount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[UnsentState] result = apiInstance.getUnsentMessagesCount();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getUnsentMessagesCount");
            e.printStackTrace();
        }
    }
}

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

// Vráti počty neodoslaných správ pre všetky pokladne
[apiInstance getUnsentMessagesCountWithCompletionHandler: 
              ^(array[UnsentState] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

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

namespace Example
{
    public class getUnsentMessagesCountExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // Vráti počty neodoslaných správ pre všetky pokladne
                array[UnsentState] result = apiInstance.getUnsentMessagesCount();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getUnsentMessagesCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

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

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

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

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

try: 
    # Vráti počty neodoslaných správ pre všetky pokladne
    api_response = api_instance.get_unsent_messages_count()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getUnsentMessagesCount: %s\n" % e)

Parameters

Responses

Status: 200 - Pole obsahujuce vsetky pokladne a pocty neodoslanych sprav pre pokladnu


openCashDrawer

Otvorí pokladničnú zásuvku pomocou ESC sekvencie

Otvorí pokladničnú zásuvku pomocou ESC sekvencie


/{CashRegisterCode}/opencashdrawer/

Usage and SDK Samples

curl -X POST "http://virtserver.swaggerhub.com/oec/api/{CashRegisterCode}/opencashdrawer/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            apiInstance.openCashDrawer(cashRegisterCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#openCashDrawer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            apiInstance.openCashDrawer(cashRegisterCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#openCashDrawer");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice

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

// Otvorí pokladničnú zásuvku pomocou ESC sekvencie
[apiInstance openCashDrawerWith:cashRegisterCode
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice


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

namespace Example
{
    public class openCashDrawerExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice

            try
            {
                // Otvorí pokladničnú zásuvku pomocou ESC sekvencie
                apiInstance.openCashDrawer(cashRegisterCode);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.openCashDrawer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice

try: 
    # Otvorí pokladničnú zásuvku pomocou ESC sekvencie
    api_instance.open_cash_drawer(cashRegisterCode)
except ApiException as e:
    print("Exception when calling DefaultApi->openCashDrawer: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required

Responses

Status: 200 - Operácia vykonaná

Status: 405 - Pokladňa nie je aktívna

Status: 503 - Nepodarilo sa vykonať


pingGet

Jednoduchý ping. Zariadenie vráti status 200

Jednoduchý ping. Zariadenie vráti status 200. Znamená, že zariadenie nabootovalo a je pripravené.


/ping

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/ping"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.pingGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#pingGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.pingGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#pingGet");
            e.printStackTrace();
        }
    }
}

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

// Jednoduchý ping. Zariadenie vráti status 200
[apiInstance pingGetWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

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

namespace Example
{
    public class pingGetExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // Jednoduchý ping. Zariadenie vráti status 200
                apiInstance.pingGet();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.pingGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

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

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

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

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

try: 
    # Jednoduchý ping. Zariadenie vráti status 200
    api_instance.ping_get()
except ApiException as e:
    print("Exception when calling DefaultApi->pingGet: %s\n" % e)

Parameters

Responses

Status: 200 - OK


printReceipt

Vytlačí alebo vráti kópiu posledného dokladu s použitím default šablony

Vytlačí alebo vráti kópiu poledného dokladu použitím default šablony v súlade s požiadavkami zákona - bez UID (unikátny identifikátor dokladu) a QR kódu - s informáciou o online/offline spracovaní Ak je špecifikovaný Renderer - printer,email - doklad vytlačí alebo odošle e-mailom a vráti údaje v ReceiptResponse - none - len vráti údaje o doklade v ReceiptResponse


/receipt/{CashRegisterCode}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/receipt/{CashRegisterCode}?Date=&ReceiptNumber="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        date date = 2013-10-20; // date | Dátum vyhotovenia dokladu
        Integer receiptNumber = 56; // Integer | Poradové číslo dokladu
        ReceiptRenderer renderer = ; // ReceiptRenderer | Renderer
        try {
            ReceiptResponse result = apiInstance.printReceipt(cashRegisterCode, date, receiptNumber, renderer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#printReceipt");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        date date = 2013-10-20; // date | Dátum vyhotovenia dokladu
        Integer receiptNumber = 56; // Integer | Poradové číslo dokladu
        ReceiptRenderer renderer = ; // ReceiptRenderer | Renderer
        try {
            ReceiptResponse result = apiInstance.printReceipt(cashRegisterCode, date, receiptNumber, renderer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#printReceipt");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
date *date = 2013-10-20; // Dátum vyhotovenia dokladu
Integer *receiptNumber = 56; // Poradové číslo dokladu
ReceiptRenderer *renderer = ; // Renderer (optional)

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

// Vytlačí alebo vráti kópiu posledného dokladu s použitím default šablony
[apiInstance printReceiptWith:cashRegisterCode
    date:date
    receiptNumber:receiptNumber
    renderer:renderer
              completionHandler: ^(ReceiptResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var date = 2013-10-20; // {date} Dátum vyhotovenia dokladu

var receiptNumber = 56; // {Integer} Poradové číslo dokladu

var opts = { 
  'renderer':  // {ReceiptRenderer} Renderer
};

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

namespace Example
{
    public class printReceiptExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var date = 2013-10-20;  // date | Dátum vyhotovenia dokladu
            var receiptNumber = 56;  // Integer | Poradové číslo dokladu
            var renderer = new ReceiptRenderer(); // ReceiptRenderer | Renderer (optional) 

            try
            {
                // Vytlačí alebo vráti kópiu posledného dokladu s použitím default šablony
                ReceiptResponse result = apiInstance.printReceipt(cashRegisterCode, date, receiptNumber, renderer);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.printReceipt: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$date = 2013-10-20; // date | Dátum vyhotovenia dokladu
$receiptNumber = 56; // Integer | Poradové číslo dokladu
$renderer = ; // ReceiptRenderer | Renderer

try {
    $result = $api_instance->printReceipt($cashRegisterCode, $date, $receiptNumber, $renderer);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->printReceipt: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $date = 2013-10-20; # date | Dátum vyhotovenia dokladu
my $receiptNumber = 56; # Integer | Poradové číslo dokladu
my $renderer = WWW::SwaggerClient::Object::ReceiptRenderer->new(); # ReceiptRenderer | Renderer

eval { 
    my $result = $api_instance->printReceipt(cashRegisterCode => $cashRegisterCode, date => $date, receiptNumber => $receiptNumber, renderer => $renderer);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->printReceipt: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
date = 2013-10-20 # date | Dátum vyhotovenia dokladu
receiptNumber = 56 # Integer | Poradové číslo dokladu
renderer =  # ReceiptRenderer | Renderer (optional)

try: 
    # Vytlačí alebo vráti kópiu posledného dokladu s použitím default šablony
    api_response = api_instance.print_receipt(cashRegisterCode, date, receiptNumber, renderer=renderer)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->printReceipt: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Body parameters
Name Description
renderer
Query parameters
Name Description
Date*
date (date)
Dátum vyhotovenia dokladu
Required
ReceiptNumber*
Integer (int32)
Poradové číslo dokladu
Required

Responses

Status: 204 - Kópia dokladu vyhotovená

Status: 404 - Doklad nenájedný

Status: 504 - Kópiu dokladu sa nepodarilo vyhotoviť. Buď zlyhala tlač alebo odoslanie e-mailu


printText

Prints the text to the printer and stores it to the CHDU


/print/{CashRegisterCode}

Usage and SDK Samples

curl -X POST "http://virtserver.swaggerhub.com/oec/api/print/{CashRegisterCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        Text receiptRequest = ; // Text | Receipt request
        try {
            apiInstance.printText(cashRegisterCode, receiptRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#printText");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        Text receiptRequest = ; // Text | Receipt request
        try {
            apiInstance.printText(cashRegisterCode, receiptRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#printText");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
Text *receiptRequest = ; // Receipt request

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

// Prints the text to the printer and stores it to the CHDU
[apiInstance printTextWith:cashRegisterCode
    receiptRequest:receiptRequest
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var receiptRequest = ; // {Text} Receipt request


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

namespace Example
{
    public class printTextExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var receiptRequest = new Text(); // Text | Receipt request

            try
            {
                // Prints the text to the printer and stores it to the CHDU
                apiInstance.printText(cashRegisterCode, receiptRequest);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.printText: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$receiptRequest = ; // Text | Receipt request

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $receiptRequest = WWW::SwaggerClient::Object::Text->new(); # Text | Receipt request

eval { 
    $api_instance->printText(cashRegisterCode => $cashRegisterCode, receiptRequest => $receiptRequest);
};
if ($@) {
    warn "Exception when calling DefaultApi->printText: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
receiptRequest =  # Text | Receipt request

try: 
    # Prints the text to the printer and stores it to the CHDU
    api_instance.print_text(cashRegisterCode, receiptRequest)
except ApiException as e:
    print("Exception when calling DefaultApi->printText: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Body parameters
Name Description
receiptRequest *

Responses

Status: 200 - Text bol uložený v CHDU a vytlačený

Status: 202 - Text bol uložený v CHDU, ale **NEBOL** úspešne vytlačený

Status: 405 - Pokladňa nie je aktívna

Status: 504 - Tlačiareň nepripravená

Status: 507 - Kapacita CHDU vyčerpaná


printUnsentMessages

Vytlačí neodoslané správy

Vytlačí neodoslané dátové správy pre zvolenú pokladňu a dátumový rozsah


/printunsent/{CashRegisterCode}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/printunsent/{CashRegisterCode}?DateFrom=&DateTo="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        date dateFrom = 2013-10-20; // date | Dátum od ktorého vytlačiť neodoslané dátové správy
        date dateTo = 2013-10-20; // date | Dátum do ktorého vytlačiť neodoslané dátové správy
        try {
            apiInstance.printUnsentMessages(cashRegisterCode, dateFrom, dateTo);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#printUnsentMessages");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        date dateFrom = 2013-10-20; // date | Dátum od ktorého vytlačiť neodoslané dátové správy
        date dateTo = 2013-10-20; // date | Dátum do ktorého vytlačiť neodoslané dátové správy
        try {
            apiInstance.printUnsentMessages(cashRegisterCode, dateFrom, dateTo);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#printUnsentMessages");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
date *dateFrom = 2013-10-20; // Dátum od ktorého vytlačiť neodoslané dátové správy
date *dateTo = 2013-10-20; // Dátum do ktorého vytlačiť neodoslané dátové správy

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

// Vytlačí neodoslané správy
[apiInstance printUnsentMessagesWith:cashRegisterCode
    dateFrom:dateFrom
    dateTo:dateTo
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var dateFrom = 2013-10-20; // {date} Dátum od ktorého vytlačiť neodoslané dátové správy

var dateTo = 2013-10-20; // {date} Dátum do ktorého vytlačiť neodoslané dátové správy


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

namespace Example
{
    public class printUnsentMessagesExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var dateFrom = 2013-10-20;  // date | Dátum od ktorého vytlačiť neodoslané dátové správy
            var dateTo = 2013-10-20;  // date | Dátum do ktorého vytlačiť neodoslané dátové správy

            try
            {
                // Vytlačí neodoslané správy
                apiInstance.printUnsentMessages(cashRegisterCode, dateFrom, dateTo);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.printUnsentMessages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$dateFrom = 2013-10-20; // date | Dátum od ktorého vytlačiť neodoslané dátové správy
$dateTo = 2013-10-20; // date | Dátum do ktorého vytlačiť neodoslané dátové správy

try {
    $api_instance->printUnsentMessages($cashRegisterCode, $dateFrom, $dateTo);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->printUnsentMessages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $dateFrom = 2013-10-20; # date | Dátum od ktorého vytlačiť neodoslané dátové správy
my $dateTo = 2013-10-20; # date | Dátum do ktorého vytlačiť neodoslané dátové správy

eval { 
    $api_instance->printUnsentMessages(cashRegisterCode => $cashRegisterCode, dateFrom => $dateFrom, dateTo => $dateTo);
};
if ($@) {
    warn "Exception when calling DefaultApi->printUnsentMessages: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
dateFrom = 2013-10-20 # date | Dátum od ktorého vytlačiť neodoslané dátové správy
dateTo = 2013-10-20 # date | Dátum do ktorého vytlačiť neodoslané dátové správy

try: 
    # Vytlačí neodoslané správy
    api_instance.print_unsent_messages(cashRegisterCode, dateFrom, dateTo)
except ApiException as e:
    print("Exception when calling DefaultApi->printUnsentMessages: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Query parameters
Name Description
DateFrom*
date (date)
Dátum od ktorého vytlačiť neodoslané dátové správy
Required
DateTo*
date (date)
Dátum do ktorého vytlačiť neodoslané dátové správy
Required

Responses

Status: 201 - Tlač úspešná

Status: 504 - Tlač neúspešná

Status: 507 - CHDÚ je zaplnené


printerstatusGet

Vráti stav tlačiarne

Tlačiareň je funkčná len ak je jej status ***Success*** * Success * PrinterIsBusy * OutOfPaper * TheFormatOfPrintDataPacketError * PrinterMalfunctions * PrinterOverHeats * PrinterVoltageIsTooLow * PrintingIsUnfinished * CutJamError * CoverOpenError * ThePrinterHasNotInstalledFontLibrary * DataPackageIsTooLong * OtherError


/printerstatus

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/printerstatus"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            inline_response_200 result = apiInstance.printerstatusGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#printerstatusGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            inline_response_200 result = apiInstance.printerstatusGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#printerstatusGet");
            e.printStackTrace();
        }
    }
}

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

// Vráti stav tlačiarne
[apiInstance printerstatusGetWithCompletionHandler: 
              ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

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

namespace Example
{
    public class printerstatusGetExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // Vráti stav tlačiarne
                inline_response_200 result = apiInstance.printerstatusGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.printerstatusGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

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

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

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

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

try: 
    # Vráti stav tlačiarne
    api_response = api_instance.printerstatus_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->printerstatusGet: %s\n" % e)

Parameters

Responses

Status: 200 - OK


rebootGet

Vykoná reboot zariadenia

Vykoná reboot zariadenia


/reboot

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/reboot"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.rebootGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#rebootGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.rebootGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#rebootGet");
            e.printStackTrace();
        }
    }
}

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

// Vykoná reboot zariadenia
[apiInstance rebootGetWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

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

namespace Example
{
    public class rebootGetExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // Vykoná reboot zariadenia
                apiInstance.rebootGet();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.rebootGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

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

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

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

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

try: 
    # Vykoná reboot zariadenia
    api_instance.reboot_get()
except ApiException as e:
    print("Exception when calling DefaultApi->rebootGet: %s\n" % e)

Parameters

Responses

Status: 200 - OK


registerLocation

Zaeviduje polohu v eKasa


/location/{CashRegisterCode}

Usage and SDK Samples

curl -X POST "http://virtserver.swaggerhub.com/oec/api/location/{CashRegisterCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        RegisterLocationRequest regusterLocationRequest = ; // RegisterLocationRequest | Register location request
        try {
            RegisterLocationResponse result = apiInstance.registerLocation(cashRegisterCode, regusterLocationRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#registerLocation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        RegisterLocationRequest regusterLocationRequest = ; // RegisterLocationRequest | Register location request
        try {
            RegisterLocationResponse result = apiInstance.registerLocation(cashRegisterCode, regusterLocationRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#registerLocation");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
RegisterLocationRequest *regusterLocationRequest = ; // Register location request

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

// Zaeviduje polohu v eKasa
[apiInstance registerLocationWith:cashRegisterCode
    regusterLocationRequest:regusterLocationRequest
              completionHandler: ^(RegisterLocationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var regusterLocationRequest = ; // {RegisterLocationRequest} Register location request


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

namespace Example
{
    public class registerLocationExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var regusterLocationRequest = new RegisterLocationRequest(); // RegisterLocationRequest | Register location request

            try
            {
                // Zaeviduje polohu v eKasa
                RegisterLocationResponse result = apiInstance.registerLocation(cashRegisterCode, regusterLocationRequest);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.registerLocation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$regusterLocationRequest = ; // RegisterLocationRequest | Register location request

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $regusterLocationRequest = WWW::SwaggerClient::Object::RegisterLocationRequest->new(); # RegisterLocationRequest | Register location request

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
regusterLocationRequest =  # RegisterLocationRequest | Register location request

try: 
    # Zaeviduje polohu v eKasa
    api_response = api_instance.register_location(cashRegisterCode, regusterLocationRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->registerLocation: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Body parameters
Name Description
regusterLocationRequest *

Responses

Status: 201 - Poloha zaevidovaná v eKasa

Status: 400 - Zlý vstup

Status: 405 - Pokladňa nie je aktívna

Status: 507 - Kapacita CHDU vyčerpaná


repairLocationError

Opraví dátovú správu polohy so zlým dátumom

Opraví dátovú správu polohy so zlým dátumom > Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -108


/locationerror/{CashRegisterCode}/{Date}/{Id}/{ErrorCode}/{CorrectDate}

Usage and SDK Samples

curl -X POST "http://virtserver.swaggerhub.com/oec/api/locationerror/{CashRegisterCode}/{Date}/{Id}/{ErrorCode}/{CorrectDate}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        Date date = 2013-10-20T19:20:30+01:00; // Date | Dátum dátovej správy
        Integer id = 56; // Integer | Identifikátor dátovej správy o polohe
        Integer errorCode = 56; // Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -108

        Date correctDate = 2013-10-20T19:20:30+01:00; // Date | Opravený správny dátum dátovej správy
        try {
            apiInstance.repairLocationError(cashRegisterCode, date, id, errorCode, correctDate);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#repairLocationError");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        Date date = 2013-10-20T19:20:30+01:00; // Date | Dátum dátovej správy
        Integer id = 56; // Integer | Identifikátor dátovej správy o polohe
        Integer errorCode = 56; // Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -108

        Date correctDate = 2013-10-20T19:20:30+01:00; // Date | Opravený správny dátum dátovej správy
        try {
            apiInstance.repairLocationError(cashRegisterCode, date, id, errorCode, correctDate);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#repairLocationError");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
Date *date = 2013-10-20T19:20:30+01:00; // Dátum dátovej správy
Integer *id = 56; // Identifikátor dátovej správy o polohe
Integer *errorCode = 56; // Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -108

Date *correctDate = 2013-10-20T19:20:30+01:00; // Opravený správny dátum dátovej správy

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

// Opraví dátovú správu polohy so zlým dátumom
[apiInstance repairLocationErrorWith:cashRegisterCode
    date:date
    id:id
    errorCode:errorCode
    correctDate:correctDate
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var date = 2013-10-20T19:20:30+01:00; // {Date} Dátum dátovej správy

var id = 56; // {Integer} Identifikátor dátovej správy o polohe

var errorCode = 56; // {Integer} Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -108


var correctDate = 2013-10-20T19:20:30+01:00; // {Date} Opravený správny dátum dátovej správy


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.repairLocationError(cashRegisterCode, date, id, errorCode, correctDate, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class repairLocationErrorExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var date = 2013-10-20T19:20:30+01:00;  // Date | Dátum dátovej správy
            var id = 56;  // Integer | Identifikátor dátovej správy o polohe
            var errorCode = 56;  // Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -108

            var correctDate = 2013-10-20T19:20:30+01:00;  // Date | Opravený správny dátum dátovej správy

            try
            {
                // Opraví dátovú správu polohy so zlým dátumom
                apiInstance.repairLocationError(cashRegisterCode, date, id, errorCode, correctDate);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.repairLocationError: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$date = 2013-10-20T19:20:30+01:00; // Date | Dátum dátovej správy
$id = 56; // Integer | Identifikátor dátovej správy o polohe
$errorCode = 56; // Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -108

$correctDate = 2013-10-20T19:20:30+01:00; // Date | Opravený správny dátum dátovej správy

try {
    $api_instance->repairLocationError($cashRegisterCode, $date, $id, $errorCode, $correctDate);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->repairLocationError: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $date = 2013-10-20T19:20:30+01:00; # Date | Dátum dátovej správy
my $id = 56; # Integer | Identifikátor dátovej správy o polohe
my $errorCode = 56; # Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -108

my $correctDate = 2013-10-20T19:20:30+01:00; # Date | Opravený správny dátum dátovej správy

eval { 
    $api_instance->repairLocationError(cashRegisterCode => $cashRegisterCode, date => $date, id => $id, errorCode => $errorCode, correctDate => $correctDate);
};
if ($@) {
    warn "Exception when calling DefaultApi->repairLocationError: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
date = 2013-10-20T19:20:30+01:00 # Date | Dátum dátovej správy
id = 56 # Integer | Identifikátor dátovej správy o polohe
errorCode = 56 # Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -108

correctDate = 2013-10-20T19:20:30+01:00 # Date | Opravený správny dátum dátovej správy

try: 
    # Opraví dátovú správu polohy so zlým dátumom
    api_instance.repair_location_error(cashRegisterCode, date, id, errorCode, correctDate)
except ApiException as e:
    print("Exception when calling DefaultApi->repairLocationError: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Date*
Date (date-time)
Dátum dátovej správy
Required
Id*
Integer
Identifikátor dátovej správy o polohe
Required
ErrorCode*
Integer
Kód chyby > Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -108
Required
CorrectDate*
Date (date-time)
Opravený správny dátum dátovej správy
Required

Responses

Status: 200 - Dátum bol opravený a nová dátová správa s opraveným dátumom bola odoslaná

Status: 204 - Dátum bol opravený a nová dátová správa s opraveným dátumom bola odoslaná offline

Status: 400 - Nepovolený kód chyby na opravu alebo iná chyba


repairReceiptError

Opraví dátovú správu dokladu so zlým dátumom

Opraví dátovú správu dokladu so zlým dátumom > Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -103 alebo -104


/receipterror/{CashRegisterCode}/{Date}/{ReceiptNumber}/{ErrorCode}/{CorrectDate}

Usage and SDK Samples

curl -X POST "http://virtserver.swaggerhub.com/oec/api/receipterror/{CashRegisterCode}/{Date}/{ReceiptNumber}/{ErrorCode}/{CorrectDate}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        Date date = 2013-10-20T19:20:30+01:00; // Date | Dátum dátovej správy
        Integer receiptNumber = 56; // Integer | Poradové číslo dokladu
        Integer errorCode = 56; // Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -103 alebo -104

        Date correctDate = 2013-10-20T19:20:30+01:00; // Date | Opravený správny dátum dátovej správy
        try {
            apiInstance.repairReceiptError(cashRegisterCode, date, receiptNumber, errorCode, correctDate);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#repairReceiptError");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        Date date = 2013-10-20T19:20:30+01:00; // Date | Dátum dátovej správy
        Integer receiptNumber = 56; // Integer | Poradové číslo dokladu
        Integer errorCode = 56; // Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -103 alebo -104

        Date correctDate = 2013-10-20T19:20:30+01:00; // Date | Opravený správny dátum dátovej správy
        try {
            apiInstance.repairReceiptError(cashRegisterCode, date, receiptNumber, errorCode, correctDate);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#repairReceiptError");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
Date *date = 2013-10-20T19:20:30+01:00; // Dátum dátovej správy
Integer *receiptNumber = 56; // Poradové číslo dokladu
Integer *errorCode = 56; // Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -103 alebo -104

Date *correctDate = 2013-10-20T19:20:30+01:00; // Opravený správny dátum dátovej správy

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

// Opraví dátovú správu dokladu so zlým dátumom
[apiInstance repairReceiptErrorWith:cashRegisterCode
    date:date
    receiptNumber:receiptNumber
    errorCode:errorCode
    correctDate:correctDate
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var date = 2013-10-20T19:20:30+01:00; // {Date} Dátum dátovej správy

var receiptNumber = 56; // {Integer} Poradové číslo dokladu

var errorCode = 56; // {Integer} Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -103 alebo -104


var correctDate = 2013-10-20T19:20:30+01:00; // {Date} Opravený správny dátum dátovej správy


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.repairReceiptError(cashRegisterCode, date, receiptNumber, errorCode, correctDate, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class repairReceiptErrorExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var date = 2013-10-20T19:20:30+01:00;  // Date | Dátum dátovej správy
            var receiptNumber = 56;  // Integer | Poradové číslo dokladu
            var errorCode = 56;  // Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -103 alebo -104

            var correctDate = 2013-10-20T19:20:30+01:00;  // Date | Opravený správny dátum dátovej správy

            try
            {
                // Opraví dátovú správu dokladu so zlým dátumom
                apiInstance.repairReceiptError(cashRegisterCode, date, receiptNumber, errorCode, correctDate);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.repairReceiptError: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$date = 2013-10-20T19:20:30+01:00; // Date | Dátum dátovej správy
$receiptNumber = 56; // Integer | Poradové číslo dokladu
$errorCode = 56; // Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -103 alebo -104

$correctDate = 2013-10-20T19:20:30+01:00; // Date | Opravený správny dátum dátovej správy

try {
    $api_instance->repairReceiptError($cashRegisterCode, $date, $receiptNumber, $errorCode, $correctDate);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->repairReceiptError: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $date = 2013-10-20T19:20:30+01:00; # Date | Dátum dátovej správy
my $receiptNumber = 56; # Integer | Poradové číslo dokladu
my $errorCode = 56; # Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -103 alebo -104

my $correctDate = 2013-10-20T19:20:30+01:00; # Date | Opravený správny dátum dátovej správy

eval { 
    $api_instance->repairReceiptError(cashRegisterCode => $cashRegisterCode, date => $date, receiptNumber => $receiptNumber, errorCode => $errorCode, correctDate => $correctDate);
};
if ($@) {
    warn "Exception when calling DefaultApi->repairReceiptError: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
date = 2013-10-20T19:20:30+01:00 # Date | Dátum dátovej správy
receiptNumber = 56 # Integer | Poradové číslo dokladu
errorCode = 56 # Integer | Kód chyby
> Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -103 alebo -104

correctDate = 2013-10-20T19:20:30+01:00 # Date | Opravený správny dátum dátovej správy

try: 
    # Opraví dátovú správu dokladu so zlým dátumom
    api_instance.repair_receipt_error(cashRegisterCode, date, receiptNumber, errorCode, correctDate)
except ApiException as e:
    print("Exception when calling DefaultApi->repairReceiptError: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Date*
Date (date-time)
Dátum dátovej správy
Required
ReceiptNumber*
Integer
Poradové číslo dokladu
Required
ErrorCode*
Integer
Kód chyby > Opraviť je možné dátové správy, pre ktoré eKasa vráti kód chyby -103 alebo -104
Required
CorrectDate*
Date (date-time)
Opravený správny dátum dátovej správy
Required

Responses

Status: 200 - Dátum bol opravený a nová dátová správa s opraveným dátumom bola odoslaná

Status: 204 - Dátum bol opravený a nová dátová správa s opraveným dátumom bola odoslaná offline

Status: 400 - Nepovolený kód chyby na opravu alebo iná chyba


resendAllUnsentMessages

Zaháji pokus o odoslanie neodoslaných správ všetkých pokladní

Zaháji pokus o odoslanie neodoslaných správ všetkých pokladní. Odoslanie beží na pozadí.


/resendAll

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/resendAll"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.resendAllUnsentMessages();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resendAllUnsentMessages");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.resendAllUnsentMessages();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resendAllUnsentMessages");
            e.printStackTrace();
        }
    }
}

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

// Zaháji pokus o odoslanie neodoslaných správ všetkých pokladní
[apiInstance resendAllUnsentMessagesWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

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

namespace Example
{
    public class resendAllUnsentMessagesExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // Zaháji pokus o odoslanie neodoslaných správ všetkých pokladní
                apiInstance.resendAllUnsentMessages();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.resendAllUnsentMessages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

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

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

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

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

try: 
    # Zaháji pokus o odoslanie neodoslaných správ všetkých pokladní
    api_instance.resend_all_unsent_messages()
except ApiException as e:
    print("Exception when calling DefaultApi->resendAllUnsentMessages: %s\n" % e)

Parameters

Responses

Status: 200 - Odoslanie zahájené

Status: 500 - Odoslanie nebolo možné zahájiť


resendCloudDocuments

Zaháji pokus o odoslanie neodoslaných dokumentov pre cloud storage konkrétnej pokladne

Zaháji pokus o odoslanie neodoslaných dokumentov do cloud storage. Odoslanie beží na pozadí.


/cloudstorageresend/{CashRegisterCode}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/cloudstorageresend/{CashRegisterCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            apiInstance.resendCloudDocuments(cashRegisterCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resendCloudDocuments");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            apiInstance.resendCloudDocuments(cashRegisterCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resendCloudDocuments");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice

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

// Zaháji pokus o odoslanie neodoslaných dokumentov pre cloud storage konkrétnej pokladne
[apiInstance resendCloudDocumentsWith:cashRegisterCode
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice


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

namespace Example
{
    public class resendCloudDocumentsExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice

            try
            {
                // Zaháji pokus o odoslanie neodoslaných dokumentov pre cloud storage konkrétnej pokladne
                apiInstance.resendCloudDocuments(cashRegisterCode);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.resendCloudDocuments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice

try: 
    # Zaháji pokus o odoslanie neodoslaných dokumentov pre cloud storage konkrétnej pokladne
    api_instance.resend_cloud_documents(cashRegisterCode)
except ApiException as e:
    print("Exception when calling DefaultApi->resendCloudDocuments: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required

Responses

Status: 200 - Odoslanie zahájené

Status: 404 - Pokladňa neexistuje

Status: 500 - Odoslanie nebolo možné zahájiť


resendUnsentMessages

Zaháji pokus o odoslanie neodoslaných správ konkrétnej pokladne

Zaháji pokus o odoslanie neodoslaných správ. Odoslanie beží na pozadí.


/resend/{CashRegisterCode}

Usage and SDK Samples

curl -X GET "http://virtserver.swaggerhub.com/oec/api/resend/{CashRegisterCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            apiInstance.resendUnsentMessages(cashRegisterCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resendUnsentMessages");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        try {
            apiInstance.resendUnsentMessages(cashRegisterCode);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#resendUnsentMessages");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice

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

// Zaháji pokus o odoslanie neodoslaných správ konkrétnej pokladne
[apiInstance resendUnsentMessagesWith:cashRegisterCode
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice


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

namespace Example
{
    public class resendUnsentMessagesExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice

            try
            {
                // Zaháji pokus o odoslanie neodoslaných správ konkrétnej pokladne
                apiInstance.resendUnsentMessages(cashRegisterCode);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.resendUnsentMessages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice

try: 
    # Zaháji pokus o odoslanie neodoslaných správ konkrétnej pokladne
    api_instance.resend_unsent_messages(cashRegisterCode)
except ApiException as e:
    print("Exception when calling DefaultApi->resendUnsentMessages: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required

Responses

Status: 200 - Odoslanie zahájené

Status: 400 - Nezosynchronizovaný čas

Status: 404 - Pokladňa neexistuje

Status: 500 - Odoslanie nebolo možné zahájiť

Status: 507 - CHDÚ je zaplnené


setCashRegisterConfiguration

Zapíše konfiguráciu pre pokladňu

Zapíše konfiguráciu pre pokladňu. Ak sú v špecifikované aj iné pokladne ako v parametri, ich konfigurácie sú ignorované. Ak konfigurácia pre pokladňu už existuje, je prepísaná. AuthId sety pre pokladňu nie sú zmenené. Na zmenu AuthId set použite POST /authidset/{CashRegisterCode}


/cashregisterconfig/{CashRegisterCode}

Usage and SDK Samples

curl -X POST "http://virtserver.swaggerhub.com/oec/api/cashregisterconfig/{CashRegisterCode}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        CashRegisterConfiguration configuration = ; // CashRegisterConfiguration | Konfigurácia pokladne
        try {
            apiInstance.setCashRegisterConfiguration(cashRegisterCode, configuration);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setCashRegisterConfiguration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
        CashRegisterConfiguration configuration = ; // CashRegisterConfiguration | Konfigurácia pokladne
        try {
            apiInstance.setCashRegisterConfiguration(cashRegisterCode, configuration);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setCashRegisterConfiguration");
            e.printStackTrace();
        }
    }
}
String *cashRegisterCode = cashRegisterCode_example; // Kód on-line registračnej pokladnice
CashRegisterConfiguration *configuration = ; // Konfigurácia pokladne

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

// Zapíše konfiguráciu pre pokladňu
[apiInstance setCashRegisterConfigurationWith:cashRegisterCode
    configuration:configuration
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var cashRegisterCode = cashRegisterCode_example; // {String} Kód on-line registračnej pokladnice

var configuration = ; // {CashRegisterConfiguration} Konfigurácia pokladne


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

namespace Example
{
    public class setCashRegisterConfigurationExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var cashRegisterCode = cashRegisterCode_example;  // String | Kód on-line registračnej pokladnice
            var configuration = new CashRegisterConfiguration(); // CashRegisterConfiguration | Konfigurácia pokladne

            try
            {
                // Zapíše konfiguráciu pre pokladňu
                apiInstance.setCashRegisterConfiguration(cashRegisterCode, configuration);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setCashRegisterConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$cashRegisterCode = cashRegisterCode_example; // String | Kód on-line registračnej pokladnice
$configuration = ; // CashRegisterConfiguration | Konfigurácia pokladne

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $cashRegisterCode = cashRegisterCode_example; # String | Kód on-line registračnej pokladnice
my $configuration = WWW::SwaggerClient::Object::CashRegisterConfiguration->new(); # CashRegisterConfiguration | Konfigurácia pokladne

eval { 
    $api_instance->setCashRegisterConfiguration(cashRegisterCode => $cashRegisterCode, configuration => $configuration);
};
if ($@) {
    warn "Exception when calling DefaultApi->setCashRegisterConfiguration: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
cashRegisterCode = cashRegisterCode_example # String | Kód on-line registračnej pokladnice
configuration =  # CashRegisterConfiguration | Konfigurácia pokladne

try: 
    # Zapíše konfiguráciu pre pokladňu
    api_instance.set_cash_register_configuration(cashRegisterCode, configuration)
except ApiException as e:
    print("Exception when calling DefaultApi->setCashRegisterConfiguration: %s\n" % e)

Parameters

Path parameters
Name Description
CashRegisterCode*
String
Kód on-line registračnej pokladnice
Required
Body parameters
Name Description
configuration *

Responses

Status: 201 - Konfigurácia zmenená

Status: 507 - Kapacita CHDU vyčerpaná


setGlobalConfiguration

Uloží globálnu konfiguráciu

Uloží globálnu konfiguráciu


/globalconfig/

Usage and SDK Samples

curl -X POST "http://virtserver.swaggerhub.com/oec/api/globalconfig/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        GlobalConfiguration configuration = ; // GlobalConfiguration | Global Configuration
        try {
            apiInstance.setGlobalConfiguration(configuration);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalConfiguration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        GlobalConfiguration configuration = ; // GlobalConfiguration | Global Configuration
        try {
            apiInstance.setGlobalConfiguration(configuration);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setGlobalConfiguration");
            e.printStackTrace();
        }
    }
}
GlobalConfiguration *configuration = ; // Global Configuration

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

// Uloží globálnu konfiguráciu
[apiInstance setGlobalConfigurationWith:configuration
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var configuration = ; // {GlobalConfiguration} Global Configuration


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

namespace Example
{
    public class setGlobalConfigurationExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var configuration = new GlobalConfiguration(); // GlobalConfiguration | Global Configuration

            try
            {
                // Uloží globálnu konfiguráciu
                apiInstance.setGlobalConfiguration(configuration);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setGlobalConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$configuration = ; // GlobalConfiguration | Global Configuration

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $configuration = WWW::SwaggerClient::Object::GlobalConfiguration->new(); # GlobalConfiguration | Global Configuration

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
configuration =  # GlobalConfiguration | Global Configuration

try: 
    # Uloží globálnu konfiguráciu
    api_instance.set_global_configuration(configuration)
except ApiException as e:
    print("Exception when calling DefaultApi->setGlobalConfiguration: %s\n" % e)

Parameters

Body parameters
Name Description
configuration *

Responses

Status: 200 - Update úspešný

Status: 400 - Zlý formát alebo iná chyba


setTime

Nastaví systémový čas PPEKK

Nastaví systémový čas PPEKK


/time

Usage and SDK Samples

curl -X POST "http://virtserver.swaggerhub.com/oec/api/time?SystemDate="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        date systemDate = 2013-10-20; // date | 
        try {
            apiInstance.setTime(systemDate);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setTime");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        date systemDate = 2013-10-20; // date | 
        try {
            apiInstance.setTime(systemDate);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#setTime");
            e.printStackTrace();
        }
    }
}
date *systemDate = 2013-10-20; // 

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

// Nastaví systémový čas PPEKK
[apiInstance setTimeWith:systemDate
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DatapacOecApi = require('datapac_oec_api');

var api = new DatapacOecApi.DefaultApi()

var systemDate = 2013-10-20; // {date} 


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

namespace Example
{
    public class setTimeExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var systemDate = 2013-10-20;  // date | 

            try
            {
                // Nastaví systémový čas PPEKK
                apiInstance.setTime(systemDate);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.setTime: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$systemDate = 2013-10-20; // date | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $systemDate = 2013-10-20; # date | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
systemDate = 2013-10-20 # date | 

try: 
    # Nastaví systémový čas PPEKK
    api_instance.set_time(systemDate)
except ApiException as e:
    print("Exception when calling DefaultApi->setTime: %s\n" % e)

Parameters

Query parameters
Name Description
SystemDate*
date (date)
Required

Responses

Status: 200 - Čas nastavený

Status: 500 - Čas sa nepodarilo nastaviť