> For the complete documentation index, see [llms.txt](https://apidocs.gsped.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.gsped.com/gsped-api-english-version/spedizioni-e-dintorni/shipment/shipment-objects/courierdata/uploaddocafterwards.md).

# 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.**

```json
"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:

```json
{
    "trade_documents": [
        {
            "nome": "COMMERCIAL_INVOICE_5123025_1.pdf",
            "contenuto": "Tm90aWNlDQpJbi......"
        }
    ]
}
```

### Supported couriers:

* Fedex
* DHL
