Chilkat Online Tools

Node.js / KSeF / Zapytanie o faktury

Back to Collection Items

var os = require('os');
if (os.platform() == 'win32') {  
    if (os.arch() == 'ia32') {
        var chilkat = require('@chilkat/ck-node21-win-ia32');
    } else {
        var chilkat = require('@chilkat/ck-node21-win64'); 
    }
} else if (os.platform() == 'linux') {
    if (os.arch() == 'arm') {
        var chilkat = require('@chilkat/ck-node21-arm');
    } else if (os.arch() == 'x86') {
        var chilkat = require('@chilkat/ck-node21-linux32');
    } else {
        var chilkat = require('@chilkat/ck-node21-linux64');
    }
} else if (os.platform() == 'darwin') {
    if (os.arch() == 'arm64') {
        var chilkat = require('@chilkat/ck-node21-mac-m1');
    } else {
        var chilkat = require('@chilkat/ck-node21-macosx');
    }
}


function chilkatExample() {

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

    var http = new chilkat.Http();
    var success;

    // Use this online tool to generate code from sample JSON: Generate Code to Create JSON

    // The following JSON is sent in the request body.

    // {
    //   "queryCriteria": {
    //     "subjectType": "subject2",
    //     "type": "<string>"
    //   }
    // }

    var json = new chilkat.JsonObject();
    json.UpdateString("queryCriteria.subjectType","subject2");
    json.UpdateString("queryCriteria.type","<string>");

    http.SetRequestHeader("Content-Type","application/json");
    http.SetRequestHeader("SessionToken","{{apiKey}}");
    http.SetRequestHeader("Accept","application/json");

    // resp: HttpResponse
    var resp = http.PostJson3("https://ksef.mf.gov.pl/api/online/Query/Invoice/Sync?PageSize=<integer>&PageOffset=<integer>","application/json",json);
    if (http.LastMethodSuccess == false) {
        console.log(http.LastErrorText);
        return;
    }

    var sbResponseBody = new chilkat.StringBuilder();
    resp.GetBodySb(sbResponseBody);

    var jResp = new chilkat.JsonObject();
    jResp.LoadSb(sbResponseBody);
    jResp.EmitCompact = false;

    console.log("Response Body:");
    console.log(jResp.Emit());

    var respStatusCode = resp.StatusCode;
    console.log("Response Status Code = " + respStatusCode);
    if (respStatusCode >= 400) {
        console.log("Response Header:");
        console.log(resp.Header);
        console.log("Failed.");

        return;
    }


}

chilkatExample();

Curl Command

curl -X POST
	-H "SessionToken: {{apiKey}}"
	-H "Content-Type: application/json"
	-H "Accept: application/json"
	-d '{
  "queryCriteria": {
    "subjectType": "subject2",
    "type": "<string>"
  }
}'
https://ksef.mf.gov.pl/api/online/Query/Invoice/Sync?PageSize=<integer>&PageOffset=<integer>

Postman Collection Item JSON

{
  "name": "Zapytanie o faktury",
  "request": {
    "auth": {
      "type": "apikey",
      "apikey": [
        {
          "key": "key",
          "value": "SessionToken",
          "type": "string"
        },
        {
          "key": "value",
          "value": "{{apiKey}}",
          "type": "string"
        },
        {
          "key": "in",
          "value": "header",
          "type": "string"
        }
      ]
    },
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"queryCriteria\": {\n    \"subjectType\": \"subject2\",\n    \"type\": \"<string>\"\n  }\n}",
      "options": {
        "raw": {
          "headerFamily": "json",
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{baseUrl}}/online/Query/Invoice/Sync?PageSize=<integer>&PageOffset=<integer>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "online",
        "Query",
        "Invoice",
        "Sync"
      ],
      "query": [
        {
          "key": "PageSize",
          "value": "<integer>",
          "description": "(Required) "
        },
        {
          "key": "PageOffset",
          "value": "<integer>",
          "description": "(Required) "
        }
      ]
    },
    "description": "Zapytanie o faktury"
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "SessionToken",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"queryCriteria\": {\n    \"subjectType\": \"subject2\",\n    \"type\": \"<string>\"\n  }\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/online/Query/Invoice/Sync?PageSize=<integer>&PageOffset=<integer>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "online",
            "Query",
            "Invoice",
            "Sync"
          ],
          "query": [
            {
              "key": "PageSize",
              "value": "<integer>",
              "description": "(Required) "
            },
            {
              "key": "PageOffset",
              "value": "<integer>",
              "description": "(Required) "
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"invoiceHeaderList\": [\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"GPR\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"8.81\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"KOR\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"3915036101-20860230-1C6AA0-907A7F-23\",\n      \"net\": \"254683489\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-9062178473.42\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"court_bailiff\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"additional_purchaser\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"PLE\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"793\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"UPR\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"5533882130-21400816-06ECE3-C802F5-75\",\n      \"net\": \"-46286399\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"52602\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"court_bailiff\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"other\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"ZTB\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"-76485.44\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"ZAL\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"M090105205-35151031-ED5D1D1C1568-27\",\n      \"net\": \"73\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-6365034.02\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"court_bailiff\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"invoice_issuer\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"CHI\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"501\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"KOR\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"UYZ0964034-20260826-7613557FA458-6A\",\n      \"net\": \"68598\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-91\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"tax_representative\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"additional_purchaser\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"HYT\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"-9094240231\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"ROZ\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"9186136452-20990205-52F5A8-547002-A7\",\n      \"net\": \"-6084.14\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-9220783.63\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"tax_representative\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"payer\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"CXL\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"0795.82\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"KOR_ROZ\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"ZBK5788742-28991231-9752F3-0C2238-1E\",\n      \"net\": \"45925\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-167031506.81\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"enforcement_authority\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"invoice_issuer\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"SWZ\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"-4813791449.73\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"UPR\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"4877960710-92891130-DEA167-65A1F1-03\",\n      \"net\": \"0493072.06\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-708.61\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"tax_representative\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"other\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"HNS\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"1458\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"ZAL\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"4495913605-28450809-166BEE-BFF4E5-7B\",\n      \"net\": \"-672262262.80\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"925550\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"tax_representative\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"other\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"VWB\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"363086708\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"UPR\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"M635505776-20610426-E4A766077A48-C5\",\n      \"net\": \"508891079.57\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-962260831\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"tax_representative\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"factor\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"FZK\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"7911.28\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"ZAL\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"BFY7094784-20300831-7A58AF1DC20D-D2\",\n      \"net\": \"-894499.12\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"65417.86\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"enforcement_authority\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"payer\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"DLJ\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"46.29\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"VAT\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"1598152349-20541003-4D3CA2-510CA6-3A\",\n      \"net\": \"260\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"5.25\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"enforcement_authority\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"original_subject\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"USN\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"-0.48\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"VAT\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"7970702384-22560508-0682CAEB741E-BB\",\n      \"net\": \"14582\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"694458346.16\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"enforcement_authority\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"additional_purchaser\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"MVS\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"-57.81\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"KOR_ROZ\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"M861757945-28040927-158FF8-699497-67\",\n      \"net\": \"71719303\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-4280013630.18\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"enforcement_authority\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"original_subject\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"XDW\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"136.87\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"ROZ\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"ANB4809777-57170730-932CDFE478C3-26\",\n      \"net\": \"-6542907779.51\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-8768.57\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"tax_representative\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"recipient\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"FYH\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"-8042977.08\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"UPR\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"4933591431-20910628-05B1A5-5071A4-78\",\n      \"net\": \"94\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-03.75\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"tax_representative\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"original_subject\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"EME\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"-91.58\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"KOR_ROZ\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"2286741794-20420230-24252C99A46E-52\",\n      \"net\": \"-2894618591.49\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-702222\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"tax_representative\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"payer\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"VNW\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"-6\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"KOR_ZAL\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"7596310168-20801123-9969360F7A07-49\",\n      \"net\": \"-80.46\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"48662915.84\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"court_bailiff\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"original_subject\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"LCO\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"2672635\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"ZAL\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"2256360583-26091205-C7B1FBD4F45E-8F\",\n      \"net\": \"-383937.74\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"-60.12\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"court_bailiff\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"factor\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"ZNB\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"19305.92\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"KOR\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"ZJN0637797-41480704-902A452243AD-7D\",\n      \"net\": \"2980549\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"2089239531\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"tax_representative\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"invoice_issuer\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"acquisitionTimestamp\": \"<dateTime>\",\n      \"currency\": \"QVB\",\n      \"faP17Annotation\": \"<boolean>\",\n      \"gross\": \"-566\",\n      \"invoiceHash\": {\n        \"fileSize\": \"<integer>\",\n        \"hashSHA\": {\n          \"algorithm\": \"SHA-256\",\n          \"encoding\": \"Base64\",\n          \"value\": \"<string>\"\n        }\n      },\n      \"invoiceReferenceNumber\": \"<string>\",\n      \"invoiceType\": \"KOR\",\n      \"invoicingDate\": \"<date>\",\n      \"ksefReferenceNumber\": \"M042917615-94911011-7B33DE8F7EA8-02\",\n      \"net\": \"-57898.78\",\n      \"subjectBy\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectTo\": {\n        \"issuedToIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedToName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"vat\": \"70024\",\n      \"schemaVersion\": \"<string>\",\n      \"subjectByK\": {\n        \"issuedByIdentifier\": {\n          \"type\": \"<string>\"\n        },\n        \"issuedByName\": {\n          \"type\": \"<string>\",\n          \"tradeName\": \"<string>\"\n        }\n      },\n      \"subjectToKList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsAuthorizedList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectAuthorizedType\": \"court_bailiff\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ],\n      \"subjectsOtherList\": [\n        {\n          \"issuedToIdentifier\": {\n            \"type\": \"<string>\"\n          },\n          \"subjectOtherType\": \"factor\",\n          \"issuedToName\": {\n            \"type\": \"<string>\",\n            \"tradeName\": \"<string>\"\n          }\n        }\n      ]\n    }\n  ],\n  \"numberOfElements\": \"<long>\",\n  \"pageOffset\": \"<integer>\",\n  \"pageSize\": \"<integer>\",\n  \"referenceNumber\": \"25440430-7S-DCB522EE7A-DA7A9CFFA8-EB\",\n  \"timestamp\": \"<dateTime>\"\n}"
    },
    {
      "name": "Nieprawidłowe wywołanie",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "SessionToken",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"queryCriteria\": {\n    \"subjectType\": \"subject2\",\n    \"type\": \"<string>\"\n  }\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/online/Query/Invoice/Sync?PageSize=<integer>&PageOffset=<integer>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "online",
            "Query",
            "Invoice",
            "Sync"
          ],
          "query": [
            {
              "key": "PageSize",
              "value": "<integer>",
              "description": "(Required) "
            },
            {
              "key": "PageOffset",
              "value": "<integer>",
              "description": "(Required) "
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"exception\": {\n    \"exceptionDetailList\": [\n      {\n        \"exceptionCode\": \"<integer>\",\n        \"exceptionDescription\": \"<string>\"\n      }\n    ],\n    \"serviceCode\": \"<string>\",\n    \"serviceCtx\": \"<string>\",\n    \"serviceName\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"referenceNumber\": \"20560508-TX-BC1107E227-31DE9417C0-CE\"\n  }\n}"
    },
    {
      "name": "Nieautoryzowany dostęp",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "SessionToken",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"queryCriteria\": {\n    \"subjectType\": \"subject2\",\n    \"type\": \"<string>\"\n  }\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/online/Query/Invoice/Sync?PageSize=<integer>&PageOffset=<integer>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "online",
            "Query",
            "Invoice",
            "Sync"
          ],
          "query": [
            {
              "key": "PageSize",
              "value": "<integer>",
              "description": "(Required) "
            },
            {
              "key": "PageOffset",
              "value": "<integer>",
              "description": "(Required) "
            }
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"exception\": {\n    \"exceptionDetailList\": [\n      {\n        \"exceptionCode\": \"<integer>\",\n        \"exceptionDescription\": \"<string>\"\n      }\n    ],\n    \"serviceCode\": \"<string>\",\n    \"serviceCtx\": \"<string>\",\n    \"serviceName\": \"<string>\",\n    \"timestamp\": \"<dateTime>\",\n    \"referenceNumber\": \"20560508-TX-BC1107E227-31DE9417C0-CE\"\n  }\n}"
    }
  ]
}