Sorgera Services V3 API guide
Use the interactive API reference for request and response schemas and OpenAPI JSON for tooling. V3 is the product release. Send requests to the paths below under https://services.sorgera.com.
Authentication and credits
Send a dashboard API token as Authorization: Bearer <token>. Endpoints using the shared token resolver also accept x-api-key. Exchange client credentials at POST /api/auth/token and use the returned access_token. See the authentication guide for credential creation and rotation.
curl --request POST 'https://services.sorgera.com/api/auth/token' \
--json '{"clientId":"YOUR_CLIENT_ID","clientSecret":"YOUR_CLIENT_SECRET"}'
Read product rates from GET /api/credit-rates before a billable request. The portal’s free validation allowances apply to its WEB flow. Insufficient API credits can return HTTP 403 with a topUpUrl. A completed validator request can return a report with isValid: false. Handle that result separately from an HTTP transport, authorization or billing error.
Validation endpoints
| Profile | Multipart POST | JSON Base64 POST | Input |
|---|---|---|---|
| Peppol BIS Billing 3.0 / 3.1 | /api/peppol/xml-validator | /api/peppol/xml-validator-base64 | UBL invoice or credit note |
| PINT | /api/peppol/pint/{jurisdiction} | /api/peppol/pint/{jurisdiction}/base64 | UBL for ae, aunz, sg, jp, my, om, or eu |
| PINT AE compatibility | /api/peppol/pint-ae-validator | /api/peppol/pint-ae-validator-base64 | UAE PINT UBL |
| PINT A-NZ compatibility | /api/peppol/pint-aunz-validator | /api/peppol/pint-aunz-validator-base64 | Australia / New Zealand PINT UBL |
| Germany | /api/germany/validator | /api/germany/validator-base64 | ZUGFeRD / XRechnung XML or supported hybrid PDF |
| France | /api/france/validator | /api/france/validator-base64 | Factur-X / FR CTC XML or supported hybrid PDF |
| France reporting | /api/france/e-reporting/validator | /api/france/e-reporting/validator-base64 | Flux 10 e-reporting or CDAR lifecycle XML |
| Poland | /api/ksef/validator | /api/ksef/validator-base64 | KSeF FA(3) XML |
Send an xml multipart file field or a JSON body with xmlBase64 and an optional filename. A validator that supports hybrid PDFs can accept a fileBase64 payload and a PDF filename. Use the profile and version options defined by the chosen operation. See the compliance changelog for active rule packs.
curl 'https://services.sorgera.com/api/peppol/xml-validator' \
-H "Authorization: Bearer $SORGERA_API_TOKEN" \
-F 'xml=@source-ubl.xml' \
-F 'version=2026-05'
Invoice validators check the structured XML from a hybrid PDF. Use a separate PDF/A conformance tool to check the PDF container.
Conversion endpoints
| Mode | Multipart POST | JSON Base64 POST | Output |
|---|---|---|---|
| Peppol V2 / PINT AE | /api/peppol/v2/xml-to-pdf | /api/peppol/v2/xml-to-pdf-base64 | Localized PDF. Multipart can return ZIP for multiple files or bundled attachments. |
| Peppol V1 compatibility | /api/peppol/xml-to-pdf | /api/peppol/xml-to-pdf-base64 | XSLT rendering. Use V2 for the PDF attachment panel. |
| Germany | /api/germany/ubl-to-zugferd | /api/germany/ubl-to-zugferd-base64 | xml or hybrid_pdf. Hybrid mode contains CII XML and available supporting files. |
| France | /api/france/xml-to-pdf | /api/france/xml-to-pdf-base64 | facturx_pdf, pdf or xml. Multipart also supports zip. |
| Poland | /api/ksef/xml-to-pdf-v2 | /api/ksef/xml-to-pdf-v2-base64 | FA(3) PDF. Supply qrUrl or offlineQrUrl to add a QR code. |
| Poland batch | /api/ksef/xml-to-pdf-v2/bulk | — | ZIP download from a multipart batch. |
| CII to UBL | /api/peppol/cii-to-ubl | MCP convert_cii_to_ubl | UBL for peppol or xrechnung. REST accepts CII or a supported hybrid PDF. MCP takes CII XML. |
Use outputMode where the route offers alternate outputs. Germany supports modern and din5008 layouts with German or English labels. France supports French and English. Peppol V2 handles localized UBL rendering, including PINT AE Arabic and bilingual layouts. The seven PINT regions in the validation table have dedicated rule packs.
Multipart downloads identify the body with their content type and filename. Base64 conversion responses expose the encoded PDF as pdf. German and French routes can also return xml, xmlBase64 and xmlFilename.
PDF attachments
For a supporting PDF in UBL, use cac:AdditionalDocumentReference with cac:Attachment/cbc:EmbeddedDocumentBinaryObject. Add mimeCode="application/pdf", a filename, and the file’s Base64 text. In the shared renderer, the standalone Peppol V2 or French PDF and the hybrid ZUGFeRD or Factur-X PDF carry the supporting file in the PDF attachment panel. Hybrid output additionally carries the invoice XML as factur-x.xml or xrechnung.xml. URI-only references stay links. KSeF structured attachments follow the FA(3) format.
curl 'https://services.sorgera.com/api/peppol/v2/xml-to-pdf' \
-H "Authorization: Bearer $SORGERA_API_TOKEN" \
-F 'xml=@source-ubl.xml' \
-F 'bundleAttachments=false' \
-o invoice.pdf
Bundling can produce a ZIP containing the PDF and separate supporting files. For the JSON Base64 endpoint, decode the returned pdf to read the attached files.
UBL input · Original supporting PDF · Unbranded comparison sample · Peppol V2 · ZUGFeRD · Factur-X
Discovery, trials and previews
| Method and path | Purpose |
|---|---|
GET /api/credit-rates | Current rates by product. |
GET /api/user/quotas | Usage and allowances for the authenticated account. |
GET /api/changelog | Active standards and release notes. |
GET /api/peppol/search, GET /api/peppol/check-participant, and POST /api/peppol/check-participant | Search the participant directory or check participation. |
POST /api/peppol/v2/test-xml-to-pdf | Watermarked V2 trial. |
POST /api/peppol/test-xml-to-pdf and POST /api/peppol/test-xml-to-pdf/bulk | V1 trial and batch compatibility paths. |
POST /api/germany/test-ubl-to-zugferd and POST /api/germany/test-ubl-to-zugferd/bulk | German trial conversion. |
POST /api/france/test-xml-to-pdf and POST /api/france/test-xml-to-pdf/bulk | French trial conversion. |
POST /api/ksef/test-xml-to-pdf | KSeF trial conversion. |
POST /api/peppol/xml-preview, POST /api/germany/xml-preview, POST /api/france/xml-preview, and POST /api/ksef/xml-preview | Browser preview operations. |
POST /api/ksef/xml-to-pdf and POST /api/ksef/legacy-xml-to-pdf | Compatibility paths. Use V2 for new FA(3) integrations. |
MCP, CLI and AI Assistant
Use Streamable HTTP at https://services.sorgera.com/api/mcp. Send initialize and tools/list to discover schemas. Use lookup_peppol_participant and get_compliance_changelog for public reads. Send a Bearer token for get_credit_balance, validate_peppol, validate_pint, validate_germany, validate_france, validate_ksef, and convert_cii_to_ubl.
The browser’s Analyze with AI action explains failed Peppol and KSeF validation reports. See the agent guide, CLI examples and security documentation.
Acceptance tests
Validate the UBL input with the Peppol ruleset. Export supporting-document.pdf from the converted PDF and compare its SHA-256 with the original file. Run the German and French validators on the corresponding hybrids to check the structured XML. Test error handling with the Peppol totals error and KSeF missing invoice number fixtures.
