Mapping
Mapping converts XML documents from one format to another using the Transform endpoint, allowing documents to be mapped to the required format before compliance processing.
The Transform operation converts one or more XML input documents to a different output format. The particular transformation to apply is identified by name, and the name also determines the required input format. The result is always a single output document. Multiple input documents can be provided when the target format requires data that is not available in a single source document.
Sovos sets up the transformations available to your configuration and they depend on your contract. Contact Sovos Support to confirm which transformation names are active for your implementation. For the integration steps, see Transform a document through the API.
Supported transformations
- ITRC_to_PDF
- Converts the Ricevuta Consigna XML received as a confirmation in Italy to a PDF document using the official stylesheet.
- PDF_fatturaordinaria_v1.2
- Converts an Italian B2B clearance invoice into a PDF document.
- PDF_fatturapa_v1.2
- Converts an Italian B2G clearance invoice into a PDF document.
- SCI_to_GST
- Converts the Sovos Canonical Invoice format to the JSON format required for clearance in India.
- xRechnungPortrait
- Converts a German xRechnung XML invoice into a PDF document with portrait orientation.
- xRechnungLandscape
- Converts a German xRechnung XML invoice into a PDF document with landscape orientation.
- xRechnungZugferdPortrait
- Converts a German xRechnung XML invoice into a German Zugferd PDF document with portrait orientation and an embedded xRechnung file.
- xRechnungZugferdLandscape
- Converts a German xRechnung XML invoice into a German Zugferd PDF document with landscape orientation and an embedded xRechnung file.
Transform a document through the API
Before transforming a document:
- Your application must be authenticated with a valid X.509v3 client certificate.
- The input document must be a well-formed XML document.
- You must know the name of the transformation to apply. See the supported transformations.
The Transform operation converts one or more XML documents to a different format. The transformation to apply is identified by name and also determines the required input format. The result is always a single output document. Multiple input documents can be provided when the target format requires data that is not available in a single source document.
The document has been transformed. The OutputDocument element contains the result as a Base64-encoded string.
For error codes returned by this operation, see Storage service error codes.
