SQL Server / EDS API / Dokuments "Pārskats par tiešo nodokļu atlaidēm un atbalstu ieguldījumu veikšanai".
Back to Collection Items
-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
-- Important: Do not use nvarchar(max). See the warning about using nvarchar(max).
DECLARE @sTmp0 nvarchar(4000)
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @http int
-- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'
DECLARE @sbResponseBody int
-- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @http, 'QuickGetSb', @success OUT, 'https://eds.vid.gov.lv/api/doc/tnav2/:id', @sbResponseBody
IF @success = 0
BEGIN
EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @sbResponseBody
RETURN
END
DECLARE @jResp int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT
EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
EXEC sp_OASetProperty @jResp, 'EmitCompact', 0
PRINT 'Response Body:'
EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
PRINT @sTmp0
DECLARE @respStatusCode int
EXEC sp_OAGetProperty @http, 'LastStatus', @respStatusCode OUT
PRINT 'Response Status Code = ' + @respStatusCode
IF @respStatusCode >= 400
BEGIN
PRINT 'Response Header:'
EXEC sp_OAGetProperty @http, 'LastHeader', @sTmp0 OUT
PRINT @sTmp0
PRINT 'Failed.'
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
RETURN
END
-- Sample JSON response:
-- (Sample code for parsing the JSON response is shown below)
-- {
-- "TaksNo": "2000-01-31T00:00:00",
-- "TaksLidz": "2000-01-31T00:00:00",
-- "Epasts": "sed",
-- "Talrunis": "Duis u",
-- "Sagatavotajs": "culpa",
-- "R021": 20315906.116601974,
-- "R022": -61851466.616407834,
-- "R023": -3784754.811457798,
-- "R027Proc": -43191991.81540565,
-- "R027": 81749181.92572099,
-- "R028": 89221232.42839152,
-- "R029Proc": 87194117.8460764,
-- "R029": -2589640.38362439,
-- "R031": 60624455.21640742,
-- "R032": 63693008.897661984,
-- "R041": 55072033.556542635,
-- "R042": -74719243.59231457,
-- "R043": -49153745.67511059,
-- "R044": 77388360.48374161,
-- "R045": 93163563.6837829,
-- "R046": -11213941.923736036,
-- "R047": 40192475.45927173,
-- "R048Text": "quis in",
-- "R048": -85044547.56044617,
-- "R05": -20502042.2216855,
-- "R06": 18732287.88817753,
-- "R07": 44739889.77206805,
-- "R081": 96001089.93872571,
-- "R082": -76951175.44924127,
-- "R083": 2955251.3419849128,
-- "R09_Tabula": [
-- {
-- "IeguldSumma": 86276282.75377223,
-- "Kods": "officia nostrud cillum labore"
-- },
-- {
-- "IeguldSumma": 28942915.74151948,
-- "Kods": "aliqua"
-- }
-- ],
-- "R10_Tabula": [
-- {
-- "IeguldSumma": -31721504.967451915,
-- "Kods": "esse culpa "
-- },
-- {
-- "IeguldSumma": -58642566.252877384,
-- "Kods": "dolore aliqua quis"
-- }
-- ],
-- "R11_Tabula": [
-- {
-- "IeguldSumma": 81499190.51709351,
-- "Kods": "dolor aliquip occaecat do ea"
-- },
-- {
-- "IeguldSumma": 76755454.40086395,
-- "Kods": "nostrud"
-- }
-- ],
-- "R12_Tabula": [
-- {
-- "NINA": 79796877.36835039,
-- "UINA": 30331571.006744444,
-- "Kods": "irure in et ex",
-- "IeguldSumma": 54630688.33858213
-- },
-- {
-- "NINA": -6240697.226656616,
-- "UINA": 23590322.479562834,
-- "Kods": "consequat do ut",
-- "IeguldSumma": 63786168.45582652
-- }
-- ],
-- "R13_Tabula": [
-- {
-- "IeguldSumma": 30523200.60888873,
-- "Kods": "pariatur occaecat nostrud eu"
-- },
-- {
-- "IeguldSumma": -86174886.3759622,
-- "Kods": "Lorem sunt"
-- }
-- ],
-- "Ieguldijumi1": [
-- {
-- "Kods": "adipisicing deserunt nisi",
-- "IeguldNos": "sit nulla irure nisi",
-- "IeguldSumma": 24879133.12293549
-- },
-- {
-- "Kods": "tempor in voluptate",
-- "IeguldNos": "in incididunt Excepteur",
-- "IeguldSumma": -46005550.41745236
-- }
-- ],
-- "Ieguldijumi2": [
-- {
-- "Kods": "cupidatat Lorem consectetur",
-- "IeguldNos": "Duis",
-- "AtlProcents": 80216092,
-- "IeguldSumma": 74086661.08514467
-- },
-- {
-- "Kods": "ipsum anim amet",
-- "IeguldNos": "in fugiat voluptate et eu",
-- "AtlProcents": 44814656,
-- "IeguldSumma": -63030813.24776003
-- }
-- ],
-- "Pielikumi": [
-- {
-- "Fails": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "Komentars": "reprehenderit culpa qui sed"
-- },
-- {
-- "Fails": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "Komentars": "sunt proident"
-- }
-- ],
-- "Id": -54089874,
-- "UID": "aliquip culpa",
-- "NmrKods": "nisi ",
-- "Precizejums": true,
-- "PrecizejamaisDokuments": -6713016,
-- "PrecizejumaPamatojums": "anim ex"
-- }
-- Sample code for parsing the JSON response...
-- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
DECLARE @IeguldSumma nvarchar(4000)
DECLARE @Kods nvarchar(4000)
DECLARE @NINA nvarchar(4000)
DECLARE @UINA nvarchar(4000)
DECLARE @IeguldNos nvarchar(4000)
DECLARE @AtlProcents int
DECLARE @Value nvarchar(4000)
DECLARE @Komentars nvarchar(4000)
DECLARE @TaksNo nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @TaksNo OUT, 'TaksNo'
DECLARE @TaksLidz nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @TaksLidz OUT, 'TaksLidz'
DECLARE @Epasts nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Epasts OUT, 'Epasts'
DECLARE @Talrunis nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Talrunis OUT, 'Talrunis'
DECLARE @Sagatavotajs nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Sagatavotajs OUT, 'Sagatavotajs'
DECLARE @R021 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R021 OUT, 'R021'
DECLARE @R022 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R022 OUT, 'R022'
DECLARE @R023 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R023 OUT, 'R023'
DECLARE @R027Proc nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R027Proc OUT, 'R027Proc'
DECLARE @R027 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R027 OUT, 'R027'
DECLARE @R028 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R028 OUT, 'R028'
DECLARE @R029Proc nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R029Proc OUT, 'R029Proc'
DECLARE @R029 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R029 OUT, 'R029'
DECLARE @R031 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R031 OUT, 'R031'
DECLARE @R032 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R032 OUT, 'R032'
DECLARE @R041 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R041 OUT, 'R041'
DECLARE @R042 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R042 OUT, 'R042'
DECLARE @R043 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R043 OUT, 'R043'
DECLARE @R044 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R044 OUT, 'R044'
DECLARE @R045 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R045 OUT, 'R045'
DECLARE @R046 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R046 OUT, 'R046'
DECLARE @R047 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R047 OUT, 'R047'
DECLARE @R048Text nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R048Text OUT, 'R048Text'
DECLARE @R048 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R048 OUT, 'R048'
DECLARE @R05 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R05 OUT, 'R05'
DECLARE @R06 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R06 OUT, 'R06'
DECLARE @R07 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R07 OUT, 'R07'
DECLARE @R081 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R081 OUT, 'R081'
DECLARE @R082 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R082 OUT, 'R082'
DECLARE @R083 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R083 OUT, 'R083'
DECLARE @Id int
EXEC sp_OAMethod @jResp, 'IntOf', @Id OUT, 'Id'
DECLARE @UID nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @UID OUT, 'UID'
DECLARE @NmrKods nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @NmrKods OUT, 'NmrKods'
DECLARE @Precizejums int
EXEC sp_OAMethod @jResp, 'BoolOf', @Precizejums OUT, 'Precizejums'
DECLARE @PrecizejamaisDokuments int
EXEC sp_OAMethod @jResp, 'IntOf', @PrecizejamaisDokuments OUT, 'PrecizejamaisDokuments'
DECLARE @PrecizejumaPamatojums nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @PrecizejumaPamatojums OUT, 'PrecizejumaPamatojums'
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'R09_Tabula'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @IeguldSumma OUT, 'R09_Tabula[i].IeguldSumma'
EXEC sp_OAMethod @jResp, 'StringOf', @Kods OUT, 'R09_Tabula[i].Kods'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'R10_Tabula'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @IeguldSumma OUT, 'R10_Tabula[i].IeguldSumma'
EXEC sp_OAMethod @jResp, 'StringOf', @Kods OUT, 'R10_Tabula[i].Kods'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'R11_Tabula'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @IeguldSumma OUT, 'R11_Tabula[i].IeguldSumma'
EXEC sp_OAMethod @jResp, 'StringOf', @Kods OUT, 'R11_Tabula[i].Kods'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'R12_Tabula'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @NINA OUT, 'R12_Tabula[i].NINA'
EXEC sp_OAMethod @jResp, 'StringOf', @UINA OUT, 'R12_Tabula[i].UINA'
EXEC sp_OAMethod @jResp, 'StringOf', @Kods OUT, 'R12_Tabula[i].Kods'
EXEC sp_OAMethod @jResp, 'StringOf', @IeguldSumma OUT, 'R12_Tabula[i].IeguldSumma'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'R13_Tabula'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @IeguldSumma OUT, 'R13_Tabula[i].IeguldSumma'
EXEC sp_OAMethod @jResp, 'StringOf', @Kods OUT, 'R13_Tabula[i].Kods'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Ieguldijumi1'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @Kods OUT, 'Ieguldijumi1[i].Kods'
EXEC sp_OAMethod @jResp, 'StringOf', @IeguldNos OUT, 'Ieguldijumi1[i].IeguldNos'
EXEC sp_OAMethod @jResp, 'StringOf', @IeguldSumma OUT, 'Ieguldijumi1[i].IeguldSumma'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Ieguldijumi2'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @Kods OUT, 'Ieguldijumi2[i].Kods'
EXEC sp_OAMethod @jResp, 'StringOf', @IeguldNos OUT, 'Ieguldijumi2[i].IeguldNos'
EXEC sp_OAMethod @jResp, 'IntOf', @AtlProcents OUT, 'Ieguldijumi2[i].AtlProcents'
EXEC sp_OAMethod @jResp, 'StringOf', @IeguldSumma OUT, 'Ieguldijumi2[i].IeguldSumma'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Pielikumi'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'Pielikumi[i].Fails.value'
EXEC sp_OAMethod @jResp, 'StringOf', @Komentars OUT, 'Pielikumi[i].Komentars'
SELECT @i = @i + 1
END
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO
Curl Command
curl -X GET
-H "Accept: application/json"
https://eds.vid.gov.lv/api/doc/tnav2/:id
Postman Collection Item JSON
{
"name": "Dokuments \"Pārskats par tiešo nodokļu atlaidēm un atbalstu ieguldījumu veikšanai\".",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/doc/tnav2/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"tnav2",
":id"
],
"variable": [
{
"key": "id",
"value": "25210683",
"description": "(Required) Dokumenta id."
}
]
}
},
"response": [
{
"name": "OK",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/api/doc/tnav2/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"tnav2",
":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 \"TaksNo\": \"2000-01-31T00:00:00\",\n \"TaksLidz\": \"2000-01-31T00:00:00\",\n \"Epasts\": \"sed\",\n \"Talrunis\": \"Duis u\",\n \"Sagatavotajs\": \"culpa\",\n \"R021\": 20315906.116601974,\n \"R022\": -61851466.616407834,\n \"R023\": -3784754.811457798,\n \"R027Proc\": -43191991.81540565,\n \"R027\": 81749181.92572099,\n \"R028\": 89221232.42839152,\n \"R029Proc\": 87194117.8460764,\n \"R029\": -2589640.38362439,\n \"R031\": 60624455.21640742,\n \"R032\": 63693008.897661984,\n \"R041\": 55072033.556542635,\n \"R042\": -74719243.59231457,\n \"R043\": -49153745.67511059,\n \"R044\": 77388360.48374161,\n \"R045\": 93163563.6837829,\n \"R046\": -11213941.923736036,\n \"R047\": 40192475.45927173,\n \"R048Text\": \"quis in\",\n \"R048\": -85044547.56044617,\n \"R05\": -20502042.2216855,\n \"R06\": 18732287.88817753,\n \"R07\": 44739889.77206805,\n \"R081\": 96001089.93872571,\n \"R082\": -76951175.44924127,\n \"R083\": 2955251.3419849128,\n \"R09_Tabula\": [\n {\n \"IeguldSumma\": 86276282.75377223,\n \"Kods\": \"officia nostrud cillum labore\"\n },\n {\n \"IeguldSumma\": 28942915.74151948,\n \"Kods\": \"aliqua\"\n }\n ],\n \"R10_Tabula\": [\n {\n \"IeguldSumma\": -31721504.967451915,\n \"Kods\": \"esse culpa \"\n },\n {\n \"IeguldSumma\": -58642566.252877384,\n \"Kods\": \"dolore aliqua quis\"\n }\n ],\n \"R11_Tabula\": [\n {\n \"IeguldSumma\": 81499190.51709351,\n \"Kods\": \"dolor aliquip occaecat do ea\"\n },\n {\n \"IeguldSumma\": 76755454.40086395,\n \"Kods\": \"nostrud\"\n }\n ],\n \"R12_Tabula\": [\n {\n \"NINA\": 79796877.36835039,\n \"UINA\": 30331571.006744444,\n \"Kods\": \"irure in et ex\",\n \"IeguldSumma\": 54630688.33858213\n },\n {\n \"NINA\": -6240697.226656616,\n \"UINA\": 23590322.479562834,\n \"Kods\": \"consequat do ut\",\n \"IeguldSumma\": 63786168.45582652\n }\n ],\n \"R13_Tabula\": [\n {\n \"IeguldSumma\": 30523200.60888873,\n \"Kods\": \"pariatur occaecat nostrud eu\"\n },\n {\n \"IeguldSumma\": -86174886.3759622,\n \"Kods\": \"Lorem sunt\"\n }\n ],\n \"Ieguldijumi1\": [\n {\n \"Kods\": \"adipisicing deserunt nisi\",\n \"IeguldNos\": \"sit nulla irure nisi\",\n \"IeguldSumma\": 24879133.12293549\n },\n {\n \"Kods\": \"tempor in voluptate\",\n \"IeguldNos\": \"in incididunt Excepteur\",\n \"IeguldSumma\": -46005550.41745236\n }\n ],\n \"Ieguldijumi2\": [\n {\n \"Kods\": \"cupidatat Lorem consectetur\",\n \"IeguldNos\": \"Duis\",\n \"AtlProcents\": 80216092,\n \"IeguldSumma\": 74086661.08514467\n },\n {\n \"Kods\": \"ipsum anim amet\",\n \"IeguldNos\": \"in fugiat voluptate et eu\",\n \"AtlProcents\": 44814656,\n \"IeguldSumma\": -63030813.24776003\n }\n ],\n \"Pielikumi\": [\n {\n \"Fails\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Komentars\": \"reprehenderit culpa qui sed\"\n },\n {\n \"Fails\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n },\n \"Komentars\": \"sunt proident\"\n }\n ],\n \"Id\": -54089874,\n \"UID\": \"aliquip culpa\",\n \"NmrKods\": \"nisi \",\n \"Precizejums\": true,\n \"PrecizejamaisDokuments\": -6713016,\n \"PrecizejumaPamatojums\": \"anim ex\"\n}"
},
{
"name": "Lietotājs nav autentificēts.",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/api/doc/tnav2/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"tnav2",
":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/tnav2/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"tnav2",
":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/tnav2/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"tnav2",
":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": ""
}
]
}