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/annv3/: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": "amet nulla incididunt velit",
    //   "Talrunis": "cupidatat",
    //   "Gads": 65123793,
    //   "Menesis": 1,
    //   "Datums": "2000-01-31T00:00:00",
    //   "MaksTerm": "2000-01-31T00:00:00",
    //   "NmStatuss": "culpa deserunt eiusmod",
    //   "R08": "eiusmod ex Exce",
    //   "R09": "incididunt ipsum",
    //   "Sagatavotajs": "ipsum occaecat velit deserunt elit",
    //   "R10": {
    //     "K1": 69011754.90285358,
    //     "K2": -286474.6996511519,
    //     "K3": -11770878.493984953,
    //     "K4": 41719405.189673424,
    //     "K5": 85870200.14192808,
    //     "K6": 39589872.04420751,
    //     "K7": 51397767.8996591,
    //     "K8": 55571455.62865502,
    //     "K9": -76702183.1212379,
    //     "K10": -28474693.97053413,
    //     "K11": -46737859.039462306,
    //     "K12": -82573888.63207585,
    //     "K13": -70158761.36809416,
    //     "K14": 85900068.49806038
    //   },
    //   "R11": {
    //     "K1": -29800804.37247619,
    //     "K2": -35066503.0054643,
    //     "K3": -69175786.56213808,
    //     "K4": -4016157.839073837,
    //     "K5": 97099183.8659884,
    //     "K6": -58101739.06038889,
    //     "K7": -78979160.79295988,
    //     "K8": -70096428.85637559,
    //     "K9": 34582920.550558865,
    //     "K10": -6122790.466697082,
    //     "K11": -62807023.9465063,
    //     "K12": 19535726.419573158,
    //     "K13": -23693003.608283818,
    //     "K14": 96377854.71285895
    //   },
    //   "R12": {
    //     "K1": 87378012.40657729,
    //     "K2": -27350911.810965165,
    //     "K3": 94527050.58391708,
    //     "K4": 21360404.99224791,
    //     "K5": -29808198.645335168,
    //     "K6": 39156776.223213136,
    //     "K7": 24129726.045016974,
    //     "K8": 9296475.717829809,
    //     "K9": 82658090.11044899,
    //     "K10": -30666.993065729737,
    //     "K11": -4882017.379342288,
    //     "K12": 13961508.645864919,
    //     "K13": 18741577.605267107,
    //     "K14": 59150614.8674168
    //   },
    //   "R13": {
    //     "K1": -65103989.44215647,
    //     "K2": 22918342.522944972,
    //     "K3": 13346606.449489862,
    //     "K4": 78681659.25435358,
    //     "K5": 99538886.19077235,
    //     "K6": -70227435.85379434,
    //     "K7": -34755089.54101198,
    //     "K8": -60635259.987631105,
    //     "K9": -12036440.340121105,
    //     "K10": -90600607.56641927,
    //     "K11": 3602952.135728106,
    //     "K12": -30626183.083574563,
    //     "K13": 2766316.3714336753,
    //     "K14": -90986638.1227932
    //   },
    //   "R14": {
    //     "K1": 40765863.954432696,
    //     "K2": -67182370.45010902,
    //     "K3": 11704952.64645721,
    //     "K4": -84999057.04654682,
    //     "K5": -36048290.58649277,
    //     "K6": 62443585.84163031,
    //     "K7": -32091709.58579573,
    //     "K8": 43625042.31660575,
    //     "K9": 16885544.619369015,
    //     "K10": 80251259.64512235,
    //     "K11": 27318731.967805788,
    //     "K12": -14319355.59212181,
    //     "K13": 41539796.58688739,
    //     "K14": 88701128.01173308
    //   },
    //   "R15": {
    //     "K1": -73742078.22814016,
    //     "K2": 69693131.667204,
    //     "K3": -12824841.672871351,
    //     "K4": -22432843.69190924,
    //     "K5": -25380617.015425906,
    //     "K6": 84675620.93220896,
    //     "K7": 99203348.01453814,
    //     "K8": 70724303.85988456,
    //     "K9": -98075512.73943722,
    //     "K10": -47586259.396855325,
    //     "K11": -50142282.39072187,
    //     "K12": -21101219.808153406,
    //     "K13": 1297868.7648593038,
    //     "K14": -24502689.533988237
    //   },
    //   "R16": {
    //     "K1": -74716385.73514321,
    //     "K2": -30943767.37516588,
    //     "K3": -44399932.76375906,
    //     "K4": 97725275.84666863,
    //     "K5": 66676996.76606268,
    //     "K6": 70624436.77358449,
    //     "K7": -7465955.914643452,
    //     "K8": 54575323.67242882,
    //     "K9": -8226899.7871031165,
    //     "K10": 22459047.79521121,
    //     "K11": 62984419.460039735,
    //     "K12": -38206328.807595424,
    //     "K13": 4590092.543481678,
    //     "K14": 13438461.298249975
    //   },
    //   "R17": {
    //     "K1": -79276235.37118165,
    //     "K2": 88310970.07092902,
    //     "K3": 45338636.402314276,
    //     "K4": -12069175.57364422,
    //     "K5": -51247006.81518837,
    //     "K6": -29487667.020108163,
    //     "K7": -73308992.77850014,
    //     "K8": -33074376.447444066,
    //     "K9": -177327.0789398104,
    //     "K10": 29802067.812471345,
    //     "K11": -88333827.83231154,
    //     "K12": 4541758.027439117,
    //     "K13": -94479383.87846522,
    //     "K14": 71061466.05379507
    //   },
    //   "R18": {
    //     "K1": 49157671.97426507,
    //     "K2": 69861262.56142816,
    //     "K3": 71178403.34087607,
    //     "K4": 92454364.55228323,
    //     "K5": 57063199.17423582,
    //     "K6": 92226720.2758199,
    //     "K7": 36492133.54092264,
    //     "K8": -40110671.71385498,
    //     "K9": -60517419.6178218,
    //     "K10": -54041375.469130725,
    //     "K11": -33424556.83445298,
    //     "K12": 62335423.58725083,
    //     "K13": -94396793.40749945,
    //     "K14": 80252277.86649683
    //   },
    //   "R19": {
    //     "K1": 123715.51453527808,
    //     "K2": -30024289.465088308,
    //     "K3": 20831821.576838523,
    //     "K4": 13751186.00750947,
    //     "K5": -82562248.40154359,
    //     "K6": -91918658.27465749,
    //     "K7": 53664426.47689101,
    //     "K8": -98266332.30762978,
    //     "K9": 83178105.28106353,
    //     "K10": -99333857.54222001,
    //     "K11": 53695967.461390644,
    //     "K12": -28408415.947372362,
    //     "K13": 76269594.75703493,
    //     "K14": 31912799.067684934
    //   },
    //   "R21": {
    //     "K1": -44715463.05692659,
    //     "K2": 35259445.42232731,
    //     "K3": -73543212.95697933,
    //     "K4": 51062825.70996052,
    //     "K5": -24866924.962759823,
    //     "K6": -99782144.91487187,
    //     "K7": 34426916.9880867,
    //     "K8": 80196114.54963037,
    //     "K9": -82033296.18403381,
    //     "K10": 51632187.13585627,
    //     "K11": -31052880.19715458,
    //     "K12": -84933115.76651567,
    //     "K13": -18239617.81592995,
    //     "K14": -79838514.38359855
    //   },
    //   "R22": {
    //     "K1": -40657959.122213595,
    //     "K2": -35666457.192132436,
    //     "K3": -54900133.81453851,
    //     "K4": -50660550.33409076,
    //     "K5": 56372959.6100699,
    //     "K6": -22617966.86505577,
    //     "K7": -25785132.50306958,
    //     "K8": -80599255.28435676,
    //     "K9": 34162524.82784064,
    //     "K10": 60312008.3953411,
    //     "K11": -78494808.23443687,
    //     "K12": -54561406.25574868,
    //     "K13": -95947709.11534333,
    //     "K14": -50199990.21337842
    //   },
    //   "R23": {
    //     "K1": 41675545.57682341,
    //     "K2": -8213686.921727166,
    //     "K3": 52303188.87026709,
    //     "K4": 35451686.00720307,
    //     "K5": -70464918.60214852,
    //     "K6": 83371946.7007502,
    //     "K7": -72710355.44172299,
    //     "K8": -70039250.24744335,
    //     "K9": -5124505.089271426,
    //     "K10": 52554245.53818181,
    //     "K11": -9546174.943117559,
    //     "K12": -97484758.60810348,
    //     "K13": -4113345.3718183786,
    //     "K14": -50426233.13131713
    //   },
    //   "R24": {
    //     "K1": 66133466.26420823,
    //     "K2": -91964569.1839817,
    //     "K3": -4096172.611068338,
    //     "K4": 32181593.09547071,
    //     "K5": -76106645.14385906,
    //     "K6": -95263921.22593985,
    //     "K7": 48077115.43286115,
    //     "K8": -63433082.57376678,
    //     "K9": 98066585.07445216,
    //     "K10": 73490964.03584486,
    //     "K11": 47120763.647226095,
    //     "K12": 2914591.4395706058,
    //     "K13": 47568164.221423656,
    //     "K14": -18514471.703478158
    //   },
    //   "R25": {
    //     "K1": -62046475.12956058,
    //     "K2": -38748807.6190357,
    //     "K3": 49463934.0935137,
    //     "K4": -58401680.16387279,
    //     "K5": 29052171.52058515,
    //     "K6": -11062992.885137752,
    //     "K7": 43145282.76044333,
    //     "K8": -36580995.051727384,
    //     "K9": 99778589.80893427,
    //     "K10": -68592671.16203561,
    //     "K11": 2687004.18798095,
    //     "K12": -86400621.13214996,
    //     "K13": 77518804.34014541,
    //     "K14": -12645410.150312617
    //   },
    //   "R26": {
    //     "K1": -78591896.14125341,
    //     "K2": -33541977.987893023,
    //     "K3": -7126957.559500501,
    //     "K4": -81283519.89619827,
    //     "K5": 62149847.61238295,
    //     "K6": -55398211.15769437,
    //     "K7": -62452233.28487213,
    //     "K8": -7969978.069563672,
    //     "K9": -11435938.536992833,
    //     "K10": -88980847.07671581,
    //     "K11": 18580757.84160991,
    //     "K12": -38332654.85404911,
    //     "K13": -69024700.81814651,
    //     "K14": -97678730.99893686
    //   },
    //   "R28": {
    //     "K1": 92344399.21691194,
    //     "K2": 10253142.701950192,
    //     "K3": 84221877.49756199,
    //     "K4": -93633150.34182805,
    //     "K5": -1870238.6556153148,
    //     "K6": -23360941.28930016,
    //     "K7": 83081373.79069,
    //     "K8": 14986066.553176299,
    //     "K9": -53534597.61668642,
    //     "K10": 91966957.19912711,
    //     "K11": 828880.8995863944,
    //     "K12": -22621159.383924723,
    //     "K13": -57517677.94118683,
    //     "K14": -43960533.52528262
    //   },
    //   "R29": {
    //     "K1": 65098068.548140675,
    //     "K2": -62628847.71550619,
    //     "K3": -44645096.38325689,
    //     "K4": -70382336.380874,
    //     "K5": 77764871.23749784,
    //     "K6": 85471988.04898414,
    //     "K7": -92682519.16448605,
    //     "K8": 14477516.365955934,
    //     "K9": -54485567.545958124,
    //     "K10": -58390662.08840067,
    //     "K11": -25786685.54566148,
    //     "K12": -12775479.956604004,
    //     "K13": -24986968.96927038,
    //     "K14": 61530633.76396072
    //   },
    //   "R30": {
    //     "K1": -60408540.21200048,
    //     "K2": -95382025.37231442,
    //     "K3": -82203699.10495462,
    //     "K4": -13019465.837596565,
    //     "K5": 48909150.779518306,
    //     "K6": 35851167.10334942,
    //     "K7": 40932012.4235768,
    //     "K8": 69260655.89888439,
    //     "K9": -3802098.942574486,
    //     "K10": 45939169.58042014,
    //     "K11": 76142036.76493588,
    //     "K12": 673525.662062645,
    //     "K13": -41669688.51011612,
    //     "K14": 53421817.67200649
    //   },
    //   "R32": {
    //     "K1": -89219505.33041811,
    //     "K2": 84086950.08672878,
    //     "K3": -47621981.65450138,
    //     "K4": -43320449.76828926,
    //     "K5": -32075059.245812193,
    //     "K6": 46658032.035206795,
    //     "K7": 74567283.10016194,
    //     "K8": -39210983.69562697,
    //     "K9": -94627388.8717959,
    //     "K10": 51416151.03172833,
    //     "K11": -67059563.23692037,
    //     "K12": 14054536.63035208,
    //     "K13": 1584464.747822255,
    //     "K14": 6139643.822236434
    //   },
    //   "R33": {
    //     "K1": 8509480.473880112,
    //     "K2": 54038030.33899832,
    //     "K3": -67320688.18142922,
    //     "K4": 157803.89888755977,
    //     "K5": -93464588.74322496,
    //     "K6": -73086803.47495252,
    //     "K7": 28811001.462504923,
    //     "K8": -858734.274120152,
    //     "K9": -83736640.3299682,
    //     "K10": -30443417.911967963,
    //     "K11": -59182930.12059839,
    //     "K12": 90991775.95187068,
    //     "K13": -93258202.86744104,
    //     "K14": 75065806.16454467
    //   },
    //   "R34": {
    //     "K1": 64366266.04542029,
    //     "K2": 55875279.07302797,
    //     "K3": -30412639.03126569,
    //     "K4": 20928264.1107547,
    //     "K5": 96073421.19970256,
    //     "K6": 6238152.798862994,
    //     "K7": 82602234.65809983,
    //     "K8": -51657176.4649302,
    //     "K9": 78178158.87128153,
    //     "K10": -49439763.84407458,
    //     "K11": -33046722.950156137,
    //     "K12": -49408589.47432081,
    //     "K13": -17148102.76511787,
    //     "K14": 30072675.67667733
    //   },
    //   "R35": {
    //     "K1": -75256865.62902214,
    //     "K2": -14233162.403070495,
    //     "K3": 89920332.7760945,
    //     "K4": -27753270.94936633,
    //     "K5": -19643007.61510174,
    //     "K6": 16777781.736409515,
    //     "K7": 17366393.979396924,
    //     "K8": 13701608.75001809,
    //     "K9": 43470850.388211966,
    //     "K10": -81511501.13858594,
    //     "K11": -68098284.54304525,
    //     "K12": 10830500.441741318,
    //     "K13": 69405383.63544184,
    //     "K14": -37015749.94596557
    //   },
    //   "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": 64149875,
    //   "UID": "ipsum culpa",
    //   "NmrKods": "anim proi",
    //   "Precizejums": false,
    //   "PrecizejamaisDokuments": -88089515,
    //   "PrecizejumaPamatojums": "Lorem officia"
    // }

    // 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/annv3/: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/annv3/:id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "doc",
        "annv3",
        ":id"
      ],
      "variable": [
        {
          "key": "id",
          "value": "25210683",
          "description": "(Required) Dokumenta id."
        }
      ]
    }
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/annv3/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "annv3",
            ":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\": \"amet nulla incididunt velit\",\n  \"Talrunis\": \"cupidatat\",\n  \"Gads\": 65123793,\n  \"Menesis\": 1,\n  \"Datums\": \"2000-01-31T00:00:00\",\n  \"MaksTerm\": \"2000-01-31T00:00:00\",\n  \"NmStatuss\": \"culpa deserunt eiusmod\",\n  \"R08\": \"eiusmod ex Exce\",\n  \"R09\": \"incididunt ipsum\",\n  \"Sagatavotajs\": \"ipsum occaecat velit deserunt elit\",\n  \"R10\": {\n    \"K1\": 69011754.90285358,\n    \"K2\": -286474.6996511519,\n    \"K3\": -11770878.493984953,\n    \"K4\": 41719405.189673424,\n    \"K5\": 85870200.14192808,\n    \"K6\": 39589872.04420751,\n    \"K7\": 51397767.8996591,\n    \"K8\": 55571455.62865502,\n    \"K9\": -76702183.1212379,\n    \"K10\": -28474693.97053413,\n    \"K11\": -46737859.039462306,\n    \"K12\": -82573888.63207585,\n    \"K13\": -70158761.36809416,\n    \"K14\": 85900068.49806038\n  },\n  \"R11\": {\n    \"K1\": -29800804.37247619,\n    \"K2\": -35066503.0054643,\n    \"K3\": -69175786.56213808,\n    \"K4\": -4016157.839073837,\n    \"K5\": 97099183.8659884,\n    \"K6\": -58101739.06038889,\n    \"K7\": -78979160.79295988,\n    \"K8\": -70096428.85637559,\n    \"K9\": 34582920.550558865,\n    \"K10\": -6122790.466697082,\n    \"K11\": -62807023.9465063,\n    \"K12\": 19535726.419573158,\n    \"K13\": -23693003.608283818,\n    \"K14\": 96377854.71285895\n  },\n  \"R12\": {\n    \"K1\": 87378012.40657729,\n    \"K2\": -27350911.810965165,\n    \"K3\": 94527050.58391708,\n    \"K4\": 21360404.99224791,\n    \"K5\": -29808198.645335168,\n    \"K6\": 39156776.223213136,\n    \"K7\": 24129726.045016974,\n    \"K8\": 9296475.717829809,\n    \"K9\": 82658090.11044899,\n    \"K10\": -30666.993065729737,\n    \"K11\": -4882017.379342288,\n    \"K12\": 13961508.645864919,\n    \"K13\": 18741577.605267107,\n    \"K14\": 59150614.8674168\n  },\n  \"R13\": {\n    \"K1\": -65103989.44215647,\n    \"K2\": 22918342.522944972,\n    \"K3\": 13346606.449489862,\n    \"K4\": 78681659.25435358,\n    \"K5\": 99538886.19077235,\n    \"K6\": -70227435.85379434,\n    \"K7\": -34755089.54101198,\n    \"K8\": -60635259.987631105,\n    \"K9\": -12036440.340121105,\n    \"K10\": -90600607.56641927,\n    \"K11\": 3602952.135728106,\n    \"K12\": -30626183.083574563,\n    \"K13\": 2766316.3714336753,\n    \"K14\": -90986638.1227932\n  },\n  \"R14\": {\n    \"K1\": 40765863.954432696,\n    \"K2\": -67182370.45010902,\n    \"K3\": 11704952.64645721,\n    \"K4\": -84999057.04654682,\n    \"K5\": -36048290.58649277,\n    \"K6\": 62443585.84163031,\n    \"K7\": -32091709.58579573,\n    \"K8\": 43625042.31660575,\n    \"K9\": 16885544.619369015,\n    \"K10\": 80251259.64512235,\n    \"K11\": 27318731.967805788,\n    \"K12\": -14319355.59212181,\n    \"K13\": 41539796.58688739,\n    \"K14\": 88701128.01173308\n  },\n  \"R15\": {\n    \"K1\": -73742078.22814016,\n    \"K2\": 69693131.667204,\n    \"K3\": -12824841.672871351,\n    \"K4\": -22432843.69190924,\n    \"K5\": -25380617.015425906,\n    \"K6\": 84675620.93220896,\n    \"K7\": 99203348.01453814,\n    \"K8\": 70724303.85988456,\n    \"K9\": -98075512.73943722,\n    \"K10\": -47586259.396855325,\n    \"K11\": -50142282.39072187,\n    \"K12\": -21101219.808153406,\n    \"K13\": 1297868.7648593038,\n    \"K14\": -24502689.533988237\n  },\n  \"R16\": {\n    \"K1\": -74716385.73514321,\n    \"K2\": -30943767.37516588,\n    \"K3\": -44399932.76375906,\n    \"K4\": 97725275.84666863,\n    \"K5\": 66676996.76606268,\n    \"K6\": 70624436.77358449,\n    \"K7\": -7465955.914643452,\n    \"K8\": 54575323.67242882,\n    \"K9\": -8226899.7871031165,\n    \"K10\": 22459047.79521121,\n    \"K11\": 62984419.460039735,\n    \"K12\": -38206328.807595424,\n    \"K13\": 4590092.543481678,\n    \"K14\": 13438461.298249975\n  },\n  \"R17\": {\n    \"K1\": -79276235.37118165,\n    \"K2\": 88310970.07092902,\n    \"K3\": 45338636.402314276,\n    \"K4\": -12069175.57364422,\n    \"K5\": -51247006.81518837,\n    \"K6\": -29487667.020108163,\n    \"K7\": -73308992.77850014,\n    \"K8\": -33074376.447444066,\n    \"K9\": -177327.0789398104,\n    \"K10\": 29802067.812471345,\n    \"K11\": -88333827.83231154,\n    \"K12\": 4541758.027439117,\n    \"K13\": -94479383.87846522,\n    \"K14\": 71061466.05379507\n  },\n  \"R18\": {\n    \"K1\": 49157671.97426507,\n    \"K2\": 69861262.56142816,\n    \"K3\": 71178403.34087607,\n    \"K4\": 92454364.55228323,\n    \"K5\": 57063199.17423582,\n    \"K6\": 92226720.2758199,\n    \"K7\": 36492133.54092264,\n    \"K8\": -40110671.71385498,\n    \"K9\": -60517419.6178218,\n    \"K10\": -54041375.469130725,\n    \"K11\": -33424556.83445298,\n    \"K12\": 62335423.58725083,\n    \"K13\": -94396793.40749945,\n    \"K14\": 80252277.86649683\n  },\n  \"R19\": {\n    \"K1\": 123715.51453527808,\n    \"K2\": -30024289.465088308,\n    \"K3\": 20831821.576838523,\n    \"K4\": 13751186.00750947,\n    \"K5\": -82562248.40154359,\n    \"K6\": -91918658.27465749,\n    \"K7\": 53664426.47689101,\n    \"K8\": -98266332.30762978,\n    \"K9\": 83178105.28106353,\n    \"K10\": -99333857.54222001,\n    \"K11\": 53695967.461390644,\n    \"K12\": -28408415.947372362,\n    \"K13\": 76269594.75703493,\n    \"K14\": 31912799.067684934\n  },\n  \"R21\": {\n    \"K1\": -44715463.05692659,\n    \"K2\": 35259445.42232731,\n    \"K3\": -73543212.95697933,\n    \"K4\": 51062825.70996052,\n    \"K5\": -24866924.962759823,\n    \"K6\": -99782144.91487187,\n    \"K7\": 34426916.9880867,\n    \"K8\": 80196114.54963037,\n    \"K9\": -82033296.18403381,\n    \"K10\": 51632187.13585627,\n    \"K11\": -31052880.19715458,\n    \"K12\": -84933115.76651567,\n    \"K13\": -18239617.81592995,\n    \"K14\": -79838514.38359855\n  },\n  \"R22\": {\n    \"K1\": -40657959.122213595,\n    \"K2\": -35666457.192132436,\n    \"K3\": -54900133.81453851,\n    \"K4\": -50660550.33409076,\n    \"K5\": 56372959.6100699,\n    \"K6\": -22617966.86505577,\n    \"K7\": -25785132.50306958,\n    \"K8\": -80599255.28435676,\n    \"K9\": 34162524.82784064,\n    \"K10\": 60312008.3953411,\n    \"K11\": -78494808.23443687,\n    \"K12\": -54561406.25574868,\n    \"K13\": -95947709.11534333,\n    \"K14\": -50199990.21337842\n  },\n  \"R23\": {\n    \"K1\": 41675545.57682341,\n    \"K2\": -8213686.921727166,\n    \"K3\": 52303188.87026709,\n    \"K4\": 35451686.00720307,\n    \"K5\": -70464918.60214852,\n    \"K6\": 83371946.7007502,\n    \"K7\": -72710355.44172299,\n    \"K8\": -70039250.24744335,\n    \"K9\": -5124505.089271426,\n    \"K10\": 52554245.53818181,\n    \"K11\": -9546174.943117559,\n    \"K12\": -97484758.60810348,\n    \"K13\": -4113345.3718183786,\n    \"K14\": -50426233.13131713\n  },\n  \"R24\": {\n    \"K1\": 66133466.26420823,\n    \"K2\": -91964569.1839817,\n    \"K3\": -4096172.611068338,\n    \"K4\": 32181593.09547071,\n    \"K5\": -76106645.14385906,\n    \"K6\": -95263921.22593985,\n    \"K7\": 48077115.43286115,\n    \"K8\": -63433082.57376678,\n    \"K9\": 98066585.07445216,\n    \"K10\": 73490964.03584486,\n    \"K11\": 47120763.647226095,\n    \"K12\": 2914591.4395706058,\n    \"K13\": 47568164.221423656,\n    \"K14\": -18514471.703478158\n  },\n  \"R25\": {\n    \"K1\": -62046475.12956058,\n    \"K2\": -38748807.6190357,\n    \"K3\": 49463934.0935137,\n    \"K4\": -58401680.16387279,\n    \"K5\": 29052171.52058515,\n    \"K6\": -11062992.885137752,\n    \"K7\": 43145282.76044333,\n    \"K8\": -36580995.051727384,\n    \"K9\": 99778589.80893427,\n    \"K10\": -68592671.16203561,\n    \"K11\": 2687004.18798095,\n    \"K12\": -86400621.13214996,\n    \"K13\": 77518804.34014541,\n    \"K14\": -12645410.150312617\n  },\n  \"R26\": {\n    \"K1\": -78591896.14125341,\n    \"K2\": -33541977.987893023,\n    \"K3\": -7126957.559500501,\n    \"K4\": -81283519.89619827,\n    \"K5\": 62149847.61238295,\n    \"K6\": -55398211.15769437,\n    \"K7\": -62452233.28487213,\n    \"K8\": -7969978.069563672,\n    \"K9\": -11435938.536992833,\n    \"K10\": -88980847.07671581,\n    \"K11\": 18580757.84160991,\n    \"K12\": -38332654.85404911,\n    \"K13\": -69024700.81814651,\n    \"K14\": -97678730.99893686\n  },\n  \"R28\": {\n    \"K1\": 92344399.21691194,\n    \"K2\": 10253142.701950192,\n    \"K3\": 84221877.49756199,\n    \"K4\": -93633150.34182805,\n    \"K5\": -1870238.6556153148,\n    \"K6\": -23360941.28930016,\n    \"K7\": 83081373.79069,\n    \"K8\": 14986066.553176299,\n    \"K9\": -53534597.61668642,\n    \"K10\": 91966957.19912711,\n    \"K11\": 828880.8995863944,\n    \"K12\": -22621159.383924723,\n    \"K13\": -57517677.94118683,\n    \"K14\": -43960533.52528262\n  },\n  \"R29\": {\n    \"K1\": 65098068.548140675,\n    \"K2\": -62628847.71550619,\n    \"K3\": -44645096.38325689,\n    \"K4\": -70382336.380874,\n    \"K5\": 77764871.23749784,\n    \"K6\": 85471988.04898414,\n    \"K7\": -92682519.16448605,\n    \"K8\": 14477516.365955934,\n    \"K9\": -54485567.545958124,\n    \"K10\": -58390662.08840067,\n    \"K11\": -25786685.54566148,\n    \"K12\": -12775479.956604004,\n    \"K13\": -24986968.96927038,\n    \"K14\": 61530633.76396072\n  },\n  \"R30\": {\n    \"K1\": -60408540.21200048,\n    \"K2\": -95382025.37231442,\n    \"K3\": -82203699.10495462,\n    \"K4\": -13019465.837596565,\n    \"K5\": 48909150.779518306,\n    \"K6\": 35851167.10334942,\n    \"K7\": 40932012.4235768,\n    \"K8\": 69260655.89888439,\n    \"K9\": -3802098.942574486,\n    \"K10\": 45939169.58042014,\n    \"K11\": 76142036.76493588,\n    \"K12\": 673525.662062645,\n    \"K13\": -41669688.51011612,\n    \"K14\": 53421817.67200649\n  },\n  \"R32\": {\n    \"K1\": -89219505.33041811,\n    \"K2\": 84086950.08672878,\n    \"K3\": -47621981.65450138,\n    \"K4\": -43320449.76828926,\n    \"K5\": -32075059.245812193,\n    \"K6\": 46658032.035206795,\n    \"K7\": 74567283.10016194,\n    \"K8\": -39210983.69562697,\n    \"K9\": -94627388.8717959,\n    \"K10\": 51416151.03172833,\n    \"K11\": -67059563.23692037,\n    \"K12\": 14054536.63035208,\n    \"K13\": 1584464.747822255,\n    \"K14\": 6139643.822236434\n  },\n  \"R33\": {\n    \"K1\": 8509480.473880112,\n    \"K2\": 54038030.33899832,\n    \"K3\": -67320688.18142922,\n    \"K4\": 157803.89888755977,\n    \"K5\": -93464588.74322496,\n    \"K6\": -73086803.47495252,\n    \"K7\": 28811001.462504923,\n    \"K8\": -858734.274120152,\n    \"K9\": -83736640.3299682,\n    \"K10\": -30443417.911967963,\n    \"K11\": -59182930.12059839,\n    \"K12\": 90991775.95187068,\n    \"K13\": -93258202.86744104,\n    \"K14\": 75065806.16454467\n  },\n  \"R34\": {\n    \"K1\": 64366266.04542029,\n    \"K2\": 55875279.07302797,\n    \"K3\": -30412639.03126569,\n    \"K4\": 20928264.1107547,\n    \"K5\": 96073421.19970256,\n    \"K6\": 6238152.798862994,\n    \"K7\": 82602234.65809983,\n    \"K8\": -51657176.4649302,\n    \"K9\": 78178158.87128153,\n    \"K10\": -49439763.84407458,\n    \"K11\": -33046722.950156137,\n    \"K12\": -49408589.47432081,\n    \"K13\": -17148102.76511787,\n    \"K14\": 30072675.67667733\n  },\n  \"R35\": {\n    \"K1\": -75256865.62902214,\n    \"K2\": -14233162.403070495,\n    \"K3\": 89920332.7760945,\n    \"K4\": -27753270.94936633,\n    \"K5\": -19643007.61510174,\n    \"K6\": 16777781.736409515,\n    \"K7\": 17366393.979396924,\n    \"K8\": 13701608.75001809,\n    \"K9\": 43470850.388211966,\n    \"K10\": -81511501.13858594,\n    \"K11\": -68098284.54304525,\n    \"K12\": 10830500.441741318,\n    \"K13\": 69405383.63544184,\n    \"K14\": -37015749.94596557\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\": 64149875,\n  \"UID\": \"ipsum culpa\",\n  \"NmrKods\": \"anim proi\",\n  \"Precizejums\": false,\n  \"PrecizejamaisDokuments\": -88089515,\n  \"PrecizejumaPamatojums\": \"Lorem officia\"\n}"
    },
    {
      "name": "Lietotājs nav autentificēts.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/annv3/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "annv3",
            ":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/annv3/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "annv3",
            ":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/annv3/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "annv3",
            ":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": ""
    }
  ]
}