Upload Document
Payload is identical in v1 and v2. This event uses its documented flat payload format instead of the Track & Trace event envelope.
Sent when a document needs to be associated with a load. The file content is base64-encoded and accompanied by an MD5 checksum for integrity verification.
- Type: stringchecksumrequired
MD5 hex digest of the raw (pre-encoding) file bytes, used for integrity verification
- Type: stringcontentrequired
Base64-encoded file bytes
- Type: stringcontent
Type requiredMIME type of the file. Supported values:
application/pdf,image/jpeg,image/png,image/heic,image/webp,image/tiff - Type: stringfilenamerequired
Original filename including extension. Supported extensions:
.pdf,.jpg,.jpeg,.png,.heic,.webp,.tiff,.tif - Type: stringenumfile
Type requiredThe category of the document being uploaded
values- I
N V O I C E - P
O D - B
O L - R
A T E _ C O N F I R M A T I O N - L
U M P E R _ R E C E I P T - O
T H E R
- Type: stringload
Num requiredThe load's external number in the TMS (brokerageLoadId)
- Type: integersize
Bytes requiredFile size in bytes
- Type: stringcreated
At ISO 8601 timestamp of when the document was collected/created
- Type: stringinternal
Load Reference Optional internal load identifier from the TMS (brokerageLoadInternalId). Only included when available.
- Type: objectreference
Numbers - Type: objectsource
Origin of the document, used by some brokerages for routing (e.g. carrier ID)
- application/json
- application/json
curl /uploadDocument \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"loadNum": "",
"internalLoadReference": "",
"filename": "invoice-1234.pdf",
"fileType": "INVOICE",
"contentType": "application/pdf",
"content": "",
"sizeBytes": 1,
"checksum": "",
"referenceNumbers": {
"invoiceNumber": ""
},
"source": {
"type": "CARRIER",
"identifierType": "MC_NUMBER",
"identifier": "",
"name": ""
},
"createdAt": ""
}'
{
"summary": {
"total": 1,
"succeeded": 1,
"failed": 1
},
"results": [
{
"filename": "string",
"success": true,
"data": {
"size": 1,
"contentType": "string",
"id": "string"
}
}
]
}