Chilkat Online Tools

PowerBuilder / EDS API / Dokuments "PVN atmaksas pieteikums".

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_IssuingDate
string ls_SupplierName
string ls_SupplierAddressFree
string ls_SupplierCountryCode
string ls_TaxableAmount
string ls_VatAmount
string ls_ReferenceInformation
string ls_SupplierTelephoneNumber
string ls_GoodsDescriptionFreeText
string ls_GoodsDescriptionFreeTextLang
string ls_GoodsDescriptionCodes
string ls_ProRataRate
string ls_EuTraderIdIssuedBy
integer li_SimplifiedInvoice
string ls_EuTraderId
string ls_EuTraderIdType
string ls_FileType
string ls_FileName
string ls_FileDescription
string ls_FileContent
string ls_NmrKods
string ls_Talrunis
string ls_Sagatavotajs
string ls_RefundingCountryCode
string ls_ReferenceNumber
string ls_Version
string ls_Value
string ls_AddressFree
string ls_TelephoneNumber
string ls_CountryCode
string ls_CodeTypeValueValue
string ls_CodeValue
string ls_IssuedByValue
string ls_EmailAddress
string ls_RepresentativeAddressFree
string ls_RepresentativeCountryCode
string ls_RepresentativeEmailAddress
string ls_NameFreeValue
string ls_RepresentativeTelephoneNumber
string ls_StartDate
string ls_EndDate
string ls_BusinessActivity
string ls_OwnerName
string ls_OwnerType
string ls_IBAN
string ls_BIC
string ls_V_Currency
integer li_Accepted
integer li_Id
string ls_UID
integer li_Precizejums
integer li_PrecizejamaisDokuments
string ls_PrecizejumaPamatojums
integer i
integer li_Count_i

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

loo_Http.SetRequestHeader("Accept","application/json")

loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")

li_Success = loo_Http.QuickGetSb("https://eds.vid.gov.lv/api/doc/pvnav2/:id",loo_SbResponseBody)
if li_Success = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_SbResponseBody
    return
end if

loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Http.LastStatus
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Http.LastHeader
    Write-Debug "Failed."
    destroy loo_Http
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)

// {
//   "NmrKods": "anim velit tempor ullamco",
//   "Talrunis": "4",
//   "Sagatavotajs": "aliqua magna",
//   "ApplicationReference": {
//     "RefundingCountryCode": "anim ad magna",
//     "ReferenceNumber": "proident",
//     "Version": "irure commodo"
//   },
//   "Applicant": {
//     "Name": {
//       "NameFree": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       }
//     },
//     "AddressFree": "sunt",
//     "TelephoneNumber": "minim magna dolore",
//     "CountryCode": "ad aute laborum",
//     "EUTraderID": {
//       "CodeTypeValue": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       },
//       "Code": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       },
//       "IssuedBy": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       }
//     },
//     "EmailAddress": "quis"
//   },
//   "Representative": {
//     "AddressFree": "deserunt",
//     "CountryCode": "in anim",
//     "EmailAddress": "",
//     "Name": {
//       "NameFree": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       }
//     },
//     "TelephoneNumber": "\r6",
//     "RepresentativeID": {
//       "CodeTypeValue": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       },
//       "Code": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       },
//       "IssuedBy": {
//         "value": "<Error: Too many levels of nesting to fake this schema>"
//       }
//     }
//   },
//   "RefundPeriod": {
//     "StartDate": "2000-01-31T00:00:00",
//     "EndDate": "2000-01-31T00:00:00"
//   },
//   "BusinessDescription": {
//     "BusinessActivity": "cupidatat deserunt veniam"
//   },
//   "DetailedBankAccount": {
//     "OwnerName": "-r4AJzac",
//     "OwnerType": "magna consectetur sint",
//     "IBAN": "FR76IV05EPC,RNHM8MENESST",
//     "BIC": "CNWONQML",
//     "Currency": "Duis veniam"
//   },
//   "ImportInformation": [
//     {
//       "IssuingDate": "2000-01-31T00:00:00",
//       "SupplierName": "sunt dolor dolor",
//       "SupplierAddressFree": "dolore",
//       "SupplierCountryCode": "est dolore dolor",
//       "Currency": "ea elit nulla velit",
//       "TaxableAmount": -88820603.7288061,
//       "VatAmount": 71318677.0492571,
//       "ReferenceNumber": "eu aliqua nulla",
//       "ReferenceInformation": "exercitation laborum",
//       "SupplierTelephoneNumber": "3 ",
//       "GoodsDescriptionFreeText": "ani",
//       "GoodsDescriptionFreeTextLang": "ut nostrud ex officia",
//       "GoodsDescriptionCodes": "in L",
//       "ProRataRate": 37125738.782556444
//     },
//     {
//       "IssuingDate": "2000-01-31T00:00:00",
//       "SupplierName": "in non culpa",
//       "SupplierAddressFree": "sit off",
//       "SupplierCountryCode": "qui dolore",
//       "Currency": "in eiusmod in anim",
//       "TaxableAmount": 50542638.62150416,
//       "VatAmount": -84461612.01044232,
//       "ReferenceNumber": "irure ",
//       "ReferenceInformation": "reprehenderit et voluptate",
//       "SupplierTelephoneNumber": "\t   ",
//       "GoodsDescriptionFreeText": "laboris dolor",
//       "GoodsDescriptionFreeTextLang": "ipsum commodo",
//       "GoodsDescriptionCodes": "culpa mollit dolor",
//       "ProRataRate": -64717664.86095043
//     }
//   ],
//   "PurchaseInformation": [
//     {
//       "IssuingDate": "2000-01-31T00:00:00",
//       "SupplierName": "ut cillum velit dolore fugiat",
//       "SupplierAddressFree": "aliquip",
//       "SupplierCountryCode": "sed aliquip adipisicing",
//       "Currency": "anim labore consequat",
//       "TaxableAmount": 12481268.563475162,
//       "VatAmount": 31338286.233541623,
//       "ReferenceNumber": "tempor exercita",
//       "EuTraderIdIssuedBy": "ut ea ullamco laboris",
//       "SimplifiedInvoice": true,
//       "SupplierTelephoneNumber": "  \u000b 9 4  7",
//       "EuTraderId": "mini",
//       "EuTraderIdType": "deserunt sunt aliqua",
//       "GoodsDescriptionFreeText": "commodo Lorem",
//       "GoodsDescriptionFreeTextLang": "exercitation sunt voluptate",
//       "GoodsDescriptionCodes": "Excepteur consequat et ut",
//       "ProRataRate": -73370109.27853811
//     },
//     {
//       "IssuingDate": "2000-01-31T00:00:00",
//       "SupplierName": "sed in ut",
//       "SupplierAddressFree": "quis voluptate",
//       "SupplierCountryCode": "labore cillum occaecat",
//       "Currency": "et elit magna",
//       "TaxableAmount": 40216004.607723564,
//       "VatAmount": 29872509.991602138,
//       "ReferenceNumber": "et Lo",
//       "EuTraderIdIssuedBy": "labore incididunt",
//       "SimplifiedInvoice": false,
//       "SupplierTelephoneNumber": "8 ",
//       "EuTraderId": "dolor ipsum in dolor",
//       "EuTraderIdType": "consectetur Ut Lorem",
//       "GoodsDescriptionFreeText": "Ut sed veniam nost",
//       "GoodsDescriptionFreeTextLang": "fug",
//       "GoodsDescriptionCodes": "ex",
//       "ProRataRate": -4523238.601603329
//     }
//   ],
//   "DocumentCopy": [
//     {
//       "FileType": "dolor sit eiusmod",
//       "FileName": "sunt adipisicing",
//       "FileDescription": "aute qui",
//       "FileContent": "dolor officia"
//     },
//     {
//       "FileType": "magna eu deserunt qui",
//       "FileName": "pariatur",
//       "FileDescription": "nisi",
//       "FileContent": "in eiusmod dolor enim"
//     }
//   ],
//   "Accepted": true,
//   "Id": -56268983,
//   "UID": "nulla ut",
//   "Precizejums": true,
//   "PrecizejamaisDokuments": 5162629,
//   "PrecizejumaPamatojums": "cupidatat dolor velit nulla"
// }

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

ls_NmrKods = loo_JResp.StringOf("NmrKods")
ls_Talrunis = loo_JResp.StringOf("Talrunis")
ls_Sagatavotajs = loo_JResp.StringOf("Sagatavotajs")
ls_RefundingCountryCode = loo_JResp.StringOf("ApplicationReference.RefundingCountryCode")
ls_ReferenceNumber = loo_JResp.StringOf("ApplicationReference.ReferenceNumber")
ls_Version = loo_JResp.StringOf("ApplicationReference.Version")
ls_Value = loo_JResp.StringOf("Applicant.Name.NameFree.value")
ls_AddressFree = loo_JResp.StringOf("Applicant.AddressFree")
ls_TelephoneNumber = loo_JResp.StringOf("Applicant.TelephoneNumber")
ls_CountryCode = loo_JResp.StringOf("Applicant.CountryCode")
ls_CodeTypeValueValue = loo_JResp.StringOf("Applicant.EUTraderID.CodeTypeValue.value")
ls_CodeValue = loo_JResp.StringOf("Applicant.EUTraderID.Code.value")
ls_IssuedByValue = loo_JResp.StringOf("Applicant.EUTraderID.IssuedBy.value")
ls_EmailAddress = loo_JResp.StringOf("Applicant.EmailAddress")
ls_RepresentativeAddressFree = loo_JResp.StringOf("Representative.AddressFree")
ls_RepresentativeCountryCode = loo_JResp.StringOf("Representative.CountryCode")
ls_RepresentativeEmailAddress = loo_JResp.StringOf("Representative.EmailAddress")
ls_NameFreeValue = loo_JResp.StringOf("Representative.Name.NameFree.value")
ls_RepresentativeTelephoneNumber = loo_JResp.StringOf("Representative.TelephoneNumber")
ls_CodeTypeValueValue = loo_JResp.StringOf("Representative.RepresentativeID.CodeTypeValue.value")
ls_CodeValue = loo_JResp.StringOf("Representative.RepresentativeID.Code.value")
ls_IssuedByValue = loo_JResp.StringOf("Representative.RepresentativeID.IssuedBy.value")
ls_StartDate = loo_JResp.StringOf("RefundPeriod.StartDate")
ls_EndDate = loo_JResp.StringOf("RefundPeriod.EndDate")
ls_BusinessActivity = loo_JResp.StringOf("BusinessDescription.BusinessActivity")
ls_OwnerName = loo_JResp.StringOf("DetailedBankAccount.OwnerName")
ls_OwnerType = loo_JResp.StringOf("DetailedBankAccount.OwnerType")
ls_IBAN = loo_JResp.StringOf("DetailedBankAccount.IBAN")
ls_BIC = loo_JResp.StringOf("DetailedBankAccount.BIC")
ls_V_Currency = loo_JResp.StringOf("DetailedBankAccount.Currency")
li_Accepted = loo_JResp.BoolOf("Accepted")
li_Id = loo_JResp.IntOf("Id")
ls_UID = loo_JResp.StringOf("UID")
li_Precizejums = loo_JResp.BoolOf("Precizejums")
li_PrecizejamaisDokuments = loo_JResp.IntOf("PrecizejamaisDokuments")
ls_PrecizejumaPamatojums = loo_JResp.StringOf("PrecizejumaPamatojums")
i = 0
li_Count_i = loo_JResp.SizeOfArray("ImportInformation")
do while i < li_Count_i
    loo_JResp.I = i
    ls_IssuingDate = loo_JResp.StringOf("ImportInformation[i].IssuingDate")
    ls_SupplierName = loo_JResp.StringOf("ImportInformation[i].SupplierName")
    ls_SupplierAddressFree = loo_JResp.StringOf("ImportInformation[i].SupplierAddressFree")
    ls_SupplierCountryCode = loo_JResp.StringOf("ImportInformation[i].SupplierCountryCode")
    ls_V_Currency = loo_JResp.StringOf("ImportInformation[i].Currency")
    ls_TaxableAmount = loo_JResp.StringOf("ImportInformation[i].TaxableAmount")
    ls_VatAmount = loo_JResp.StringOf("ImportInformation[i].VatAmount")
    ls_ReferenceNumber = loo_JResp.StringOf("ImportInformation[i].ReferenceNumber")
    ls_ReferenceInformation = loo_JResp.StringOf("ImportInformation[i].ReferenceInformation")
    ls_SupplierTelephoneNumber = loo_JResp.StringOf("ImportInformation[i].SupplierTelephoneNumber")
    ls_GoodsDescriptionFreeText = loo_JResp.StringOf("ImportInformation[i].GoodsDescriptionFreeText")
    ls_GoodsDescriptionFreeTextLang = loo_JResp.StringOf("ImportInformation[i].GoodsDescriptionFreeTextLang")
    ls_GoodsDescriptionCodes = loo_JResp.StringOf("ImportInformation[i].GoodsDescriptionCodes")
    ls_ProRataRate = loo_JResp.StringOf("ImportInformation[i].ProRataRate")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("PurchaseInformation")
do while i < li_Count_i
    loo_JResp.I = i
    ls_IssuingDate = loo_JResp.StringOf("PurchaseInformation[i].IssuingDate")
    ls_SupplierName = loo_JResp.StringOf("PurchaseInformation[i].SupplierName")
    ls_SupplierAddressFree = loo_JResp.StringOf("PurchaseInformation[i].SupplierAddressFree")
    ls_SupplierCountryCode = loo_JResp.StringOf("PurchaseInformation[i].SupplierCountryCode")
    ls_V_Currency = loo_JResp.StringOf("PurchaseInformation[i].Currency")
    ls_TaxableAmount = loo_JResp.StringOf("PurchaseInformation[i].TaxableAmount")
    ls_VatAmount = loo_JResp.StringOf("PurchaseInformation[i].VatAmount")
    ls_ReferenceNumber = loo_JResp.StringOf("PurchaseInformation[i].ReferenceNumber")
    ls_EuTraderIdIssuedBy = loo_JResp.StringOf("PurchaseInformation[i].EuTraderIdIssuedBy")
    li_SimplifiedInvoice = loo_JResp.BoolOf("PurchaseInformation[i].SimplifiedInvoice")
    ls_SupplierTelephoneNumber = loo_JResp.StringOf("PurchaseInformation[i].SupplierTelephoneNumber")
    ls_EuTraderId = loo_JResp.StringOf("PurchaseInformation[i].EuTraderId")
    ls_EuTraderIdType = loo_JResp.StringOf("PurchaseInformation[i].EuTraderIdType")
    ls_GoodsDescriptionFreeText = loo_JResp.StringOf("PurchaseInformation[i].GoodsDescriptionFreeText")
    ls_GoodsDescriptionFreeTextLang = loo_JResp.StringOf("PurchaseInformation[i].GoodsDescriptionFreeTextLang")
    ls_GoodsDescriptionCodes = loo_JResp.StringOf("PurchaseInformation[i].GoodsDescriptionCodes")
    ls_ProRataRate = loo_JResp.StringOf("PurchaseInformation[i].ProRataRate")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("DocumentCopy")
do while i < li_Count_i
    loo_JResp.I = i
    ls_FileType = loo_JResp.StringOf("DocumentCopy[i].FileType")
    ls_FileName = loo_JResp.StringOf("DocumentCopy[i].FileName")
    ls_FileDescription = loo_JResp.StringOf("DocumentCopy[i].FileDescription")
    ls_FileContent = loo_JResp.StringOf("DocumentCopy[i].FileContent")
    i = i + 1
loop


destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp

Curl Command

curl -X GET
	-H "Accept: application/json"
https://eds.vid.gov.lv/api/doc/pvnav2/:id

Postman Collection Item JSON

{
  "name": "Dokuments \"PVN atmaksas pieteikums\".",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/doc/pvnav2/:id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "doc",
        "pvnav2",
        ":id"
      ],
      "variable": [
        {
          "key": "id",
          "value": "25210683",
          "description": "(Required) Dokumenta id."
        }
      ]
    }
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnav2/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnav2",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"NmrKods\": \"anim velit tempor ullamco\",\n  \"Talrunis\": \"4\",\n  \"Sagatavotajs\": \"aliqua magna\",\n  \"ApplicationReference\": {\n    \"RefundingCountryCode\": \"anim ad magna\",\n    \"ReferenceNumber\": \"proident\",\n    \"Version\": \"irure commodo\"\n  },\n  \"Applicant\": {\n    \"Name\": {\n      \"NameFree\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"AddressFree\": \"sunt\",\n    \"TelephoneNumber\": \"minim magna dolore\",\n    \"CountryCode\": \"ad aute laborum\",\n    \"EUTraderID\": {\n      \"CodeTypeValue\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Code\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"IssuedBy\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"EmailAddress\": \"quis\"\n  },\n  \"Representative\": {\n    \"AddressFree\": \"deserunt\",\n    \"CountryCode\": \"in anim\",\n    \"EmailAddress\": \"\",\n    \"Name\": {\n      \"NameFree\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    },\n    \"TelephoneNumber\": \"\\r6\",\n    \"RepresentativeID\": {\n      \"CodeTypeValue\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"Code\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      },\n      \"IssuedBy\": {\n        \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n      }\n    }\n  },\n  \"RefundPeriod\": {\n    \"StartDate\": \"2000-01-31T00:00:00\",\n    \"EndDate\": \"2000-01-31T00:00:00\"\n  },\n  \"BusinessDescription\": {\n    \"BusinessActivity\": \"cupidatat deserunt veniam\"\n  },\n  \"DetailedBankAccount\": {\n    \"OwnerName\": \"-r4AJzac\",\n    \"OwnerType\": \"magna consectetur sint\",\n    \"IBAN\": \"FR76IV05EPC,RNHM8MENESST\",\n    \"BIC\": \"CNWONQML\",\n    \"Currency\": \"Duis veniam\"\n  },\n  \"ImportInformation\": [\n    {\n      \"IssuingDate\": \"2000-01-31T00:00:00\",\n      \"SupplierName\": \"sunt dolor dolor\",\n      \"SupplierAddressFree\": \"dolore\",\n      \"SupplierCountryCode\": \"est dolore dolor\",\n      \"Currency\": \"ea elit nulla velit\",\n      \"TaxableAmount\": -88820603.7288061,\n      \"VatAmount\": 71318677.0492571,\n      \"ReferenceNumber\": \"eu aliqua nulla\",\n      \"ReferenceInformation\": \"exercitation laborum\",\n      \"SupplierTelephoneNumber\": \"3 \",\n      \"GoodsDescriptionFreeText\": \"ani\",\n      \"GoodsDescriptionFreeTextLang\": \"ut nostrud ex officia\",\n      \"GoodsDescriptionCodes\": \"in L\",\n      \"ProRataRate\": 37125738.782556444\n    },\n    {\n      \"IssuingDate\": \"2000-01-31T00:00:00\",\n      \"SupplierName\": \"in non culpa\",\n      \"SupplierAddressFree\": \"sit off\",\n      \"SupplierCountryCode\": \"qui dolore\",\n      \"Currency\": \"in eiusmod in anim\",\n      \"TaxableAmount\": 50542638.62150416,\n      \"VatAmount\": -84461612.01044232,\n      \"ReferenceNumber\": \"irure \",\n      \"ReferenceInformation\": \"reprehenderit et voluptate\",\n      \"SupplierTelephoneNumber\": \"\\t   \",\n      \"GoodsDescriptionFreeText\": \"laboris dolor\",\n      \"GoodsDescriptionFreeTextLang\": \"ipsum commodo\",\n      \"GoodsDescriptionCodes\": \"culpa mollit dolor\",\n      \"ProRataRate\": -64717664.86095043\n    }\n  ],\n  \"PurchaseInformation\": [\n    {\n      \"IssuingDate\": \"2000-01-31T00:00:00\",\n      \"SupplierName\": \"ut cillum velit dolore fugiat\",\n      \"SupplierAddressFree\": \"aliquip\",\n      \"SupplierCountryCode\": \"sed aliquip adipisicing\",\n      \"Currency\": \"anim labore consequat\",\n      \"TaxableAmount\": 12481268.563475162,\n      \"VatAmount\": 31338286.233541623,\n      \"ReferenceNumber\": \"tempor exercita\",\n      \"EuTraderIdIssuedBy\": \"ut ea ullamco laboris\",\n      \"SimplifiedInvoice\": true,\n      \"SupplierTelephoneNumber\": \"  \\u000b 9 4  7\",\n      \"EuTraderId\": \"mini\",\n      \"EuTraderIdType\": \"deserunt sunt aliqua\",\n      \"GoodsDescriptionFreeText\": \"commodo Lorem\",\n      \"GoodsDescriptionFreeTextLang\": \"exercitation sunt voluptate\",\n      \"GoodsDescriptionCodes\": \"Excepteur consequat et ut\",\n      \"ProRataRate\": -73370109.27853811\n    },\n    {\n      \"IssuingDate\": \"2000-01-31T00:00:00\",\n      \"SupplierName\": \"sed in ut\",\n      \"SupplierAddressFree\": \"quis voluptate\",\n      \"SupplierCountryCode\": \"labore cillum occaecat\",\n      \"Currency\": \"et elit magna\",\n      \"TaxableAmount\": 40216004.607723564,\n      \"VatAmount\": 29872509.991602138,\n      \"ReferenceNumber\": \"et Lo\",\n      \"EuTraderIdIssuedBy\": \"labore incididunt\",\n      \"SimplifiedInvoice\": false,\n      \"SupplierTelephoneNumber\": \"8 \",\n      \"EuTraderId\": \"dolor ipsum in dolor\",\n      \"EuTraderIdType\": \"consectetur Ut Lorem\",\n      \"GoodsDescriptionFreeText\": \"Ut sed veniam nost\",\n      \"GoodsDescriptionFreeTextLang\": \"fug\",\n      \"GoodsDescriptionCodes\": \"ex\",\n      \"ProRataRate\": -4523238.601603329\n    }\n  ],\n  \"DocumentCopy\": [\n    {\n      \"FileType\": \"dolor sit eiusmod\",\n      \"FileName\": \"sunt adipisicing\",\n      \"FileDescription\": \"aute qui\",\n      \"FileContent\": \"dolor officia\"\n    },\n    {\n      \"FileType\": \"magna eu deserunt qui\",\n      \"FileName\": \"pariatur\",\n      \"FileDescription\": \"nisi\",\n      \"FileContent\": \"in eiusmod dolor enim\"\n    }\n  ],\n  \"Accepted\": true,\n  \"Id\": -56268983,\n  \"UID\": \"nulla ut\",\n  \"Precizejums\": true,\n  \"PrecizejamaisDokuments\": 5162629,\n  \"PrecizejumaPamatojums\": \"cupidatat dolor velit nulla\"\n}"
    },
    {
      "name": "Lietotājs nav autentificēts.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnav2/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnav2",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Dokuments neeksistē vai lietotājam nav tiesību.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnav2/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnav2",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    },
    {
      "name": "Pārsniegts izsaukumu skaita ierobežojums.",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{baseUrl}}/api/doc/pvnav2/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "doc",
            "pvnav2",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "25210683",
              "description": "(Required) Dokumenta id."
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}