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
-
common/UBL-CoreComponentParameters-1.0.xsd
-
common/UBL-CommonBasicComponents-1.0.xsd
-
common/SFTI-CommonAggregateComponents-1.0.xsd
-
common/UBL-UnspecializedDatatypes-1.0.xsd
-
common/UBL-SpecializedDatatypes-1.0.xsd
-
codelist/UBL-CodeList-CurrencyCode-1.0.xsd
-
codelist/UBL-CodeList-AllowanceChargeReasonCode-1.0.xsd
-
codelist/UBL-CodeList-ChannelCode-1.0.xsd
-
codelist/UBL-CodeList-ChipCode-1.0.xsd
-
codelist/UBL-CodeList-CountryIdentificationCode-1.0.xsd
-
codelist/UBL-CodeList-DocumentStatusCode-1.0.xsd
-
codelist/UBL-CodeList-LatitudeDirectionCode-1.0.xsd
-
codelist/UBL-CodeList-LongitudeDirectionCode-1.0.xsd
-
codelist/UBL-CodeList-LineStatusCode-1.0.xsd
-
codelist/UBL-CodeList-PaymentMeansCode-1.0.xsd
-
codelist/UBL-CodeList-SubstitutionStatusCode-1.0.xsd
-
common/UBL-CommonAggregateComponents-1.0.xsd
-
common/UBL-CoreComponentTypes-1.0.xsd
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