Chilkat Online Tools

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

Back to Collection Items

#include <C_CkHttp.h>
#include <C_CkStringBuilder.h>
#include <C_CkJsonObject.h>

void ChilkatSample(void)
    {
    HCkHttp http;
    BOOL success;
    HCkStringBuilder sbResponseBody;
    HCkJsonObject jResp;
    int respStatusCode;
    const char *IssuingDate;
    const char *SupplierName;
    const char *SupplierAddressFree;
    const char *SupplierCountryCode;
    const char *TaxableAmount;
    const char *VatAmount;
    const char *ReferenceInformation;
    const char *SupplierTelephoneNumber;
    const char *GoodsDescriptionFreeText;
    const char *GoodsDescriptionFreeTextLang;
    const char *GoodsDescriptionCodes;
    const char *ProRataRate;
    const char *EuTraderIdIssuedBy;
    BOOL SimplifiedInvoice;
    const char *EuTraderId;
    const char *EuTraderIdType;
    const char *FileType;
    const char *FileName;
    const char *FileDescription;
    const char *FileContent;
    const char *NmrKods;
    const char *Talrunis;
    const char *Sagatavotajs;
    const char *RefundingCountryCode;
    const char *ReferenceNumber;
    const char *Version;
    const char *Value;
    const char *AddressFree;
    const char *TelephoneNumber;
    const char *CountryCode;
    const char *CodeTypeValueValue;
    const char *CodeValue;
    const char *IssuedByValue;
    const char *EmailAddress;
    const char *RepresentativeAddressFree;
    const char *RepresentativeCountryCode;
    const char *RepresentativeEmailAddress;
    const char *NameFreeValue;
    const char *RepresentativeTelephoneNumber;
    const char *StartDate;
    const char *EndDate;
    const char *BusinessActivity;
    const char *OwnerName;
    const char *OwnerType;
    const char *IBAN;
    const char *BIC;
    const char *v_Currency;
    BOOL Accepted;
    int Id;
    const char *UID;
    BOOL Precizejums;
    int PrecizejamaisDokuments;
    const char *PrecizejumaPamatojums;
    int i;
    int count_i;

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

    http = CkHttp_Create();

    CkHttp_SetRequestHeader(http,"Accept","application/json");

    sbResponseBody = CkStringBuilder_Create();
    success = CkHttp_QuickGetSb(http,"https://eds.vid.gov.lv/api/doc/pvnav2/:id",sbResponseBody);
    if (success == FALSE) {
        printf("%s\n",CkHttp_lastErrorText(http));
        CkHttp_Dispose(http);
        CkStringBuilder_Dispose(sbResponseBody);
        return;
    }

    jResp = CkJsonObject_Create();
    CkJsonObject_LoadSb(jResp,sbResponseBody);
    CkJsonObject_putEmitCompact(jResp,FALSE);

    printf("Response Body:\n");
    printf("%s\n",CkJsonObject_emit(jResp));

    respStatusCode = CkHttp_getLastStatus(http);
    printf("Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        printf("Response Header:\n");
        printf("%s\n",CkHttp_lastHeader(http));
        printf("Failed.\n");
        CkHttp_Dispose(http);
        CkStringBuilder_Dispose(sbResponseBody);
        CkJsonObject_Dispose(jResp);
        return;
    }

    // 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": "\u000b947",
    //       "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

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    NmrKods = CkJsonObject_stringOf(jResp,"NmrKods");
    Talrunis = CkJsonObject_stringOf(jResp,"Talrunis");
    Sagatavotajs = CkJsonObject_stringOf(jResp,"Sagatavotajs");
    RefundingCountryCode = CkJsonObject_stringOf(jResp,"ApplicationReference.RefundingCountryCode");
    ReferenceNumber = CkJsonObject_stringOf(jResp,"ApplicationReference.ReferenceNumber");
    Version = CkJsonObject_stringOf(jResp,"ApplicationReference.Version");
    Value = CkJsonObject_stringOf(jResp,"Applicant.Name.NameFree.value");
    AddressFree = CkJsonObject_stringOf(jResp,"Applicant.AddressFree");
    TelephoneNumber = CkJsonObject_stringOf(jResp,"Applicant.TelephoneNumber");
    CountryCode = CkJsonObject_stringOf(jResp,"Applicant.CountryCode");
    CodeTypeValueValue = CkJsonObject_stringOf(jResp,"Applicant.EUTraderID.CodeTypeValue.value");
    CodeValue = CkJsonObject_stringOf(jResp,"Applicant.EUTraderID.Code.value");
    IssuedByValue = CkJsonObject_stringOf(jResp,"Applicant.EUTraderID.IssuedBy.value");
    EmailAddress = CkJsonObject_stringOf(jResp,"Applicant.EmailAddress");
    RepresentativeAddressFree = CkJsonObject_stringOf(jResp,"Representative.AddressFree");
    RepresentativeCountryCode = CkJsonObject_stringOf(jResp,"Representative.CountryCode");
    RepresentativeEmailAddress = CkJsonObject_stringOf(jResp,"Representative.EmailAddress");
    NameFreeValue = CkJsonObject_stringOf(jResp,"Representative.Name.NameFree.value");
    RepresentativeTelephoneNumber = CkJsonObject_stringOf(jResp,"Representative.TelephoneNumber");
    CodeTypeValueValue = CkJsonObject_stringOf(jResp,"Representative.RepresentativeID.CodeTypeValue.value");
    CodeValue = CkJsonObject_stringOf(jResp,"Representative.RepresentativeID.Code.value");
    IssuedByValue = CkJsonObject_stringOf(jResp,"Representative.RepresentativeID.IssuedBy.value");
    StartDate = CkJsonObject_stringOf(jResp,"RefundPeriod.StartDate");
    EndDate = CkJsonObject_stringOf(jResp,"RefundPeriod.EndDate");
    BusinessActivity = CkJsonObject_stringOf(jResp,"BusinessDescription.BusinessActivity");
    OwnerName = CkJsonObject_stringOf(jResp,"DetailedBankAccount.OwnerName");
    OwnerType = CkJsonObject_stringOf(jResp,"DetailedBankAccount.OwnerType");
    IBAN = CkJsonObject_stringOf(jResp,"DetailedBankAccount.IBAN");
    BIC = CkJsonObject_stringOf(jResp,"DetailedBankAccount.BIC");
    v_Currency = CkJsonObject_stringOf(jResp,"DetailedBankAccount.Currency");
    Accepted = CkJsonObject_BoolOf(jResp,"Accepted");
    Id = CkJsonObject_IntOf(jResp,"Id");
    UID = CkJsonObject_stringOf(jResp,"UID");
    Precizejums = CkJsonObject_BoolOf(jResp,"Precizejums");
    PrecizejamaisDokuments = CkJsonObject_IntOf(jResp,"PrecizejamaisDokuments");
    PrecizejumaPamatojums = CkJsonObject_stringOf(jResp,"PrecizejumaPamatojums");
    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"ImportInformation");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        IssuingDate = CkJsonObject_stringOf(jResp,"ImportInformation[i].IssuingDate");
        SupplierName = CkJsonObject_stringOf(jResp,"ImportInformation[i].SupplierName");
        SupplierAddressFree = CkJsonObject_stringOf(jResp,"ImportInformation[i].SupplierAddressFree");
        SupplierCountryCode = CkJsonObject_stringOf(jResp,"ImportInformation[i].SupplierCountryCode");
        v_Currency = CkJsonObject_stringOf(jResp,"ImportInformation[i].Currency");
        TaxableAmount = CkJsonObject_stringOf(jResp,"ImportInformation[i].TaxableAmount");
        VatAmount = CkJsonObject_stringOf(jResp,"ImportInformation[i].VatAmount");
        ReferenceNumber = CkJsonObject_stringOf(jResp,"ImportInformation[i].ReferenceNumber");
        ReferenceInformation = CkJsonObject_stringOf(jResp,"ImportInformation[i].ReferenceInformation");
        SupplierTelephoneNumber = CkJsonObject_stringOf(jResp,"ImportInformation[i].SupplierTelephoneNumber");
        GoodsDescriptionFreeText = CkJsonObject_stringOf(jResp,"ImportInformation[i].GoodsDescriptionFreeText");
        GoodsDescriptionFreeTextLang = CkJsonObject_stringOf(jResp,"ImportInformation[i].GoodsDescriptionFreeTextLang");
        GoodsDescriptionCodes = CkJsonObject_stringOf(jResp,"ImportInformation[i].GoodsDescriptionCodes");
        ProRataRate = CkJsonObject_stringOf(jResp,"ImportInformation[i].ProRataRate");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"PurchaseInformation");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        IssuingDate = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].IssuingDate");
        SupplierName = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].SupplierName");
        SupplierAddressFree = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].SupplierAddressFree");
        SupplierCountryCode = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].SupplierCountryCode");
        v_Currency = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].Currency");
        TaxableAmount = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].TaxableAmount");
        VatAmount = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].VatAmount");
        ReferenceNumber = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].ReferenceNumber");
        EuTraderIdIssuedBy = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].EuTraderIdIssuedBy");
        SimplifiedInvoice = CkJsonObject_BoolOf(jResp,"PurchaseInformation[i].SimplifiedInvoice");
        SupplierTelephoneNumber = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].SupplierTelephoneNumber");
        EuTraderId = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].EuTraderId");
        EuTraderIdType = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].EuTraderIdType");
        GoodsDescriptionFreeText = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].GoodsDescriptionFreeText");
        GoodsDescriptionFreeTextLang = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].GoodsDescriptionFreeTextLang");
        GoodsDescriptionCodes = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].GoodsDescriptionCodes");
        ProRataRate = CkJsonObject_stringOf(jResp,"PurchaseInformation[i].ProRataRate");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"DocumentCopy");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        FileType = CkJsonObject_stringOf(jResp,"DocumentCopy[i].FileType");
        FileName = CkJsonObject_stringOf(jResp,"DocumentCopy[i].FileName");
        FileDescription = CkJsonObject_stringOf(jResp,"DocumentCopy[i].FileDescription");
        FileContent = CkJsonObject_stringOf(jResp,"DocumentCopy[i].FileContent");
        i = i + 1;
    }



    CkHttp_Dispose(http);
    CkStringBuilder_Dispose(sbResponseBody);
    CkJsonObject_Dispose(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": ""
    }
  ]
}