This API is used to send a document to an enabled company, user or group. The sent document will be visible in the sender’s outbox and the receiver’s inbox when the API execution is complete. If the receiver is outside the platform alternative delivery channels will be used. The request and response format for the “Send document” API are given below:

The type of the document is specified by the TemplateId. The sender is indicated with Via.

Header fields
Fieldname Description
SOAPAction [Mandatory]
Request fields
Fieldname Description
Via [Mandatory] ReferenceId of the sender of the document. This must be a verified id. Preferred id is the EConnectPartyId.
To [Mandatory] ReferenceId of  the receiver of the document.
ReferenceId [Mandatory] One of the Id’s available for identifing a party. This can be a EconnectPartyId or a ID that is registered in external registries like NL:KVK:nnnnnnnn or NL:VAT:NLnnnnnnnBnn etc.
EmailAddress [Optional] Address to be used as fallback when the recipient is not found in the network. If no e-mail address is provided and the receiver is not reachable in the network then this function will respond with error ERRSND4000001.
Subject [Mandatory] Name used for the document within eVerbinding.
Payload [Mandatory] XML document without the XML prolog.
TemplateId [Mandatory] TemplateId is the id that indicates the type of document. There is a list of TemplateId’s available in Overview of documents and templates
Response field
Fieldname Description
ExternalId ExternalId identifies the document send. The ExternalId can be used as prove that the document is send. Without a ExternelId a document can be considered as not send.


<?xml version="1.0" ?>
<S:Envelope xmlns:S="" xmlns:SOAP-ENV=""><S:Header><h:Authentication xmlns="" xmlns:h=""><SecurityToken>o2S1qTusL29hp3IgMKWsn2I5CFV2LmZ2ZmR2AQp4AGN0BQZmATH3ZwHkAQH1LGL2AGx0VvkiLKI0nS9ho25wMG0vZGZjZwRkZGx2AvVfo2S1qTusqTygMKA0LJ1jCFVkAGN1ZGV1ZGVlVvkiLKI0nS9mnJqhLKE1pzIsoJI0nT9xCFWVGHSQYIAVDGRvYT9uqKEbK3MypaAco249VwRhZPVfo2S1qTusqT9eMJ49Vx9zAQqFESD3FRVlpaERnQAYI2SLnaAbA2uLIyEOIz55VvkiLKI0nS9mnJqhLKE1pzH9Vzy5L1p2oT91MvHlEzcnDaIxH3V5qxA4nx9VoHESWGARVt==</SecurityToken></h:Authentication></S:Header><S:Body xmlns="">
    <SendDocument xmlns="">
        <Subject>Unit test SendDoc 1505125121773</Subject>

 Response 200

<?xml version="1.0" encoding="utf-8"?>
<SOAP:Envelope xmlns:SOAP=""><SOAP:Body>
    <SendDocumentResponse xmlns:xsd="" xmlns:xsi="" xmlns="">

Example errors

Error Code Error Text
ERRGRP3000006 You do not have permission to send document via the specified group.
The specified group is the company-ID used with Via
ERRXSL4000001 There was an error in validating the payload with XSL.
The errors coming from the XSLT are returned via faultstring
Example: [BII2-T10-R003]-An invoice MUST have an invoice identifier
ERRSND8000002 Document verzenden mislukt
ERRSND8000001 Processing of send document from collabrr to oxalis failed
ERRSND2000001 Invoices may not be able to send, without a business context(sendvia)
ERRSND4000001 Recipient EmailId should not be empty while staging the document
ERRSND4000002 The email address specified is invalid.
ERRGRP4000001 The specified group does not exist.
ERRCON5000018 Formaat van Recipient waarde is niet juist of wordt niet herkend. Document niet verstuurd.

Was this article helpful?