Chilkat Online Tools

SQL Server / EDS API / Dokuments "Uzņēmuma ienākuma nodokļa deklarācija".

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    -- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'

    DECLARE @sbResponseBody int
    -- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @http, 'QuickGetSb', @success OUT, 'https://eds.vid.gov.lv/api/doc/uienv5/:id', @sbResponseBody
    IF @success = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        RETURN
      END

    DECLARE @jResp int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @http, 'LastStatus', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @http, 'LastHeader', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END

    -- Sample JSON response:
    -- (Sample code for parsing the JSON response is shown below)

    -- {
    --   "ParskNo": "2000-01-31T00:00:00",
    --   "ParskLidz": "2000-01-31T00:00:00",
    --   "ParskPerReorganizacijaNmrKods": "Ut",
    --   "TaksGads": 49662660,
    --   "IeprZaudejumi": true,
    --   "R01": 2491915,
    --   "ParskNoPrevious": "2000-01-31T00:00:00",
    --   "ParskLidzPrevious": "2000-01-31T00:00:00",
    --   "ParskPerLabosana": true,
    --   "ParskPerPamatojums": "culpa in",
    --   "TaksMenesis": 7,
    --   "TaksCeturksnis": 3,
    --   "PedejaDeklaracija": true,
    --   "TransfercenasPazime": true,
    --   "MinNodoklis": false,
    --   "Pamatojums": "tempor labore consectetur",
    --   "Epasts": "ut deserunt",
    --   "Talrunis": "m",
    --   "Sagatavotajs": "veniam dolore Ut exercitation",
    --   "IzmaksatasUnNosacitasDividendes": 56840859,
    --   "NodoklisArvalstis": true,
    --   "IenakumiNoAkcijuAtsavinasanas": false,
    --   "SamazinajusiesUzkrajumuSumma": false,
    --   "IrVeiktiZiedojumi": 32690365,
    --   "IzmaksasNavNodoklis": 78759160,
    --   "NodoklaParmaksa": 37491534,
    --   "R02": 3791516,
    --   "R03": -29855001,
    --   "R04": 74337266,
    --   "R05": -30713137,
    --   "R05_1": -22917413,
    --   "R05_2": 9339974,
    --   "R05_3": 74966232,
    --   "R06": 25418413,
    --   "R06_1": -6353053,
    --   "R06_2": 77930312,
    --   "DebitoraParadaUzkrajums": true,
    --   "R06_3": 8611662,
    --   "R06_4": 47033133,
    --   "R06_5": -13232991,
    --   "R06_5_1": -77059376,
    --   "R06_5_2": 95050440,
    --   "R06_6": 69862,
    --   "R06_7": -95547265,
    --   "R06_8": 13491051,
    --   "R06_9": -39802865,
    --   "R06_10": 49260217,
    --   "R06_11": -75525838,
    --   "R06_12": -728968,
    --   "R06_13_nosaukums": "ut ut tempor",
    --   "R06_13": 27165990,
    --   "R06_14_nosaukums": "aliquip amet",
    --   "R06_14": 39786896,
    --   "R07": 91079648,
    --   "R08": 7455573,
    --   "R09_0_4": -25877701,
    --   "R9_1": -16891571,
    --   "Summa": -24159722,
    --   "R09ProcentuLikme": 22297598,
    --   "SummaNeieklauj": 72979597,
    --   "SummaIekļauj": 93267916.40421143,
    --   "R10": -29899198,
    --   "R11": 87306328,
    --   "R12": 40223250,
    --   "R13": -62028791,
    --   "R14": 64171299,
    --   "R15": 84760618,
    --   "R16": 86429907,
    --   "R17": -39714954,
    --   "R18": 71976223,
    --   "R19": 54326373,
    --   "R20": 27511170,
    --   "R21": 88300326,
    --   "R22": 95229689,
    --   "R23": 841177,
    --   "R24": 56018113,
    --   "R25": 12618386,
    --   "R25_1_nosaukums": "consectetur nulla minim ut",
    --   "R25_1": 2858412,
    --   "R25_2_nosaukums": "occaecat",
    --   "R25_2": 38083678,
    --   "R25_3_nosaukums": "aliqua irure non dolore in",
    --   "R25_3": 59513786,
    --   "R26": -274360,
    --   "R27": -88406374,
    --   "R27_1": 7209600,
    --   "R27_2": 33389130,
    --   "R27_3": -18610069,
    --   "R27_4": -68295528,
    --   "R27_5_nosaukums": "et nisi ad",
    --   "R27_5": -84390190,
    --   "R28": -80264587,
    --   "R28_1": -75450217,
    --   "R28_2": -8855644,
    --   "R29": 85266425,
    --   "R30": 603716,
    --   "R31": -84570375,
    --   "R31_1": 92638125,
    --   "R31_2": -80075423,
    --   "R32": -54183173,
    --   "Tab1_1": [
    --     {
    --       "KorekcijaReorganizacijaNmrKods": "deserun",
    --       "KorekcijaCitiIemesli": "irure Ut dolore id",
    --       "PelnaNesadalita": -64443600,
    --       "Samazina": 10032478,
    --       "KorekcijaLabosana": true,
    --       "Korekcija": 13794994,
    --       "KorekcijaPamatojums": "dolore of",
    --       "PelnaDividendes": 60661372,
    --       "Paradi": -81014392,
    --       "Aizdevums": -58380698,
    --       "PelnaSadalisanai": 54711627
    --     },
    --     {
    --       "KorekcijaReorganizacijaNmrKods": "nulla",
    --       "KorekcijaCitiIemesli": "nostrud Lorem id",
    --       "PelnaNesadalita": -40537503,
    --       "Samazina": -21930951,
    --       "KorekcijaLabosana": true,
    --       "Korekcija": -30045653,
    --       "KorekcijaPamatojums": "cillum",
    --       "PelnaDividendes": -53228560,
    --       "Paradi": -29699440,
    --       "Aizdevums": 48321059,
    --       "PelnaSadalisanai": 96811249
    --     }
    --   ],
    --   "Tab1_2": [
    --     {
    --       "ZaudejumiReorganizacijaNmrKods": "dol",
    --       "ZaudejumiPrevious": 93584304,
    --       "ZaudejumiLabosana": true,
    --       "Zaudejumi": 60086365,
    --       "ZaudejumiPamatojums": "enim irure incididunt laboris",
    --       "Samazinats": 44190215,
    --       "Parnests": 74848476
    --     },
    --     {
    --       "ZaudejumiReorganizacijaNmrKods": "aliquip si",
    --       "ZaudejumiPrevious": 2689899,
    --       "ZaudejumiLabosana": true,
    --       "Zaudejumi": -91154224,
    --       "ZaudejumiPamatojums": "sit nostrud",
    --       "Samazinats": -7089047,
    --       "Parnests": 16437898
    --     }
    --   ],
    --   "Tab1_3": [
    --     {
    --       "UzkrajumsReorganizacijaNmrKods": "ve",
    --       "UzkrajumsPrevious": 83413550,
    --       "UzkrajumsLabosana": true,
    --       "Uzkrajums": -69994949,
    --       "UzkrajumsPamatojums": "ullamco incididunt nisi",
    --       "Samazinats": 79958540,
    --       "Parnests": 37820337
    --     },
    --     {
    --       "UzkrajumsReorganizacijaNmrKods": "dolo",
    --       "UzkrajumsPrevious": 74562023,
    --       "UzkrajumsLabosana": false,
    --       "Uzkrajums": -51602661,
    --       "UzkrajumsPamatojums": "et proident nulla aute commodo",
    --       "Samazinats": -4961309,
    --       "Parnests": 27916300
    --     }
    --   ],
    --   "Tab02": [
    --     {
    --       "PeriodsNo": "2000-01-31T00:00:00",
    --       "PeriodsLidz": "2000-01-31T00:00:00",
    --       "RegNr": "sunt ad",
    --       "Nosaukums": "aliquip nostrud do",
    --       "Sanemts": -5562327,
    --       "Valsts": "",
    --       "SamazinatsIzmaksatas": -32846511,
    --       "SamazinatsNodoklis": 2405851,
    --       "Parnests": -56393371
    --     },
    --     {
    --       "PeriodsNo": "2000-01-31T00:00:00",
    --       "PeriodsLidz": "2000-01-31T00:00:00",
    --       "RegNr": "id",
    --       "Nosaukums": "ea aliquip",
    --       "Sanemts": 75625645,
    --       "Valsts": "n",
    --       "SamazinatsIzmaksatas": 70020020,
    --       "SamazinatsNodoklis": -78548637,
    --       "Parnests": 14030356
    --     }
    --   ],
    --   "Tab05_1": [
    --     {
    --       "PeriodsNo": "2000-01-31T00:00:00",
    --       "PeriodsLidz": "2000-01-31T00:00:00",
    --       "Palielinajums": -53685313,
    --       "Samazinajums": -73721918,
    --       "PalielinajumsPelna": -88908178
    --     },
    --     {
    --       "PeriodsNo": "2000-01-31T00:00:00",
    --       "PeriodsLidz": "2000-01-31T00:00:00",
    --       "Palielinajums": -80303393,
    --       "Samazinajums": 69314708,
    --       "PalielinajumsPelna": -26201001
    --     }
    --   ],
    --   "Tab06_2": [
    --     {
    --       "PeriodsNo": "2000-01-31T00:00:00",
    --       "PeriodsLidz": "2000-01-31T00:00:00",
    --       "Summa": 61658935,
    --       "Menesi": -99483417
    --     },
    --     {
    --       "PeriodsNo": "2000-01-31T00:00:00",
    --       "PeriodsLidz": "2000-01-31T00:00:00",
    --       "Summa": -38968258,
    --       "Menesi": -17845204
    --     }
    --   ],
    --   "Tab08": [
    --     {
    --       "PeriodsNo": "2000-01-31T00:00:00",
    --       "PeriodsLidz": "2000-01-31T00:00:00",
    --       "Valsts": "m",
    --       "Samaksats": -20746780,
    --       "Samazinats": 51916300,
    --       "Parnests": 68207219
    --     },
    --     {
    --       "PeriodsNo": "2000-01-31T00:00:00",
    --       "PeriodsLidz": "2000-01-31T00:00:00",
    --       "Valsts": "id",
    --       "Samaksats": -13437758,
    --       "Samazinats": -41724301,
    --       "Parnests": 20702642
    --     }
    --   ],
    --   "Tab09_1": [
    --     {
    --       "RegNr": "cupidatat sit non irure",
    --       "Nosaukums": "ad nisi reprehenderit",
    --       "Valsts": "",
    --       "Datums": "2000-01-31T00:00:00",
    --       "Summa": 20213549
    --     },
    --     {
    --       "RegNr": "do dolore sint",
    --       "Nosaukums": "quis non",
    --       "Valsts": "ut",
    --       "Datums": "2000-01-31T00:00:00",
    --       "Summa": 60468532
    --     }
    --   ],
    --   "Tab15": [
    --     {
    --       "IegadesDatums": "2000-01-31T00:00:00",
    --       "AtsavinasanasDatums": "2000-01-31T00:00:00",
    --       "IegadesVertiba": -58543462,
    --       "AtsavinasanasVertiba": 62726723,
    --       "Menesi": -58943961,
    --       "IenakumsBaze": -45387925,
    --       "IenakumsParnests": 53964786
    --     },
    --     {
    --       "IegadesDatums": "2000-01-31T00:00:00",
    --       "AtsavinasanasDatums": "2000-01-31T00:00:00",
    --       "IegadesVertiba": 31642925,
    --       "AtsavinasanasVertiba": 23986045,
    --       "Menesi": 11516768,
    --       "IenakumsBaze": 33904817,
    --       "IenakumsParnests": 54994936
    --     }
    --   ],
    --   "Tab16": [
    --     {
    --       "Summa": 92384867,
    --       "SummaReorganizacijaNmrKods": "amet de",
    --       "SummaPrevious": -14104548,
    --       "SummaLabosana": true,
    --       "SummaPamatojums": "ullamco occaecat tempor ea",
    --       "Samazinats": 43463305,
    --       "Parnests": 21487521
    --     },
    --     {
    --       "Summa": -18350646,
    --       "SummaReorganizacijaNmrKods": "magna o",
    --       "SummaPrevious": -34149691,
    --       "SummaLabosana": true,
    --       "SummaPamatojums": "nisi dolore",
    --       "Samazinats": -35735489,
    --       "Parnests": -24724843
    --     }
    --   ],
    --   "Tab31_2": [
    --     {
    --       "PeriodsNo": "2000-01-31T00:00:00",
    --       "PeriodsLidz": "2000-01-31T00:00:00",
    --       "Summa": -47625962,
    --       "NodoklaSumma": 93123139,
    --       "AtmaksataAtgutaSumma": 52266513,
    --       "Parmaksa": 85154944
    --     },
    --     {
    --       "PeriodsNo": "2000-01-31T00:00:00",
    --       "PeriodsLidz": "2000-01-31T00:00:00",
    --       "Summa": -97498178,
    --       "NodoklaSumma": -6580861,
    --       "AtmaksataAtgutaSumma": 14375921,
    --       "Parmaksa": 17401836
    --     }
    --   ],
    --   "Pielikumi": [
    --     {
    --       "Fails": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       },
    --       "Komentars": "ullamco cupidatat aliquip"
    --     },
    --     {
    --       "Fails": {
    --         "value": "<Error: Too many levels of nesting to fake this schema>"
    --       },
    --       "Komentars": "occaecat Ut"
    --     }
    --   ],
    --   "Id": -66514693,
    --   "UID": "adipisicing dolore esse",
    --   "NmrKods": "proident ",
    --   "Precizejums": false,
    --   "PrecizejamaisDokuments": 90049699,
    --   "PrecizejumaPamatojums": "in amet aliqua"
    -- }

    -- Sample code for parsing the JSON response...
    -- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    DECLARE @KorekcijaReorganizacijaNmrKods nvarchar(4000)

    DECLARE @KorekcijaCitiIemesli nvarchar(4000)

    DECLARE @PelnaNesadalita int

    DECLARE @Samazina int

    DECLARE @KorekcijaLabosana int

    DECLARE @Korekcija int

    DECLARE @KorekcijaPamatojums nvarchar(4000)

    DECLARE @PelnaDividendes int

    DECLARE @Paradi int

    DECLARE @Aizdevums int

    DECLARE @PelnaSadalisanai int

    DECLARE @ZaudejumiReorganizacijaNmrKods nvarchar(4000)

    DECLARE @ZaudejumiPrevious int

    DECLARE @ZaudejumiLabosana int

    DECLARE @Zaudejumi int

    DECLARE @ZaudejumiPamatojums nvarchar(4000)

    DECLARE @Samazinats int

    DECLARE @Parnests int

    DECLARE @UzkrajumsReorganizacijaNmrKods nvarchar(4000)

    DECLARE @UzkrajumsPrevious int

    DECLARE @UzkrajumsLabosana int

    DECLARE @Uzkrajums int

    DECLARE @UzkrajumsPamatojums nvarchar(4000)

    DECLARE @PeriodsNo nvarchar(4000)

    DECLARE @PeriodsLidz nvarchar(4000)

    DECLARE @RegNr nvarchar(4000)

    DECLARE @Nosaukums nvarchar(4000)

    DECLARE @Sanemts int

    DECLARE @Valsts nvarchar(4000)

    DECLARE @SamazinatsIzmaksatas int

    DECLARE @SamazinatsNodoklis int

    DECLARE @Palielinajums int

    DECLARE @Samazinajums int

    DECLARE @PalielinajumsPelna int

    DECLARE @Menesi int

    DECLARE @Samaksats int

    DECLARE @Datums nvarchar(4000)

    DECLARE @IegadesDatums nvarchar(4000)

    DECLARE @AtsavinasanasDatums nvarchar(4000)

    DECLARE @IegadesVertiba int

    DECLARE @AtsavinasanasVertiba int

    DECLARE @IenakumsBaze int

    DECLARE @IenakumsParnests int

    DECLARE @SummaReorganizacijaNmrKods nvarchar(4000)

    DECLARE @SummaPrevious int

    DECLARE @SummaLabosana int

    DECLARE @SummaPamatojums nvarchar(4000)

    DECLARE @NodoklaSumma int

    DECLARE @AtmaksataAtgutaSumma int

    DECLARE @Parmaksa int

    DECLARE @Value nvarchar(4000)

    DECLARE @Komentars nvarchar(4000)

    DECLARE @ParskNo nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ParskNo OUT, 'ParskNo'
    DECLARE @ParskLidz nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ParskLidz OUT, 'ParskLidz'
    DECLARE @ParskPerReorganizacijaNmrKods nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ParskPerReorganizacijaNmrKods OUT, 'ParskPerReorganizacijaNmrKods'
    DECLARE @TaksGads int
    EXEC sp_OAMethod @jResp, 'IntOf', @TaksGads OUT, 'TaksGads'
    DECLARE @IeprZaudejumi int
    EXEC sp_OAMethod @jResp, 'BoolOf', @IeprZaudejumi OUT, 'IeprZaudejumi'
    DECLARE @R01 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R01 OUT, 'R01'
    DECLARE @ParskNoPrevious nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ParskNoPrevious OUT, 'ParskNoPrevious'
    DECLARE @ParskLidzPrevious nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ParskLidzPrevious OUT, 'ParskLidzPrevious'
    DECLARE @ParskPerLabosana int
    EXEC sp_OAMethod @jResp, 'BoolOf', @ParskPerLabosana OUT, 'ParskPerLabosana'
    DECLARE @ParskPerPamatojums nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ParskPerPamatojums OUT, 'ParskPerPamatojums'
    DECLARE @TaksMenesis int
    EXEC sp_OAMethod @jResp, 'IntOf', @TaksMenesis OUT, 'TaksMenesis'
    DECLARE @TaksCeturksnis int
    EXEC sp_OAMethod @jResp, 'IntOf', @TaksCeturksnis OUT, 'TaksCeturksnis'
    DECLARE @PedejaDeklaracija int
    EXEC sp_OAMethod @jResp, 'BoolOf', @PedejaDeklaracija OUT, 'PedejaDeklaracija'
    DECLARE @TransfercenasPazime int
    EXEC sp_OAMethod @jResp, 'BoolOf', @TransfercenasPazime OUT, 'TransfercenasPazime'
    DECLARE @MinNodoklis int
    EXEC sp_OAMethod @jResp, 'BoolOf', @MinNodoklis OUT, 'MinNodoklis'
    DECLARE @Pamatojums nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Pamatojums OUT, 'Pamatojums'
    DECLARE @Epasts nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Epasts OUT, 'Epasts'
    DECLARE @Talrunis nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Talrunis OUT, 'Talrunis'
    DECLARE @Sagatavotajs nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Sagatavotajs OUT, 'Sagatavotajs'
    DECLARE @IzmaksatasUnNosacitasDividendes int
    EXEC sp_OAMethod @jResp, 'IntOf', @IzmaksatasUnNosacitasDividendes OUT, 'IzmaksatasUnNosacitasDividendes'
    DECLARE @NodoklisArvalstis int
    EXEC sp_OAMethod @jResp, 'BoolOf', @NodoklisArvalstis OUT, 'NodoklisArvalstis'
    DECLARE @IenakumiNoAkcijuAtsavinasanas int
    EXEC sp_OAMethod @jResp, 'BoolOf', @IenakumiNoAkcijuAtsavinasanas OUT, 'IenakumiNoAkcijuAtsavinasanas'
    DECLARE @SamazinajusiesUzkrajumuSumma int
    EXEC sp_OAMethod @jResp, 'BoolOf', @SamazinajusiesUzkrajumuSumma OUT, 'SamazinajusiesUzkrajumuSumma'
    DECLARE @IrVeiktiZiedojumi int
    EXEC sp_OAMethod @jResp, 'IntOf', @IrVeiktiZiedojumi OUT, 'IrVeiktiZiedojumi'
    DECLARE @IzmaksasNavNodoklis int
    EXEC sp_OAMethod @jResp, 'IntOf', @IzmaksasNavNodoklis OUT, 'IzmaksasNavNodoklis'
    DECLARE @NodoklaParmaksa int
    EXEC sp_OAMethod @jResp, 'IntOf', @NodoklaParmaksa OUT, 'NodoklaParmaksa'
    DECLARE @R02 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R02 OUT, 'R02'
    DECLARE @R03 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R03 OUT, 'R03'
    DECLARE @R04 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R04 OUT, 'R04'
    DECLARE @R05 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R05 OUT, 'R05'
    DECLARE @R05_1 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R05_1 OUT, 'R05_1'
    DECLARE @R05_2 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R05_2 OUT, 'R05_2'
    DECLARE @R05_3 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R05_3 OUT, 'R05_3'
    DECLARE @R06 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06 OUT, 'R06'
    DECLARE @R06_1 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_1 OUT, 'R06_1'
    DECLARE @R06_2 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_2 OUT, 'R06_2'
    DECLARE @DebitoraParadaUzkrajums int
    EXEC sp_OAMethod @jResp, 'BoolOf', @DebitoraParadaUzkrajums OUT, 'DebitoraParadaUzkrajums'
    DECLARE @R06_3 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_3 OUT, 'R06_3'
    DECLARE @R06_4 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_4 OUT, 'R06_4'
    DECLARE @R06_5 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_5 OUT, 'R06_5'
    DECLARE @R06_5_1 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_5_1 OUT, 'R06_5_1'
    DECLARE @R06_5_2 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_5_2 OUT, 'R06_5_2'
    DECLARE @R06_6 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_6 OUT, 'R06_6'
    DECLARE @R06_7 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_7 OUT, 'R06_7'
    DECLARE @R06_8 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_8 OUT, 'R06_8'
    DECLARE @R06_9 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_9 OUT, 'R06_9'
    DECLARE @R06_10 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_10 OUT, 'R06_10'
    DECLARE @R06_11 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_11 OUT, 'R06_11'
    DECLARE @R06_12 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_12 OUT, 'R06_12'
    DECLARE @R06_13_nosaukums nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R06_13_nosaukums OUT, 'R06_13_nosaukums'
    DECLARE @R06_13 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_13 OUT, 'R06_13'
    DECLARE @R06_14_nosaukums nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R06_14_nosaukums OUT, 'R06_14_nosaukums'
    DECLARE @R06_14 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R06_14 OUT, 'R06_14'
    DECLARE @R07 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R07 OUT, 'R07'
    DECLARE @R08 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R08 OUT, 'R08'
    DECLARE @R09_0_4 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R09_0_4 OUT, 'R09_0_4'
    DECLARE @R9_1 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R9_1 OUT, 'R9_1'
    DECLARE @Summa int
    EXEC sp_OAMethod @jResp, 'IntOf', @Summa OUT, 'Summa'
    DECLARE @R09ProcentuLikme int
    EXEC sp_OAMethod @jResp, 'IntOf', @R09ProcentuLikme OUT, 'R09ProcentuLikme'
    DECLARE @SummaNeieklauj int
    EXEC sp_OAMethod @jResp, 'IntOf', @SummaNeieklauj OUT, 'SummaNeieklauj'
    DECLARE @SummaIeklauj nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @SummaIeklauj OUT, 'SummaIekļauj'
    DECLARE @R10 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R10 OUT, 'R10'
    DECLARE @R11 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R11 OUT, 'R11'
    DECLARE @R12 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R12 OUT, 'R12'
    DECLARE @R13 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R13 OUT, 'R13'
    DECLARE @R14 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R14 OUT, 'R14'
    DECLARE @R15 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R15 OUT, 'R15'
    DECLARE @R16 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R16 OUT, 'R16'
    DECLARE @R17 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R17 OUT, 'R17'
    DECLARE @R18 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R18 OUT, 'R18'
    DECLARE @R19 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R19 OUT, 'R19'
    DECLARE @R20 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R20 OUT, 'R20'
    DECLARE @R21 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R21 OUT, 'R21'
    DECLARE @R22 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R22 OUT, 'R22'
    DECLARE @R23 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R23 OUT, 'R23'
    DECLARE @R24 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R24 OUT, 'R24'
    DECLARE @R25 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R25 OUT, 'R25'
    DECLARE @R25_1_nosaukums nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25_1_nosaukums OUT, 'R25_1_nosaukums'
    DECLARE @R25_1 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R25_1 OUT, 'R25_1'
    DECLARE @R25_2_nosaukums nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25_2_nosaukums OUT, 'R25_2_nosaukums'
    DECLARE @R25_2 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R25_2 OUT, 'R25_2'
    DECLARE @R25_3_nosaukums nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R25_3_nosaukums OUT, 'R25_3_nosaukums'
    DECLARE @R25_3 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R25_3 OUT, 'R25_3'
    DECLARE @R26 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R26 OUT, 'R26'
    DECLARE @R27 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R27 OUT, 'R27'
    DECLARE @R27_1 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R27_1 OUT, 'R27_1'
    DECLARE @R27_2 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R27_2 OUT, 'R27_2'
    DECLARE @R27_3 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R27_3 OUT, 'R27_3'
    DECLARE @R27_4 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R27_4 OUT, 'R27_4'
    DECLARE @R27_5_nosaukums nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @R27_5_nosaukums OUT, 'R27_5_nosaukums'
    DECLARE @R27_5 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R27_5 OUT, 'R27_5'
    DECLARE @R28 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R28 OUT, 'R28'
    DECLARE @R28_1 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R28_1 OUT, 'R28_1'
    DECLARE @R28_2 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R28_2 OUT, 'R28_2'
    DECLARE @R29 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R29 OUT, 'R29'
    DECLARE @R30 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R30 OUT, 'R30'
    DECLARE @R31 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R31 OUT, 'R31'
    DECLARE @R31_1 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R31_1 OUT, 'R31_1'
    DECLARE @R31_2 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R31_2 OUT, 'R31_2'
    DECLARE @R32 int
    EXEC sp_OAMethod @jResp, 'IntOf', @R32 OUT, 'R32'
    DECLARE @Id int
    EXEC sp_OAMethod @jResp, 'IntOf', @Id OUT, 'Id'
    DECLARE @UID nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UID OUT, 'UID'
    DECLARE @NmrKods nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @NmrKods OUT, 'NmrKods'
    DECLARE @Precizejums int
    EXEC sp_OAMethod @jResp, 'BoolOf', @Precizejums OUT, 'Precizejums'
    DECLARE @PrecizejamaisDokuments int
    EXEC sp_OAMethod @jResp, 'IntOf', @PrecizejamaisDokuments OUT, 'PrecizejamaisDokuments'
    DECLARE @PrecizejumaPamatojums nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @PrecizejumaPamatojums OUT, 'PrecizejumaPamatojums'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Tab1_1'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @KorekcijaReorganizacijaNmrKods OUT, 'Tab1_1[i].KorekcijaReorganizacijaNmrKods'
        EXEC sp_OAMethod @jResp, 'StringOf', @KorekcijaCitiIemesli OUT, 'Tab1_1[i].KorekcijaCitiIemesli'
        EXEC sp_OAMethod @jResp, 'IntOf', @PelnaNesadalita OUT, 'Tab1_1[i].PelnaNesadalita'
        EXEC sp_OAMethod @jResp, 'IntOf', @Samazina OUT, 'Tab1_1[i].Samazina'
        EXEC sp_OAMethod @jResp, 'BoolOf', @KorekcijaLabosana OUT, 'Tab1_1[i].KorekcijaLabosana'
        EXEC sp_OAMethod @jResp, 'IntOf', @Korekcija OUT, 'Tab1_1[i].Korekcija'
        EXEC sp_OAMethod @jResp, 'StringOf', @KorekcijaPamatojums OUT, 'Tab1_1[i].KorekcijaPamatojums'
        EXEC sp_OAMethod @jResp, 'IntOf', @PelnaDividendes OUT, 'Tab1_1[i].PelnaDividendes'
        EXEC sp_OAMethod @jResp, 'IntOf', @Paradi OUT, 'Tab1_1[i].Paradi'
        EXEC sp_OAMethod @jResp, 'IntOf', @Aizdevums OUT, 'Tab1_1[i].Aizdevums'
        EXEC sp_OAMethod @jResp, 'IntOf', @PelnaSadalisanai OUT, 'Tab1_1[i].PelnaSadalisanai'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Tab1_2'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @ZaudejumiReorganizacijaNmrKods OUT, 'Tab1_2[i].ZaudejumiReorganizacijaNmrKods'
        EXEC sp_OAMethod @jResp, 'IntOf', @ZaudejumiPrevious OUT, 'Tab1_2[i].ZaudejumiPrevious'
        EXEC sp_OAMethod @jResp, 'BoolOf', @ZaudejumiLabosana OUT, 'Tab1_2[i].ZaudejumiLabosana'
        EXEC sp_OAMethod @jResp, 'IntOf', @Zaudejumi OUT, 'Tab1_2[i].Zaudejumi'
        EXEC sp_OAMethod @jResp, 'StringOf', @ZaudejumiPamatojums OUT, 'Tab1_2[i].ZaudejumiPamatojums'
        EXEC sp_OAMethod @jResp, 'IntOf', @Samazinats OUT, 'Tab1_2[i].Samazinats'
        EXEC sp_OAMethod @jResp, 'IntOf', @Parnests OUT, 'Tab1_2[i].Parnests'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Tab1_3'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @UzkrajumsReorganizacijaNmrKods OUT, 'Tab1_3[i].UzkrajumsReorganizacijaNmrKods'
        EXEC sp_OAMethod @jResp, 'IntOf', @UzkrajumsPrevious OUT, 'Tab1_3[i].UzkrajumsPrevious'
        EXEC sp_OAMethod @jResp, 'BoolOf', @UzkrajumsLabosana OUT, 'Tab1_3[i].UzkrajumsLabosana'
        EXEC sp_OAMethod @jResp, 'IntOf', @Uzkrajums OUT, 'Tab1_3[i].Uzkrajums'
        EXEC sp_OAMethod @jResp, 'StringOf', @UzkrajumsPamatojums OUT, 'Tab1_3[i].UzkrajumsPamatojums'
        EXEC sp_OAMethod @jResp, 'IntOf', @Samazinats OUT, 'Tab1_3[i].Samazinats'
        EXEC sp_OAMethod @jResp, 'IntOf', @Parnests OUT, 'Tab1_3[i].Parnests'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Tab02'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @PeriodsNo OUT, 'Tab02[i].PeriodsNo'
        EXEC sp_OAMethod @jResp, 'StringOf', @PeriodsLidz OUT, 'Tab02[i].PeriodsLidz'
        EXEC sp_OAMethod @jResp, 'StringOf', @RegNr OUT, 'Tab02[i].RegNr'
        EXEC sp_OAMethod @jResp, 'StringOf', @Nosaukums OUT, 'Tab02[i].Nosaukums'
        EXEC sp_OAMethod @jResp, 'IntOf', @Sanemts OUT, 'Tab02[i].Sanemts'
        EXEC sp_OAMethod @jResp, 'StringOf', @Valsts OUT, 'Tab02[i].Valsts'
        EXEC sp_OAMethod @jResp, 'IntOf', @SamazinatsIzmaksatas OUT, 'Tab02[i].SamazinatsIzmaksatas'
        EXEC sp_OAMethod @jResp, 'IntOf', @SamazinatsNodoklis OUT, 'Tab02[i].SamazinatsNodoklis'
        EXEC sp_OAMethod @jResp, 'IntOf', @Parnests OUT, 'Tab02[i].Parnests'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Tab05_1'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @PeriodsNo OUT, 'Tab05_1[i].PeriodsNo'
        EXEC sp_OAMethod @jResp, 'StringOf', @PeriodsLidz OUT, 'Tab05_1[i].PeriodsLidz'
        EXEC sp_OAMethod @jResp, 'IntOf', @Palielinajums OUT, 'Tab05_1[i].Palielinajums'
        EXEC sp_OAMethod @jResp, 'IntOf', @Samazinajums OUT, 'Tab05_1[i].Samazinajums'
        EXEC sp_OAMethod @jResp, 'IntOf', @PalielinajumsPelna OUT, 'Tab05_1[i].PalielinajumsPelna'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Tab06_2'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @PeriodsNo OUT, 'Tab06_2[i].PeriodsNo'
        EXEC sp_OAMethod @jResp, 'StringOf', @PeriodsLidz OUT, 'Tab06_2[i].PeriodsLidz'
        EXEC sp_OAMethod @jResp, 'IntOf', @Summa OUT, 'Tab06_2[i].Summa'
        EXEC sp_OAMethod @jResp, 'IntOf', @Menesi OUT, 'Tab06_2[i].Menesi'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Tab08'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @PeriodsNo OUT, 'Tab08[i].PeriodsNo'
        EXEC sp_OAMethod @jResp, 'StringOf', @PeriodsLidz OUT, 'Tab08[i].PeriodsLidz'
        EXEC sp_OAMethod @jResp, 'StringOf', @Valsts OUT, 'Tab08[i].Valsts'
        EXEC sp_OAMethod @jResp, 'IntOf', @Samaksats OUT, 'Tab08[i].Samaksats'
        EXEC sp_OAMethod @jResp, 'IntOf', @Samazinats OUT, 'Tab08[i].Samazinats'
        EXEC sp_OAMethod @jResp, 'IntOf', @Parnests OUT, 'Tab08[i].Parnests'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Tab09_1'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @RegNr OUT, 'Tab09_1[i].RegNr'
        EXEC sp_OAMethod @jResp, 'StringOf', @Nosaukums OUT, 'Tab09_1[i].Nosaukums'
        EXEC sp_OAMethod @jResp, 'StringOf', @Valsts OUT, 'Tab09_1[i].Valsts'
        EXEC sp_OAMethod @jResp, 'StringOf', @Datums OUT, 'Tab09_1[i].Datums'
        EXEC sp_OAMethod @jResp, 'IntOf', @Summa OUT, 'Tab09_1[i].Summa'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Tab15'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @IegadesDatums OUT, 'Tab15[i].IegadesDatums'
        EXEC sp_OAMethod @jResp, 'StringOf', @AtsavinasanasDatums OUT, 'Tab15[i].AtsavinasanasDatums'
        EXEC sp_OAMethod @jResp, 'IntOf', @IegadesVertiba OUT, 'Tab15[i].IegadesVertiba'
        EXEC sp_OAMethod @jResp, 'IntOf', @AtsavinasanasVertiba OUT, 'Tab15[i].AtsavinasanasVertiba'
        EXEC sp_OAMethod @jResp, 'IntOf', @Menesi OUT, 'Tab15[i].Menesi'
        EXEC sp_OAMethod @jResp, 'IntOf', @IenakumsBaze OUT, 'Tab15[i].IenakumsBaze'
        EXEC sp_OAMethod @jResp, 'IntOf', @IenakumsParnests OUT, 'Tab15[i].IenakumsParnests'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Tab16'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'IntOf', @Summa OUT, 'Tab16[i].Summa'
        EXEC sp_OAMethod @jResp, 'StringOf', @SummaReorganizacijaNmrKods OUT, 'Tab16[i].SummaReorganizacijaNmrKods'
        EXEC sp_OAMethod @jResp, 'IntOf', @SummaPrevious OUT, 'Tab16[i].SummaPrevious'
        EXEC sp_OAMethod @jResp, 'BoolOf', @SummaLabosana OUT, 'Tab16[i].SummaLabosana'
        EXEC sp_OAMethod @jResp, 'StringOf', @SummaPamatojums OUT, 'Tab16[i].SummaPamatojums'
        EXEC sp_OAMethod @jResp, 'IntOf', @Samazinats OUT, 'Tab16[i].Samazinats'
        EXEC sp_OAMethod @jResp, 'IntOf', @Parnests OUT, 'Tab16[i].Parnests'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Tab31_2'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @PeriodsNo OUT, 'Tab31_2[i].PeriodsNo'
        EXEC sp_OAMethod @jResp, 'StringOf', @PeriodsLidz OUT, 'Tab31_2[i].PeriodsLidz'
        EXEC sp_OAMethod @jResp, 'IntOf', @Summa OUT, 'Tab31_2[i].Summa'
        EXEC sp_OAMethod @jResp, 'IntOf', @NodoklaSumma OUT, 'Tab31_2[i].NodoklaSumma'
        EXEC sp_OAMethod @jResp, 'IntOf', @AtmaksataAtgutaSumma OUT, 'Tab31_2[i].AtmaksataAtgutaSumma'
        EXEC sp_OAMethod @jResp, 'IntOf', @Parmaksa OUT, 'Tab31_2[i].Parmaksa'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Pielikumi'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'Pielikumi[i].Fails.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Komentars OUT, 'Pielikumi[i].Komentars'
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -X GET
	-H "Accept: application/json"
https://eds.vid.gov.lv/api/doc/uienv5/:id

Postman Collection Item JSON

{
  "name": "Dokuments \"Uzņēmuma ienākuma nodokļa deklarācija\".",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/doc/uienv5/:id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "doc",
        "uienv5",
        ":id"
      ],
      "variable": [
        {
          "key": "id",
          "value": "25210683",
          "description": "(Required) Dokumenta id."
        }
      ]
    }
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/uienv5/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "uienv5",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"ParskNo\": \"2000-01-31T00:00:00\",\n  \"ParskLidz\": \"2000-01-31T00:00:00\",\n  \"ParskPerReorganizacijaNmrKods\": \"Ut\",\n  \"TaksGads\": 49662660,\n  \"IeprZaudejumi\": true,\n  \"R01\": 2491915,\n  \"ParskNoPrevious\": \"2000-01-31T00:00:00\",\n  \"ParskLidzPrevious\": \"2000-01-31T00:00:00\",\n  \"ParskPerLabosana\": true,\n  \"ParskPerPamatojums\": \"culpa in\",\n  \"TaksMenesis\": 7,\n  \"TaksCeturksnis\": 3,\n  \"PedejaDeklaracija\": true,\n  \"TransfercenasPazime\": true,\n  \"MinNodoklis\": false,\n  \"Pamatojums\": \"tempor labore consectetur\",\n  \"Epasts\": \"ut deserunt\",\n  \"Talrunis\": \"m\",\n  \"Sagatavotajs\": \"veniam dolore Ut exercitation\",\n  \"IzmaksatasUnNosacitasDividendes\": 56840859,\n  \"NodoklisArvalstis\": true,\n  \"IenakumiNoAkcijuAtsavinasanas\": false,\n  \"SamazinajusiesUzkrajumuSumma\": false,\n  \"IrVeiktiZiedojumi\": 32690365,\n  \"IzmaksasNavNodoklis\": 78759160,\n  \"NodoklaParmaksa\": 37491534,\n  \"R02\": 3791516,\n  \"R03\": -29855001,\n  \"R04\": 74337266,\n  \"R05\": -30713137,\n  \"R05_1\": -22917413,\n  \"R05_2\": 9339974,\n  \"R05_3\": 74966232,\n  \"R06\": 25418413,\n  \"R06_1\": -6353053,\n  \"R06_2\": 77930312,\n  \"DebitoraParadaUzkrajums\": true,\n  \"R06_3\": 8611662,\n  \"R06_4\": 47033133,\n  \"R06_5\": -13232991,\n  \"R06_5_1\": -77059376,\n  \"R06_5_2\": 95050440,\n  \"R06_6\": 69862,\n  \"R06_7\": -95547265,\n  \"R06_8\": 13491051,\n  \"R06_9\": -39802865,\n  \"R06_10\": 49260217,\n  \"R06_11\": -75525838,\n  \"R06_12\": -728968,\n  \"R06_13_nosaukums\": \"ut ut tempor\",\n  \"R06_13\": 27165990,\n  \"R06_14_nosaukums\": \"aliquip amet\",\n  \"R06_14\": 39786896,\n  \"R07\": 91079648,\n  \"R08\": 7455573,\n  \"R09_0_4\": -25877701,\n  \"R9_1\": -16891571,\n  \"Summa\": -24159722,\n  \"R09ProcentuLikme\": 22297598,\n  \"SummaNeieklauj\": 72979597,\n  \"SummaIekļauj\": 93267916.40421143,\n  \"R10\": -29899198,\n  \"R11\": 87306328,\n  \"R12\": 40223250,\n  \"R13\": -62028791,\n  \"R14\": 64171299,\n  \"R15\": 84760618,\n  \"R16\": 86429907,\n  \"R17\": -39714954,\n  \"R18\": 71976223,\n  \"R19\": 54326373,\n  \"R20\": 27511170,\n  \"R21\": 88300326,\n  \"R22\": 95229689,\n  \"R23\": 841177,\n  \"R24\": 56018113,\n  \"R25\": 12618386,\n  \"R25_1_nosaukums\": \"consectetur nulla minim ut\",\n  \"R25_1\": 2858412,\n  \"R25_2_nosaukums\": \"occaecat\",\n  \"R25_2\": 38083678,\n  \"R25_3_nosaukums\": \"aliqua irure non dolore in\",\n  \"R25_3\": 59513786,\n  \"R26\": -274360,\n  \"R27\": -88406374,\n  \"R27_1\": 7209600,\n  \"R27_2\": 33389130,\n  \"R27_3\": -18610069,\n  \"R27_4\": -68295528,\n  \"R27_5_nosaukums\": \"et nisi ad\",\n  \"R27_5\": -84390190,\n  \"R28\": -80264587,\n  \"R28_1\": -75450217,\n  \"R28_2\": -8855644,\n  \"R29\": 85266425,\n  \"R30\": 603716,\n  \"R31\": -84570375,\n  \"R31_1\": 92638125,\n  \"R31_2\": -80075423,\n  \"R32\": -54183173,\n  \"Tab1_1\": [\n    {\n      \"KorekcijaReorganizacijaNmrKods\": \"deserun\",\n      \"KorekcijaCitiIemesli\": \"irure Ut dolore id\",\n      \"PelnaNesadalita\": -64443600,\n      \"Samazina\": 10032478,\n      \"KorekcijaLabosana\": true,\n      \"Korekcija\": 13794994,\n      \"KorekcijaPamatojums\": \"dolore of\",\n      \"PelnaDividendes\": 60661372,\n      \"Paradi\": -81014392,\n      \"Aizdevums\": -58380698,\n      \"PelnaSadalisanai\": 54711627\n    },\n    {\n      \"KorekcijaReorganizacijaNmrKods\": \"nulla\",\n      \"KorekcijaCitiIemesli\": \"nostrud Lorem id\",\n      \"PelnaNesadalita\": -40537503,\n      \"Samazina\": -21930951,\n      \"KorekcijaLabosana\": true,\n      \"Korekcija\": -30045653,\n      \"KorekcijaPamatojums\": \"cillum\",\n      \"PelnaDividendes\": -53228560,\n      \"Paradi\": -29699440,\n      \"Aizdevums\": 48321059,\n      \"PelnaSadalisanai\": 96811249\n    }\n  ],\n  \"Tab1_2\": [\n    {\n      \"ZaudejumiReorganizacijaNmrKods\": \"dol\",\n      \"ZaudejumiPrevious\": 93584304,\n      \"ZaudejumiLabosana\": true,\n      \"Zaudejumi\": 60086365,\n      \"ZaudejumiPamatojums\": \"enim irure incididunt laboris\",\n      \"Samazinats\": 44190215,\n      \"Parnests\": 74848476\n    },\n    {\n      \"ZaudejumiReorganizacijaNmrKods\": \"aliquip si\",\n      \"ZaudejumiPrevious\": 2689899,\n      \"ZaudejumiLabosana\": true,\n      \"Zaudejumi\": -91154224,\n      \"ZaudejumiPamatojums\": \"sit nostrud\",\n      \"Samazinats\": -7089047,\n      \"Parnests\": 16437898\n    }\n  ],\n  \"Tab1_3\": [\n    {\n      \"UzkrajumsReorganizacijaNmrKods\": \"ve\",\n      \"UzkrajumsPrevious\": 83413550,\n      \"UzkrajumsLabosana\": true,\n      \"Uzkrajums\": -69994949,\n      \"UzkrajumsPamatojums\": \"ullamco incididunt nisi\",\n      \"Samazinats\": 79958540,\n      \"Parnests\": 37820337\n    },\n    {\n      \"UzkrajumsReorganizacijaNmrKods\": \"dolo\",\n      \"UzkrajumsPrevious\": 74562023,\n      \"UzkrajumsLabosana\": false,\n      \"Uzkrajums\": -51602661,\n      \"UzkrajumsPamatojums\": \"et proident nulla aute commodo\",\n      \"Samazinats\": -4961309,\n      \"Parnests\": 27916300\n    }\n  ],\n  \"Tab02\": [\n    {\n      \"PeriodsNo\": \"2000-01-31T00:00:00\",\n      \"PeriodsLidz\": \"2000-01-31T00:00:00\",\n      \"RegNr\": \"sunt ad\",\n      \"Nosaukums\": \"aliquip nostrud do\",\n      \"Sanemts\": -5562327,\n      \"Valsts\": \"\",\n      \"SamazinatsIzmaksatas\": -32846511,\n      \"SamazinatsNodoklis\": 2405851,\n      \"Parnests\": -56393371\n    },\n    {\n      \"PeriodsNo\": \"2000-01-31T00:00:00\",\n      \"PeriodsLidz\": \"2000-01-31T00:00:00\",\n      \"RegNr\": \"id\",\n      \"Nosaukums\": \"ea aliquip\",\n      \"Sanemts\": 75625645,\n      \"Valsts\": \"n\",\n      \"SamazinatsIzmaksatas\": 70020020,\n      \"SamazinatsNodoklis\": -78548637,\n      \"Parnests\": 14030356\n    }\n  ],\n  \"Tab05_1\": [\n    {\n      \"PeriodsNo\": \"2000-01-31T00:00:00\",\n      \"PeriodsLidz\": \"2000-01-31T00:00:00\",\n      \"Palielinajums\": -53685313,\n      \"Samazinajums\": -73721918,\n      \"PalielinajumsPelna\": -88908178\n    },\n    {\n      \"PeriodsNo\": \"2000-01-31T00:00:00\",\n      \"PeriodsLidz\": \"2000-01-31T00:00:00\",\n      \"Palielinajums\": -80303393,\n      \"Samazinajums\": 69314708,\n      \"PalielinajumsPelna\": -26201001\n    }\n  ],\n  \"Tab06_2\": [\n    {\n      \"PeriodsNo\": \"2000-01-31T00:00:00\",\n      \"PeriodsLidz\": \"2000-01-31T00:00:00\",\n      \"Summa\": 61658935,\n      \"Menesi\": -99483417\n    },\n    {\n      \"PeriodsNo\": \"2000-01-31T00:00:00\",\n      \"PeriodsLidz\": \"2000-01-31T00:00:00\",\n      \"Summa\": -38968258,\n      \"Menesi\": -17845204\n    }\n  ],\n  \"Tab08\": [\n    {\n      \"PeriodsNo\": \"2000-01-31T00:00:00\",\n      \"PeriodsLidz\": \"2000-01-31T00:00:00\",\n      \"Valsts\": \"m\",\n      \"Samaksats\": -20746780,\n      \"Samazinats\": 51916300,\n      \"Parnests\": 68207219\n    },\n    {\n      \"PeriodsNo\": \"2000-01-31T00:00:00\",\n      \"PeriodsLidz\": \"2000-01-31T00:00:00\",\n      \"Valsts\": \"id\",\n      \"Samaksats\": -13437758,\n      \"Samazinats\": -41724301,\n      \"Parnests\": 20702642\n    }\n  ],\n  \"Tab09_1\": [\n    {\n      \"RegNr\": \"cupidatat sit non irure\",\n      \"Nosaukums\": \"ad nisi reprehenderit\",\n      \"Valsts\": \"\",\n      \"Datums\": \"2000-01-31T00:00:00\",\n      \"Summa\": 20213549\n    },\n    {\n      \"RegNr\": \"do dolore sint\",\n      \"Nosaukums\": \"quis non\",\n      \"Valsts\": \"ut\",\n      \"Datums\": \"2000-01-31T00:00:00\",\n      \"Summa\": 60468532\n    }\n  ],\n  \"Tab15\": [\n    {\n      \"IegadesDatums\": \"2000-01-31T00:00:00\",\n      \"AtsavinasanasDatums\": \"2000-01-31T00:00:00\",\n      \"IegadesVertiba\": -58543462,\n      \"AtsavinasanasVertiba\": 62726723,\n      \"Menesi\": -58943961,\n      \"IenakumsBaze\": -45387925,\n      \"IenakumsParnests\": 53964786\n    },\n    {\n      \"IegadesDatums\": \"2000-01-31T00:00:00\",\n      \"AtsavinasanasDatums\": \"2000-01-31T00:00:00\",\n      \"IegadesVertiba\": 31642925,\n      \"AtsavinasanasVertiba\": 23986045,\n      \"Menesi\": 11516768,\n      \"IenakumsBaze\": 33904817,\n      \"IenakumsParnests\": 54994936\n    }\n  ],\n  \"Tab16\": [\n    {\n      \"Summa\": 92384867,\n      \"SummaReorganizacijaNmrKods\": \"amet de\",\n      \"SummaPrevious\": -14104548,\n      \"SummaLabosana\": true,\n      \"SummaPamatojums\": \"ullamco occaecat tempor ea\",\n      \"Samazinats\": 43463305,\n      \"Parnests\": 21487521\n    },\n    {\n      \"Summa\": -18350646,\n      \"SummaReorganizacijaNmrKods\": \"magna o\",\n      \"SummaPrevious\": -34149691,\n      \"SummaLabosana\": true,\n      \"SummaPamatojums\": \"nisi dolore\",\n      \"Samazinats\": -35735489,\n      \"Parnests\": -24724843\n    }\n  ],\n  \"Tab31_2\": [\n    {\n      \"PeriodsNo\": \"2000-01-31T00:00:00\",\n      \"PeriodsLidz\": \"2000-01-31T00:00:00\",\n      \"Summa\": -47625962,\n      \"NodoklaSumma\": 93123139,\n      \"AtmaksataAtgutaSumma\": 52266513,\n      \"Parmaksa\": 85154944\n    },\n    {\n      \"PeriodsNo\": \"2000-01-31T00:00:00\",\n      \"PeriodsLidz\": \"2000-01-31T00:00:00\",\n      \"Summa\": -97498178,\n      \"NodoklaSumma\": -6580861,\n      \"AtmaksataAtgutaSumma\": 14375921,\n      \"Parmaksa\": 17401836\n    }\n  ],\n  \"Pielikumi\": [\n    {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": \"ullamco cupidatat aliquip\"\n    },\n    {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": \"occaecat Ut\"\n    }\n  ],\n  \"Id\": -66514693,\n  \"UID\": \"adipisicing dolore esse\",\n  \"NmrKods\": \"proident \",\n  \"Precizejums\": false,\n  \"PrecizejamaisDokuments\": 90049699,\n  \"PrecizejumaPamatojums\": \"in amet aliqua\"\n}"
    },
    {
      "name": "Lietotājs nav autentificēts.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/uienv5/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "uienv5",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Dokuments neeksistē vai lietotājam nav tiesību.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/uienv5/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "uienv5",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Pārsniegts izsaukumu skaita ierobežojums.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/uienv5/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "uienv5",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}