uploadDocAfterwards
To upload documents afterwards, i.e. after the shipment has been generated, you must state this explicitly when creating the shipment with the Shipment POST, because the courier needs to know that documents will be uploaded later for that specific shipment.
"courierData": {
"uploadDocAfterwards": true
},Once the shipment has been generated with this option, you can add the document to the shipment through the Shipment PATCH using the following payload:
{
"trade_documents": [
{
"nome": "COMMERCIAL_INVOICE_5123025_1.pdf",
"contenuto": "Tm90aWNlDQpJbi......"
}
]
}Supported couriers:
Fedex
DHL
