SQL Server / EDS API / Dokuments "Dabasgāzes akcīzes nodokļa deklarācija".
Back to Collection Items
-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
-- Important: Do not use nvarchar(max). See the warning about using nvarchar(max).
DECLARE @sTmp0 nvarchar(4000)
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @http int
-- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'
DECLARE @sbResponseBody int
-- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @http, 'QuickGetSb', @success OUT, 'https://eds.vid.gov.lv/api/doc/andv3/: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)
-- {
-- "Epasts": "pariatur non",
-- "Talrunis": "Lo",
-- "Gads": 89856646,
-- "Menesis": 0,
-- "Statuss1": "laboris irure",
-- "NmAkcNumurs": "aliquip sunt ullamco nostrud nulla",
-- "TirgotajaRegistraNumurs": "consectetur",
-- "Sagatavotajs": "nostrud sunt ullamco labore sed",
-- "Statuss2": "do magna amet ullam",
-- "R08": {
-- "K1": 43479401.08687079,
-- "K2": -25115727.483524308,
-- "K3": 52093319.40605214,
-- "K4": 53088020.4272283
-- },
-- "R09": {
-- "K1": 55479857.23477405,
-- "K2": -43343200.35181309,
-- "K3": 89558542.55489787,
-- "K4": -9626345.85793309
-- },
-- "R10": {
-- "K1": -55233950.41534558,
-- "K2": 10190249.896600842,
-- "K3": -23803934.392564356,
-- "K4": 59683139.56412321
-- },
-- "R11": {
-- "K1": 29451733.61450854,
-- "K2": -77410979.61039722,
-- "K3": -84542776.01395366,
-- "K4": 52488739.0201568
-- },
-- "R13": {
-- "K1": 25800316.967996567,
-- "K2": -50620762.31726391,
-- "K3": 467074.0438347459,
-- "K4": 6734436.869221434
-- },
-- "R14": {
-- "K1": -83423344.34523995,
-- "K2": 41682940.60446459,
-- "K3": 98979603.80025718,
-- "K4": 18091026.672749415
-- },
-- "R15": {
-- "K1": -9349252.019126728,
-- "K2": -91733629.54750192,
-- "K3": 98983267.81678158,
-- "K4": 37516653.4633072
-- },
-- "R16": {
-- "K1": 27719897.995097265,
-- "K2": -76196836.14936803,
-- "K3": 6673434.053774491,
-- "K4": 37492541.265842944
-- },
-- "R17": {
-- "K1": 85818825.49581662,
-- "K2": 44329872.8681421,
-- "K3": 61118917.10957676,
-- "K4": -37803773.906996295
-- },
-- "R18": {
-- "K1": 44163544.30818501,
-- "K2": 53383400.61807135,
-- "K3": -91456639.17136489,
-- "K4": 35986156.825020164
-- },
-- "R19": {
-- "K1": 2950296.6990581304,
-- "K2": 41732768.321747094,
-- "K3": 3729574.809120521,
-- "K4": 81120670.7083838
-- },
-- "R20": {
-- "K1": -47456399.84280552,
-- "K2": 30288885.827465698,
-- "K3": -72183307.12475236,
-- "K4": -85531627.04718873
-- },
-- "R23": {
-- "PielikumsRindai9": {
-- "Fails": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "Komentars": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "FailsNavObligats": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- },
-- "PielikumsRindai10": {
-- "Fails": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "Komentars": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "FailsNavObligats": {
-- "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>"
-- },
-- "FailsNavObligats": {
-- "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>"
-- }
-- ]
-- },
-- "Pielikums11": [
-- {
-- "NmrKods": "incididunt",
-- "NmNosaukums": "reprehenderit est consectetur",
-- "Apjoms3": -28208375.988708973,
-- "Apjoms4": 9058423.22507739
-- },
-- {
-- "NmrKods": "ut se",
-- "NmNosaukums": "reprehenderit velit consectetur",
-- "Apjoms3": 58844418.88949904,
-- "Apjoms4": 83649228.9580771
-- }
-- ],
-- "Pielikums12": [
-- {
-- "NmrKods": "occaeca",
-- "NmNosaukums": "ex aliqua dolor",
-- "Apjoms": 56822590.55009076,
-- "NaceKods": "fugia",
-- "Merkis": "laborum magna"
-- },
-- {
-- "NmrKods": "null",
-- "NmNosaukums": "magna quis",
-- "Apjoms": 21674703.90391268,
-- "NaceKods": "fug",
-- "Merkis": "dolor consectetur"
-- }
-- ],
-- "Pielikums17": [
-- {
-- "NmrKods": "dolor",
-- "NmNosaukums": "Duis",
-- "NaceKods": "Duis ",
-- "Apjoms": -3577220.83637096
-- },
-- {
-- "NmrKods": "dolor mini",
-- "NmNosaukums": "elit",
-- "NaceKods": "",
-- "Apjoms": -53167619.08360226
-- }
-- ],
-- "Id": 60178603,
-- "UID": "qui veniam",
-- "NmrKods": "fugiat",
-- "Precizejums": false,
-- "PrecizejamaisDokuments": 1410994,
-- "PrecizejumaPamatojums": "dolor la"
-- }
-- Sample code for parsing the JSON response...
-- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
DECLARE @value nvarchar(4000)
DECLARE @NmNosaukums nvarchar(4000)
DECLARE @Apjoms3 nvarchar(4000)
DECLARE @Apjoms4 nvarchar(4000)
DECLARE @Apjoms nvarchar(4000)
DECLARE @NaceKods nvarchar(4000)
DECLARE @Merkis nvarchar(4000)
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 @Gads int
EXEC sp_OAMethod @jResp, 'IntOf', @Gads OUT, 'Gads'
DECLARE @Menesis int
EXEC sp_OAMethod @jResp, 'IntOf', @Menesis OUT, 'Menesis'
DECLARE @Statuss1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Statuss1 OUT, 'Statuss1'
DECLARE @NmAkcNumurs nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @NmAkcNumurs OUT, 'NmAkcNumurs'
DECLARE @TirgotajaRegistraNumurs nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @TirgotajaRegistraNumurs OUT, 'TirgotajaRegistraNumurs'
DECLARE @Sagatavotajs nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Sagatavotajs OUT, 'Sagatavotajs'
DECLARE @Statuss2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Statuss2 OUT, 'Statuss2'
DECLARE @K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @K1 OUT, 'R08.K1'
DECLARE @K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @K2 OUT, 'R08.K2'
DECLARE @K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @K3 OUT, 'R08.K3'
DECLARE @K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @K4 OUT, 'R08.K4'
DECLARE @R09K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R09K1 OUT, 'R09.K1'
DECLARE @R09K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R09K2 OUT, 'R09.K2'
DECLARE @R09K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R09K3 OUT, 'R09.K3'
DECLARE @R09K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R09K4 OUT, 'R09.K4'
DECLARE @R10K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R10K1 OUT, 'R10.K1'
DECLARE @R10K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R10K2 OUT, 'R10.K2'
DECLARE @R10K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R10K3 OUT, 'R10.K3'
DECLARE @R10K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R10K4 OUT, 'R10.K4'
DECLARE @R11K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R11K1 OUT, 'R11.K1'
DECLARE @R11K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R11K2 OUT, 'R11.K2'
DECLARE @R11K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R11K3 OUT, 'R11.K3'
DECLARE @R11K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R11K4 OUT, 'R11.K4'
DECLARE @R13K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R13K1 OUT, 'R13.K1'
DECLARE @R13K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R13K2 OUT, 'R13.K2'
DECLARE @R13K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R13K3 OUT, 'R13.K3'
DECLARE @R13K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R13K4 OUT, 'R13.K4'
DECLARE @R14K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R14K1 OUT, 'R14.K1'
DECLARE @R14K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R14K2 OUT, 'R14.K2'
DECLARE @R14K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R14K3 OUT, 'R14.K3'
DECLARE @R14K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R14K4 OUT, 'R14.K4'
DECLARE @R15K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R15K1 OUT, 'R15.K1'
DECLARE @R15K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R15K2 OUT, 'R15.K2'
DECLARE @R15K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R15K3 OUT, 'R15.K3'
DECLARE @R15K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R15K4 OUT, 'R15.K4'
DECLARE @R16K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R16K1 OUT, 'R16.K1'
DECLARE @R16K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R16K2 OUT, 'R16.K2'
DECLARE @R16K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R16K3 OUT, 'R16.K3'
DECLARE @R16K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R16K4 OUT, 'R16.K4'
DECLARE @R17K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R17K1 OUT, 'R17.K1'
DECLARE @R17K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R17K2 OUT, 'R17.K2'
DECLARE @R17K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R17K3 OUT, 'R17.K3'
DECLARE @R17K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R17K4 OUT, 'R17.K4'
DECLARE @R18K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R18K1 OUT, 'R18.K1'
DECLARE @R18K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R18K2 OUT, 'R18.K2'
DECLARE @R18K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R18K3 OUT, 'R18.K3'
DECLARE @R18K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R18K4 OUT, 'R18.K4'
DECLARE @R19K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R19K1 OUT, 'R19.K1'
DECLARE @R19K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R19K2 OUT, 'R19.K2'
DECLARE @R19K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R19K3 OUT, 'R19.K3'
DECLARE @R19K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R19K4 OUT, 'R19.K4'
DECLARE @R20K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R20K1 OUT, 'R20.K1'
DECLARE @R20K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R20K2 OUT, 'R20.K2'
DECLARE @R20K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R20K3 OUT, 'R20.K3'
DECLARE @R20K4 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R20K4 OUT, 'R20.K4'
DECLARE @Value nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'R23.PielikumsRindai9.Fails.value'
DECLARE @KomentarsValue nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @KomentarsValue OUT, 'R23.PielikumsRindai9.Komentars.value'
DECLARE @FailsNavObligatsValue nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @FailsNavObligatsValue OUT, 'R23.PielikumsRindai9.FailsNavObligats.value'
DECLARE @FailsValue nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @FailsValue OUT, 'R23.PielikumsRindai10.Fails.value'
EXEC sp_OAMethod @jResp, 'StringOf', @KomentarsValue OUT, 'R23.PielikumsRindai10.Komentars.value'
EXEC sp_OAMethod @jResp, 'StringOf', @FailsNavObligatsValue OUT, 'R23.PielikumsRindai10.FailsNavObligats.value'
EXEC sp_OAMethod @jResp, 'StringOf', @FailsValue OUT, 'R23.PielikumsRindai19.Fails.value'
EXEC sp_OAMethod @jResp, 'StringOf', @KomentarsValue OUT, 'R23.PielikumsRindai19.Komentars.value'
EXEC sp_OAMethod @jResp, 'StringOf', @FailsNavObligatsValue OUT, 'R23.PielikumsRindai19.FailsNavObligats.value'
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, 'R23.CitiPielikumi'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'R23.CitiPielikumi[i].value'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Pielikums11'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @NmrKods OUT, 'Pielikums11[i].NmrKods'
EXEC sp_OAMethod @jResp, 'StringOf', @NmNosaukums OUT, 'Pielikums11[i].NmNosaukums'
EXEC sp_OAMethod @jResp, 'StringOf', @Apjoms3 OUT, 'Pielikums11[i].Apjoms3'
EXEC sp_OAMethod @jResp, 'StringOf', @Apjoms4 OUT, 'Pielikums11[i].Apjoms4'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Pielikums12'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @NmrKods OUT, 'Pielikums12[i].NmrKods'
EXEC sp_OAMethod @jResp, 'StringOf', @NmNosaukums OUT, 'Pielikums12[i].NmNosaukums'
EXEC sp_OAMethod @jResp, 'StringOf', @Apjoms OUT, 'Pielikums12[i].Apjoms'
EXEC sp_OAMethod @jResp, 'StringOf', @NaceKods OUT, 'Pielikums12[i].NaceKods'
EXEC sp_OAMethod @jResp, 'StringOf', @Merkis OUT, 'Pielikums12[i].Merkis'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'Pielikums17'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @NmrKods OUT, 'Pielikums17[i].NmrKods'
EXEC sp_OAMethod @jResp, 'StringOf', @NmNosaukums OUT, 'Pielikums17[i].NmNosaukums'
EXEC sp_OAMethod @jResp, 'StringOf', @NaceKods OUT, 'Pielikums17[i].NaceKods'
EXEC sp_OAMethod @jResp, 'StringOf', @Apjoms OUT, 'Pielikums17[i].Apjoms'
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/andv3/:id
Postman Collection Item JSON
{
"name": "Dokuments \"Dabasgāzes akcīzes nodokļa deklarācija\".",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/doc/andv3/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"andv3",
":id"
],
"variable": [
{
"key": "id",
"value": "25210683",
"description": "(Required) Dokumenta id."
}
]
}
},
"response": [
{
"name": "OK",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/api/doc/andv3/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"andv3",
":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\": \"pariatur non\",\n \"Talrunis\": \"Lo\",\n \"Gads\": 89856646,\n \"Menesis\": 0,\n \"Statuss1\": \"laboris irure\",\n \"NmAkcNumurs\": \"aliquip sunt ullamco nostrud nulla\",\n \"TirgotajaRegistraNumurs\": \"consectetur\",\n \"Sagatavotajs\": \"nostrud sunt ullamco labore sed\",\n \"Statuss2\": \"do magna amet ullam\",\n \"R08\": {\n \"K1\": 43479401.08687079,\n \"K2\": -25115727.483524308,\n \"K3\": 52093319.40605214,\n \"K4\": 53088020.4272283\n },\n \"R09\": {\n \"K1\": 55479857.23477405,\n \"K2\": -43343200.35181309,\n \"K3\": 89558542.55489787,\n \"K4\": -9626345.85793309\n },\n \"R10\": {\n \"K1\": -55233950.41534558,\n \"K2\": 10190249.896600842,\n \"K3\": -23803934.392564356,\n \"K4\": 59683139.56412321\n },\n \"R11\": {\n \"K1\": 29451733.61450854,\n \"K2\": -77410979.61039722,\n \"K3\": -84542776.01395366,\n \"K4\": 52488739.0201568\n },\n \"R13\": {\n \"K1\": 25800316.967996567,\n \"K2\": -50620762.31726391,\n \"K3\": 467074.0438347459,\n \"K4\": 6734436.869221434\n },\n \"R14\": {\n \"K1\": -83423344.34523995,\n \"K2\": 41682940.60446459,\n \"K3\": 98979603.80025718,\n \"K4\": 18091026.672749415\n },\n \"R15\": {\n \"K1\": -9349252.019126728,\n \"K2\": -91733629.54750192,\n \"K3\": 98983267.81678158,\n \"K4\": 37516653.4633072\n },\n \"R16\": {\n \"K1\": 27719897.995097265,\n \"K2\": -76196836.14936803,\n \"K3\": 6673434.053774491,\n \"K4\": 37492541.265842944\n },\n \"R17\": {\n \"K1\": 85818825.49581662,\n \"K2\": 44329872.8681421,\n \"K3\": 61118917.10957676,\n \"K4\": -37803773.906996295\n },\n \"R18\": {\n \"K1\": 44163544.30818501,\n \"K2\": 53383400.61807135,\n \"K3\": -91456639.17136489,\n \"K4\": 35986156.825020164\n },\n \"R19\": {\n \"K1\": 2950296.6990581304,\n \"K2\": 41732768.321747094,\n \"K3\": 3729574.809120521,\n \"K4\": 81120670.7083838\n },\n \"R20\": {\n \"K1\": -47456399.84280552,\n \"K2\": 30288885.827465698,\n \"K3\": -72183307.12475236,\n \"K4\": -85531627.04718873\n },\n \"R23\": {\n \"PielikumsRindai9\": {\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 \"FailsNavObligats\": {\n \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n }\n },\n \"PielikumsRindai10\": {\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 \"FailsNavObligats\": {\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 \"FailsNavObligats\": {\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 \"Pielikums11\": [\n {\n \"NmrKods\": \"incididunt\",\n \"NmNosaukums\": \"reprehenderit est consectetur\",\n \"Apjoms3\": -28208375.988708973,\n \"Apjoms4\": 9058423.22507739\n },\n {\n \"NmrKods\": \"ut se\",\n \"NmNosaukums\": \"reprehenderit velit consectetur\",\n \"Apjoms3\": 58844418.88949904,\n \"Apjoms4\": 83649228.9580771\n }\n ],\n \"Pielikums12\": [\n {\n \"NmrKods\": \"occaeca\",\n \"NmNosaukums\": \"ex aliqua dolor\",\n \"Apjoms\": 56822590.55009076,\n \"NaceKods\": \"fugia\",\n \"Merkis\": \"laborum magna\"\n },\n {\n \"NmrKods\": \"null\",\n \"NmNosaukums\": \"magna quis\",\n \"Apjoms\": 21674703.90391268,\n \"NaceKods\": \"fug\",\n \"Merkis\": \"dolor consectetur\"\n }\n ],\n \"Pielikums17\": [\n {\n \"NmrKods\": \"dolor\",\n \"NmNosaukums\": \"Duis\",\n \"NaceKods\": \"Duis \",\n \"Apjoms\": -3577220.83637096\n },\n {\n \"NmrKods\": \"dolor mini\",\n \"NmNosaukums\": \"elit\",\n \"NaceKods\": \"\",\n \"Apjoms\": -53167619.08360226\n }\n ],\n \"Id\": 60178603,\n \"UID\": \"qui veniam\",\n \"NmrKods\": \"fugiat\",\n \"Precizejums\": false,\n \"PrecizejamaisDokuments\": 1410994,\n \"PrecizejumaPamatojums\": \"dolor la\"\n}"
},
{
"name": "Lietotājs nav autentificēts.",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/api/doc/andv3/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"andv3",
":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/andv3/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"andv3",
":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/andv3/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"andv3",
":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": ""
}
]
}