You can upload documents as structured JSON files or unstructured PDF, JPEG or PNG files.
In this article
Structured documents
Structured JSON documents are defined through document schemas. The document schema (template) enables validation of the JSON document while it’s being uploaded. If a structured document is uploaded without a schema, there won’t be any validation of the JSON document’s structure.
There are several other advantages to uploading structured documents with a schema, as well as validation:
- If you edit the file through the UI, the schema will show you additional fields, beyond what you initially provided. Without a schema, the UI can only show the fields that were there on the initial upload, and you can’t add any new ones.
- Schemas provide a standard layout; the fields are organized, and you’ll benefit from additional functions, like the date picker widget from the UI.
Unstructured documents
Unstructured documents can be PDF or image files in JPEG or PNG format. There is a size limit of 10MB for uploading a single document.
Documents can be uploaded to TradeLens through the Shipment Manager UI or through the API.