Chilkat Online Tools

delphiDll / EDS API / Dokuments "PVN taksācijas perioda deklarācija".

Back to Collection Items

var
http: HCkHttp;
success: Boolean;
sbResponseBody: HCkStringBuilder;
jResp: HCkJsonObject;
respStatusCode: Integer;
DarVeids: PWideChar;
VertibaBezPvn: PWideChar;
PvnVertiba: PWideChar;
Npk: Integer;
DpValsts: PWideChar;
DpNumurs: PWideChar;
DpNosaukums: PWideChar;
DokVeids: PWideChar;
DokNumurs: PWideChar;
DokDatums: PWideChar;
ValVertiba: PWideChar;
ValKods: PWideChar;
Valsts: PWideChar;
PVNNumurs: PWideChar;
Summa: PWideChar;
Pazime: PWideChar;
PVNRegistracijasNumurs: PWideChar;
Datums: PWideChar;
PpNosaukums: PWideChar;
RnNumurs: PWideChar;
Vertiba: PWideChar;
PpValsts: PWideChar;
PpNumurs: PWideChar;
EkspVertiba: PWideChar;
MDekNumurs: PWideChar;
MDekDatums: PWideChar;
IzvValsts: PWideChar;
IegadesDatums: PWideChar;
KadastraNumurs: PWideChar;
KadastraApzimejums: PWideChar;
KopejaNodoklaSumma: PWideChar;
Prieksnodoklis: PWideChar;
IzmantosanasProporcija: PWideChar;
DarijumiA: Integer;
MaksajamaisNodoklis: PWideChar;
Informacija: PWideChar;
DarijumiC: Integer;
value: PWideChar;
ParskGads: Integer;
Epasts: PWideChar;
Talrunis: PWideChar;
Sagatavotajs: PWideChar;
SummaParm: PWideChar;
ParmaksUzKontu: Boolean;
ParmaksUzKontuSumma: PWideChar;
IbanNumurs: PWideChar;
R41: PWideChar;
R411: PWideChar;
R42: PWideChar;
R421: PWideChar;
R44: PWideChar;
R45: PWideChar;
R451: PWideChar;
R46: PWideChar;
R47: PWideChar;
R48: PWideChar;
R481: PWideChar;
R43: PWideChar;
R482: PWideChar;
R49: PWideChar;
R50: PWideChar;
R51: PWideChar;
R511: PWideChar;
R52: PWideChar;
R53: PWideChar;
R531: PWideChar;
R54: PWideChar;
R55: PWideChar;
R56: PWideChar;
R561: PWideChar;
R57: PWideChar;
R61: PWideChar;
R62: PWideChar;
R63: PWideChar;
R64: PWideChar;
R65: PWideChar;
R66: PWideChar;
R67: PWideChar;
R31: PWideChar;
R32: PWideChar;
R33: PWideChar;
R34: PWideChar;
PVN6IR41: PWideChar;
PVN6IR42: PWideChar;
PVN6IR43: PWideChar;
PVN6IR44: PWideChar;
PVN6IR51: PWideChar;
PVN6IR52: PWideChar;
PVN6IR53: PWideChar;
PVN6IR54: PWideChar;
R6: PWideChar;
Value: PWideChar;
NosaukumsValue: PWideChar;
SatursValue: PWideChar;
HashValue: PWideChar;
ParskMen: Integer;
ParskCeturksnis: Integer;
TaksPusgads: Integer;
Id: Integer;
UID: PWideChar;
NmrKods: PWideChar;
Precizejums: Boolean;
PrecizejamaisDokuments: Integer;
PrecizejumaPamatojums: PWideChar;
i: Integer;
count_i: Integer;

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

http := CkHttp_Create();

CkHttp_SetRequestHeader(http,'Accept','application/json');

sbResponseBody := CkStringBuilder_Create();
success := CkHttp_QuickGetSb(http,'https://eds.vid.gov.lv/api/doc/pvnv6/:id',sbResponseBody);
if (success = False) then
  begin
    Memo1.Lines.Add(CkHttp__lastErrorText(http));
    Exit;
  end;

jResp := CkJsonObject_Create();
CkJsonObject_LoadSb(jResp,sbResponseBody);
CkJsonObject_putEmitCompact(jResp,False);

Memo1.Lines.Add('Response Body:');
Memo1.Lines.Add(CkJsonObject__emit(jResp));

respStatusCode := CkHttp_getLastStatus(http);
Memo1.Lines.Add('Response Status Code = ' + IntToStr(respStatusCode));
if (respStatusCode >= 400) then
  begin
    Memo1.Lines.Add('Response Header:');
    Memo1.Lines.Add(CkHttp__lastHeader(http));
    Memo1.Lines.Add('Failed.');
    Exit;
  end;

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

// {
//   "ParskGads": 88982682,
//   "Epasts": "id consectetur in nulla",
//   "Talrunis": "elit U",
//   "Sagatavotajs": "veniam aliqua",
//   "SummaParm": 92286950.70628393,
//   "ParmaksUzKontu": false,
//   "ParmaksUzKontuSumma": 74395373.57581803,
//   "IbanNumurs": "Lorem",
//   "PVN": {
//     "R41": -83441905.24765773,
//     "R411": 8021611.865971059,
//     "R42": -79155737.90264912,
//     "R421": -1168220.414537385,
//     "R44": -15459213.516305104,
//     "R45": 50698653.37838283,
//     "R451": 4051999.207801819,
//     "R46": -56715867.33794807,
//     "R47": 47161349.24404228,
//     "R48": -47770532.85019202,
//     "R481": -66614186.00138598,
//     "R43": -85263869.05493264,
//     "R482": 66430869.60217214,
//     "R49": 19698360.99836546,
//     "R50": 87919694.90956753,
//     "R51": -9293787.965777293,
//     "R511": -91132683.63687608,
//     "R52": -11270724.43719767,
//     "R53": -47319407.56589199,
//     "R531": 62016238.780082434,
//     "R54": -67837279.49046136,
//     "R55": -21895066.43351069,
//     "R56": 56158248.93266964,
//     "R561": 16115630.695563167,
//     "R57": -49223339.118834674,
//     "R61": -85839644.45935206,
//     "R62": -24908534.506485224,
//     "R63": -65158582.257685095,
//     "R64": 91896411.34577963,
//     "R65": 87982016.05294845,
//     "R66": -56238329.88226369,
//     "R67": 52621133.480330676
//   },
//   "PVN11": [
//     {
//       "DarVeids": "i",
//       "VertibaBezPvn": -7719830.1683309525,
//       "PvnVertiba": -12522607.052332059,
//       "Npk": -80109963,
//       "DpValsts": "",
//       "DpNumurs": "eu in",
//       "DpNosaukums": "officia sed",
//       "DokVeids": "",
//       "DokNumurs": "dolor voluptate in",
//       "DokDatums": "2000-01-31T00:00:00"
//     },
//     {
//       "DarVeids": "",
//       "VertibaBezPvn": -62819889.57538172,
//       "PvnVertiba": 58268981.66111761,
//       "Npk": -68019301,
//       "DpValsts": "f",
//       "DpNumurs": "sed culpa ad",
//       "DpNosaukums": "reprehenderit est cupidatat officia",
//       "DokVeids": "q",
//       "DokNumurs": "ut mol",
//       "DokDatums": "2000-01-31T00:00:00"
//     }
//   ],
//   "PVN12": [
//     {
//       "DpValsts": "e",
//       "DpNumurs": "ipsum a",
//       "DpNosaukums": "sint",
//       "DarVeids": "",
//       "VertibaBezPvn": 63562400.50801864,
//       "PvnVertiba": 32846322.279514253,
//       "ValVertiba": 75413359.16690683,
//       "ValKods": "d",
//       "DokNumurs": "Duis sit occaecat",
//       "DokDatums": "2000-01-31T00:00:00",
//       "Npk": 57552887
//     },
//     {
//       "DpValsts": "",
//       "DpNumurs": "Excepteur ",
//       "DpNosaukums": "Duis incididunt elit sit",
//       "DarVeids": "e",
//       "VertibaBezPvn": -42652140.45415529,
//       "PvnVertiba": 77356653.34600732,
//       "ValVertiba": -78806450.00114396,
//       "ValKods": "a",
//       "DokNumurs": "dolore dolor enim velit ipsum",
//       "DokDatums": "2000-01-31T00:00:00",
//       "Npk": 72452254
//     }
//   ],
//   "PVN13": [
//     {
//       "VertibaBezPvn": 47403688.82723886,
//       "DokVeids": "",
//       "Npk": -34717280,
//       "DpValsts": "v",
//       "DpNumurs": "d",
//       "DpNosaukums": "aliqua dolore",
//       "DarVeids": "exer",
//       "PvnVertiba": -10628202.60552524,
//       "DokNumurs": "nisi ipsum Ut nost",
//       "DokDatums": "2000-01-31T00:00:00"
//     },
//     {
//       "VertibaBezPvn": 90615123.85615066,
//       "DokVeids": "u",
//       "Npk": 93360718,
//       "DpValsts": "v",
//       "DpNumurs": "laborum cons",
//       "DpNosaukums": "mollit officia",
//       "DarVeids": "ea a",
//       "PvnVertiba": -43812483.08314447,
//       "DokNumurs": "c",
//       "DokDatums": "2000-01-31T00:00:00"
//     }
//   ],
//   "PVN2": [
//     {
//       "Valsts": "do",
//       "PVNNumurs": "Ut oc",
//       "Summa": -57655050.28254316,
//       "Pazime": "",
//       "Npk": 90147332,
//       "PVNRegistracijasNumurs": "dolor"
//     },
//     {
//       "Valsts": "",
//       "PVNNumurs": "in ",
//       "Summa": -94505716.24495012,
//       "Pazime": "",
//       "Npk": -70076652,
//       "PVNRegistracijasNumurs": "Excepteur "
//     }
//   ],
//   "PVN6I": {
//     "R31": -32243867.30967015,
//     "R32": -81732623.78615358,
//     "R33": -69252838.60864222,
//     "R34": -14192960.095398322,
//     "R41": -12038144.736873552,
//     "R42": -53265200.36155089,
//     "R43": -77372120.68610182,
//     "R44": -37736707.7041105,
//     "R51": -21762948.182366148,
//     "R52": -88376489.66154687,
//     "R53": 63999223.63457334,
//     "R54": -62779550.93168819,
//     "R6": -53421927.69007408
//   },
//   "PVN62": [
//     {
//       "Datums": "2000-01-31T00:00:00",
//       "PpNosaukums": "vol",
//       "RnNumurs": "u",
//       "Vertiba": -81606140.74318603,
//       "DokNumurs": "et",
//       "DokDatums": "2000-01-31T00:00:00",
//       "Npk": 64744429,
//       "PpValsts": "E",
//       "PpNumurs": "dolore incididunt labore sunt deserunt",
//       "ValVertiba": -62641052.70513616,
//       "ValKods": "c"
//     },
//     {
//       "Datums": "2000-01-31T00:00:00",
//       "PpNosaukums": "id ex ea",
//       "RnNumurs": "vel",
//       "Vertiba": 37501471.90820402,
//       "DokNumurs": "irure conseq",
//       "DokDatums": "2000-01-31T00:00:00",
//       "Npk": 3175773,
//       "PpValsts": "d",
//       "PpNumurs": "sed adipisicing aute",
//       "ValVertiba": 92948418.51245287,
//       "ValKods": "su"
//     }
//   ],
//   "PVN63": [
//     {
//       "Datums": "2000-01-31T00:00:00",
//       "EkspVertiba": -98073250.95942523,
//       "MDekNumurs": "culpa non",
//       "MDekDatums": "2000-01-31T00:00:00",
//       "IzvValsts": "al",
//       "PpNosaukums": "exercitation pariatur consectetur",
//       "RnNumurs": "",
//       "Vertiba": -8440102.1916468,
//       "DokNumurs": "sint nostrud",
//       "DokDatums": "2000-01-31T00:00:00",
//       "Npk": -12348475,
//       "PpValsts": "",
//       "PpNumurs": "exercitation"
//     },
//     {
//       "Datums": "2000-01-31T00:00:00",
//       "EkspVertiba": -25830020.381065607,
//       "MDekNumurs": "adipisicing nulla",
//       "MDekDatums": "2000-01-31T00:00:00",
//       "IzvValsts": "p",
//       "PpNosaukums": "proident elit enim reprehenderit nulla",
//       "RnNumurs": "p",
//       "Vertiba": 86512416.16760483,
//       "DokNumurs": "esse exercitation",
//       "DokDatums": "2000-01-31T00:00:00",
//       "Npk": -64199459,
//       "PpValsts": "ut elit",
//       "PpNumurs": "cul"
//     }
//   ],
//   "PVN71": [
//     {
//       "IegadesDatums": "2000-01-31T00:00:00",
//       "Npk": -6176207,
//       "KadastraNumurs": "9",
//       "KadastraApzimejums": "6063",
//       "KopejaNodoklaSumma": 51772964.07250026,
//       "Prieksnodoklis": -91573456.3265,
//       "IzmantosanasProporcija": 60135478.469913036,
//       "DarijumiA": 99743946,
//       "MaksajamaisNodoklis": 44062558.15807861,
//       "Informacija": "c",
//       "DarijumiC": 35793601
//     },
//     {
//       "IegadesDatums": "2000-01-31T00:00:00",
//       "Npk": 76283662,
//       "KadastraNumurs": "04733",
//       "KadastraApzimejums": "26510",
//       "KopejaNodoklaSumma": 763817.4696056694,
//       "Prieksnodoklis": -87281123.93708342,
//       "IzmantosanasProporcija": 42239666.99760115,
//       "DarijumiA": 80721155,
//       "MaksajamaisNodoklis": 33545634.21247372,
//       "Informacija": "",
//       "DarijumiC": -23959225
//     }
//   ],
//   "Pielikumi": {
//     "PielikumsRindai47": {
//       "UID": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       },
//       "Nosaukums": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       },
//       "Saturs": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       },
//       "Hash": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       }
//     },
//     "CitiPielikumi": [
//       {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       },
//       {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       }
//     ]
//   },
//   "ParskMen": 11,
//   "ParskCeturksnis": 2,
//   "TaksPusgads": 1,
//   "Id": -86685339,
//   "UID": "eiusmod",
//   "NmrKods": "in aute e",
//   "Precizejums": true,
//   "PrecizejamaisDokuments": -90183965,
//   "PrecizejumaPamatojums": "deserunt sunt"
// }

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

ParskGads := CkJsonObject_IntOf(jResp,'ParskGads');
Epasts := CkJsonObject__stringOf(jResp,'Epasts');
Talrunis := CkJsonObject__stringOf(jResp,'Talrunis');
Sagatavotajs := CkJsonObject__stringOf(jResp,'Sagatavotajs');
SummaParm := CkJsonObject__stringOf(jResp,'SummaParm');
ParmaksUzKontu := CkJsonObject_BoolOf(jResp,'ParmaksUzKontu');
ParmaksUzKontuSumma := CkJsonObject__stringOf(jResp,'ParmaksUzKontuSumma');
IbanNumurs := CkJsonObject__stringOf(jResp,'IbanNumurs');
R41 := CkJsonObject__stringOf(jResp,'PVN.R41');
R411 := CkJsonObject__stringOf(jResp,'PVN.R411');
R42 := CkJsonObject__stringOf(jResp,'PVN.R42');
R421 := CkJsonObject__stringOf(jResp,'PVN.R421');
R44 := CkJsonObject__stringOf(jResp,'PVN.R44');
R45 := CkJsonObject__stringOf(jResp,'PVN.R45');
R451 := CkJsonObject__stringOf(jResp,'PVN.R451');
R46 := CkJsonObject__stringOf(jResp,'PVN.R46');
R47 := CkJsonObject__stringOf(jResp,'PVN.R47');
R48 := CkJsonObject__stringOf(jResp,'PVN.R48');
R481 := CkJsonObject__stringOf(jResp,'PVN.R481');
R43 := CkJsonObject__stringOf(jResp,'PVN.R43');
R482 := CkJsonObject__stringOf(jResp,'PVN.R482');
R49 := CkJsonObject__stringOf(jResp,'PVN.R49');
R50 := CkJsonObject__stringOf(jResp,'PVN.R50');
R51 := CkJsonObject__stringOf(jResp,'PVN.R51');
R511 := CkJsonObject__stringOf(jResp,'PVN.R511');
R52 := CkJsonObject__stringOf(jResp,'PVN.R52');
R53 := CkJsonObject__stringOf(jResp,'PVN.R53');
R531 := CkJsonObject__stringOf(jResp,'PVN.R531');
R54 := CkJsonObject__stringOf(jResp,'PVN.R54');
R55 := CkJsonObject__stringOf(jResp,'PVN.R55');
R56 := CkJsonObject__stringOf(jResp,'PVN.R56');
R561 := CkJsonObject__stringOf(jResp,'PVN.R561');
R57 := CkJsonObject__stringOf(jResp,'PVN.R57');
R61 := CkJsonObject__stringOf(jResp,'PVN.R61');
R62 := CkJsonObject__stringOf(jResp,'PVN.R62');
R63 := CkJsonObject__stringOf(jResp,'PVN.R63');
R64 := CkJsonObject__stringOf(jResp,'PVN.R64');
R65 := CkJsonObject__stringOf(jResp,'PVN.R65');
R66 := CkJsonObject__stringOf(jResp,'PVN.R66');
R67 := CkJsonObject__stringOf(jResp,'PVN.R67');
R31 := CkJsonObject__stringOf(jResp,'PVN6I.R31');
R32 := CkJsonObject__stringOf(jResp,'PVN6I.R32');
R33 := CkJsonObject__stringOf(jResp,'PVN6I.R33');
R34 := CkJsonObject__stringOf(jResp,'PVN6I.R34');
PVN6IR41 := CkJsonObject__stringOf(jResp,'PVN6I.R41');
PVN6IR42 := CkJsonObject__stringOf(jResp,'PVN6I.R42');
PVN6IR43 := CkJsonObject__stringOf(jResp,'PVN6I.R43');
PVN6IR44 := CkJsonObject__stringOf(jResp,'PVN6I.R44');
PVN6IR51 := CkJsonObject__stringOf(jResp,'PVN6I.R51');
PVN6IR52 := CkJsonObject__stringOf(jResp,'PVN6I.R52');
PVN6IR53 := CkJsonObject__stringOf(jResp,'PVN6I.R53');
PVN6IR54 := CkJsonObject__stringOf(jResp,'PVN6I.R54');
R6 := CkJsonObject__stringOf(jResp,'PVN6I.R6');
Value := CkJsonObject__stringOf(jResp,'Pielikumi.PielikumsRindai47.UID.value');
NosaukumsValue := CkJsonObject__stringOf(jResp,'Pielikumi.PielikumsRindai47.Nosaukums.value');
SatursValue := CkJsonObject__stringOf(jResp,'Pielikumi.PielikumsRindai47.Saturs.value');
HashValue := CkJsonObject__stringOf(jResp,'Pielikumi.PielikumsRindai47.Hash.value');
ParskMen := CkJsonObject_IntOf(jResp,'ParskMen');
ParskCeturksnis := CkJsonObject_IntOf(jResp,'ParskCeturksnis');
TaksPusgads := CkJsonObject_IntOf(jResp,'TaksPusgads');
Id := CkJsonObject_IntOf(jResp,'Id');
UID := CkJsonObject__stringOf(jResp,'UID');
NmrKods := CkJsonObject__stringOf(jResp,'NmrKods');
Precizejums := CkJsonObject_BoolOf(jResp,'Precizejums');
PrecizejamaisDokuments := CkJsonObject_IntOf(jResp,'PrecizejamaisDokuments');
PrecizejumaPamatojums := CkJsonObject__stringOf(jResp,'PrecizejumaPamatojums');
i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'PVN11');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    DarVeids := CkJsonObject__stringOf(jResp,'PVN11[i].DarVeids');
    VertibaBezPvn := CkJsonObject__stringOf(jResp,'PVN11[i].VertibaBezPvn');
    PvnVertiba := CkJsonObject__stringOf(jResp,'PVN11[i].PvnVertiba');
    Npk := CkJsonObject_IntOf(jResp,'PVN11[i].Npk');
    DpValsts := CkJsonObject__stringOf(jResp,'PVN11[i].DpValsts');
    DpNumurs := CkJsonObject__stringOf(jResp,'PVN11[i].DpNumurs');
    DpNosaukums := CkJsonObject__stringOf(jResp,'PVN11[i].DpNosaukums');
    DokVeids := CkJsonObject__stringOf(jResp,'PVN11[i].DokVeids');
    DokNumurs := CkJsonObject__stringOf(jResp,'PVN11[i].DokNumurs');
    DokDatums := CkJsonObject__stringOf(jResp,'PVN11[i].DokDatums');
    i := i + 1;
  end;

i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'PVN12');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    DpValsts := CkJsonObject__stringOf(jResp,'PVN12[i].DpValsts');
    DpNumurs := CkJsonObject__stringOf(jResp,'PVN12[i].DpNumurs');
    DpNosaukums := CkJsonObject__stringOf(jResp,'PVN12[i].DpNosaukums');
    DarVeids := CkJsonObject__stringOf(jResp,'PVN12[i].DarVeids');
    VertibaBezPvn := CkJsonObject__stringOf(jResp,'PVN12[i].VertibaBezPvn');
    PvnVertiba := CkJsonObject__stringOf(jResp,'PVN12[i].PvnVertiba');
    ValVertiba := CkJsonObject__stringOf(jResp,'PVN12[i].ValVertiba');
    ValKods := CkJsonObject__stringOf(jResp,'PVN12[i].ValKods');
    DokNumurs := CkJsonObject__stringOf(jResp,'PVN12[i].DokNumurs');
    DokDatums := CkJsonObject__stringOf(jResp,'PVN12[i].DokDatums');
    Npk := CkJsonObject_IntOf(jResp,'PVN12[i].Npk');
    i := i + 1;
  end;

i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'PVN13');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    VertibaBezPvn := CkJsonObject__stringOf(jResp,'PVN13[i].VertibaBezPvn');
    DokVeids := CkJsonObject__stringOf(jResp,'PVN13[i].DokVeids');
    Npk := CkJsonObject_IntOf(jResp,'PVN13[i].Npk');
    DpValsts := CkJsonObject__stringOf(jResp,'PVN13[i].DpValsts');
    DpNumurs := CkJsonObject__stringOf(jResp,'PVN13[i].DpNumurs');
    DpNosaukums := CkJsonObject__stringOf(jResp,'PVN13[i].DpNosaukums');
    DarVeids := CkJsonObject__stringOf(jResp,'PVN13[i].DarVeids');
    PvnVertiba := CkJsonObject__stringOf(jResp,'PVN13[i].PvnVertiba');
    DokNumurs := CkJsonObject__stringOf(jResp,'PVN13[i].DokNumurs');
    DokDatums := CkJsonObject__stringOf(jResp,'PVN13[i].DokDatums');
    i := i + 1;
  end;

i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'PVN2');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    Valsts := CkJsonObject__stringOf(jResp,'PVN2[i].Valsts');
    PVNNumurs := CkJsonObject__stringOf(jResp,'PVN2[i].PVNNumurs');
    Summa := CkJsonObject__stringOf(jResp,'PVN2[i].Summa');
    Pazime := CkJsonObject__stringOf(jResp,'PVN2[i].Pazime');
    Npk := CkJsonObject_IntOf(jResp,'PVN2[i].Npk');
    PVNRegistracijasNumurs := CkJsonObject__stringOf(jResp,'PVN2[i].PVNRegistracijasNumurs');
    i := i + 1;
  end;

i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'PVN62');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    Datums := CkJsonObject__stringOf(jResp,'PVN62[i].Datums');
    PpNosaukums := CkJsonObject__stringOf(jResp,'PVN62[i].PpNosaukums');
    RnNumurs := CkJsonObject__stringOf(jResp,'PVN62[i].RnNumurs');
    Vertiba := CkJsonObject__stringOf(jResp,'PVN62[i].Vertiba');
    DokNumurs := CkJsonObject__stringOf(jResp,'PVN62[i].DokNumurs');
    DokDatums := CkJsonObject__stringOf(jResp,'PVN62[i].DokDatums');
    Npk := CkJsonObject_IntOf(jResp,'PVN62[i].Npk');
    PpValsts := CkJsonObject__stringOf(jResp,'PVN62[i].PpValsts');
    PpNumurs := CkJsonObject__stringOf(jResp,'PVN62[i].PpNumurs');
    ValVertiba := CkJsonObject__stringOf(jResp,'PVN62[i].ValVertiba');
    ValKods := CkJsonObject__stringOf(jResp,'PVN62[i].ValKods');
    i := i + 1;
  end;

i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'PVN63');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    Datums := CkJsonObject__stringOf(jResp,'PVN63[i].Datums');
    EkspVertiba := CkJsonObject__stringOf(jResp,'PVN63[i].EkspVertiba');
    MDekNumurs := CkJsonObject__stringOf(jResp,'PVN63[i].MDekNumurs');
    MDekDatums := CkJsonObject__stringOf(jResp,'PVN63[i].MDekDatums');
    IzvValsts := CkJsonObject__stringOf(jResp,'PVN63[i].IzvValsts');
    PpNosaukums := CkJsonObject__stringOf(jResp,'PVN63[i].PpNosaukums');
    RnNumurs := CkJsonObject__stringOf(jResp,'PVN63[i].RnNumurs');
    Vertiba := CkJsonObject__stringOf(jResp,'PVN63[i].Vertiba');
    DokNumurs := CkJsonObject__stringOf(jResp,'PVN63[i].DokNumurs');
    DokDatums := CkJsonObject__stringOf(jResp,'PVN63[i].DokDatums');
    Npk := CkJsonObject_IntOf(jResp,'PVN63[i].Npk');
    PpValsts := CkJsonObject__stringOf(jResp,'PVN63[i].PpValsts');
    PpNumurs := CkJsonObject__stringOf(jResp,'PVN63[i].PpNumurs');
    i := i + 1;
  end;

i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'PVN71');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    IegadesDatums := CkJsonObject__stringOf(jResp,'PVN71[i].IegadesDatums');
    Npk := CkJsonObject_IntOf(jResp,'PVN71[i].Npk');
    KadastraNumurs := CkJsonObject__stringOf(jResp,'PVN71[i].KadastraNumurs');
    KadastraApzimejums := CkJsonObject__stringOf(jResp,'PVN71[i].KadastraApzimejums');
    KopejaNodoklaSumma := CkJsonObject__stringOf(jResp,'PVN71[i].KopejaNodoklaSumma');
    Prieksnodoklis := CkJsonObject__stringOf(jResp,'PVN71[i].Prieksnodoklis');
    IzmantosanasProporcija := CkJsonObject__stringOf(jResp,'PVN71[i].IzmantosanasProporcija');
    DarijumiA := CkJsonObject_IntOf(jResp,'PVN71[i].DarijumiA');
    MaksajamaisNodoklis := CkJsonObject__stringOf(jResp,'PVN71[i].MaksajamaisNodoklis');
    Informacija := CkJsonObject__stringOf(jResp,'PVN71[i].Informacija');
    DarijumiC := CkJsonObject_IntOf(jResp,'PVN71[i].DarijumiC');
    i := i + 1;
  end;

i := 0;
count_i := CkJsonObject_SizeOfArray(jResp,'Pielikumi.CitiPielikumi');
while i < count_i do
  begin
    CkJsonObject_putI(jResp,i);
    value := CkJsonObject__stringOf(jResp,'Pielikumi.CitiPielikumi[i].value');
    i := i + 1;
  end;

CkHttp_Dispose(http);
CkStringBuilder_Dispose(sbResponseBody);
CkJsonObject_Dispose(jResp);

Curl Command

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

Postman Collection Item JSON

{
  "name": "Dokuments \"PVN taksācijas perioda deklarācija\".",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/doc/pvnv6/:id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "doc",
        "pvnv6",
        ":id"
      ],
      "variable": [
        {
          "key": "id",
          "value": "25210683",
          "description": "(Required) Dokumenta id."
        }
      ]
    }
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnv6/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnv6",
            ":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  \"ParskGads\": 88982682,\n  \"Epasts\": \"id consectetur in nulla\",\n  \"Talrunis\": \"elit U\",\n  \"Sagatavotajs\": \"veniam aliqua\",\n  \"SummaParm\": 92286950.70628393,\n  \"ParmaksUzKontu\": false,\n  \"ParmaksUzKontuSumma\": 74395373.57581803,\n  \"IbanNumurs\": \"Lorem\",\n  \"PVN\": {\n    \"R41\": -83441905.24765773,\n    \"R411\": 8021611.865971059,\n    \"R42\": -79155737.90264912,\n    \"R421\": -1168220.414537385,\n    \"R44\": -15459213.516305104,\n    \"R45\": 50698653.37838283,\n    \"R451\": 4051999.207801819,\n    \"R46\": -56715867.33794807,\n    \"R47\": 47161349.24404228,\n    \"R48\": -47770532.85019202,\n    \"R481\": -66614186.00138598,\n    \"R43\": -85263869.05493264,\n    \"R482\": 66430869.60217214,\n    \"R49\": 19698360.99836546,\n    \"R50\": 87919694.90956753,\n    \"R51\": -9293787.965777293,\n    \"R511\": -91132683.63687608,\n    \"R52\": -11270724.43719767,\n    \"R53\": -47319407.56589199,\n    \"R531\": 62016238.780082434,\n    \"R54\": -67837279.49046136,\n    \"R55\": -21895066.43351069,\n    \"R56\": 56158248.93266964,\n    \"R561\": 16115630.695563167,\n    \"R57\": -49223339.118834674,\n    \"R61\": -85839644.45935206,\n    \"R62\": -24908534.506485224,\n    \"R63\": -65158582.257685095,\n    \"R64\": 91896411.34577963,\n    \"R65\": 87982016.05294845,\n    \"R66\": -56238329.88226369,\n    \"R67\": 52621133.480330676\n  },\n  \"PVN11\": [\n    {\n      \"DarVeids\": \"i\",\n      \"VertibaBezPvn\": -7719830.1683309525,\n      \"PvnVertiba\": -12522607.052332059,\n      \"Npk\": -80109963,\n      \"DpValsts\": \"\",\n      \"DpNumurs\": \"eu in\",\n      \"DpNosaukums\": \"officia sed\",\n      \"DokVeids\": \"\",\n      \"DokNumurs\": \"dolor voluptate in\",\n      \"DokDatums\": \"2000-01-31T00:00:00\"\n    },\n    {\n      \"DarVeids\": \"\",\n      \"VertibaBezPvn\": -62819889.57538172,\n      \"PvnVertiba\": 58268981.66111761,\n      \"Npk\": -68019301,\n      \"DpValsts\": \"f\",\n      \"DpNumurs\": \"sed culpa ad\",\n      \"DpNosaukums\": \"reprehenderit est cupidatat officia\",\n      \"DokVeids\": \"q\",\n      \"DokNumurs\": \"ut mol\",\n      \"DokDatums\": \"2000-01-31T00:00:00\"\n    }\n  ],\n  \"PVN12\": [\n    {\n      \"DpValsts\": \"e\",\n      \"DpNumurs\": \"ipsum a\",\n      \"DpNosaukums\": \"sint\",\n      \"DarVeids\": \"\",\n      \"VertibaBezPvn\": 63562400.50801864,\n      \"PvnVertiba\": 32846322.279514253,\n      \"ValVertiba\": 75413359.16690683,\n      \"ValKods\": \"d\",\n      \"DokNumurs\": \"Duis sit occaecat\",\n      \"DokDatums\": \"2000-01-31T00:00:00\",\n      \"Npk\": 57552887\n    },\n    {\n      \"DpValsts\": \"\",\n      \"DpNumurs\": \"Excepteur \",\n      \"DpNosaukums\": \"Duis incididunt elit sit\",\n      \"DarVeids\": \"e\",\n      \"VertibaBezPvn\": -42652140.45415529,\n      \"PvnVertiba\": 77356653.34600732,\n      \"ValVertiba\": -78806450.00114396,\n      \"ValKods\": \"a\",\n      \"DokNumurs\": \"dolore dolor enim velit ipsum\",\n      \"DokDatums\": \"2000-01-31T00:00:00\",\n      \"Npk\": 72452254\n    }\n  ],\n  \"PVN13\": [\n    {\n      \"VertibaBezPvn\": 47403688.82723886,\n      \"DokVeids\": \"\",\n      \"Npk\": -34717280,\n      \"DpValsts\": \"v\",\n      \"DpNumurs\": \"d\",\n      \"DpNosaukums\": \"aliqua dolore\",\n      \"DarVeids\": \"exer\",\n      \"PvnVertiba\": -10628202.60552524,\n      \"DokNumurs\": \"nisi ipsum Ut nost\",\n      \"DokDatums\": \"2000-01-31T00:00:00\"\n    },\n    {\n      \"VertibaBezPvn\": 90615123.85615066,\n      \"DokVeids\": \"u\",\n      \"Npk\": 93360718,\n      \"DpValsts\": \"v\",\n      \"DpNumurs\": \"laborum cons\",\n      \"DpNosaukums\": \"mollit officia\",\n      \"DarVeids\": \"ea a\",\n      \"PvnVertiba\": -43812483.08314447,\n      \"DokNumurs\": \"c\",\n      \"DokDatums\": \"2000-01-31T00:00:00\"\n    }\n  ],\n  \"PVN2\": [\n    {\n      \"Valsts\": \"do\",\n      \"PVNNumurs\": \"Ut oc\",\n      \"Summa\": -57655050.28254316,\n      \"Pazime\": \"\",\n      \"Npk\": 90147332,\n      \"PVNRegistracijasNumurs\": \"dolor\"\n    },\n    {\n      \"Valsts\": \"\",\n      \"PVNNumurs\": \"in \",\n      \"Summa\": -94505716.24495012,\n      \"Pazime\": \"\",\n      \"Npk\": -70076652,\n      \"PVNRegistracijasNumurs\": \"Excepteur \"\n    }\n  ],\n  \"PVN6I\": {\n    \"R31\": -32243867.30967015,\n    \"R32\": -81732623.78615358,\n    \"R33\": -69252838.60864222,\n    \"R34\": -14192960.095398322,\n    \"R41\": -12038144.736873552,\n    \"R42\": -53265200.36155089,\n    \"R43\": -77372120.68610182,\n    \"R44\": -37736707.7041105,\n    \"R51\": -21762948.182366148,\n    \"R52\": -88376489.66154687,\n    \"R53\": 63999223.63457334,\n    \"R54\": -62779550.93168819,\n    \"R6\": -53421927.69007408\n  },\n  \"PVN62\": [\n    {\n      \"Datums\": \"2000-01-31T00:00:00\",\n      \"PpNosaukums\": \"vol\",\n      \"RnNumurs\": \"u\",\n      \"Vertiba\": -81606140.74318603,\n      \"DokNumurs\": \"et\",\n      \"DokDatums\": \"2000-01-31T00:00:00\",\n      \"Npk\": 64744429,\n      \"PpValsts\": \"E\",\n      \"PpNumurs\": \"dolore incididunt labore sunt deserunt\",\n      \"ValVertiba\": -62641052.70513616,\n      \"ValKods\": \"c\"\n    },\n    {\n      \"Datums\": \"2000-01-31T00:00:00\",\n      \"PpNosaukums\": \"id ex ea\",\n      \"RnNumurs\": \"vel\",\n      \"Vertiba\": 37501471.90820402,\n      \"DokNumurs\": \"irure conseq\",\n      \"DokDatums\": \"2000-01-31T00:00:00\",\n      \"Npk\": 3175773,\n      \"PpValsts\": \"d\",\n      \"PpNumurs\": \"sed adipisicing aute\",\n      \"ValVertiba\": 92948418.51245287,\n      \"ValKods\": \"su\"\n    }\n  ],\n  \"PVN63\": [\n    {\n      \"Datums\": \"2000-01-31T00:00:00\",\n      \"EkspVertiba\": -98073250.95942523,\n      \"MDekNumurs\": \"culpa non\",\n      \"MDekDatums\": \"2000-01-31T00:00:00\",\n      \"IzvValsts\": \"al\",\n      \"PpNosaukums\": \"exercitation pariatur consectetur\",\n      \"RnNumurs\": \"\",\n      \"Vertiba\": -8440102.1916468,\n      \"DokNumurs\": \"sint nostrud\",\n      \"DokDatums\": \"2000-01-31T00:00:00\",\n      \"Npk\": -12348475,\n      \"PpValsts\": \"\",\n      \"PpNumurs\": \"exercitation\"\n    },\n    {\n      \"Datums\": \"2000-01-31T00:00:00\",\n      \"EkspVertiba\": -25830020.381065607,\n      \"MDekNumurs\": \"adipisicing nulla\",\n      \"MDekDatums\": \"2000-01-31T00:00:00\",\n      \"IzvValsts\": \"p\",\n      \"PpNosaukums\": \"proident elit enim reprehenderit nulla\",\n      \"RnNumurs\": \"p\",\n      \"Vertiba\": 86512416.16760483,\n      \"DokNumurs\": \"esse exercitation\",\n      \"DokDatums\": \"2000-01-31T00:00:00\",\n      \"Npk\": -64199459,\n      \"PpValsts\": \"ut elit\",\n      \"PpNumurs\": \"cul\"\n    }\n  ],\n  \"PVN71\": [\n    {\n      \"IegadesDatums\": \"2000-01-31T00:00:00\",\n      \"Npk\": -6176207,\n      \"KadastraNumurs\": \"9\",\n      \"KadastraApzimejums\": \"6063\",\n      \"KopejaNodoklaSumma\": 51772964.07250026,\n      \"Prieksnodoklis\": -91573456.3265,\n      \"IzmantosanasProporcija\": 60135478.469913036,\n      \"DarijumiA\": 99743946,\n      \"MaksajamaisNodoklis\": 44062558.15807861,\n      \"Informacija\": \"c\",\n      \"DarijumiC\": 35793601\n    },\n    {\n      \"IegadesDatums\": \"2000-01-31T00:00:00\",\n      \"Npk\": 76283662,\n      \"KadastraNumurs\": \"04733\",\n      \"KadastraApzimejums\": \"26510\",\n      \"KopejaNodoklaSumma\": 763817.4696056694,\n      \"Prieksnodoklis\": -87281123.93708342,\n      \"IzmantosanasProporcija\": 42239666.99760115,\n      \"DarijumiA\": 80721155,\n      \"MaksajamaisNodoklis\": 33545634.21247372,\n      \"Informacija\": \"\",\n      \"DarijumiC\": -23959225\n    }\n  ],\n  \"Pielikumi\": {\n    \"PielikumsRindai47\": {\n      \"UID\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Nosaukums\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Saturs\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Hash\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"CitiPielikumi\": [\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  \"ParskMen\": 11,\n  \"ParskCeturksnis\": 2,\n  \"TaksPusgads\": 1,\n  \"Id\": -86685339,\n  \"UID\": \"eiusmod\",\n  \"NmrKods\": \"in aute e\",\n  \"Precizejums\": true,\n  \"PrecizejamaisDokuments\": -90183965,\n  \"PrecizejumaPamatojums\": \"deserunt sunt\"\n}"
    },
    {
      "name": "Lietotājs nav autentificēts.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnv6/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnv6",
            ":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/pvnv6/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnv6",
            ":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/pvnv6/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnv6",
            ":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": ""
    }
  ]
}