Upload order documents (POST)

* used to upload customs documents after order creation (only available for specific couriers)

                                                                                       

Info
  • Web service URL: BASE_URL/api/Order/UploadDocuments


Request body

Name
Type
Required
Description
CourierId
intYes
See Tables
CourierShipmentId
string
Yes
AWB number from API order response
Attachments
Attachments[]Yes


Attachments[] :

Name
Type
Required
Description
Namestring[255]YesName of file
DocumentType
intNouse Document type id from below table
ContentstringYesFile (binary content), coded MIME base64


Document Type List:

DocumentTypeIdDocument Type Name
0Authorization Form
1Commercial Invoice
2Certificate of Origin
3Export Accompanying Document
4Export License
5Import Permit
6One Time NAFTA
7Other Document
8Power Of Attorney
9Packing List
10SED Document
11Shippers Letter of Instruction
12Declaration


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)