Submit invoices to Sovos using the SBD format that has your Sovos Canonical Invoice (SCI).
Before you begin, make sure you have completed the following:
- Created your organization and companies in Sovos portal
- Generated API credentials
- Registered your PEPPOL participant ID
- Obtained the buyer's PEPPOL participant ID ready
This task shows how to submit a commercial invoice through the Sovos API for delivery through the PEPPOL network.
- Authenticate with OAuth 2.0.
- Build your invoice.
Create your invoice in SCI format following UBL 2.1 structure. Include:
- Invoice header with number, date, and currency
- Supplier and customer party information
- Line items with quantities, prices, and descriptions
- Tax calculations and totals
- Belgian-specific fields in
SovosExtension
- Wrap in Standard Business Document.
Wrap your SCI in an SBD envelope with:
- SBDH header with sender and receiver information
- Product ID:
BE_invoice_outbound_1.0
- Your VAT number as sender identifier
- Buyer's PEPPOL participant ID as receiver identifier
- Submit to Sovos API.
POST https://api.sovos.com/v2/documents
Authorization: Bearer {access_token}
Content-Type: application/xml
<StandardBusinessDocument>
<!-- Your complete SBD with SCI -->
</StandardBusinessDocument>
- Handle the response.
Sovos returns HTTP 202 with a data ID on successful submission. Save this ID to track the document status.
Other possible response codes:
- Monitor transmission.
Query the status API to confirm delivery:
GET https://api.sovos.com/v2/documents/{transactionId}/status
Authorization: Bearer {access_token}
After successful submission, Sovos:
- Validates the invoice against PEPPOL BIS 3.0 rules.
- Transforms SCI to PEPPOL BIS format.
- Routes the invoice through the PEPPOL network to the buyer's access point.
- Sends delivery notifications back to you.