XSD Ministerstwo Finansów (Poland) · 4, 1-0

JPK_FA(4)

Polish SAF-T for invoices

The Polish audit file of issued invoices, sent on request of the tax authority.

About

JPK_FA lists the VAT invoices a company issued in a period, with their lines and control totals. It is sent when a tax office asks for it during an audit.

Good to know

  • The schema checks structure and data types, not whether the control totals add up.
  • The imports of the shared type schemas point at local copies. The example is by xmlvalid.com, with dummy NIP numbers.

Files

5 files · 235.2 KB

The validator loads all of these with their folder structure, so includes and imports resolve as published.

Example document

jpk-fa.xml · 2.4 KB · valid against this schema

In CI and from code

The same schema by its name, jpk-fa-4, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema jpk-fa-4
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: jpk-fa-4
    api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
  -H "Authorization: Bearer $XMLVALID_API_KEY" \
  -F document={{ $schema->example ?? 'document.xml' }} -F schema=jpk-fa-4

Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups