The GetPaperlessDocumentTypesRequest API serves as the foundation of the paperless management workflow by providing dynamic discovery of available document types and their courier compatibility for the MOL user. Only relevant and compliant document types are presented for paperless shipping operations, including their interna HUB IDs and descriptions. These info are derived from the store and country the MOL user is linked to.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://www.onlinembe.eu/ws/">
<soapenv:Header/>
<soapenv:Body>
<ws:GetPaperlessDocumentTypesRequest>
<RequestContainer>
<System></System>
<Credentials>
<Username></Username>
<Passphrase></Passphrase>
</Credentials>
<InternalReferenceID>XXXXX</InternalReferenceID>
</RequestContainer>
</ws:GetPaperlessDocumentTypesRequest>
</soapenv:Body>
</soapenv:Envelope>
In the response, the API returns detailed information for each available document type, along with their IDs, descriptions and allowed couriers:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns3:GetPaperlessDocumentTypesRequestResponse xmlns:ns3="http://www.onlinembe.eu/ws/">
<RequestContainer>
<InternalReferenceID>discovery_reference</InternalReferenceID>
<Status>OK</Status>
<Country>ES</Country>
<!-- Document Type 1: Proforma Invoice -->
<PaperlessDocumentType>
<DocumentTypeId>15</DocumentTypeId>
<DocumentTypeDescription>PROFORMA</DocumentTypeDescription>
<AllowedCouriers>
<Courier>UPS</Courier>
<Courier>FedEx</Courier>
</AllowedCouriers>
</PaperlessDocumentType>
<!-- Document Type 2: Certificate of Origin -->
<PaperlessDocumentType>
<DocumentTypeId>16</DocumentTypeId>
<DocumentTypeDescription>Certificate of origin</DocumentTypeDescription>
<AllowedCouriers>
<Courier>UPS</Courier>
<Courier>FedEx</Courier>
</AllowedCouriers>
</PaperlessDocumentType>
</RequestContainer>
</ns3:GetPaperlessDocumentTypesRequestResponse>
</SOAP-ENV:Body>
</soapenv:Envelope>