Transport
Document Receive

Receive (metadata file)

Example filename: 201903151242_shipment_1.0_12345_T103_filename.pdf

  • Receive metadata file including base64 encoded document

Filename format: <creationDate>_<messageType>_<messageTypeVersion>_<reference>_<documentTypeCode>_<filename>.<fileExtension>

{
    "messageHeader":{...},
    "document":{...}
}
PropertyTypeMandatoryDescription
messageHeaderMessageHeaderMMessage Header information.
documentdocumentMmetadata and payload

Document

    { 
    "trackingId": "123456789",
    "documentNumber": "T103",
    "documentName": "T103 - Proof of Delivery (hardcopy)",
    "filename": "585986_1709212002936.pdf",
    "documentId": "PR1450317393",
    "fileSize": 104715,
    "mimeType": "application/pdf",
    "uploadedAt": 1709212307736,
    "file": "base64 encoded document"   
	}
PropertyTypeMandatoryDescription
filenamestringMOriginal filename as in SPOT system.
filestringMthe file it self in base64 encoding
documentTypeCodestringMSPOT 4-letter document code. (Document type code list)
documentNamestringMname of document type
documentIdstringMdocumentId
fileSizeintigerMfilesize in bytes
mimeTypestringMmimeType
uploadedAtstringMtimestamp of upload

Receive (document only)

Example filename: 201903151242_shipment_1.0_12345_T103_filename.pdf

  • Using this method you will receive only the document itself in *.pdf format without addtional metadata file.

Filename format: <creationDate>_<messageType>_<messageTypeVersion>_<reference>_<documentTypeCode>_<filename>.<fileExtension>


PropertyTypeMandatoryDescription
<creationDate>StringMCreation date and time
<messageType> StringMValid message types: shipment
<messageTypeVersion>StringMWill be provided by our IT contact (default 1.0)
<reference> StringMtrackingID
<documentTypeCode> StringMSPOT 4-letter document code. (Document type code list)
<filename> StringMFilename of upload document, can be any filename chosen by customer.
<fileExtension> StringMFileextension. E.g.: .pdf