XSD SFTI (Single Face To Industry) · 1.0

Sweden Svefaktura 1.0

Swedish e-invoice (Svefaktura 1.0, legacy)

The Swedish e-invoice format based on UBL 1.0, retired by SFTI in 2021 in favour of Peppol BIS Billing 3, for older systems that still send it.

About

Svefaktura was the Swedish public sector's invoice format, published by SFTI on top of UBL 1.0. SFTI retired Svefaktura 1.0 on 1 April 2021 and replaced it with Peppol BIS Billing 3, which Swedish public buyers recommend.

E-invoicing in Sweden: the rules in short and how to check an invoice →

Good to know

  • This entry checks the schema only. For an invoice to a Swedish public buyer, choose a Peppol BIS 3.0 entry: it runs the Swedish rules (SE-R-*).
  • The schemas are SFTI's, with the OASIS UBL 1.0 schemas they use, as phive-rules keeps them.
  • The example is an SFTI sample invoice, as phive-rules keeps it.

Files

19 files · 653 KB · Download all (.zip)
  • maindoc/SFTI-BasicInvoice-1.0.xsd main
    4 KB View Download
  • common/UBL-CoreComponentParameters-1.0.xsd
    7.2 KB View Download
  • common/UBL-CommonBasicComponents-1.0.xsd
    22.1 KB View Download
  • common/SFTI-CommonAggregateComponents-1.0.xsd
    17.4 KB View Download
  • common/UBL-UnspecializedDatatypes-1.0.xsd
    17.2 KB View Download
  • common/UBL-SpecializedDatatypes-1.0.xsd
    3.7 KB View Download
  • codelist/UBL-CodeList-CurrencyCode-1.0.xsd
    40.5 KB View Download
  • codelist/UBL-CodeList-AllowanceChargeReasonCode-1.0.xsd
    24.8 KB View Download
  • codelist/UBL-CodeList-ChannelCode-1.0.xsd
    13.6 KB View Download
  • codelist/UBL-CodeList-ChipCode-1.0.xsd
    5 KB View Download
  • codelist/UBL-CodeList-CountryIdentificationCode-1.0.xsd
    55.7 KB View Download
  • codelist/UBL-CodeList-DocumentStatusCode-1.0.xsd
    5.6 KB View Download
  • codelist/UBL-CodeList-LatitudeDirectionCode-1.0.xsd
    5.1 KB View Download
  • codelist/UBL-CodeList-LongitudeDirectionCode-1.0.xsd
    5.2 KB View Download
  • codelist/UBL-CodeList-LineStatusCode-1.0.xsd
    5.8 KB View Download
  • codelist/UBL-CodeList-PaymentMeansCode-1.0.xsd
    22.4 KB View Download
  • codelist/UBL-CodeList-SubstitutionStatusCode-1.0.xsd
    5.2 KB View Download
  • common/UBL-CommonAggregateComponents-1.0.xsd
    380.8 KB View Download
  • common/UBL-CoreComponentTypes-1.0.xsd
    11.9 KB View Download

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

Example document

svefaktura-1.0-invoice.xml · 5.2 KB · valid against this schema

In CI and from code

The same schema by its name, svefaktura-1.0, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema svefaktura-1.0
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: svefaktura-1.0
    api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
  -H "Authorization: Bearer $XMLVALID_API_KEY" \
  -F document=@svefaktura-1.0-invoice.xml \
  -F schema=svefaktura-1.0

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