Chilkat Online Tools

SQL Server / EDS API / Izveidot dokumentu "Akcīzes nodokļa aprēķins (likmju maiņas gadījumā)".

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
    DECLARE @iTmp0 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

    DECLARE @req int
    -- Use "Chilkat_9_5_0.HttpRequest" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.HttpRequest', @req OUT

    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Talrunis', 'cillum'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Epasts', 'eu in'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'NmVeids', '74762931'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Sagatavotajs', 'magna id commodo Lorem'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'LikmesDatums', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'PrecuGrupas', 'deserunt sint Duis'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'InvDatums', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'MaksTermins', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'NmAkcNumuri', 'sed culpa dolor ullamco'

    DECLARE @jsonParam10 int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jsonParam10 OUT

    EXEC sp_OAMethod @jsonParam10, 'UpdateInt', @success OUT, 'LikmeId', 46072443
    EXEC sp_OAMethod @jsonParam10, 'UpdateString', @success OUT, 'Kods', 'Lorem proident'
    EXEC sp_OAMethod @jsonParam10, 'UpdateInt', @success OUT, 'K3', 99373324
    EXEC sp_OAMethod @jsonParam10, 'UpdateNumber', @success OUT, 'K4', '-72992920.64185536'
    EXEC sp_OAMethod @jsonParam10, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Tabula', @sTmp0

    DECLARE @jsonParam11 int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jsonParam11 OUT

    EXEC sp_OAMethod @jsonParam11, 'UpdateInt', @success OUT, 'LikmeId', 26583316
    EXEC sp_OAMethod @jsonParam11, 'UpdateString', @success OUT, 'Kods', 'non adipisicing in eu'
    EXEC sp_OAMethod @jsonParam11, 'UpdateInt', @success OUT, 'K3', 98858263
    EXEC sp_OAMethod @jsonParam11, 'UpdateNumber', @success OUT, 'K4', '-772656.0302214772'
    EXEC sp_OAMethod @jsonParam11, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Tabula', @sTmp0

    DECLARE @jsonParam12 int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jsonParam12 OUT

    EXEC sp_OAMethod @jsonParam12, 'UpdateString', @success OUT, 'Dokuments', 'pariatur elit voluptate dolore'
    EXEC sp_OAMethod @jsonParam12, 'UpdateString', @success OUT, 'Fails.value', '<Error: Too many levels of nesting to fake this schema>'
    EXEC sp_OAMethod @jsonParam12, 'UpdateString', @success OUT, 'Komentars', 'cupidatat esse do aute Lorem'
    EXEC sp_OAMethod @jsonParam12, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Pielikumi', @sTmp0

    DECLARE @jsonParam13 int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jsonParam13 OUT

    EXEC sp_OAMethod @jsonParam13, 'UpdateString', @success OUT, 'Dokuments', 'commodo dolor velit voluptate'
    EXEC sp_OAMethod @jsonParam13, 'UpdateString', @success OUT, 'Fails.value', '<Error: Too many levels of nesting to fake this schema>'
    EXEC sp_OAMethod @jsonParam13, 'UpdateString', @success OUT, 'Komentars', 'ullamco non commodo veniam aliquip'
    EXEC sp_OAMethod @jsonParam13, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Pielikumi', @sTmp0
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'NmrKods', 'proident q'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Precizejums', 'false'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'PrecizejamaisDokuments', '-34940401'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'PrecizejumaPamatojums', 'adipisicing et culpa'

    EXEC sp_OAMethod @req, 'AddHeader', NULL, 'Accept', 'application/json'

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'PostUrlEncoded', @resp OUT, 'https://eds.vid.gov.lv/api/doc/aniav2', @req
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @req
        EXEC @hr = sp_OADestroy @jsonParam10
        EXEC @hr = sp_OADestroy @jsonParam11
        EXEC @hr = sp_OADestroy @jsonParam12
        EXEC @hr = sp_OADestroy @jsonParam13
        RETURN
      END

    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 @resp, 'GetBodySb', @success OUT, @sbResponseBody

    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 @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @req
        EXEC @hr = sp_OADestroy @jsonParam10
        EXEC @hr = sp_OADestroy @jsonParam11
        EXEC @hr = sp_OADestroy @jsonParam12
        EXEC @hr = sp_OADestroy @jsonParam13
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp


    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @req
    EXEC @hr = sp_OADestroy @jsonParam10
    EXEC @hr = sp_OADestroy @jsonParam11
    EXEC @hr = sp_OADestroy @jsonParam12
    EXEC @hr = sp_OADestroy @jsonParam13
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -X POST
	-H "Content-Type: application/x-www-form-urlencoded"
	-H "Accept: application/json"
	--data-urlencode 'Talrunis=cillum'
	--data-urlencode 'Epasts=eu in'
	--data-urlencode 'NmVeids=74762931'
	--data-urlencode 'Sagatavotajs=magna id commodo Lorem'
	--data-urlencode 'LikmesDatums=2000-01-31T00:00:00'
	--data-urlencode 'PrecuGrupas=deserunt sint Duis'
	--data-urlencode 'InvDatums=2000-01-31T00:00:00'
	--data-urlencode 'MaksTermins=2000-01-31T00:00:00'
	--data-urlencode 'NmAkcNumuri=sed culpa dolor ullamco'
	--data-urlencode 'Tabula={"LikmeId":46072443,"Kods":"Lorem proident","K3":99373324,"K4":-72992920.64185536}'
	--data-urlencode 'Tabula={"LikmeId":26583316,"Kods":"non adipisicing in eu","K3":98858263,"K4":-772656.0302214772}'
	--data-urlencode 'Pielikumi={"Dokuments":"pariatur elit voluptate dolore","Fails":{"value":"<Error: Too many levels of nesting to fake this schema>"},"Komentars":"cupidatat esse do aute Lorem"}'
	--data-urlencode 'Pielikumi={"Dokuments":"commodo dolor velit voluptate","Fails":{"value":"<Error: Too many levels of nesting to fake this schema>"},"Komentars":"ullamco non commodo veniam aliquip"}'
	--data-urlencode 'NmrKods=proident q'
	--data-urlencode 'Precizejums=false'
	--data-urlencode 'PrecizejamaisDokuments=-34940401'
	--data-urlencode 'PrecizejumaPamatojums=adipisicing et culpa'
https://eds.vid.gov.lv/api/doc/aniav2

Postman Collection Item JSON

{
  "name": "Izveidot dokumentu \"Akcīzes nodokļa aprēķins (likmju maiņas gadījumā)\".",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/x-www-form-urlencoded"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "urlencoded",
      "urlencoded": [
        {
          "key": "Talrunis",
          "value": "cillum",
          "description": "(Required) Iesniedzēja tālrunis."
        },
        {
          "key": "Epasts",
          "value": "eu in",
          "description": "(Required) Epasta adrese."
        },
        {
          "key": "NmVeids",
          "value": "74762931",
          "description": "(Required) Nodokļa maksātāja veids."
        },
        {
          "key": "Sagatavotajs",
          "value": "magna id commodo Lorem",
          "description": "Sagatavotāja vārds, uzvārds."
        },
        {
          "key": "LikmesDatums",
          "value": "2000-01-31T00:00:00",
          "description": "Nodokļa likmes datums."
        },
        {
          "key": "PrecuGrupas",
          "value": "deserunt sint Duis",
          "description": "Nodokļa likmes preču grupas (saraksts ar ID)."
        },
        {
          "key": "InvDatums",
          "value": "2000-01-31T00:00:00",
          "description": "Inventarizācijas datums."
        },
        {
          "key": "MaksTermins",
          "value": "2000-01-31T00:00:00",
          "description": "Maksāšanas termiņš."
        },
        {
          "key": "NmAkcNumuri",
          "value": "sed culpa dolor ullamco",
          "description": "Nodokļa maksātāja licences."
        },
        {
          "key": "Tabula",
          "value": "{\"LikmeId\":46072443,\"Kods\":\"Lorem proident\",\"K3\":99373324,\"K4\":-72992920.64185536}",
          "description": "Dokumenta rindas."
        },
        {
          "key": "Tabula",
          "value": "{\"LikmeId\":26583316,\"Kods\":\"non adipisicing in eu\",\"K3\":98858263,\"K4\":-772656.0302214772}",
          "description": "Dokumenta rindas."
        },
        {
          "key": "Pielikumi",
          "value": "{\"Dokuments\":\"pariatur elit voluptate dolore\",\"Fails\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Komentars\":\"cupidatat esse do aute Lorem\"}",
          "description": "Pievienotie attaisnojuma dokumenti."
        },
        {
          "key": "Pielikumi",
          "value": "{\"Dokuments\":\"commodo dolor velit voluptate\",\"Fails\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Komentars\":\"ullamco non commodo veniam aliquip\"}",
          "description": "Pievienotie attaisnojuma dokumenti."
        },
        {
          "key": "NmrKods",
          "value": "proident q",
          "description": "Nodokļu maksātāja kods."
        },
        {
          "key": "Precizejums",
          "value": "false",
          "description": "Vai dokuments ir precizējums."
        },
        {
          "key": "PrecizejamaisDokuments",
          "value": "-34940401",
          "description": "Precizējamā dokumenta numurs."
        },
        {
          "key": "PrecizejumaPamatojums",
          "value": "adipisicing et culpa",
          "description": "Precizējuma pamatojums."
        }
      ]
    },
    "url": {
      "raw": "{{baseUrl}}/api/doc/aniav2",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "doc",
        "aniav2"
      ]
    }
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "Talrunis",
              "value": "si",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "Epasts",
              "value": "nulla culpa laboris et",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "NmVeids",
              "value": "18845029",
              "description": "(Required) Nodokļa maksātāja veids."
            },
            {
              "key": "Sagatavotajs",
              "value": "velit",
              "description": "Sagatavotāja vārds, uzvārds."
            },
            {
              "key": "LikmesDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Nodokļa likmes datums."
            },
            {
              "key": "PrecuGrupas",
              "value": "occaecat laborum nisi dolore",
              "description": "Nodokļa likmes preču grupas (saraksts ar ID)."
            },
            {
              "key": "InvDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Inventarizācijas datums."
            },
            {
              "key": "MaksTermins",
              "value": "2000-01-31T00:00:00",
              "description": "Maksāšanas termiņš."
            },
            {
              "key": "NmAkcNumuri",
              "value": "minim dolor deserunt commodo",
              "description": "Nodokļa maksātāja licences."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":51507065,\"Kods\":\"laboris exercitation\",\"K3\":-85549917,\"K4\":94546906.19964531}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":-61185201,\"Kods\":\"adipisicing pariatur Duis\",\"K3\":-79080076,\"K4\":-216111.90662880242}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"in\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"qui amet reprehenderit laborum\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"Duis cons\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"ut in ullamco dolor\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "NmrKods",
              "value": "e",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-21224761",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "aliqua quis dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/aniav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "aniav2"
          ]
        }
      },
      "status": "Created",
      "code": 201,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "-12855709"
    },
    {
      "name": "Pieprasījuma dati ir kļūdaini.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "Talrunis",
              "value": "si",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "Epasts",
              "value": "nulla culpa laboris et",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "NmVeids",
              "value": "18845029",
              "description": "(Required) Nodokļa maksātāja veids."
            },
            {
              "key": "Sagatavotajs",
              "value": "velit",
              "description": "Sagatavotāja vārds, uzvārds."
            },
            {
              "key": "LikmesDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Nodokļa likmes datums."
            },
            {
              "key": "PrecuGrupas",
              "value": "occaecat laborum nisi dolore",
              "description": "Nodokļa likmes preču grupas (saraksts ar ID)."
            },
            {
              "key": "InvDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Inventarizācijas datums."
            },
            {
              "key": "MaksTermins",
              "value": "2000-01-31T00:00:00",
              "description": "Maksāšanas termiņš."
            },
            {
              "key": "NmAkcNumuri",
              "value": "minim dolor deserunt commodo",
              "description": "Nodokļa maksātāja licences."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":51507065,\"Kods\":\"laboris exercitation\",\"K3\":-85549917,\"K4\":94546906.19964531}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":-61185201,\"Kods\":\"adipisicing pariatur Duis\",\"K3\":-79080076,\"K4\":-216111.90662880242}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"in\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"qui amet reprehenderit laborum\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"Duis cons\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"ut in ullamco dolor\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "NmrKods",
              "value": "e",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-21224761",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "aliqua quis dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/aniav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "aniav2"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Lietotājs nav autentificēts.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "Talrunis",
              "value": "si",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "Epasts",
              "value": "nulla culpa laboris et",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "NmVeids",
              "value": "18845029",
              "description": "(Required) Nodokļa maksātāja veids."
            },
            {
              "key": "Sagatavotajs",
              "value": "velit",
              "description": "Sagatavotāja vārds, uzvārds."
            },
            {
              "key": "LikmesDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Nodokļa likmes datums."
            },
            {
              "key": "PrecuGrupas",
              "value": "occaecat laborum nisi dolore",
              "description": "Nodokļa likmes preču grupas (saraksts ar ID)."
            },
            {
              "key": "InvDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Inventarizācijas datums."
            },
            {
              "key": "MaksTermins",
              "value": "2000-01-31T00:00:00",
              "description": "Maksāšanas termiņš."
            },
            {
              "key": "NmAkcNumuri",
              "value": "minim dolor deserunt commodo",
              "description": "Nodokļa maksātāja licences."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":51507065,\"Kods\":\"laboris exercitation\",\"K3\":-85549917,\"K4\":94546906.19964531}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":-61185201,\"Kods\":\"adipisicing pariatur Duis\",\"K3\":-79080076,\"K4\":-216111.90662880242}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"in\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"qui amet reprehenderit laborum\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"Duis cons\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"ut in ullamco dolor\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "NmrKods",
              "value": "e",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-21224761",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "aliqua quis dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/aniav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "aniav2"
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Lietotājam nav tiesību veikt šo darbību.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "Talrunis",
              "value": "si",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "Epasts",
              "value": "nulla culpa laboris et",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "NmVeids",
              "value": "18845029",
              "description": "(Required) Nodokļa maksātāja veids."
            },
            {
              "key": "Sagatavotajs",
              "value": "velit",
              "description": "Sagatavotāja vārds, uzvārds."
            },
            {
              "key": "LikmesDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Nodokļa likmes datums."
            },
            {
              "key": "PrecuGrupas",
              "value": "occaecat laborum nisi dolore",
              "description": "Nodokļa likmes preču grupas (saraksts ar ID)."
            },
            {
              "key": "InvDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Inventarizācijas datums."
            },
            {
              "key": "MaksTermins",
              "value": "2000-01-31T00:00:00",
              "description": "Maksāšanas termiņš."
            },
            {
              "key": "NmAkcNumuri",
              "value": "minim dolor deserunt commodo",
              "description": "Nodokļa maksātāja licences."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":51507065,\"Kods\":\"laboris exercitation\",\"K3\":-85549917,\"K4\":94546906.19964531}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":-61185201,\"Kods\":\"adipisicing pariatur Duis\",\"K3\":-79080076,\"K4\":-216111.90662880242}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"in\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"qui amet reprehenderit laborum\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"Duis cons\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"ut in ullamco dolor\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "NmrKods",
              "value": "e",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-21224761",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "aliqua quis dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/aniav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "aniav2"
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Dokumenta unikalitātes ierobežojums. Dokuments par norādīto periodu jau izveidots. Lai izveidotu atkārtoti, izmantojiet jaunu drošības talonu.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "Talrunis",
              "value": "si",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "Epasts",
              "value": "nulla culpa laboris et",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "NmVeids",
              "value": "18845029",
              "description": "(Required) Nodokļa maksātāja veids."
            },
            {
              "key": "Sagatavotajs",
              "value": "velit",
              "description": "Sagatavotāja vārds, uzvārds."
            },
            {
              "key": "LikmesDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Nodokļa likmes datums."
            },
            {
              "key": "PrecuGrupas",
              "value": "occaecat laborum nisi dolore",
              "description": "Nodokļa likmes preču grupas (saraksts ar ID)."
            },
            {
              "key": "InvDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Inventarizācijas datums."
            },
            {
              "key": "MaksTermins",
              "value": "2000-01-31T00:00:00",
              "description": "Maksāšanas termiņš."
            },
            {
              "key": "NmAkcNumuri",
              "value": "minim dolor deserunt commodo",
              "description": "Nodokļa maksātāja licences."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":51507065,\"Kods\":\"laboris exercitation\",\"K3\":-85549917,\"K4\":94546906.19964531}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":-61185201,\"Kods\":\"adipisicing pariatur Duis\",\"K3\":-79080076,\"K4\":-216111.90662880242}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"in\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"qui amet reprehenderit laborum\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"Duis cons\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"ut in ullamco dolor\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "NmrKods",
              "value": "e",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-21224761",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "aliqua quis dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/aniav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "aniav2"
          ]
        }
      },
      "status": "Conflict",
      "code": 409,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Pārsniegts izsaukumu skaita ierobežojums.",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "Talrunis",
              "value": "si",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "Epasts",
              "value": "nulla culpa laboris et",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "NmVeids",
              "value": "18845029",
              "description": "(Required) Nodokļa maksātāja veids."
            },
            {
              "key": "Sagatavotajs",
              "value": "velit",
              "description": "Sagatavotāja vārds, uzvārds."
            },
            {
              "key": "LikmesDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Nodokļa likmes datums."
            },
            {
              "key": "PrecuGrupas",
              "value": "occaecat laborum nisi dolore",
              "description": "Nodokļa likmes preču grupas (saraksts ar ID)."
            },
            {
              "key": "InvDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Inventarizācijas datums."
            },
            {
              "key": "MaksTermins",
              "value": "2000-01-31T00:00:00",
              "description": "Maksāšanas termiņš."
            },
            {
              "key": "NmAkcNumuri",
              "value": "minim dolor deserunt commodo",
              "description": "Nodokļa maksātāja licences."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":51507065,\"Kods\":\"laboris exercitation\",\"K3\":-85549917,\"K4\":94546906.19964531}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Tabula",
              "value": "{\"LikmeId\":-61185201,\"Kods\":\"adipisicing pariatur Duis\",\"K3\":-79080076,\"K4\":-216111.90662880242}",
              "description": "Dokumenta rindas."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"in\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"qui amet reprehenderit laborum\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "Pielikumi",
              "value": "{\"Dokuments\":\"Duis cons\",\"Fails\":{\"Nosaukums\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},\"Saturs\":{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}},\"Komentars\":\"ut in ullamco dolor\"}",
              "description": "Pievienotie attaisnojuma dokumenti."
            },
            {
              "key": "NmrKods",
              "value": "e",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-21224761",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "aliqua quis dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/aniav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "aniav2"
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}