Chilkat Online Tools

DataFlex / EDS API / Dokuments "Naftas produktu akcīzes nodokļa deklarācija".

Back to Collection Items

Use ChilkatAx-win32.pkg

Procedure Test
    Handle hoHttp
    Boolean iSuccess
    Variant vSbResponseBody
    Handle hoSbResponseBody
    Handle hoJResp
    Integer iRespStatusCode
    String sValue
    String sEpasts
    String sTalrunis
    Integer iGads
    Integer iMenesis
    String sDatums
    String sMaksTerm
    String sNmStatuss
    String sR08
    String sR09
    String sSagatavotajs
    String sK1
    String sK2
    String sK3
    String sK4
    String sK5
    String sK6
    String sK7
    String sK8
    String sK9
    String sK10
    String sK11
    String sK12
    String sK13
    String sK14
    String sR11K1
    String sR11K2
    String sR11K3
    String sR11K4
    String sR11K5
    String sR11K6
    String sR11K7
    String sR11K8
    String sR11K9
    String sR11K10
    String sR11K11
    String sR11K12
    String sR11K13
    String sR11K14
    String sR12K1
    String sR12K2
    String sR12K3
    String sR12K4
    String sR12K5
    String sR12K6
    String sR12K7
    String sR12K8
    String sR12K9
    String sR12K10
    String sR12K11
    String sR12K12
    String sR12K13
    String sR12K14
    String sR13K1
    String sR13K2
    String sR13K3
    String sR13K4
    String sR13K5
    String sR13K6
    String sR13K7
    String sR13K8
    String sR13K9
    String sR13K10
    String sR13K11
    String sR13K12
    String sR13K13
    String sR13K14
    String sR14K1
    String sR14K2
    String sR14K3
    String sR14K4
    String sR14K5
    String sR14K6
    String sR14K7
    String sR14K8
    String sR14K9
    String sR14K10
    String sR14K11
    String sR14K12
    String sR14K13
    String sR14K14
    String sR15K1
    String sR15K2
    String sR15K3
    String sR15K4
    String sR15K5
    String sR15K6
    String sR15K7
    String sR15K8
    String sR15K9
    String sR15K10
    String sR15K11
    String sR15K12
    String sR15K13
    String sR15K14
    String sR16K1
    String sR16K2
    String sR16K3
    String sR16K4
    String sR16K5
    String sR16K6
    String sR16K7
    String sR16K8
    String sR16K9
    String sR16K10
    String sR16K11
    String sR16K12
    String sR16K13
    String sR16K14
    String sR17K1
    String sR17K2
    String sR17K3
    String sR17K4
    String sR17K5
    String sR17K6
    String sR17K7
    String sR17K8
    String sR17K9
    String sR17K10
    String sR17K11
    String sR17K12
    String sR17K13
    String sR17K14
    String sR18K1
    String sR18K2
    String sR18K3
    String sR18K4
    String sR18K5
    String sR18K6
    String sR18K7
    String sR18K8
    String sR18K9
    String sR18K10
    String sR18K11
    String sR18K12
    String sR18K13
    String sR18K14
    String sR19K1
    String sR19K2
    String sR19K3
    String sR19K4
    String sR19K5
    String sR19K6
    String sR19K7
    String sR19K8
    String sR19K9
    String sR19K10
    String sR19K11
    String sR19K12
    String sR19K13
    String sR19K14
    String sR21K1
    String sR21K2
    String sR21K3
    String sR21K4
    String sR21K5
    String sR21K6
    String sR21K7
    String sR21K8
    String sR21K9
    String sR21K10
    String sR21K11
    String sR21K12
    String sR21K13
    String sR21K14
    String sR22K1
    String sR22K2
    String sR22K3
    String sR22K4
    String sR22K5
    String sR22K6
    String sR22K7
    String sR22K8
    String sR22K9
    String sR22K10
    String sR22K11
    String sR22K12
    String sR22K13
    String sR22K14
    String sR23K1
    String sR23K2
    String sR23K3
    String sR23K4
    String sR23K5
    String sR23K6
    String sR23K7
    String sR23K8
    String sR23K9
    String sR23K10
    String sR23K11
    String sR23K12
    String sR23K13
    String sR23K14
    String sR24K1
    String sR24K2
    String sR24K3
    String sR24K4
    String sR24K5
    String sR24K6
    String sR24K7
    String sR24K8
    String sR24K9
    String sR24K10
    String sR24K11
    String sR24K12
    String sR24K13
    String sR24K14
    String sR25K1
    String sR25K2
    String sR25K3
    String sR25K4
    String sR25K5
    String sR25K6
    String sR25K7
    String sR25K8
    String sR25K9
    String sR25K10
    String sR25K11
    String sR25K12
    String sR25K13
    String sR25K14
    String sR26K1
    String sR26K2
    String sR26K3
    String sR26K4
    String sR26K5
    String sR26K6
    String sR26K7
    String sR26K8
    String sR26K9
    String sR26K10
    String sR26K11
    String sR26K12
    String sR26K13
    String sR26K14
    String sR28K1
    String sR28K2
    String sR28K3
    String sR28K4
    String sR28K5
    String sR28K6
    String sR28K7
    String sR28K8
    String sR28K9
    String sR28K10
    String sR28K11
    String sR28K12
    String sR28K13
    String sR28K14
    String sR29K1
    String sR29K2
    String sR29K3
    String sR29K4
    String sR29K5
    String sR29K6
    String sR29K7
    String sR29K8
    String sR29K9
    String sR29K10
    String sR29K11
    String sR29K12
    String sR29K13
    String sR29K14
    String sR30K1
    String sR30K2
    String sR30K3
    String sR30K4
    String sR30K5
    String sR30K6
    String sR30K7
    String sR30K8
    String sR30K9
    String sR30K10
    String sR30K11
    String sR30K12
    String sR30K13
    String sR30K14
    String sR32K1
    String sR32K2
    String sR32K3
    String sR32K4
    String sR32K5
    String sR32K6
    String sR32K7
    String sR32K8
    String sR32K9
    String sR32K10
    String sR32K11
    String sR32K12
    String sR32K13
    String sR32K14
    String sR33K1
    String sR33K2
    String sR33K3
    String sR33K4
    String sR33K5
    String sR33K6
    String sR33K7
    String sR33K8
    String sR33K9
    String sR33K10
    String sR33K11
    String sR33K12
    String sR33K13
    String sR33K14
    String sR34K1
    String sR34K2
    String sR34K3
    String sR34K4
    String sR34K5
    String sR34K6
    String sR34K7
    String sR34K8
    String sR34K9
    String sR34K10
    String sR34K11
    String sR34K12
    String sR34K13
    String sR34K14
    String sR35K1
    String sR35K2
    String sR35K3
    String sR35K4
    String sR35K5
    String sR35K6
    String sR35K7
    String sR35K8
    String sR35K9
    String sR35K10
    String sR35K11
    String sR35K12
    String sR35K13
    String sR35K14
    String sValue
    String sKomentarsValue
    String sFailsValue
    Integer iId
    String sUID
    String sNmrKods
    Boolean iPrecizejums
    Integer iPrecizejamaisDokuments
    String sPrecizejumaPamatojums
    Integer i
    Integer iCount_i
    String sTemp1

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    Get Create (RefClass(cComChilkatHttp)) To hoHttp
    If (Not(IsComObjectCreated(hoHttp))) Begin
        Send CreateComObject of hoHttp
    End

    Send ComSetRequestHeader To hoHttp "Accept" "application/json"

    Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
    If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
        Send CreateComObject of hoSbResponseBody
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComQuickGetSb Of hoHttp "https://eds.vid.gov.lv/api/doc/annv4/:id" vSbResponseBody To iSuccess
    If (iSuccess = False) Begin
        Get ComLastErrorText Of hoHttp To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
    If (Not(IsComObjectCreated(hoJResp))) Begin
        Send CreateComObject of hoJResp
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess
    Set ComEmitCompact Of hoJResp To False

    Showln "Response Body:"
    Get ComEmit Of hoJResp To sTemp1
    Showln sTemp1

    Get ComLastStatus Of hoHttp To iRespStatusCode
    Showln "Response Status Code = " iRespStatusCode
    If (iRespStatusCode >= 400) Begin
        Showln "Response Header:"
        Get ComLastHeader Of hoHttp To sTemp1
        Showln sTemp1
        Showln "Failed."
        Procedure_Return
    End

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

    // {
    //   "Epasts": "Lorem in eiusmod aliquip voluptate",
    //   "Talrunis": "non deserunt vol",
    //   "Gads": -82184631,
    //   "Menesis": 9,
    //   "Datums": "2000-01-31T00:00:00",
    //   "MaksTerm": "2000-01-31T00:00:00",
    //   "NmStatuss": "pariatur proident",
    //   "R08": "minim",
    //   "R09": "dolore sit velit mollit",
    //   "Sagatavotajs": "ipsum dolor non",
    //   "R10": {
    //     "K1": 16328653.724837586,
    //     "K2": -87950817.9898314,
    //     "K3": 3257414.3665181845,
    //     "K4": 2394689.2126417607,
    //     "K5": -24777365.814456195,
    //     "K6": 18770070.284489423,
    //     "K7": -91784300.62529133,
    //     "K8": 70422771.01527569,
    //     "K9": -61744581.7129465,
    //     "K10": 86719181.78426033,
    //     "K11": 68817542.37522736,
    //     "K12": 17738553.890762135,
    //     "K13": -62589633.93775363,
    //     "K14": -75021119.05898628
    //   },
    //   "R11": {
    //     "K1": -69769058.13043426,
    //     "K2": -22538375.37679124,
    //     "K3": 29341845.91991383,
    //     "K4": -34763994.10235254,
    //     "K5": 25905955.370100304,
    //     "K6": 35927187.79492253,
    //     "K7": 26232897.638250157,
    //     "K8": 45676818.95360184,
    //     "K9": -7741680.646063149,
    //     "K10": 12673528.015534341,
    //     "K11": -16997929.824192896,
    //     "K12": 76869640.18793342,
    //     "K13": 80234821.6924516,
    //     "K14": -66331290.35164833
    //   },
    //   "R12": {
    //     "K1": -87677419.0124578,
    //     "K2": 25420989.805896714,
    //     "K3": 55544761.99298918,
    //     "K4": -4520012.362582192,
    //     "K5": 49608714.00385019,
    //     "K6": -85684047.11885807,
    //     "K7": -14208737.808883637,
    //     "K8": -74685139.35987593,
    //     "K9": 75963902.07094994,
    //     "K10": 33059041.79335788,
    //     "K11": -30102683.49103278,
    //     "K12": 18919426.742815882,
    //     "K13": -48197777.87267841,
    //     "K14": 60477294.91038045
    //   },
    //   "R13": {
    //     "K1": 37996786.06479803,
    //     "K2": -79388460.0479906,
    //     "K3": -50691224.35651625,
    //     "K4": 49668907.75893873,
    //     "K5": -14662552.909173638,
    //     "K6": 7011946.461176023,
    //     "K7": 64045578.6923078,
    //     "K8": 85927610.18557975,
    //     "K9": 72242584.48766556,
    //     "K10": -9367338.82431446,
    //     "K11": 88407209.07040676,
    //     "K12": -82244194.18180972,
    //     "K13": -27869706.705521047,
    //     "K14": -37458512.05595736
    //   },
    //   "R14": {
    //     "K1": -82552340.35908301,
    //     "K2": -76986648.24431378,
    //     "K3": -14183588.083701432,
    //     "K4": -86590588.6036936,
    //     "K5": 81142943.85499617,
    //     "K6": 7373716.631371915,
    //     "K7": -41591381.47619949,
    //     "K8": 86831738.48671126,
    //     "K9": 29043101.68491344,
    //     "K10": -96306803.84246513,
    //     "K11": -39938170.19626902,
    //     "K12": 13214252.948196888,
    //     "K13": -53910787.287705466,
    //     "K14": 75890132.15710837
    //   },
    //   "R15": {
    //     "K1": 56218799.43265244,
    //     "K2": 17484511.11899309,
    //     "K3": 83931780.68462405,
    //     "K4": -77977080.83588928,
    //     "K5": -47522019.41539473,
    //     "K6": 93316753.27175727,
    //     "K7": 94091462.10675386,
    //     "K8": 42147080.01023099,
    //     "K9": -27120036.000980943,
    //     "K10": 3139036.4073375016,
    //     "K11": 74727534.62230012,
    //     "K12": -73090419.95923331,
    //     "K13": -85540072.87872797,
    //     "K14": 8788261.774200782
    //   },
    //   "R16": {
    //     "K1": 95844914.32977328,
    //     "K2": 47519667.90724692,
    //     "K3": 7728179.655423954,
    //     "K4": -8365360.586450025,
    //     "K5": 10599964.662404597,
    //     "K6": -21309629.48953536,
    //     "K7": 2050946.0627980828,
    //     "K8": -85178499.05269709,
    //     "K9": -46504773.23531632,
    //     "K10": 98167003.51412368,
    //     "K11": -60548282.585043676,
    //     "K12": -74085171.35319452,
    //     "K13": -58064063.25406552,
    //     "K14": 42650385.29950726
    //   },
    //   "R17": {
    //     "K1": 65775098.75594056,
    //     "K2": 30696291.135660708,
    //     "K3": -72830309.28755236,
    //     "K4": -96577791.29292314,
    //     "K5": 94802979.22747439,
    //     "K6": -65211786.726446785,
    //     "K7": -28678720.192400277,
    //     "K8": 4629496.269421324,
    //     "K9": 44472928.43451443,
    //     "K10": -37639559.097108364,
    //     "K11": -64463239.43126169,
    //     "K12": 43341913.32631683,
    //     "K13": 34870544.35076398,
    //     "K14": 91513218.17405257
    //   },
    //   "R18": {
    //     "K1": 34623946.292095006,
    //     "K2": -77341977.41821456,
    //     "K3": 88187647.13118777,
    //     "K4": 82828077.92357829,
    //     "K5": -89835481.16541749,
    //     "K6": -61223499.628719755,
    //     "K7": 12645700.801432997,
    //     "K8": 2158960.846409783,
    //     "K9": 79932087.35901889,
    //     "K10": 18599091.86527142,
    //     "K11": 47695563.875030875,
    //     "K12": -33424832.508073978,
    //     "K13": -99519925.48258577,
    //     "K14": 58261675.10968125
    //   },
    //   "R19": {
    //     "K1": -55629509.78202768,
    //     "K2": 94647221.01314664,
    //     "K3": -76028826.04196641,
    //     "K4": 65404013.02994433,
    //     "K5": -49660536.89266783,
    //     "K6": 25273326.973483324,
    //     "K7": 35955896.1050781,
    //     "K8": 11466690.643244743,
    //     "K9": -43277983.55096233,
    //     "K10": -67342785.60243192,
    //     "K11": 93988871.59945258,
    //     "K12": 93940750.65659192,
    //     "K13": -51361665.98857517,
    //     "K14": 78941139.35570145
    //   },
    //   "R21": {
    //     "K1": 27395240.943158686,
    //     "K2": 70606060.86312711,
    //     "K3": -22131413.5372535,
    //     "K4": 85377691.96456128,
    //     "K5": -69741292.71116145,
    //     "K6": -85059526.54666911,
    //     "K7": -24655423.400929302,
    //     "K8": 89254563.010488,
    //     "K9": 49150023.06885788,
    //     "K10": 23179391.624741584,
    //     "K11": 87865688.05695194,
    //     "K12": -2847786.0169280767,
    //     "K13": 91130827.18421376,
    //     "K14": 82068324.82837763
    //   },
    //   "R22": {
    //     "K1": -37953848.45602423,
    //     "K2": 65314700.50226021,
    //     "K3": 60856344.52899012,
    //     "K4": 66185966.26782459,
    //     "K5": -5512935.085172147,
    //     "K6": -99053516.1854766,
    //     "K7": 85592692.61948216,
    //     "K8": 73920831.61064419,
    //     "K9": 23010426.12183605,
    //     "K10": -31701684.100666896,
    //     "K11": 3047137.5906404555,
    //     "K12": -49302373.42979588,
    //     "K13": -25042474.251780033,
    //     "K14": -66006049.109234735
    //   },
    //   "R23": {
    //     "K1": -5767009.382611036,
    //     "K2": 95566182.27854589,
    //     "K3": 68731931.89284873,
    //     "K4": 41152961.15799323,
    //     "K5": -37691179.97197951,
    //     "K6": 37248019.4871507,
    //     "K7": -61783671.811570786,
    //     "K8": -65113835.56219079,
    //     "K9": 86137486.54255477,
    //     "K10": -97604917.38001269,
    //     "K11": 73425712.33905008,
    //     "K12": -59061705.795734555,
    //     "K13": -56881001.57020637,
    //     "K14": -47466125.92793769
    //   },
    //   "R24": {
    //     "K1": -64186291.216494285,
    //     "K2": -83305227.20933442,
    //     "K3": 53503641.04226798,
    //     "K4": -50656608.48282012,
    //     "K5": -25874959.899284855,
    //     "K6": -62644722.089890294,
    //     "K7": 63134394.523483545,
    //     "K8": -59453634.06175947,
    //     "K9": -31060326.300383955,
    //     "K10": -31153766.347998247,
    //     "K11": 89533822.61051491,
    //     "K12": -19243642.19083658,
    //     "K13": 94005029.76220295,
    //     "K14": 44516845.5056757
    //   },
    //   "R25": {
    //     "K1": 92770381.90924597,
    //     "K2": 11570001.736082822,
    //     "K3": -32699195.284047946,
    //     "K4": 47183646.989736915,
    //     "K5": -22710307.495794117,
    //     "K6": 75059937.70602837,
    //     "K7": -43894333.32359518,
    //     "K8": -46158982.57446141,
    //     "K9": -39621091.302581176,
    //     "K10": 66142672.7465778,
    //     "K11": -94763845.84140103,
    //     "K12": -19601754.819558352,
    //     "K13": -68273088.57244864,
    //     "K14": -70021039.05606587
    //   },
    //   "R26": {
    //     "K1": 5479023.058112815,
    //     "K2": -16144148.649422526,
    //     "K3": 92356278.51082578,
    //     "K4": 71937687.4844769,
    //     "K5": -58735251.07325035,
    //     "K6": -78062747.68285051,
    //     "K7": -42538350.474337295,
    //     "K8": 81963948.51947674,
    //     "K9": 50115787.22611162,
    //     "K10": -21279103.95818749,
    //     "K11": 91906699.16348094,
    //     "K12": 8173628.878673881,
    //     "K13": 19599053.827129513,
    //     "K14": -20409830.631593227
    //   },
    //   "R28": {
    //     "K1": 27802824.4817369,
    //     "K2": 57483621.117706686,
    //     "K3": -94055614.35754932,
    //     "K4": 31278615.521112666,
    //     "K5": -57256663.77426109,
    //     "K6": -86284230.47141798,
    //     "K7": -77966924.13428846,
    //     "K8": 29059518.567262903,
    //     "K9": -626417.887666136,
    //     "K10": 16127939.34188512,
    //     "K11": -92741977.60641591,
    //     "K12": -37449230.602469005,
    //     "K13": 23743115.89019072,
    //     "K14": 25348097.465739846
    //   },
    //   "R29": {
    //     "K1": -26805933.001731753,
    //     "K2": 68614109.15667254,
    //     "K3": 39318710.516957104,
    //     "K4": 65114293.695658386,
    //     "K5": 3361705.3758636266,
    //     "K6": -24250737.994428203,
    //     "K7": -24482391.725730762,
    //     "K8": 69213131.07645726,
    //     "K9": 98994516.66830412,
    //     "K10": 16318538.220121413,
    //     "K11": -39487739.918237664,
    //     "K12": 23647693.49156104,
    //     "K13": -42685984.04562951,
    //     "K14": 41164769.500938356
    //   },
    //   "R30": {
    //     "K1": -63256798.03913951,
    //     "K2": 43227214.69477776,
    //     "K3": 79578351.32033616,
    //     "K4": 98818949.30158022,
    //     "K5": 27555041.199536085,
    //     "K6": 88347565.3809239,
    //     "K7": 5235623.800466314,
    //     "K8": 24721617.44543673,
    //     "K9": 7060462.209249213,
    //     "K10": 17991236.655961007,
    //     "K11": -69646182.24027772,
    //     "K12": 36158026.4288972,
    //     "K13": -79383721.70767868,
    //     "K14": 81028976.94582391
    //   },
    //   "R32": {
    //     "K1": 31205521.080257088,
    //     "K2": -12791422.659774244,
    //     "K3": 65063299.81043598,
    //     "K4": 96432860.03663039,
    //     "K5": 24261563.373552784,
    //     "K6": 38756825.458310574,
    //     "K7": -51854073.51408102,
    //     "K8": 7952914.523519799,
    //     "K9": 64386293.989827216,
    //     "K10": 91928227.3491365,
    //     "K11": 50376752.217782915,
    //     "K12": 88220172.05391788,
    //     "K13": 56179167.76171127,
    //     "K14": 13114951.633577794
    //   },
    //   "R33": {
    //     "K1": 6142398.668532684,
    //     "K2": 74213263.48210445,
    //     "K3": 10291611.262824312,
    //     "K4": -469834.8591835201,
    //     "K5": 21967230.55064194,
    //     "K6": 24678138.21367471,
    //     "K7": -6414155.855680585,
    //     "K8": 51617515.31377107,
    //     "K9": 8284031.226150021,
    //     "K10": 37384115.87626752,
    //     "K11": -42756302.25619489,
    //     "K12": -30493572.636986554,
    //     "K13": -78399037.82294405,
    //     "K14": -67537940.57563232
    //   },
    //   "R34": {
    //     "K1": 64857833.56420404,
    //     "K2": -39383123.74424857,
    //     "K3": -57488769.57930183,
    //     "K4": -97456218.11787331,
    //     "K5": 4888285.57401742,
    //     "K6": 47317022.039203346,
    //     "K7": -34053874.08307234,
    //     "K8": -99488372.68254448,
    //     "K9": 5470736.222669229,
    //     "K10": -28197931.342249304,
    //     "K11": -8283463.507176012,
    //     "K12": 26302022.63644965,
    //     "K13": 9780237.253865525,
    //     "K14": -23319176.731722638
    //   },
    //   "R35": {
    //     "K1": 82506019.39402068,
    //     "K2": 631082.3158593327,
    //     "K3": -20836808.962187365,
    //     "K4": -2300894.134821221,
    //     "K5": -40667652.1991391,
    //     "K6": 63042896.616030395,
    //     "K7": 94071690.71470508,
    //     "K8": -25739548.96542205,
    //     "K9": 67142903.6215783,
    //     "K10": 45574581.499938786,
    //     "K11": 81487317.12965742,
    //     "K12": 15577501.990702644,
    //     "K13": 71876456.76464695,
    //     "K14": -56063095.661939144
    //   },
    //   "R37": {
    //     "PielikumsRindai15": {
    //       "Fails": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       },
    //       "Komentars": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       }
    //     },
    //     "PielikumsRindai16": {
    //       "Fails": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       },
    //       "Komentars": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       }
    //     },
    //     "PielikumsRindai17": {
    //       "Fails": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       },
    //       "Komentars": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       }
    //     },
    //     "PielikumsRindai18": {
    //       "Fails": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       },
    //       "Komentars": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       }
    //     },
    //     "PielikumsRindai19": {
    //       "Fails": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       },
    //       "Komentars": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       }
    //     },
    //     "PielikumsRindai33": {
    //       "Fails": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       },
    //       "Komentars": {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       }
    //     },
    //     "CitiDokumenti": [
    //       {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       },
    //       {
    //         "value": "<Error: Too many levels of nesting to fake this schema>"
    //       }
    //     ]
    //   },
    //   "Id": 368338,
    //   "UID": "culpa",
    //   "NmrKods": "proiden",
    //   "Precizejums": true,
    //   "PrecizejamaisDokuments": -7690412,
    //   "PrecizejumaPamatojums": "sit reprehenderit"
    // }

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

    Get ComStringOf Of hoJResp "Epasts" To sEpasts
    Get ComStringOf Of hoJResp "Talrunis" To sTalrunis
    Get ComIntOf Of hoJResp "Gads" To iGads
    Get ComIntOf Of hoJResp "Menesis" To iMenesis
    Get ComStringOf Of hoJResp "Datums" To sDatums
    Get ComStringOf Of hoJResp "MaksTerm" To sMaksTerm
    Get ComStringOf Of hoJResp "NmStatuss" To sNmStatuss
    Get ComStringOf Of hoJResp "R08" To sR08
    Get ComStringOf Of hoJResp "R09" To sR09
    Get ComStringOf Of hoJResp "Sagatavotajs" To sSagatavotajs
    Get ComStringOf Of hoJResp "R10.K1" To sK1
    Get ComStringOf Of hoJResp "R10.K2" To sK2
    Get ComStringOf Of hoJResp "R10.K3" To sK3
    Get ComStringOf Of hoJResp "R10.K4" To sK4
    Get ComStringOf Of hoJResp "R10.K5" To sK5
    Get ComStringOf Of hoJResp "R10.K6" To sK6
    Get ComStringOf Of hoJResp "R10.K7" To sK7
    Get ComStringOf Of hoJResp "R10.K8" To sK8
    Get ComStringOf Of hoJResp "R10.K9" To sK9
    Get ComStringOf Of hoJResp "R10.K10" To sK10
    Get ComStringOf Of hoJResp "R10.K11" To sK11
    Get ComStringOf Of hoJResp "R10.K12" To sK12
    Get ComStringOf Of hoJResp "R10.K13" To sK13
    Get ComStringOf Of hoJResp "R10.K14" To sK14
    Get ComStringOf Of hoJResp "R11.K1" To sR11K1
    Get ComStringOf Of hoJResp "R11.K2" To sR11K2
    Get ComStringOf Of hoJResp "R11.K3" To sR11K3
    Get ComStringOf Of hoJResp "R11.K4" To sR11K4
    Get ComStringOf Of hoJResp "R11.K5" To sR11K5
    Get ComStringOf Of hoJResp "R11.K6" To sR11K6
    Get ComStringOf Of hoJResp "R11.K7" To sR11K7
    Get ComStringOf Of hoJResp "R11.K8" To sR11K8
    Get ComStringOf Of hoJResp "R11.K9" To sR11K9
    Get ComStringOf Of hoJResp "R11.K10" To sR11K10
    Get ComStringOf Of hoJResp "R11.K11" To sR11K11
    Get ComStringOf Of hoJResp "R11.K12" To sR11K12
    Get ComStringOf Of hoJResp "R11.K13" To sR11K13
    Get ComStringOf Of hoJResp "R11.K14" To sR11K14
    Get ComStringOf Of hoJResp "R12.K1" To sR12K1
    Get ComStringOf Of hoJResp "R12.K2" To sR12K2
    Get ComStringOf Of hoJResp "R12.K3" To sR12K3
    Get ComStringOf Of hoJResp "R12.K4" To sR12K4
    Get ComStringOf Of hoJResp "R12.K5" To sR12K5
    Get ComStringOf Of hoJResp "R12.K6" To sR12K6
    Get ComStringOf Of hoJResp "R12.K7" To sR12K7
    Get ComStringOf Of hoJResp "R12.K8" To sR12K8
    Get ComStringOf Of hoJResp "R12.K9" To sR12K9
    Get ComStringOf Of hoJResp "R12.K10" To sR12K10
    Get ComStringOf Of hoJResp "R12.K11" To sR12K11
    Get ComStringOf Of hoJResp "R12.K12" To sR12K12
    Get ComStringOf Of hoJResp "R12.K13" To sR12K13
    Get ComStringOf Of hoJResp "R12.K14" To sR12K14
    Get ComStringOf Of hoJResp "R13.K1" To sR13K1
    Get ComStringOf Of hoJResp "R13.K2" To sR13K2
    Get ComStringOf Of hoJResp "R13.K3" To sR13K3
    Get ComStringOf Of hoJResp "R13.K4" To sR13K4
    Get ComStringOf Of hoJResp "R13.K5" To sR13K5
    Get ComStringOf Of hoJResp "R13.K6" To sR13K6
    Get ComStringOf Of hoJResp "R13.K7" To sR13K7
    Get ComStringOf Of hoJResp "R13.K8" To sR13K8
    Get ComStringOf Of hoJResp "R13.K9" To sR13K9
    Get ComStringOf Of hoJResp "R13.K10" To sR13K10
    Get ComStringOf Of hoJResp "R13.K11" To sR13K11
    Get ComStringOf Of hoJResp "R13.K12" To sR13K12
    Get ComStringOf Of hoJResp "R13.K13" To sR13K13
    Get ComStringOf Of hoJResp "R13.K14" To sR13K14
    Get ComStringOf Of hoJResp "R14.K1" To sR14K1
    Get ComStringOf Of hoJResp "R14.K2" To sR14K2
    Get ComStringOf Of hoJResp "R14.K3" To sR14K3
    Get ComStringOf Of hoJResp "R14.K4" To sR14K4
    Get ComStringOf Of hoJResp "R14.K5" To sR14K5
    Get ComStringOf Of hoJResp "R14.K6" To sR14K6
    Get ComStringOf Of hoJResp "R14.K7" To sR14K7
    Get ComStringOf Of hoJResp "R14.K8" To sR14K8
    Get ComStringOf Of hoJResp "R14.K9" To sR14K9
    Get ComStringOf Of hoJResp "R14.K10" To sR14K10
    Get ComStringOf Of hoJResp "R14.K11" To sR14K11
    Get ComStringOf Of hoJResp "R14.K12" To sR14K12
    Get ComStringOf Of hoJResp "R14.K13" To sR14K13
    Get ComStringOf Of hoJResp "R14.K14" To sR14K14
    Get ComStringOf Of hoJResp "R15.K1" To sR15K1
    Get ComStringOf Of hoJResp "R15.K2" To sR15K2
    Get ComStringOf Of hoJResp "R15.K3" To sR15K3
    Get ComStringOf Of hoJResp "R15.K4" To sR15K4
    Get ComStringOf Of hoJResp "R15.K5" To sR15K5
    Get ComStringOf Of hoJResp "R15.K6" To sR15K6
    Get ComStringOf Of hoJResp "R15.K7" To sR15K7
    Get ComStringOf Of hoJResp "R15.K8" To sR15K8
    Get ComStringOf Of hoJResp "R15.K9" To sR15K9
    Get ComStringOf Of hoJResp "R15.K10" To sR15K10
    Get ComStringOf Of hoJResp "R15.K11" To sR15K11
    Get ComStringOf Of hoJResp "R15.K12" To sR15K12
    Get ComStringOf Of hoJResp "R15.K13" To sR15K13
    Get ComStringOf Of hoJResp "R15.K14" To sR15K14
    Get ComStringOf Of hoJResp "R16.K1" To sR16K1
    Get ComStringOf Of hoJResp "R16.K2" To sR16K2
    Get ComStringOf Of hoJResp "R16.K3" To sR16K3
    Get ComStringOf Of hoJResp "R16.K4" To sR16K4
    Get ComStringOf Of hoJResp "R16.K5" To sR16K5
    Get ComStringOf Of hoJResp "R16.K6" To sR16K6
    Get ComStringOf Of hoJResp "R16.K7" To sR16K7
    Get ComStringOf Of hoJResp "R16.K8" To sR16K8
    Get ComStringOf Of hoJResp "R16.K9" To sR16K9
    Get ComStringOf Of hoJResp "R16.K10" To sR16K10
    Get ComStringOf Of hoJResp "R16.K11" To sR16K11
    Get ComStringOf Of hoJResp "R16.K12" To sR16K12
    Get ComStringOf Of hoJResp "R16.K13" To sR16K13
    Get ComStringOf Of hoJResp "R16.K14" To sR16K14
    Get ComStringOf Of hoJResp "R17.K1" To sR17K1
    Get ComStringOf Of hoJResp "R17.K2" To sR17K2
    Get ComStringOf Of hoJResp "R17.K3" To sR17K3
    Get ComStringOf Of hoJResp "R17.K4" To sR17K4
    Get ComStringOf Of hoJResp "R17.K5" To sR17K5
    Get ComStringOf Of hoJResp "R17.K6" To sR17K6
    Get ComStringOf Of hoJResp "R17.K7" To sR17K7
    Get ComStringOf Of hoJResp "R17.K8" To sR17K8
    Get ComStringOf Of hoJResp "R17.K9" To sR17K9
    Get ComStringOf Of hoJResp "R17.K10" To sR17K10
    Get ComStringOf Of hoJResp "R17.K11" To sR17K11
    Get ComStringOf Of hoJResp "R17.K12" To sR17K12
    Get ComStringOf Of hoJResp "R17.K13" To sR17K13
    Get ComStringOf Of hoJResp "R17.K14" To sR17K14
    Get ComStringOf Of hoJResp "R18.K1" To sR18K1
    Get ComStringOf Of hoJResp "R18.K2" To sR18K2
    Get ComStringOf Of hoJResp "R18.K3" To sR18K3
    Get ComStringOf Of hoJResp "R18.K4" To sR18K4
    Get ComStringOf Of hoJResp "R18.K5" To sR18K5
    Get ComStringOf Of hoJResp "R18.K6" To sR18K6
    Get ComStringOf Of hoJResp "R18.K7" To sR18K7
    Get ComStringOf Of hoJResp "R18.K8" To sR18K8
    Get ComStringOf Of hoJResp "R18.K9" To sR18K9
    Get ComStringOf Of hoJResp "R18.K10" To sR18K10
    Get ComStringOf Of hoJResp "R18.K11" To sR18K11
    Get ComStringOf Of hoJResp "R18.K12" To sR18K12
    Get ComStringOf Of hoJResp "R18.K13" To sR18K13
    Get ComStringOf Of hoJResp "R18.K14" To sR18K14
    Get ComStringOf Of hoJResp "R19.K1" To sR19K1
    Get ComStringOf Of hoJResp "R19.K2" To sR19K2
    Get ComStringOf Of hoJResp "R19.K3" To sR19K3
    Get ComStringOf Of hoJResp "R19.K4" To sR19K4
    Get ComStringOf Of hoJResp "R19.K5" To sR19K5
    Get ComStringOf Of hoJResp "R19.K6" To sR19K6
    Get ComStringOf Of hoJResp "R19.K7" To sR19K7
    Get ComStringOf Of hoJResp "R19.K8" To sR19K8
    Get ComStringOf Of hoJResp "R19.K9" To sR19K9
    Get ComStringOf Of hoJResp "R19.K10" To sR19K10
    Get ComStringOf Of hoJResp "R19.K11" To sR19K11
    Get ComStringOf Of hoJResp "R19.K12" To sR19K12
    Get ComStringOf Of hoJResp "R19.K13" To sR19K13
    Get ComStringOf Of hoJResp "R19.K14" To sR19K14
    Get ComStringOf Of hoJResp "R21.K1" To sR21K1
    Get ComStringOf Of hoJResp "R21.K2" To sR21K2
    Get ComStringOf Of hoJResp "R21.K3" To sR21K3
    Get ComStringOf Of hoJResp "R21.K4" To sR21K4
    Get ComStringOf Of hoJResp "R21.K5" To sR21K5
    Get ComStringOf Of hoJResp "R21.K6" To sR21K6
    Get ComStringOf Of hoJResp "R21.K7" To sR21K7
    Get ComStringOf Of hoJResp "R21.K8" To sR21K8
    Get ComStringOf Of hoJResp "R21.K9" To sR21K9
    Get ComStringOf Of hoJResp "R21.K10" To sR21K10
    Get ComStringOf Of hoJResp "R21.K11" To sR21K11
    Get ComStringOf Of hoJResp "R21.K12" To sR21K12
    Get ComStringOf Of hoJResp "R21.K13" To sR21K13
    Get ComStringOf Of hoJResp "R21.K14" To sR21K14
    Get ComStringOf Of hoJResp "R22.K1" To sR22K1
    Get ComStringOf Of hoJResp "R22.K2" To sR22K2
    Get ComStringOf Of hoJResp "R22.K3" To sR22K3
    Get ComStringOf Of hoJResp "R22.K4" To sR22K4
    Get ComStringOf Of hoJResp "R22.K5" To sR22K5
    Get ComStringOf Of hoJResp "R22.K6" To sR22K6
    Get ComStringOf Of hoJResp "R22.K7" To sR22K7
    Get ComStringOf Of hoJResp "R22.K8" To sR22K8
    Get ComStringOf Of hoJResp "R22.K9" To sR22K9
    Get ComStringOf Of hoJResp "R22.K10" To sR22K10
    Get ComStringOf Of hoJResp "R22.K11" To sR22K11
    Get ComStringOf Of hoJResp "R22.K12" To sR22K12
    Get ComStringOf Of hoJResp "R22.K13" To sR22K13
    Get ComStringOf Of hoJResp "R22.K14" To sR22K14
    Get ComStringOf Of hoJResp "R23.K1" To sR23K1
    Get ComStringOf Of hoJResp "R23.K2" To sR23K2
    Get ComStringOf Of hoJResp "R23.K3" To sR23K3
    Get ComStringOf Of hoJResp "R23.K4" To sR23K4
    Get ComStringOf Of hoJResp "R23.K5" To sR23K5
    Get ComStringOf Of hoJResp "R23.K6" To sR23K6
    Get ComStringOf Of hoJResp "R23.K7" To sR23K7
    Get ComStringOf Of hoJResp "R23.K8" To sR23K8
    Get ComStringOf Of hoJResp "R23.K9" To sR23K9
    Get ComStringOf Of hoJResp "R23.K10" To sR23K10
    Get ComStringOf Of hoJResp "R23.K11" To sR23K11
    Get ComStringOf Of hoJResp "R23.K12" To sR23K12
    Get ComStringOf Of hoJResp "R23.K13" To sR23K13
    Get ComStringOf Of hoJResp "R23.K14" To sR23K14
    Get ComStringOf Of hoJResp "R24.K1" To sR24K1
    Get ComStringOf Of hoJResp "R24.K2" To sR24K2
    Get ComStringOf Of hoJResp "R24.K3" To sR24K3
    Get ComStringOf Of hoJResp "R24.K4" To sR24K4
    Get ComStringOf Of hoJResp "R24.K5" To sR24K5
    Get ComStringOf Of hoJResp "R24.K6" To sR24K6
    Get ComStringOf Of hoJResp "R24.K7" To sR24K7
    Get ComStringOf Of hoJResp "R24.K8" To sR24K8
    Get ComStringOf Of hoJResp "R24.K9" To sR24K9
    Get ComStringOf Of hoJResp "R24.K10" To sR24K10
    Get ComStringOf Of hoJResp "R24.K11" To sR24K11
    Get ComStringOf Of hoJResp "R24.K12" To sR24K12
    Get ComStringOf Of hoJResp "R24.K13" To sR24K13
    Get ComStringOf Of hoJResp "R24.K14" To sR24K14
    Get ComStringOf Of hoJResp "R25.K1" To sR25K1
    Get ComStringOf Of hoJResp "R25.K2" To sR25K2
    Get ComStringOf Of hoJResp "R25.K3" To sR25K3
    Get ComStringOf Of hoJResp "R25.K4" To sR25K4
    Get ComStringOf Of hoJResp "R25.K5" To sR25K5
    Get ComStringOf Of hoJResp "R25.K6" To sR25K6
    Get ComStringOf Of hoJResp "R25.K7" To sR25K7
    Get ComStringOf Of hoJResp "R25.K8" To sR25K8
    Get ComStringOf Of hoJResp "R25.K9" To sR25K9
    Get ComStringOf Of hoJResp "R25.K10" To sR25K10
    Get ComStringOf Of hoJResp "R25.K11" To sR25K11
    Get ComStringOf Of hoJResp "R25.K12" To sR25K12
    Get ComStringOf Of hoJResp "R25.K13" To sR25K13
    Get ComStringOf Of hoJResp "R25.K14" To sR25K14
    Get ComStringOf Of hoJResp "R26.K1" To sR26K1
    Get ComStringOf Of hoJResp "R26.K2" To sR26K2
    Get ComStringOf Of hoJResp "R26.K3" To sR26K3
    Get ComStringOf Of hoJResp "R26.K4" To sR26K4
    Get ComStringOf Of hoJResp "R26.K5" To sR26K5
    Get ComStringOf Of hoJResp "R26.K6" To sR26K6
    Get ComStringOf Of hoJResp "R26.K7" To sR26K7
    Get ComStringOf Of hoJResp "R26.K8" To sR26K8
    Get ComStringOf Of hoJResp "R26.K9" To sR26K9
    Get ComStringOf Of hoJResp "R26.K10" To sR26K10
    Get ComStringOf Of hoJResp "R26.K11" To sR26K11
    Get ComStringOf Of hoJResp "R26.K12" To sR26K12
    Get ComStringOf Of hoJResp "R26.K13" To sR26K13
    Get ComStringOf Of hoJResp "R26.K14" To sR26K14
    Get ComStringOf Of hoJResp "R28.K1" To sR28K1
    Get ComStringOf Of hoJResp "R28.K2" To sR28K2
    Get ComStringOf Of hoJResp "R28.K3" To sR28K3
    Get ComStringOf Of hoJResp "R28.K4" To sR28K4
    Get ComStringOf Of hoJResp "R28.K5" To sR28K5
    Get ComStringOf Of hoJResp "R28.K6" To sR28K6
    Get ComStringOf Of hoJResp "R28.K7" To sR28K7
    Get ComStringOf Of hoJResp "R28.K8" To sR28K8
    Get ComStringOf Of hoJResp "R28.K9" To sR28K9
    Get ComStringOf Of hoJResp "R28.K10" To sR28K10
    Get ComStringOf Of hoJResp "R28.K11" To sR28K11
    Get ComStringOf Of hoJResp "R28.K12" To sR28K12
    Get ComStringOf Of hoJResp "R28.K13" To sR28K13
    Get ComStringOf Of hoJResp "R28.K14" To sR28K14
    Get ComStringOf Of hoJResp "R29.K1" To sR29K1
    Get ComStringOf Of hoJResp "R29.K2" To sR29K2
    Get ComStringOf Of hoJResp "R29.K3" To sR29K3
    Get ComStringOf Of hoJResp "R29.K4" To sR29K4
    Get ComStringOf Of hoJResp "R29.K5" To sR29K5
    Get ComStringOf Of hoJResp "R29.K6" To sR29K6
    Get ComStringOf Of hoJResp "R29.K7" To sR29K7
    Get ComStringOf Of hoJResp "R29.K8" To sR29K8
    Get ComStringOf Of hoJResp "R29.K9" To sR29K9
    Get ComStringOf Of hoJResp "R29.K10" To sR29K10
    Get ComStringOf Of hoJResp "R29.K11" To sR29K11
    Get ComStringOf Of hoJResp "R29.K12" To sR29K12
    Get ComStringOf Of hoJResp "R29.K13" To sR29K13
    Get ComStringOf Of hoJResp "R29.K14" To sR29K14
    Get ComStringOf Of hoJResp "R30.K1" To sR30K1
    Get ComStringOf Of hoJResp "R30.K2" To sR30K2
    Get ComStringOf Of hoJResp "R30.K3" To sR30K3
    Get ComStringOf Of hoJResp "R30.K4" To sR30K4
    Get ComStringOf Of hoJResp "R30.K5" To sR30K5
    Get ComStringOf Of hoJResp "R30.K6" To sR30K6
    Get ComStringOf Of hoJResp "R30.K7" To sR30K7
    Get ComStringOf Of hoJResp "R30.K8" To sR30K8
    Get ComStringOf Of hoJResp "R30.K9" To sR30K9
    Get ComStringOf Of hoJResp "R30.K10" To sR30K10
    Get ComStringOf Of hoJResp "R30.K11" To sR30K11
    Get ComStringOf Of hoJResp "R30.K12" To sR30K12
    Get ComStringOf Of hoJResp "R30.K13" To sR30K13
    Get ComStringOf Of hoJResp "R30.K14" To sR30K14
    Get ComStringOf Of hoJResp "R32.K1" To sR32K1
    Get ComStringOf Of hoJResp "R32.K2" To sR32K2
    Get ComStringOf Of hoJResp "R32.K3" To sR32K3
    Get ComStringOf Of hoJResp "R32.K4" To sR32K4
    Get ComStringOf Of hoJResp "R32.K5" To sR32K5
    Get ComStringOf Of hoJResp "R32.K6" To sR32K6
    Get ComStringOf Of hoJResp "R32.K7" To sR32K7
    Get ComStringOf Of hoJResp "R32.K8" To sR32K8
    Get ComStringOf Of hoJResp "R32.K9" To sR32K9
    Get ComStringOf Of hoJResp "R32.K10" To sR32K10
    Get ComStringOf Of hoJResp "R32.K11" To sR32K11
    Get ComStringOf Of hoJResp "R32.K12" To sR32K12
    Get ComStringOf Of hoJResp "R32.K13" To sR32K13
    Get ComStringOf Of hoJResp "R32.K14" To sR32K14
    Get ComStringOf Of hoJResp "R33.K1" To sR33K1
    Get ComStringOf Of hoJResp "R33.K2" To sR33K2
    Get ComStringOf Of hoJResp "R33.K3" To sR33K3
    Get ComStringOf Of hoJResp "R33.K4" To sR33K4
    Get ComStringOf Of hoJResp "R33.K5" To sR33K5
    Get ComStringOf Of hoJResp "R33.K6" To sR33K6
    Get ComStringOf Of hoJResp "R33.K7" To sR33K7
    Get ComStringOf Of hoJResp "R33.K8" To sR33K8
    Get ComStringOf Of hoJResp "R33.K9" To sR33K9
    Get ComStringOf Of hoJResp "R33.K10" To sR33K10
    Get ComStringOf Of hoJResp "R33.K11" To sR33K11
    Get ComStringOf Of hoJResp "R33.K12" To sR33K12
    Get ComStringOf Of hoJResp "R33.K13" To sR33K13
    Get ComStringOf Of hoJResp "R33.K14" To sR33K14
    Get ComStringOf Of hoJResp "R34.K1" To sR34K1
    Get ComStringOf Of hoJResp "R34.K2" To sR34K2
    Get ComStringOf Of hoJResp "R34.K3" To sR34K3
    Get ComStringOf Of hoJResp "R34.K4" To sR34K4
    Get ComStringOf Of hoJResp "R34.K5" To sR34K5
    Get ComStringOf Of hoJResp "R34.K6" To sR34K6
    Get ComStringOf Of hoJResp "R34.K7" To sR34K7
    Get ComStringOf Of hoJResp "R34.K8" To sR34K8
    Get ComStringOf Of hoJResp "R34.K9" To sR34K9
    Get ComStringOf Of hoJResp "R34.K10" To sR34K10
    Get ComStringOf Of hoJResp "R34.K11" To sR34K11
    Get ComStringOf Of hoJResp "R34.K12" To sR34K12
    Get ComStringOf Of hoJResp "R34.K13" To sR34K13
    Get ComStringOf Of hoJResp "R34.K14" To sR34K14
    Get ComStringOf Of hoJResp "R35.K1" To sR35K1
    Get ComStringOf Of hoJResp "R35.K2" To sR35K2
    Get ComStringOf Of hoJResp "R35.K3" To sR35K3
    Get ComStringOf Of hoJResp "R35.K4" To sR35K4
    Get ComStringOf Of hoJResp "R35.K5" To sR35K5
    Get ComStringOf Of hoJResp "R35.K6" To sR35K6
    Get ComStringOf Of hoJResp "R35.K7" To sR35K7
    Get ComStringOf Of hoJResp "R35.K8" To sR35K8
    Get ComStringOf Of hoJResp "R35.K9" To sR35K9
    Get ComStringOf Of hoJResp "R35.K10" To sR35K10
    Get ComStringOf Of hoJResp "R35.K11" To sR35K11
    Get ComStringOf Of hoJResp "R35.K12" To sR35K12
    Get ComStringOf Of hoJResp "R35.K13" To sR35K13
    Get ComStringOf Of hoJResp "R35.K14" To sR35K14
    Get ComStringOf Of hoJResp "R37.PielikumsRindai15.Fails.value" To sValue
    Get ComStringOf Of hoJResp "R37.PielikumsRindai15.Komentars.value" To sKomentarsValue
    Get ComStringOf Of hoJResp "R37.PielikumsRindai16.Fails.value" To sFailsValue
    Get ComStringOf Of hoJResp "R37.PielikumsRindai16.Komentars.value" To sKomentarsValue
    Get ComStringOf Of hoJResp "R37.PielikumsRindai17.Fails.value" To sFailsValue
    Get ComStringOf Of hoJResp "R37.PielikumsRindai17.Komentars.value" To sKomentarsValue
    Get ComStringOf Of hoJResp "R37.PielikumsRindai18.Fails.value" To sFailsValue
    Get ComStringOf Of hoJResp "R37.PielikumsRindai18.Komentars.value" To sKomentarsValue
    Get ComStringOf Of hoJResp "R37.PielikumsRindai19.Fails.value" To sFailsValue
    Get ComStringOf Of hoJResp "R37.PielikumsRindai19.Komentars.value" To sKomentarsValue
    Get ComStringOf Of hoJResp "R37.PielikumsRindai33.Fails.value" To sFailsValue
    Get ComStringOf Of hoJResp "R37.PielikumsRindai33.Komentars.value" To sKomentarsValue
    Get ComIntOf Of hoJResp "Id" To iId
    Get ComStringOf Of hoJResp "UID" To sUID
    Get ComStringOf Of hoJResp "NmrKods" To sNmrKods
    Get ComBoolOf Of hoJResp "Precizejums" To iPrecizejums
    Get ComIntOf Of hoJResp "PrecizejamaisDokuments" To iPrecizejamaisDokuments
    Get ComStringOf Of hoJResp "PrecizejumaPamatojums" To sPrecizejumaPamatojums
    Move 0 To i
    Get ComSizeOfArray Of hoJResp "R37.CitiDokumenti" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "R37.CitiDokumenti[i].value" To sValue
        Move (i + 1) To i
    Loop



End_Procedure

Curl Command

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

Postman Collection Item JSON

{
  "name": "Dokuments \"Naftas produktu akcīzes nodokļa deklarācija\".",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/doc/annv4/:id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "doc",
        "annv4",
        ":id"
      ],
      "variable": [
        {
          "key": "id",
          "value": "25210683",
          "description": "(Required) Dokumenta id."
        }
      ]
    }
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/annv4/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "annv4",
            ":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  \"Epasts\": \"Lorem in eiusmod aliquip voluptate\",\n  \"Talrunis\": \"non deserunt vol\",\n  \"Gads\": -82184631,\n  \"Menesis\": 9,\n  \"Datums\": \"2000-01-31T00:00:00\",\n  \"MaksTerm\": \"2000-01-31T00:00:00\",\n  \"NmStatuss\": \"pariatur proident\",\n  \"R08\": \"minim\",\n  \"R09\": \"dolore sit velit mollit\",\n  \"Sagatavotajs\": \"ipsum dolor non\",\n  \"R10\": {\n    \"K1\": 16328653.724837586,\n    \"K2\": -87950817.9898314,\n    \"K3\": 3257414.3665181845,\n    \"K4\": 2394689.2126417607,\n    \"K5\": -24777365.814456195,\n    \"K6\": 18770070.284489423,\n    \"K7\": -91784300.62529133,\n    \"K8\": 70422771.01527569,\n    \"K9\": -61744581.7129465,\n    \"K10\": 86719181.78426033,\n    \"K11\": 68817542.37522736,\n    \"K12\": 17738553.890762135,\n    \"K13\": -62589633.93775363,\n    \"K14\": -75021119.05898628\n  },\n  \"R11\": {\n    \"K1\": -69769058.13043426,\n    \"K2\": -22538375.37679124,\n    \"K3\": 29341845.91991383,\n    \"K4\": -34763994.10235254,\n    \"K5\": 25905955.370100304,\n    \"K6\": 35927187.79492253,\n    \"K7\": 26232897.638250157,\n    \"K8\": 45676818.95360184,\n    \"K9\": -7741680.646063149,\n    \"K10\": 12673528.015534341,\n    \"K11\": -16997929.824192896,\n    \"K12\": 76869640.18793342,\n    \"K13\": 80234821.6924516,\n    \"K14\": -66331290.35164833\n  },\n  \"R12\": {\n    \"K1\": -87677419.0124578,\n    \"K2\": 25420989.805896714,\n    \"K3\": 55544761.99298918,\n    \"K4\": -4520012.362582192,\n    \"K5\": 49608714.00385019,\n    \"K6\": -85684047.11885807,\n    \"K7\": -14208737.808883637,\n    \"K8\": -74685139.35987593,\n    \"K9\": 75963902.07094994,\n    \"K10\": 33059041.79335788,\n    \"K11\": -30102683.49103278,\n    \"K12\": 18919426.742815882,\n    \"K13\": -48197777.87267841,\n    \"K14\": 60477294.91038045\n  },\n  \"R13\": {\n    \"K1\": 37996786.06479803,\n    \"K2\": -79388460.0479906,\n    \"K3\": -50691224.35651625,\n    \"K4\": 49668907.75893873,\n    \"K5\": -14662552.909173638,\n    \"K6\": 7011946.461176023,\n    \"K7\": 64045578.6923078,\n    \"K8\": 85927610.18557975,\n    \"K9\": 72242584.48766556,\n    \"K10\": -9367338.82431446,\n    \"K11\": 88407209.07040676,\n    \"K12\": -82244194.18180972,\n    \"K13\": -27869706.705521047,\n    \"K14\": -37458512.05595736\n  },\n  \"R14\": {\n    \"K1\": -82552340.35908301,\n    \"K2\": -76986648.24431378,\n    \"K3\": -14183588.083701432,\n    \"K4\": -86590588.6036936,\n    \"K5\": 81142943.85499617,\n    \"K6\": 7373716.631371915,\n    \"K7\": -41591381.47619949,\n    \"K8\": 86831738.48671126,\n    \"K9\": 29043101.68491344,\n    \"K10\": -96306803.84246513,\n    \"K11\": -39938170.19626902,\n    \"K12\": 13214252.948196888,\n    \"K13\": -53910787.287705466,\n    \"K14\": 75890132.15710837\n  },\n  \"R15\": {\n    \"K1\": 56218799.43265244,\n    \"K2\": 17484511.11899309,\n    \"K3\": 83931780.68462405,\n    \"K4\": -77977080.83588928,\n    \"K5\": -47522019.41539473,\n    \"K6\": 93316753.27175727,\n    \"K7\": 94091462.10675386,\n    \"K8\": 42147080.01023099,\n    \"K9\": -27120036.000980943,\n    \"K10\": 3139036.4073375016,\n    \"K11\": 74727534.62230012,\n    \"K12\": -73090419.95923331,\n    \"K13\": -85540072.87872797,\n    \"K14\": 8788261.774200782\n  },\n  \"R16\": {\n    \"K1\": 95844914.32977328,\n    \"K2\": 47519667.90724692,\n    \"K3\": 7728179.655423954,\n    \"K4\": -8365360.586450025,\n    \"K5\": 10599964.662404597,\n    \"K6\": -21309629.48953536,\n    \"K7\": 2050946.0627980828,\n    \"K8\": -85178499.05269709,\n    \"K9\": -46504773.23531632,\n    \"K10\": 98167003.51412368,\n    \"K11\": -60548282.585043676,\n    \"K12\": -74085171.35319452,\n    \"K13\": -58064063.25406552,\n    \"K14\": 42650385.29950726\n  },\n  \"R17\": {\n    \"K1\": 65775098.75594056,\n    \"K2\": 30696291.135660708,\n    \"K3\": -72830309.28755236,\n    \"K4\": -96577791.29292314,\n    \"K5\": 94802979.22747439,\n    \"K6\": -65211786.726446785,\n    \"K7\": -28678720.192400277,\n    \"K8\": 4629496.269421324,\n    \"K9\": 44472928.43451443,\n    \"K10\": -37639559.097108364,\n    \"K11\": -64463239.43126169,\n    \"K12\": 43341913.32631683,\n    \"K13\": 34870544.35076398,\n    \"K14\": 91513218.17405257\n  },\n  \"R18\": {\n    \"K1\": 34623946.292095006,\n    \"K2\": -77341977.41821456,\n    \"K3\": 88187647.13118777,\n    \"K4\": 82828077.92357829,\n    \"K5\": -89835481.16541749,\n    \"K6\": -61223499.628719755,\n    \"K7\": 12645700.801432997,\n    \"K8\": 2158960.846409783,\n    \"K9\": 79932087.35901889,\n    \"K10\": 18599091.86527142,\n    \"K11\": 47695563.875030875,\n    \"K12\": -33424832.508073978,\n    \"K13\": -99519925.48258577,\n    \"K14\": 58261675.10968125\n  },\n  \"R19\": {\n    \"K1\": -55629509.78202768,\n    \"K2\": 94647221.01314664,\n    \"K3\": -76028826.04196641,\n    \"K4\": 65404013.02994433,\n    \"K5\": -49660536.89266783,\n    \"K6\": 25273326.973483324,\n    \"K7\": 35955896.1050781,\n    \"K8\": 11466690.643244743,\n    \"K9\": -43277983.55096233,\n    \"K10\": -67342785.60243192,\n    \"K11\": 93988871.59945258,\n    \"K12\": 93940750.65659192,\n    \"K13\": -51361665.98857517,\n    \"K14\": 78941139.35570145\n  },\n  \"R21\": {\n    \"K1\": 27395240.943158686,\n    \"K2\": 70606060.86312711,\n    \"K3\": -22131413.5372535,\n    \"K4\": 85377691.96456128,\n    \"K5\": -69741292.71116145,\n    \"K6\": -85059526.54666911,\n    \"K7\": -24655423.400929302,\n    \"K8\": 89254563.010488,\n    \"K9\": 49150023.06885788,\n    \"K10\": 23179391.624741584,\n    \"K11\": 87865688.05695194,\n    \"K12\": -2847786.0169280767,\n    \"K13\": 91130827.18421376,\n    \"K14\": 82068324.82837763\n  },\n  \"R22\": {\n    \"K1\": -37953848.45602423,\n    \"K2\": 65314700.50226021,\n    \"K3\": 60856344.52899012,\n    \"K4\": 66185966.26782459,\n    \"K5\": -5512935.085172147,\n    \"K6\": -99053516.1854766,\n    \"K7\": 85592692.61948216,\n    \"K8\": 73920831.61064419,\n    \"K9\": 23010426.12183605,\n    \"K10\": -31701684.100666896,\n    \"K11\": 3047137.5906404555,\n    \"K12\": -49302373.42979588,\n    \"K13\": -25042474.251780033,\n    \"K14\": -66006049.109234735\n  },\n  \"R23\": {\n    \"K1\": -5767009.382611036,\n    \"K2\": 95566182.27854589,\n    \"K3\": 68731931.89284873,\n    \"K4\": 41152961.15799323,\n    \"K5\": -37691179.97197951,\n    \"K6\": 37248019.4871507,\n    \"K7\": -61783671.811570786,\n    \"K8\": -65113835.56219079,\n    \"K9\": 86137486.54255477,\n    \"K10\": -97604917.38001269,\n    \"K11\": 73425712.33905008,\n    \"K12\": -59061705.795734555,\n    \"K13\": -56881001.57020637,\n    \"K14\": -47466125.92793769\n  },\n  \"R24\": {\n    \"K1\": -64186291.216494285,\n    \"K2\": -83305227.20933442,\n    \"K3\": 53503641.04226798,\n    \"K4\": -50656608.48282012,\n    \"K5\": -25874959.899284855,\n    \"K6\": -62644722.089890294,\n    \"K7\": 63134394.523483545,\n    \"K8\": -59453634.06175947,\n    \"K9\": -31060326.300383955,\n    \"K10\": -31153766.347998247,\n    \"K11\": 89533822.61051491,\n    \"K12\": -19243642.19083658,\n    \"K13\": 94005029.76220295,\n    \"K14\": 44516845.5056757\n  },\n  \"R25\": {\n    \"K1\": 92770381.90924597,\n    \"K2\": 11570001.736082822,\n    \"K3\": -32699195.284047946,\n    \"K4\": 47183646.989736915,\n    \"K5\": -22710307.495794117,\n    \"K6\": 75059937.70602837,\n    \"K7\": -43894333.32359518,\n    \"K8\": -46158982.57446141,\n    \"K9\": -39621091.302581176,\n    \"K10\": 66142672.7465778,\n    \"K11\": -94763845.84140103,\n    \"K12\": -19601754.819558352,\n    \"K13\": -68273088.57244864,\n    \"K14\": -70021039.05606587\n  },\n  \"R26\": {\n    \"K1\": 5479023.058112815,\n    \"K2\": -16144148.649422526,\n    \"K3\": 92356278.51082578,\n    \"K4\": 71937687.4844769,\n    \"K5\": -58735251.07325035,\n    \"K6\": -78062747.68285051,\n    \"K7\": -42538350.474337295,\n    \"K8\": 81963948.51947674,\n    \"K9\": 50115787.22611162,\n    \"K10\": -21279103.95818749,\n    \"K11\": 91906699.16348094,\n    \"K12\": 8173628.878673881,\n    \"K13\": 19599053.827129513,\n    \"K14\": -20409830.631593227\n  },\n  \"R28\": {\n    \"K1\": 27802824.4817369,\n    \"K2\": 57483621.117706686,\n    \"K3\": -94055614.35754932,\n    \"K4\": 31278615.521112666,\n    \"K5\": -57256663.77426109,\n    \"K6\": -86284230.47141798,\n    \"K7\": -77966924.13428846,\n    \"K8\": 29059518.567262903,\n    \"K9\": -626417.887666136,\n    \"K10\": 16127939.34188512,\n    \"K11\": -92741977.60641591,\n    \"K12\": -37449230.602469005,\n    \"K13\": 23743115.89019072,\n    \"K14\": 25348097.465739846\n  },\n  \"R29\": {\n    \"K1\": -26805933.001731753,\n    \"K2\": 68614109.15667254,\n    \"K3\": 39318710.516957104,\n    \"K4\": 65114293.695658386,\n    \"K5\": 3361705.3758636266,\n    \"K6\": -24250737.994428203,\n    \"K7\": -24482391.725730762,\n    \"K8\": 69213131.07645726,\n    \"K9\": 98994516.66830412,\n    \"K10\": 16318538.220121413,\n    \"K11\": -39487739.918237664,\n    \"K12\": 23647693.49156104,\n    \"K13\": -42685984.04562951,\n    \"K14\": 41164769.500938356\n  },\n  \"R30\": {\n    \"K1\": -63256798.03913951,\n    \"K2\": 43227214.69477776,\n    \"K3\": 79578351.32033616,\n    \"K4\": 98818949.30158022,\n    \"K5\": 27555041.199536085,\n    \"K6\": 88347565.3809239,\n    \"K7\": 5235623.800466314,\n    \"K8\": 24721617.44543673,\n    \"K9\": 7060462.209249213,\n    \"K10\": 17991236.655961007,\n    \"K11\": -69646182.24027772,\n    \"K12\": 36158026.4288972,\n    \"K13\": -79383721.70767868,\n    \"K14\": 81028976.94582391\n  },\n  \"R32\": {\n    \"K1\": 31205521.080257088,\n    \"K2\": -12791422.659774244,\n    \"K3\": 65063299.81043598,\n    \"K4\": 96432860.03663039,\n    \"K5\": 24261563.373552784,\n    \"K6\": 38756825.458310574,\n    \"K7\": -51854073.51408102,\n    \"K8\": 7952914.523519799,\n    \"K9\": 64386293.989827216,\n    \"K10\": 91928227.3491365,\n    \"K11\": 50376752.217782915,\n    \"K12\": 88220172.05391788,\n    \"K13\": 56179167.76171127,\n    \"K14\": 13114951.633577794\n  },\n  \"R33\": {\n    \"K1\": 6142398.668532684,\n    \"K2\": 74213263.48210445,\n    \"K3\": 10291611.262824312,\n    \"K4\": -469834.8591835201,\n    \"K5\": 21967230.55064194,\n    \"K6\": 24678138.21367471,\n    \"K7\": -6414155.855680585,\n    \"K8\": 51617515.31377107,\n    \"K9\": 8284031.226150021,\n    \"K10\": 37384115.87626752,\n    \"K11\": -42756302.25619489,\n    \"K12\": -30493572.636986554,\n    \"K13\": -78399037.82294405,\n    \"K14\": -67537940.57563232\n  },\n  \"R34\": {\n    \"K1\": 64857833.56420404,\n    \"K2\": -39383123.74424857,\n    \"K3\": -57488769.57930183,\n    \"K4\": -97456218.11787331,\n    \"K5\": 4888285.57401742,\n    \"K6\": 47317022.039203346,\n    \"K7\": -34053874.08307234,\n    \"K8\": -99488372.68254448,\n    \"K9\": 5470736.222669229,\n    \"K10\": -28197931.342249304,\n    \"K11\": -8283463.507176012,\n    \"K12\": 26302022.63644965,\n    \"K13\": 9780237.253865525,\n    \"K14\": -23319176.731722638\n  },\n  \"R35\": {\n    \"K1\": 82506019.39402068,\n    \"K2\": 631082.3158593327,\n    \"K3\": -20836808.962187365,\n    \"K4\": -2300894.134821221,\n    \"K5\": -40667652.1991391,\n    \"K6\": 63042896.616030395,\n    \"K7\": 94071690.71470508,\n    \"K8\": -25739548.96542205,\n    \"K9\": 67142903.6215783,\n    \"K10\": 45574581.499938786,\n    \"K11\": 81487317.12965742,\n    \"K12\": 15577501.990702644,\n    \"K13\": 71876456.76464695,\n    \"K14\": -56063095.661939144\n  },\n  \"R37\": {\n    \"PielikumsRindai15\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"PielikumsRindai16\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"PielikumsRindai17\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"PielikumsRindai18\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"PielikumsRindai19\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"PielikumsRindai33\": {\n      \"Fails\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Komentars\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"CitiDokumenti\": [\n      {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    ]\n  },\n  \"Id\": 368338,\n  \"UID\": \"culpa\",\n  \"NmrKods\": \"proiden\",\n  \"Precizejums\": true,\n  \"PrecizejamaisDokuments\": -7690412,\n  \"PrecizejumaPamatojums\": \"sit reprehenderit\"\n}"
    },
    {
      "name": "Lietotājs nav autentificēts.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/annv4/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "annv4",
            ":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/annv4/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "annv4",
            ":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/annv4/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "annv4",
            ":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": ""
    }
  ]
}