Logistics
Document Upload

Upload (PDF only)

Using this method, only the document in '.pdf.' format itself is needed but the filename must strictly follow the below described format, as the for the upload necessary metadata will be parsed from the filename.

Example filename: 201903151242_dispatchOrder_1.0_12345_deliveryNote_filename.pdf

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


PropertyTypeLengthMandatoryDescription
<creationDate> String12MCreation date and time
<messageType>String20MValid message types: items, receiptAviso, receiptOrder, dispatchOrder
<messageTypeVersion> String3MWill be provided by our IT contact (default 1.0)
<reference> String35MReference used in the related message type (e.g. for dispatchOrder use customerReference1)
<documentTypeCode> String20MType which document is uploaded. Valid types: deliveryNote, invoice, label
<filename> String35MFilename of upload document, can be any filename chosen by customer.
<fileExtension> String5MFileextension. E.g.: .pdf

In case of Labels/Parcels, it's important do be sure that correct data format has been choosen. Allowed document formats are: PDF Allowed size of single document/file is 5 MB max.

Upload (metadata file)

This method allows to use multiple reference types.

This upload version allows 2 options:

1. Upload document + metadata file

Example document name: dispatchOrder_12345.pdf
Example metadata name: dispatchOrder_12345.xml

In this upload version a document file and a metadata file is uploaded. It is recommended to give the metadata file the same name as the document. The optional file element of the metadata file is not used in this case.

💡

Both files (document and metadata) need to be provided in a 30 minute time window to each other. If this is not the case they will be discarded.

2. Upload metadata file including Base64 encoded document

In this upload version only a metadata file is uploaded. The document itself is uploaded Base64 encoded in the optional file element of the metadata file.

In case of Labels/Parcels, it's important do be sure that correct data format has been choosen. Allowed document formats are: PDF, ZPL. Please remember that in cace of processing of documents as metadata file, they have to be Base64 encoded. Allowed size of single document/file is 5 MB max.

MetadataDocument

{
   "filename" : "dispatchOrder_12345.pdf",
   "file":"...",
	"location" : "TES",
	"operative" : "TESTICC",
	"messageType" : "dispatchOrder",
	"messageVersion": "1.0",
	"documentType" : "deliveryNote",
   "references":[{...}]
}
PropertyTypeMandatoryDescription
filenameStringMFilename of upload document, can be any filename chosen by customer.
fileStringOBase 64 encoded file.
locationStringMLocation code of warehouse, announced by IT contact.
operativeStringMOperative (customer) code in warehouse, announced by IT contact.
messageTypeStringMValid message types: items, receiptAviso, receiptOrder, dispatchOrder
messageVersionStringMWill be provided by our IT contact (default 1.0)
documentTypeStringMThe document type, e.g. deliveryNote, invoice, label, itemlabel.
referencesArray[DocumentUploadReferences]MArray of references used to find the order.

LogisticsDocumentUploadReferences

"...": {
    "type": "customerReference1",
    "value": "30001486"
}
PropertyTypeMandatoryDescription
typeStringMType of reference. Valid values: customerReference1, customerReference2, orderNumber, invoiceNumber, deliveryNoteNumber
valueStringMReference value.

LogisticsDocumentUploadDetails

💡

Please be adviced that besides Labels and Parcels, Invoices and Delivery notes could be also uploaded using options mentioned and described above - In case of such documents to be uploaded to us, please be sure that all the rules stated are followed and format for Invoices and Delivery notes is set for A4. In case of need for more details on this topic, please contact us.