# Get Document v3.1
This API is used to retrieve a single document. A documentId, which is required to fire this API, can be obtained by firing the GetDocuments API. The request and response format for the "GetDocument" API are given below.
# Header fields
Fieldname | Description |
---|---|
SOAPAction | Mandatory http://api.everbinding.nl/v3_1/GetDocument |
# Request fields
Fieldname | Description |
---|---|
DocumentId | Id from document to be fetched. This Id can be retrieved with GetDocuments |
# Example request
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<h:Authentication xmlns="http://api.everbinding.nl/v3_1/" xmlns:h="http://api.everbinding.nl/v3_1/">
<SecurityToken>o2S1qTusL29hp3IgMKWsn2I5CFV2LmZ2ZmR2AQp4AGN0BQZmATH3ZwHkAQH1LGL2AGx0VvkiLKI0nS9ho25wMG0vZGZlZQD3ZmZlZPVfo2S1qTusqTygMKA0LJ1jCFVkAGN1ZGV4Zmx2VvkiLKI0nS9mnJqhLKE1pzIsoJI0nT9xCFWVGHSQYIAVDGRvYT9uqKEbK3MypaAco249VwRhZPVfo2S1qTusqT9eMJ49VwNknUEKLwDlZUb4MQOjHKVkpmqbnUcLE3ZmAaEJDz1FVvkiLKI0nS9mnJqhLKE1pzH9VxSEFKuUHRyEBGIJE0b3oRWVFGMxFz5crRxkEFHmEPV=</SecurityToken>
</h:Authentication>
</S:Header>
<S:Body xmlns="http://api.everbinding.nl/v3_1/">
<GetDocument xmlns="http://api.everbinding.nl/v3_1/">
<DocumentId>RA000000218DMP1000465</DocumentId>
</GetDocument>
</S:Body>
</S:Envelope>
# Response fields
Fieldname | Description |
---|---|
Details | Details of the document including the document as payload. This is the UBL file without the XML Prolog |
Statuses | List of possible statuses for the used template. This list should be used for changing the status of the documents |
# Response 200
<?xml version="1.0" encoding="utf-8"?>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<GetDocumentResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://api.everbinding.nl/v3_1/">
<Details>
<ExternalId>XDNL1490610062546</ExternalId>
<DocumentId>RA000000218DMP1000465</DocumentId>
<Subject>Factuur _1420400_Voor _eLien Test Company BV</Subject>
<CreatedOn>2017-03-27T10:21:02.581Z</CreatedOn>
<ModifiedOn>2017-03-27T10:21:05.606Z</ModifiedOn>
<Sender/>
<Receiver/>
<Status>
<Name>Aangemaakt</Name>
<Code>10</Code>
<Info>
<UserId>UA000000218000001</UserId>
<UserName>test elien</UserName>
<AccountId>A000000218</AccountId>
<AccountName>eLien</AccountName>
<ChangedOn>2017-03-27T10:21:02.317Z</ChangedOn>
</Info>
</Status>
<Template>
<Id>RA000000218DTP1000002</Id>
<Name>Factuur</Name>
<MasterId>GLDT9223370666504283001RA000000006DTP2000001</MasterId>
<MasterName>Factuur</MasterName>
</Template>
<Transaction>
<DeliveryMethod>None</DeliveryMethod>
</Transaction>
<Payload>
.
.
.
</Payload>
</Details>
<Statuses>
<Status>
<Name>Aangemaakt</Name>
<Code>10</Code>
</Status>
<Status>
<Name>Opstellen</Name>
<Code>20</Code>
</Status>
<Status>
<Name>Goedgekeurd</Name>
<Code>40</Code>
</Status>
<Status>
<Name>Afgewezen</Name>
<Code>50</Code>
</Status>
</Statuses>
</GetDocumentResponse>
</SOAP:Body>
</SOAP:Envelope>