Chilkat Online Tools

SQL Server / EDS API / Izveidot dokumentu "Dzīvības apdrošināšanas līgumu maksājumi".

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, 'Epasts', 'T#caP+.oSpBBcaN6\./6/{\``L}.+7bi.|=$MzSAAp.KhxY5^=`a'
    EXEC sp_OAMethod @req, 'AddParam', NULL, '.ohO@8H.EwWģ0.an7ņņIāL.ķ2bčo.Ky7hNEAčUr.MnāTT', ''
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Talrunis', '  '
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'TaksGads', '-1674260'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'NmrKods', 'ut Ut Excepteur do'

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

    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'PKods', 'fugiat'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'VU', 'magna velit minim'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'Polise', 'fugiat occaecat sint'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'Sak', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'Beig', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'Partr', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @jsonParam6, 'UpdateNumber', @success OUT, 'Premija', '17770189.63475232'
    EXEC sp_OAMethod @jsonParam6, 'UpdateBool', @success OUT, 'Anul', 1
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'Scale[0].value', '<Error: Too many levels of nesting to fake this schema>'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'Scale[1].value', '<Error: Too many levels of nesting to fake this schema>'
    EXEC sp_OAMethod @jsonParam6, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Table', @sTmp0

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

    EXEC sp_OAMethod @jsonParam7, 'UpdateString', @success OUT, 'PKods', 'labore'
    EXEC sp_OAMethod @jsonParam7, 'UpdateString', @success OUT, 'VU', 'qui minim ad magna ex'
    EXEC sp_OAMethod @jsonParam7, 'UpdateString', @success OUT, 'Polise', 'sint Duis'
    EXEC sp_OAMethod @jsonParam7, 'UpdateString', @success OUT, 'Sak', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @jsonParam7, 'UpdateString', @success OUT, 'Beig', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @jsonParam7, 'UpdateString', @success OUT, 'Partr', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @jsonParam7, 'UpdateNumber', @success OUT, 'Premija', '65928432.68381202'
    EXEC sp_OAMethod @jsonParam7, 'UpdateBool', @success OUT, 'Anul', 1
    EXEC sp_OAMethod @jsonParam7, 'UpdateString', @success OUT, 'Scale[0].value', '<Error: Too many levels of nesting to fake this schema>'
    EXEC sp_OAMethod @jsonParam7, 'UpdateString', @success OUT, 'Scale[1].value', '<Error: Too many levels of nesting to fake this schema>'
    EXEC sp_OAMethod @jsonParam7, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Table', @sTmp0
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Precizejums', 'true'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'PrecizejamaisDokuments', '-25135351'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'PrecizejumaPamatojums', 'veniam dolor in qui'

    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/dzav2', @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 @jsonParam6
        EXEC @hr = sp_OADestroy @jsonParam7
        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 @jsonParam6
        EXEC @hr = sp_OADestroy @jsonParam7
        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 @jsonParam6
    EXEC @hr = sp_OADestroy @jsonParam7
    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 'Epasts=T#caP+.oSpBBcaN6\./6/{\`%%gL}.+7bi.|=$MzSAAp.KhxY5^=`a&.ohO@8H.EwWģ0.an7ņņIāL.ķ2bčo.Ky7hNEAčUr.MnāTT'
	--data-urlencode 'Talrunis=  '
	--data-urlencode 'TaksGads=-1674260'
	--data-urlencode 'NmrKods=ut Ut Excepteur do'
	--data-urlencode 'Table={"PKods":"fugiat","VU":"magna velit minim","Polise":"fugiat occaecat sint","Sak":"2000-01-31T00:00:00","Beig":"2000-01-31T00:00:00","Partr":"2000-01-31T00:00:00","Premija":17770189.63475232,"Anul":true,"Scale":[{"value":"<Error: Too many levels of nesting to fake this schema>"},{"value":"<Error: Too many levels of nesting to fake this schema>"}]}'
	--data-urlencode 'Table={"PKods":"labore","VU":"qui minim ad magna ex","Polise":"sint Duis","Sak":"2000-01-31T00:00:00","Beig":"2000-01-31T00:00:00","Partr":"2000-01-31T00:00:00","Premija":65928432.68381202,"Anul":true,"Scale":[{"value":"<Error: Too many levels of nesting to fake this schema>"},{"value":"<Error: Too many levels of nesting to fake this schema>"}]}'
	--data-urlencode 'Precizejums=true'
	--data-urlencode 'PrecizejamaisDokuments=-25135351'
	--data-urlencode 'PrecizejumaPamatojums=veniam dolor in qui'
https://eds.vid.gov.lv/api/doc/dzav2

Postman Collection Item JSON

{
  "name": "Izveidot dokumentu \"Dzīvības apdrošināšanas līgumu maksājumi\".",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/x-www-form-urlencoded"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "urlencoded",
      "urlencoded": [
        {
          "key": "Epasts",
          "value": "T#caP+.oSpBBcaN6\\./6/{\\`%%gL}.+7bi.|=$MzSAAp.KhxY5^=`a&.ohO@8H.EwWģ0.an7ņņIāL.ķ2bčo.Ky7hNEAčUr.MnāTT",
          "description": "(Required) Iesniedzēja epasts."
        },
        {
          "key": "Talrunis",
          "value": "  ",
          "description": "(Required) Iesniedzēja tālrunis."
        },
        {
          "key": "TaksGads",
          "value": "-1674260",
          "description": "(Required) Taksācijas gads."
        },
        {
          "key": "NmrKods",
          "value": "ut Ut Excepteur do",
          "description": "Nodokļu maksātāja kods."
        },
        {
          "key": "Table",
          "value": "{\"PKods\":\"fugiat\",\"VU\":\"magna velit minim\",\"Polise\":\"fugiat occaecat sint\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":17770189.63475232,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
          "description": "Gets or sets the table."
        },
        {
          "key": "Table",
          "value": "{\"PKods\":\"labore\",\"VU\":\"qui minim ad magna ex\",\"Polise\":\"sint Duis\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":65928432.68381202,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
          "description": "Gets or sets the table."
        },
        {
          "key": "Precizejums",
          "value": "true",
          "description": "Vai dokuments ir precizējums."
        },
        {
          "key": "PrecizejamaisDokuments",
          "value": "-25135351",
          "description": "Precizējamā dokumenta numurs."
        },
        {
          "key": "PrecizejumaPamatojums",
          "value": "veniam dolor in qui",
          "description": "Precizējuma pamatojums."
        }
      ]
    },
    "url": {
      "raw": "{{baseUrl}}/api/doc/dzav2",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "doc",
        "dzav2"
      ]
    }
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "Epasts",
              "value": "ZR.N.zb@wUv-YlvxCl.mt.TģKģdž.nJNF.īAIchR5ah.OtW48.6ws9J6ēzm.O.āylBšufh.kFSgfC$1l_}\\.n}BBX.Nj.Kb.1qK.",
              "description": "(Required) Iesniedzēja epasts."
            },
            {
              "key": "Talrunis",
              "value": "   ",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "TaksGads",
              "value": "77426165",
              "description": "(Required) Taksācijas gads."
            },
            {
              "key": "NmrKods",
              "value": "occaecat proident",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"dolore s\",\"VU\":\"laborum tempor exercitation minim\",\"Polise\":\"veniam occaecat id non\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":65018525.81372148,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"irure \",\"VU\":\"in aliquip laboris mollit\",\"Polise\":\"labore consectetur in ex minim\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":15689691.198079064,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "30305265",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "Excepteur do non",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/dzav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "dzav2"
          ]
        }
      },
      "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": "Epasts",
              "value": "ZR.N.zb@wUv-YlvxCl.mt.TģKģdž.nJNF.īAIchR5ah.OtW48.6ws9J6ēzm.O.āylBšufh.kFSgfC$1l_}\\.n}BBX.Nj.Kb.1qK.",
              "description": "(Required) Iesniedzēja epasts."
            },
            {
              "key": "Talrunis",
              "value": "   ",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "TaksGads",
              "value": "77426165",
              "description": "(Required) Taksācijas gads."
            },
            {
              "key": "NmrKods",
              "value": "occaecat proident",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"dolore s\",\"VU\":\"laborum tempor exercitation minim\",\"Polise\":\"veniam occaecat id non\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":65018525.81372148,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"irure \",\"VU\":\"in aliquip laboris mollit\",\"Polise\":\"labore consectetur in ex minim\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":15689691.198079064,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "30305265",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "Excepteur do non",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/dzav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "dzav2"
          ]
        }
      },
      "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": "Epasts",
              "value": "ZR.N.zb@wUv-YlvxCl.mt.TģKģdž.nJNF.īAIchR5ah.OtW48.6ws9J6ēzm.O.āylBšufh.kFSgfC$1l_}\\.n}BBX.Nj.Kb.1qK.",
              "description": "(Required) Iesniedzēja epasts."
            },
            {
              "key": "Talrunis",
              "value": "   ",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "TaksGads",
              "value": "77426165",
              "description": "(Required) Taksācijas gads."
            },
            {
              "key": "NmrKods",
              "value": "occaecat proident",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"dolore s\",\"VU\":\"laborum tempor exercitation minim\",\"Polise\":\"veniam occaecat id non\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":65018525.81372148,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"irure \",\"VU\":\"in aliquip laboris mollit\",\"Polise\":\"labore consectetur in ex minim\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":15689691.198079064,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "30305265",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "Excepteur do non",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/dzav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "dzav2"
          ]
        }
      },
      "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": "Epasts",
              "value": "ZR.N.zb@wUv-YlvxCl.mt.TģKģdž.nJNF.īAIchR5ah.OtW48.6ws9J6ēzm.O.āylBšufh.kFSgfC$1l_}\\.n}BBX.Nj.Kb.1qK.",
              "description": "(Required) Iesniedzēja epasts."
            },
            {
              "key": "Talrunis",
              "value": "   ",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "TaksGads",
              "value": "77426165",
              "description": "(Required) Taksācijas gads."
            },
            {
              "key": "NmrKods",
              "value": "occaecat proident",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"dolore s\",\"VU\":\"laborum tempor exercitation minim\",\"Polise\":\"veniam occaecat id non\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":65018525.81372148,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"irure \",\"VU\":\"in aliquip laboris mollit\",\"Polise\":\"labore consectetur in ex minim\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":15689691.198079064,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "30305265",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "Excepteur do non",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/dzav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "dzav2"
          ]
        }
      },
      "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": "Epasts",
              "value": "ZR.N.zb@wUv-YlvxCl.mt.TģKģdž.nJNF.īAIchR5ah.OtW48.6ws9J6ēzm.O.āylBšufh.kFSgfC$1l_}\\.n}BBX.Nj.Kb.1qK.",
              "description": "(Required) Iesniedzēja epasts."
            },
            {
              "key": "Talrunis",
              "value": "   ",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "TaksGads",
              "value": "77426165",
              "description": "(Required) Taksācijas gads."
            },
            {
              "key": "NmrKods",
              "value": "occaecat proident",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"dolore s\",\"VU\":\"laborum tempor exercitation minim\",\"Polise\":\"veniam occaecat id non\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":65018525.81372148,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"irure \",\"VU\":\"in aliquip laboris mollit\",\"Polise\":\"labore consectetur in ex minim\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":15689691.198079064,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "30305265",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "Excepteur do non",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/dzav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "dzav2"
          ]
        }
      },
      "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": "Epasts",
              "value": "ZR.N.zb@wUv-YlvxCl.mt.TģKģdž.nJNF.īAIchR5ah.OtW48.6ws9J6ēzm.O.āylBšufh.kFSgfC$1l_}\\.n}BBX.Nj.Kb.1qK.",
              "description": "(Required) Iesniedzēja epasts."
            },
            {
              "key": "Talrunis",
              "value": "   ",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "TaksGads",
              "value": "77426165",
              "description": "(Required) Taksācijas gads."
            },
            {
              "key": "NmrKods",
              "value": "occaecat proident",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"dolore s\",\"VU\":\"laborum tempor exercitation minim\",\"Polise\":\"veniam occaecat id non\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":65018525.81372148,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Table",
              "value": "{\"PKods\":\"irure \",\"VU\":\"in aliquip laboris mollit\",\"Polise\":\"labore consectetur in ex minim\",\"Sak\":\"2000-01-31T00:00:00\",\"Beig\":\"2000-01-31T00:00:00\",\"Partr\":\"2000-01-31T00:00:00\",\"Premija\":15689691.198079064,\"Anul\":true,\"Scale\":[{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"},{\"value\":\"<Error: Too many levels of nesting to fake this schema>\"}]}",
              "description": "Gets or sets the table."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "30305265",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "Excepteur do non",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/dzav2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "dzav2"
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}