Chilkat Online Tools

SQL Server / EDS API / Izveidot dokumentu "Paziņojums par PVN samaksu".

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', 'eiusmod deserunt et'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Talrunis', 'ci'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'IesniegsanasIemesls', 'dolor nulla consectetur'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'IzslegsanasDatums', '2000-01-31T00:00:00'

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

    EXEC sp_OAMethod @jsonParam5, 'UpdateString', @success OUT, 'DarVeids', 'cupidatat enim irure in'
    EXEC sp_OAMethod @jsonParam5, 'UpdateNumber', @success OUT, 'VertibaDar', '-63681398.40149607'
    EXEC sp_OAMethod @jsonParam5, 'UpdateNumber', @success OUT, 'PvnVertiba', '-53125710.538811654'
    EXEC sp_OAMethod @jsonParam5, 'UpdateString', @success OUT, 'SamDatums', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @jsonParam5, 'UpdateString', @success OUT, 'DpValsts', 'dolore reprehenderit'
    EXEC sp_OAMethod @jsonParam5, 'UpdateString', @success OUT, 'DpNumurs', 'ex et'
    EXEC sp_OAMethod @jsonParam5, 'UpdateString', @success OUT, 'DpNosaukums', 'non proident'
    EXEC sp_OAMethod @jsonParam5, 'UpdateString', @success OUT, 'MiNumurs', 'ad enim'
    EXEC sp_OAMethod @jsonParam5, 'UpdateString', @success OUT, 'DokVeids', 'dolor'
    EXEC sp_OAMethod @jsonParam5, 'UpdateString', @success OUT, 'DokNumurs', 'irure proi'
    EXEC sp_OAMethod @jsonParam5, 'UpdateString', @success OUT, 'DokDatums', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @jsonParam5, 'UpdateString', @success OUT, 'Piezimes', 'in ea et'
    EXEC sp_OAMethod @jsonParam5, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Tabula', @sTmp0

    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, 'DarVeids', 'sint officia irure pariatur'
    EXEC sp_OAMethod @jsonParam6, 'UpdateNumber', @success OUT, 'VertibaDar', '-43606258.34851573'
    EXEC sp_OAMethod @jsonParam6, 'UpdateNumber', @success OUT, 'PvnVertiba', '75375256.44965553'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'SamDatums', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'DpValsts', 'velit ullamco'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'DpNumurs', 'quis'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'DpNosaukums', 'enim dol'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'MiNumurs', 'ullamco am'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'DokVeids', 'Excepteur exercitation nostrud eiusmod'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'DokNumurs', 'qui'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'DokDatums', '2000-01-31T00:00:00'
    EXEC sp_OAMethod @jsonParam6, 'UpdateString', @success OUT, 'Piezimes', 'sed exercitation magna incididunt'
    EXEC sp_OAMethod @jsonParam6, 'Emit', @sTmp0 OUT
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Tabula', @sTmp0
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'NmrKods', 'minim aute'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'Precizejums', 'false'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'PrecizejamaisDokuments', '-70337099'
    EXEC sp_OAMethod @req, 'AddParam', NULL, 'PrecizejumaPamatojums', 'in consectetur ad laborum cillum'

    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/pvnsv2', @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 @jsonParam5
        EXEC @hr = sp_OADestroy @jsonParam6
        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 @jsonParam5
        EXEC @hr = sp_OADestroy @jsonParam6
        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 @jsonParam5
    EXEC @hr = sp_OADestroy @jsonParam6
    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=eiusmod deserunt et'
	--data-urlencode 'Talrunis=ci'
	--data-urlencode 'IesniegsanasIemesls=dolor nulla consectetur'
	--data-urlencode 'IzslegsanasDatums=2000-01-31T00:00:00'
	--data-urlencode 'Tabula={"DarVeids":"cupidatat enim irure in","VertibaDar":-63681398.40149607,"PvnVertiba":-53125710.538811654,"SamDatums":"2000-01-31T00:00:00","DpValsts":"dolore reprehenderit","DpNumurs":"ex et","DpNosaukums":"non proident","MiNumurs":"ad enim","DokVeids":"dolor","DokNumurs":"irure proi","DokDatums":"2000-01-31T00:00:00","Piezimes":"in ea et"}'
	--data-urlencode 'Tabula={"DarVeids":"sint officia irure pariatur","VertibaDar":-43606258.34851573,"PvnVertiba":75375256.44965553,"SamDatums":"2000-01-31T00:00:00","DpValsts":"velit ullamco","DpNumurs":"quis","DpNosaukums":"enim dol","MiNumurs":"ullamco am","DokVeids":"Excepteur exercitation nostrud eiusmod","DokNumurs":"qui","DokDatums":"2000-01-31T00:00:00","Piezimes":"sed exercitation magna incididunt"}'
	--data-urlencode 'NmrKods=minim aute'
	--data-urlencode 'Precizejums=false'
	--data-urlencode 'PrecizejamaisDokuments=-70337099'
	--data-urlencode 'PrecizejumaPamatojums=in consectetur ad laborum cillum'
https://eds.vid.gov.lv/api/doc/pvnsv2

Postman Collection Item JSON

{
  "name": "Izveidot dokumentu \"Paziņojums par PVN samaksu\".",
  "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": "eiusmod deserunt et",
          "description": "(Required) Epasta adrese."
        },
        {
          "key": "Talrunis",
          "value": "ci",
          "description": "(Required) Iesniedzēja tālrunis."
        },
        {
          "key": "IesniegsanasIemesls",
          "value": "dolor nulla consectetur",
          "description": "(Required) Iesniegšanas iemesls."
        },
        {
          "key": "IzslegsanasDatums",
          "value": "2000-01-31T00:00:00",
          "description": "Izslēgšanas datums."
        },
        {
          "key": "Tabula",
          "value": "{\"DarVeids\":\"cupidatat enim irure in\",\"VertibaDar\":-63681398.40149607,\"PvnVertiba\":-53125710.538811654,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"dolore reprehenderit\",\"DpNumurs\":\"ex et\",\"DpNosaukums\":\"non proident\",\"MiNumurs\":\"ad enim\",\"DokVeids\":\"dolor\",\"DokNumurs\":\"irure proi\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"in ea et\"}",
          "description": "PVNSv2 datu tabula."
        },
        {
          "key": "Tabula",
          "value": "{\"DarVeids\":\"sint officia irure pariatur\",\"VertibaDar\":-43606258.34851573,\"PvnVertiba\":75375256.44965553,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"velit ullamco\",\"DpNumurs\":\"quis\",\"DpNosaukums\":\"enim dol\",\"MiNumurs\":\"ullamco am\",\"DokVeids\":\"Excepteur exercitation nostrud eiusmod\",\"DokNumurs\":\"qui\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"sed exercitation magna incididunt\"}",
          "description": "PVNSv2 datu tabula."
        },
        {
          "key": "NmrKods",
          "value": "minim aute ",
          "description": "Nodokļu maksātāja kods."
        },
        {
          "key": "Precizejums",
          "value": "false",
          "description": "Vai dokuments ir precizējums."
        },
        {
          "key": "PrecizejamaisDokuments",
          "value": "-70337099",
          "description": "Precizējamā dokumenta numurs."
        },
        {
          "key": "PrecizejumaPamatojums",
          "value": "in consectetur ad laborum cillum",
          "description": "Precizējuma pamatojums."
        }
      ]
    },
    "url": {
      "raw": "{{baseUrl}}/api/doc/pvnsv2",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "doc",
        "pvnsv2"
      ]
    }
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "Epasts",
              "value": "id enim ut occaecat",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "Talrunis",
              "value": "cupidat",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "IesniegsanasIemesls",
              "value": "velit",
              "description": "(Required) Iesniegšanas iemesls."
            },
            {
              "key": "IzslegsanasDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Izslēgšanas datums."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"voluptate\",\"VertibaDar\":-12859357.727299824,\"PvnVertiba\":-52428668.116634734,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"velit culpa\",\"DpNumurs\":\"s\",\"DpNosaukums\":\"laboris esse\",\"MiNumurs\":\"ullamc\",\"DokVeids\":\"Ut adipisicing\",\"DokNumurs\":\"moll\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"sunt\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"esse in ex\",\"VertibaDar\":42558909.33699283,\"PvnVertiba\":34138678.45265223,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"anim dolor dolore et labore\",\"DpNumurs\":\"ex commodo \",\"DpNosaukums\":\"qui enim\",\"MiNumurs\":\"nisi\",\"DokVeids\":\"culpa exercitation in sint\",\"DokNumurs\":\"non commodo velit\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"deserunt aliquip mollit ut\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "NmrKods",
              "value": "sunt nul",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-33723634",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "ex velit dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnsv2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnsv2"
          ]
        }
      },
      "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": "id enim ut occaecat",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "Talrunis",
              "value": "cupidat",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "IesniegsanasIemesls",
              "value": "velit",
              "description": "(Required) Iesniegšanas iemesls."
            },
            {
              "key": "IzslegsanasDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Izslēgšanas datums."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"voluptate\",\"VertibaDar\":-12859357.727299824,\"PvnVertiba\":-52428668.116634734,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"velit culpa\",\"DpNumurs\":\"s\",\"DpNosaukums\":\"laboris esse\",\"MiNumurs\":\"ullamc\",\"DokVeids\":\"Ut adipisicing\",\"DokNumurs\":\"moll\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"sunt\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"esse in ex\",\"VertibaDar\":42558909.33699283,\"PvnVertiba\":34138678.45265223,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"anim dolor dolore et labore\",\"DpNumurs\":\"ex commodo \",\"DpNosaukums\":\"qui enim\",\"MiNumurs\":\"nisi\",\"DokVeids\":\"culpa exercitation in sint\",\"DokNumurs\":\"non commodo velit\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"deserunt aliquip mollit ut\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "NmrKods",
              "value": "sunt nul",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-33723634",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "ex velit dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnsv2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnsv2"
          ]
        }
      },
      "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": "id enim ut occaecat",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "Talrunis",
              "value": "cupidat",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "IesniegsanasIemesls",
              "value": "velit",
              "description": "(Required) Iesniegšanas iemesls."
            },
            {
              "key": "IzslegsanasDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Izslēgšanas datums."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"voluptate\",\"VertibaDar\":-12859357.727299824,\"PvnVertiba\":-52428668.116634734,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"velit culpa\",\"DpNumurs\":\"s\",\"DpNosaukums\":\"laboris esse\",\"MiNumurs\":\"ullamc\",\"DokVeids\":\"Ut adipisicing\",\"DokNumurs\":\"moll\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"sunt\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"esse in ex\",\"VertibaDar\":42558909.33699283,\"PvnVertiba\":34138678.45265223,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"anim dolor dolore et labore\",\"DpNumurs\":\"ex commodo \",\"DpNosaukums\":\"qui enim\",\"MiNumurs\":\"nisi\",\"DokVeids\":\"culpa exercitation in sint\",\"DokNumurs\":\"non commodo velit\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"deserunt aliquip mollit ut\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "NmrKods",
              "value": "sunt nul",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-33723634",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "ex velit dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnsv2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnsv2"
          ]
        }
      },
      "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": "id enim ut occaecat",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "Talrunis",
              "value": "cupidat",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "IesniegsanasIemesls",
              "value": "velit",
              "description": "(Required) Iesniegšanas iemesls."
            },
            {
              "key": "IzslegsanasDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Izslēgšanas datums."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"voluptate\",\"VertibaDar\":-12859357.727299824,\"PvnVertiba\":-52428668.116634734,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"velit culpa\",\"DpNumurs\":\"s\",\"DpNosaukums\":\"laboris esse\",\"MiNumurs\":\"ullamc\",\"DokVeids\":\"Ut adipisicing\",\"DokNumurs\":\"moll\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"sunt\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"esse in ex\",\"VertibaDar\":42558909.33699283,\"PvnVertiba\":34138678.45265223,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"anim dolor dolore et labore\",\"DpNumurs\":\"ex commodo \",\"DpNosaukums\":\"qui enim\",\"MiNumurs\":\"nisi\",\"DokVeids\":\"culpa exercitation in sint\",\"DokNumurs\":\"non commodo velit\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"deserunt aliquip mollit ut\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "NmrKods",
              "value": "sunt nul",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-33723634",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "ex velit dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnsv2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnsv2"
          ]
        }
      },
      "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": "id enim ut occaecat",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "Talrunis",
              "value": "cupidat",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "IesniegsanasIemesls",
              "value": "velit",
              "description": "(Required) Iesniegšanas iemesls."
            },
            {
              "key": "IzslegsanasDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Izslēgšanas datums."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"voluptate\",\"VertibaDar\":-12859357.727299824,\"PvnVertiba\":-52428668.116634734,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"velit culpa\",\"DpNumurs\":\"s\",\"DpNosaukums\":\"laboris esse\",\"MiNumurs\":\"ullamc\",\"DokVeids\":\"Ut adipisicing\",\"DokNumurs\":\"moll\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"sunt\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"esse in ex\",\"VertibaDar\":42558909.33699283,\"PvnVertiba\":34138678.45265223,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"anim dolor dolore et labore\",\"DpNumurs\":\"ex commodo \",\"DpNosaukums\":\"qui enim\",\"MiNumurs\":\"nisi\",\"DokVeids\":\"culpa exercitation in sint\",\"DokNumurs\":\"non commodo velit\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"deserunt aliquip mollit ut\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "NmrKods",
              "value": "sunt nul",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-33723634",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "ex velit dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnsv2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnsv2"
          ]
        }
      },
      "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": "id enim ut occaecat",
              "description": "(Required) Epasta adrese."
            },
            {
              "key": "Talrunis",
              "value": "cupidat",
              "description": "(Required) Iesniedzēja tālrunis."
            },
            {
              "key": "IesniegsanasIemesls",
              "value": "velit",
              "description": "(Required) Iesniegšanas iemesls."
            },
            {
              "key": "IzslegsanasDatums",
              "value": "2000-01-31T00:00:00",
              "description": "Izslēgšanas datums."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"voluptate\",\"VertibaDar\":-12859357.727299824,\"PvnVertiba\":-52428668.116634734,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"velit culpa\",\"DpNumurs\":\"s\",\"DpNosaukums\":\"laboris esse\",\"MiNumurs\":\"ullamc\",\"DokVeids\":\"Ut adipisicing\",\"DokNumurs\":\"moll\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"sunt\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "Tabula",
              "value": "{\"DarVeids\":\"esse in ex\",\"VertibaDar\":42558909.33699283,\"PvnVertiba\":34138678.45265223,\"SamDatums\":\"2000-01-31T00:00:00\",\"DpValsts\":\"anim dolor dolore et labore\",\"DpNumurs\":\"ex commodo \",\"DpNosaukums\":\"qui enim\",\"MiNumurs\":\"nisi\",\"DokVeids\":\"culpa exercitation in sint\",\"DokNumurs\":\"non commodo velit\",\"DokDatums\":\"2000-01-31T00:00:00\",\"Piezimes\":\"deserunt aliquip mollit ut\"}",
              "description": "PVNSv2 datu tabula."
            },
            {
              "key": "NmrKods",
              "value": "sunt nul",
              "description": "Nodokļu maksātāja kods."
            },
            {
              "key": "Precizejums",
              "value": "false",
              "description": "Vai dokuments ir precizējums."
            },
            {
              "key": "PrecizejamaisDokuments",
              "value": "-33723634",
              "description": "Precizējamā dokumenta numurs."
            },
            {
              "key": "PrecizejumaPamatojums",
              "value": "ex velit dolor",
              "description": "Precizējuma pamatojums."
            }
          ]
        },
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnsv2",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnsv2"
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}