Send invoices
Send an invoice through PEPPOL, by email, or both, and track it until Sovos distributes it to the buyer.
How sending works
Sovos validates the document, transforms it when it isn't in a local format, and distributes it through the delivery channel that the document specifies: Pan-European Public Procurement On-Line (PEPPOL), email, or both. Sovos processes documents asynchronously.
The HTTP response to your request only confirms that Sovos received the document. You track the outcome through application responses.
For PEPPOL delivery, Sovos acts as your Access Point (AP) in the PEPPOL network. Sovos distributes the document to the buyer's AP, which then makes it available to the buyer. Sovos confirms that it distributed your document when you get an application response with SCICloudStatusCode 204 and SCIResponseCode IP. If you get 401 and RE instead, Sovos didn't deliver the document. You must fix the document and send it again.
The buyer must have a registered PEPPOL participant identifier. If the identifier is invalid or isn't registered, Sovos rejects the document and you get a 401/RE application response.
For email delivery, Sovos sends the document by email to the recipients you specify. See Email delivery.
Before you begin
Make sure that:
-
You completed Set up account and Set up credentials.
-
You created the outbound endpoint and the ERP system ID that you use as
SenderSystemId. See Configure network. -
To deliver through PEPPOL, you know the buyer's participant identifier.
-
To deliver by email, you know the recipient email addresses and the email delivery format that you want to use.
-
You created the Standard Business Document (SBD) as instructed in Create a document.
Choose the delivery channel
Sovos uses the delivery channel you included in the document:
| Condition | Delivery |
|---|---|
| A PEPPOL endpoint, no email | PEPPOL only |
| Email, no PEPPOL endpoint | Email only |
| Both a PEPPOL endpoint and email | Dual delivery (PEPPOL and email) |
| Neither | No delivery channel available |
For PEPPOL Business Interoperability Specification (BIS) 3.0 documents, the PEPPOL endpoint is required. You can't send a BIS 3.0 document only by email.
Send the document
You can send an invoice in the Sovos Canonical Invoice (SCI) format or a local format, and a credit note in a local format. To send either one, make a request to the POST /v1/documents endpoint. For the HTTP status codes this request can return, see Error handling and retry strategy.
The 202 response confirms that Sovos received the document. It doesn't mean that Sovos validated or delivered the document. Save the documentId and track the outcome through application responses.
After receiving your document, Sovos does the following:
-
If the document is in the SCI format, Sovos maps the document to the format the buyer expects.
-
Sovos validates the document against semantic, syntactic, schema, Schematron, and legal rules.
-
Sovos distributes the document to the buyer's AP, to the email recipients, or to both.
If one of these steps fails, you see the error when you retrieve application responses.
If the document fails Schematron validation, Sovos doesn't send it through any channel. You get an error notification with the validation errors and resolution guidance.
- Email delivery
-
To deliver a document by email, add the recipient email addresses and the email delivery format in the
Injectionsblock. See Create a document.After validating the document, Sovos sends one email for each recipient. Each email includes the document as an attachment. Sovos doesn't send an email reply to you on behalf of the buyer. You get all communication through notifications.
The email channel has its own status, which is independent of the PEPPOL status. You can see the email status in the document list and in the document detail view.
Status Meaning Notification processing The email pipeline is running. None distributed Sovos sent the document. 241 (document.emailDistributed) email delivery failed The email pipeline failed. 506 (document.emailDeliveryFailed) Error
506is unique to the email channel. It's different from the PEPPOL and tax authority codes. An email delivery failure doesn't fail the main workflow.Important:If the combined size of the attachments exceeds the limit, Sovos doesn't dispatch the document, and you get an error notification.
- Dual delivery
-
If the document includes both the buyer's PEPPOL endpoint and email recipients, Sovos delivers the document through both channels:
-
PEPPOL and email run as two independent pipelines, and each one has its own status. A failure in one channel doesn't affect the other.
-
If both channels fail, you get two separate failure notifications, one for each channel.
-
If the buyer receives the same document through both channels, Sovos deduplicates it based on the invoice ID, the sender, and the recipient. Sovos rejects the duplicate and notifies the buyer.
-
Track the document
For PEPPOL delivery, after the buyer's AP processes and validates the document, the buyer can retrieve it. The AP also returns a response to Sovos, which creates application responses for you, the supplier.
As a supplier, you must retrieve the application responses until each channel reaches its final status. For PEPPOL, SCIResponseCode is IP or RE. Those responses are final, and no further status changes follow them. For email, retrieve the 241 and 506 notifications described in Email delivery.
| SCICloudStatusCode | SCIResponseCode | StatusReason | Action |
|---|---|---|---|
| 102 | AB | Validated by Sender Platform | The document was correctly validated in Compliance Network. Continue retrieving application responses. |
| 204 | IP | Distributed | Sovos distributed the document to the buyer's AP. Nothing else is required. |
| 401 | RE | Rejected | Nothing was delivered. Review the error details, fix the document, and send it again. |
Application responses expire after a retention period, so retrieve and acknowledge them promptly.
Retrieve application responses
You can access your attachments:
-
As open download links, in which the response contains a public URL to download the file.
-
As secure download links, in which you need to use the Indirect Tax API's bearer token to download the attachment.
By default, Sovos configures your attachments as open download links to avoid potential size limitations when retrieving responses. To improve security, you should configure them as secure links. Then, make a GET call to the secure link returned by the Indirect Tax API, and include the API token. Sample request:
curl --location 'https://einvoicing-api.sovos.com/download/api/v1/download/JqYyqliXiJFKhXshnBQZfW3qpfwATVGE5Q73T41JUynNLJD8zHy5VH__9qzL9No-Kia9olSw3_lNX3KmaA9Je89Xx--vk5pQjyKx0iT_4CwPSABD0Yg7uxXZ8SNiliEhFY-4TOX7m1TV5FwwfqntehbGaiGMI2JVYu18VBDiC_0/plain%27 \
--header 'Authorization: Bearer TOKEN'
You can retrieve application responses in two ways:
-
To retrieve application responses that match your search criteria, make a GET request to the /v1/notifications/DE endpoint.
-
To retrieve application responses for a single document, make a GET request to the /v1/documents/DE/{documentId}/notifications endpoint. Use the
documentIdreturned when you sent the document.
Sample application responses:
Acknowledge application responses
To process each application response you retrieve and mark it as acknowledged, make a PUT request to the /v1/notifications/DE endpoint. You can acknowledge multiple notificationId values in a single Indirect Tax API request.
