Upload a document for a load
Upload a document associated with a specific load. The file content must be base64-encoded and accompanied by an MD5 checksum for integrity verification.
Supported file types: .pdf, .jpg/.jpeg, .png, .heic, .webp, .tiff/.tif.
When uploading an invoice (fileType: INVOICE), the referenceNumbers.invoiceNumber field is required.
- Type: string
checksum requiredMD5 hex digest of the raw (pre-encoding) file bytes, used for integrity verification
- Type: string
content requiredBase64-encoded file bytes
- Type: string
content Type requiredMIME type of the file. Supported values:
application/pdf,image/jpeg,image/png,image/heic,image/webp,image/tiff - Type: string
filename requiredOriginal filename including extension. Supported extensions:
.pdf,.jpg,.jpeg,.png,.heic,.webp,.tiff,.tif - enum
file Type const:INVOICErequiredThe category of the document being uploaded
valuesI N V O I C E
- Type: string
load Num requiredThe load's external number in the TMS (brokerageLoadId)
- Type: integer
size Bytes requiredFile size in bytes
- Type: object · LoadFileUploadReferenceNumbers
reference Numbers
- application/json
- application/json
curl https://api.prod.goaugment.com/callback/upload-document \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic username:password' \
--data '{
"loadNum": "",
"filename": "invoice-1234.pdf",
"fileType": "INVOICE",
"contentType": "application/pdf",
"content": "",
"sizeBytes": 1,
"checksum": "",
"referenceNumbers": {
"invoiceNumber": ""
}
}'
{
"summary": {
"total": 1,
"succeeded": 1,
"failed": 1
},
"results": [
{
"filename": "string",
"success": true,
"data": {
"size": 1,
"contentType": "string",
"id": "string"
}
}
]
}
