SQL Server / EDS API / Dokuments "Kafijas un bezalkoholisko dzērienu 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/ankbv2/: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": "consectetur aliqui",
-- "Talrunis": "Lorem est ",
-- "Gads": 55791739,
-- "Menesis": 3,
-- "Datums": "2000-01-31T00:00:00",
-- "SamTermins": "2000-01-31T00:00:00",
-- "Statuss": "non nostrud ut aute",
-- "R08": "elit aliquip esse culpa ad",
-- "R09": "incididunt cillum ex",
-- "Sagatavotajs": "dolore magna",
-- "R10": {
-- "K1": 56269837.42085248,
-- "K2": -97298581.74073067,
-- "K3": 12294961.351833716
-- },
-- "R11": {
-- "K1": 41022931.67948061,
-- "K2": -68712318.08074483,
-- "K3": 90842091.99793217
-- },
-- "R12": {
-- "K1": 84287865.76155868,
-- "K2": -75203210.86545718,
-- "K3": 96069798.82083505
-- },
-- "R13": {
-- "K1": 19153612.749102816,
-- "K2": 69191084.53138548,
-- "K3": -41146809.24410861
-- },
-- "R14": {
-- "K1": -25589893.00259231,
-- "K2": -40394478.88604588,
-- "K3": -67509512.05558807
-- },
-- "R15": {
-- "K1": -13389900.565754324,
-- "K2": -67256828.72786547,
-- "K3": 9963358.057663158
-- },
-- "R16": {
-- "K1": 40630728.91606638,
-- "K2": 36694283.38713309,
-- "K3": -94233825.83611923
-- },
-- "R17": {
-- "K1": 9514933.913133025,
-- "K2": -96214731.34989595,
-- "K3": -40894391.21104315
-- },
-- "R18": {
-- "K1": -26335901.074957892,
-- "K2": 89969023.26793891,
-- "K3": -32821793.514351994
-- },
-- "R19": {
-- "K1": -66751306.14344158,
-- "K2": -81422919.1551168,
-- "K3": 83748164.62387183
-- },
-- "R20": {
-- "K1": -92844504.24250332,
-- "K2": 9964276.005876243,
-- "K3": 55762994.440933555
-- },
-- "R21": {
-- "K1": 68143846.12130961,
-- "K2": -70891897.90269752,
-- "K3": -323941.36614084244
-- },
-- "R22": {
-- "K1": -59236603.09707017,
-- "K2": -77585980.67387563,
-- "K3": 81620375.05168778
-- },
-- "R23": {
-- "K1": 84614414.77212152,
-- "K2": -13312758.937248185,
-- "K3": -19915436.80421537
-- },
-- "R24": {
-- "K1": 5935688.459061697,
-- "K2": -69949002.14066488,
-- "K3": -44295563.71114125
-- },
-- "R25": {
-- "K1": 35596437.75422415,
-- "K2": -59318538.3605745,
-- "K3": 76529327.62100697
-- },
-- "R26": {
-- "K1": 43057819.54356083,
-- "K2": 29875064.405484915,
-- "K3": 64398434.4663541
-- },
-- "R27": {
-- "K1": 13984380.364867061,
-- "K2": -32033218.33421868,
-- "K3": -42390871.13414248
-- },
-- "R29": {
-- "PielikumsRindai11": {
-- "Fails": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "Komentars": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- },
-- "PielikumsRindai25": {
-- "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": -79018099,
-- "UID": "eu consequat do",
-- "NmrKods": "est temp",
-- "Precizejums": true,
-- "PrecizejamaisDokuments": -14482926,
-- "PrecizejumaPamatojums": "ullamco commodo"
-- }
-- 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 @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 @Datums nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Datums OUT, 'Datums'
DECLARE @SamTermins nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @SamTermins OUT, 'SamTermins'
DECLARE @Statuss nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Statuss OUT, 'Statuss'
DECLARE @R08 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R08 OUT, 'R08'
DECLARE @R09 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R09 OUT, 'R09'
DECLARE @Sagatavotajs nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Sagatavotajs OUT, 'Sagatavotajs'
DECLARE @K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @K1 OUT, 'R10.K1'
DECLARE @K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @K2 OUT, 'R10.K2'
DECLARE @K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @K3 OUT, 'R10.K3'
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 @R12K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R12K1 OUT, 'R12.K1'
DECLARE @R12K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R12K2 OUT, 'R12.K2'
DECLARE @R12K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R12K3 OUT, 'R12.K3'
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 @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 @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 @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 @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 @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 @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 @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 @R21K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R21K1 OUT, 'R21.K1'
DECLARE @R21K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R21K2 OUT, 'R21.K2'
DECLARE @R21K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R21K3 OUT, 'R21.K3'
DECLARE @R22K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R22K1 OUT, 'R22.K1'
DECLARE @R22K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R22K2 OUT, 'R22.K2'
DECLARE @R22K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R22K3 OUT, 'R22.K3'
DECLARE @R23K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R23K1 OUT, 'R23.K1'
DECLARE @R23K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R23K2 OUT, 'R23.K2'
DECLARE @R23K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R23K3 OUT, 'R23.K3'
DECLARE @R24K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R24K1 OUT, 'R24.K1'
DECLARE @R24K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R24K2 OUT, 'R24.K2'
DECLARE @R24K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R24K3 OUT, 'R24.K3'
DECLARE @R25K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R25K1 OUT, 'R25.K1'
DECLARE @R25K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R25K2 OUT, 'R25.K2'
DECLARE @R25K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R25K3 OUT, 'R25.K3'
DECLARE @R26K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R26K1 OUT, 'R26.K1'
DECLARE @R26K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R26K2 OUT, 'R26.K2'
DECLARE @R26K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R26K3 OUT, 'R26.K3'
DECLARE @R27K1 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R27K1 OUT, 'R27.K1'
DECLARE @R27K2 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R27K2 OUT, 'R27.K2'
DECLARE @R27K3 nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @R27K3 OUT, 'R27.K3'
DECLARE @Value nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'R29.PielikumsRindai11.Fails.value'
DECLARE @KomentarsValue nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @KomentarsValue OUT, 'R29.PielikumsRindai11.Komentars.value'
DECLARE @FailsValue nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @FailsValue OUT, 'R29.PielikumsRindai25.Fails.value'
EXEC sp_OAMethod @jResp, 'StringOf', @KomentarsValue OUT, 'R29.PielikumsRindai25.Komentars.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, 'R29.CitiDokumenti'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'R29.CitiDokumenti[i].value'
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/ankbv2/:id
Postman Collection Item JSON
{
"name": "Dokuments \"Kafijas un bezalkoholisko dzērienu akcīzes nodokļa deklarācija\".",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/doc/ankbv2/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"ankbv2",
":id"
],
"variable": [
{
"key": "id",
"value": "25210683",
"description": "(Required) Dokumenta id."
}
]
}
},
"response": [
{
"name": "OK",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/api/doc/ankbv2/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"ankbv2",
":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\": \"consectetur aliqui\",\n \"Talrunis\": \"Lorem est \",\n \"Gads\": 55791739,\n \"Menesis\": 3,\n \"Datums\": \"2000-01-31T00:00:00\",\n \"SamTermins\": \"2000-01-31T00:00:00\",\n \"Statuss\": \"non nostrud ut aute\",\n \"R08\": \"elit aliquip esse culpa ad\",\n \"R09\": \"incididunt cillum ex\",\n \"Sagatavotajs\": \"dolore magna\",\n \"R10\": {\n \"K1\": 56269837.42085248,\n \"K2\": -97298581.74073067,\n \"K3\": 12294961.351833716\n },\n \"R11\": {\n \"K1\": 41022931.67948061,\n \"K2\": -68712318.08074483,\n \"K3\": 90842091.99793217\n },\n \"R12\": {\n \"K1\": 84287865.76155868,\n \"K2\": -75203210.86545718,\n \"K3\": 96069798.82083505\n },\n \"R13\": {\n \"K1\": 19153612.749102816,\n \"K2\": 69191084.53138548,\n \"K3\": -41146809.24410861\n },\n \"R14\": {\n \"K1\": -25589893.00259231,\n \"K2\": -40394478.88604588,\n \"K3\": -67509512.05558807\n },\n \"R15\": {\n \"K1\": -13389900.565754324,\n \"K2\": -67256828.72786547,\n \"K3\": 9963358.057663158\n },\n \"R16\": {\n \"K1\": 40630728.91606638,\n \"K2\": 36694283.38713309,\n \"K3\": -94233825.83611923\n },\n \"R17\": {\n \"K1\": 9514933.913133025,\n \"K2\": -96214731.34989595,\n \"K3\": -40894391.21104315\n },\n \"R18\": {\n \"K1\": -26335901.074957892,\n \"K2\": 89969023.26793891,\n \"K3\": -32821793.514351994\n },\n \"R19\": {\n \"K1\": -66751306.14344158,\n \"K2\": -81422919.1551168,\n \"K3\": 83748164.62387183\n },\n \"R20\": {\n \"K1\": -92844504.24250332,\n \"K2\": 9964276.005876243,\n \"K3\": 55762994.440933555\n },\n \"R21\": {\n \"K1\": 68143846.12130961,\n \"K2\": -70891897.90269752,\n \"K3\": -323941.36614084244\n },\n \"R22\": {\n \"K1\": -59236603.09707017,\n \"K2\": -77585980.67387563,\n \"K3\": 81620375.05168778\n },\n \"R23\": {\n \"K1\": 84614414.77212152,\n \"K2\": -13312758.937248185,\n \"K3\": -19915436.80421537\n },\n \"R24\": {\n \"K1\": 5935688.459061697,\n \"K2\": -69949002.14066488,\n \"K3\": -44295563.71114125\n },\n \"R25\": {\n \"K1\": 35596437.75422415,\n \"K2\": -59318538.3605745,\n \"K3\": 76529327.62100697\n },\n \"R26\": {\n \"K1\": 43057819.54356083,\n \"K2\": 29875064.405484915,\n \"K3\": 64398434.4663541\n },\n \"R27\": {\n \"K1\": 13984380.364867061,\n \"K2\": -32033218.33421868,\n \"K3\": -42390871.13414248\n },\n \"R29\": {\n \"PielikumsRindai11\": {\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 \"PielikumsRindai25\": {\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\": -79018099,\n \"UID\": \"eu consequat do\",\n \"NmrKods\": \"est temp\",\n \"Precizejums\": true,\n \"PrecizejamaisDokuments\": -14482926,\n \"PrecizejumaPamatojums\": \"ullamco commodo\"\n}"
},
{
"name": "Lietotājs nav autentificēts.",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/api/doc/ankbv2/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"ankbv2",
":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/ankbv2/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"ankbv2",
":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/ankbv2/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"doc",
"ankbv2",
":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": ""
}
]
}