Upload order documents (POST)
* used to upload customs documents after order creation (only available for specific couriers)
Info
|
Request body
| Name | Type | Required | Description |
| CourierId | int | Yes | See Tables |
| CourierShipmentId | string | Yes | AWB number from API order response |
| Attachments | Attachments[] | Yes |
Attachments[] :
| Name | Type | Required | Description |
| Name | string[255] | Yes | Name of file |
| DocumentType | int | No | use Document type id from below table |
| Content | string | Yes | File (binary content), coded MIME base64 |
Document Type List:
| DocumentTypeId | Document Type Name |
| 0 | Authorization Form |
| 1 | Commercial Invoice |
| 2 | Certificate of Origin |
| 3 | Export Accompanying Document |
| 4 | Export License |
| 5 | Import Permit |
| 6 | One Time NAFTA |
| 7 | Other Document |
| 8 | Power Of Attorney |
| 9 | Packing List |
| 10 | SED Document |
| 11 | Shippers Letter of Instruction |
| 12 | Declaration |
Request :
{
"CourierId": 58,
"CourierShipmentId": "1Z96F74W0491396242",
"Attachments": [
{
"Name": "DIGIDOCS_CDINV_0041_12345678_1234567890.pdf",
"DocumentType": 1,
"Content": "base64 document"
}
]
}Response :
{
"success": true,
"message": "Your document was processed successfully."
}Success (HTTP code 200)