Skip to main content
FedEx Electronic Trade Documents Upload
Back
Throughout This Page
You can jump to the specified sections by clicking on these titles.

Overview

Simplify your international shipping process by submitting customs documents electronically after creating your shipping label with FedEx Electronic Trade Documents upload. This feature is ideal for users who generate their commercial invoices and wish to prepare customs trade documents after the label is created.

Key Benefits

  • Avoid Customs Delays: Submit customs documents early to enable a broker review before shipment, preventing customs delays and rejected shipments.
  • Timely Delivery: Ensure timely delivery of international packages with an earlier review of your customs documents.
  • Flexibility: Upload customs documents pre-shipment, at-shipment, or post-shipment according to your workflow.
  • Focus on Packing: Allow your shipping department to concentrate on preparing shipments for pickup while customs documents are electronically processed.

How It Works

POST Example
  • Endpoint: api/couriers/v1/Fedex/add-customs-documents
{ 
    "testing": false, 
    "auth_company": "company", 
    "carrier_code": "FDXE", 
    "form_code": "", 
    "tracking_number": "794606723637", 
    "shipment_date": "2024-02-22T12:05:45+00:00", 
    "origin_country_code": "US", 
    "destination_country_code": "IN", 
    "origin_location_code" : "", 
    "destination_location_code" : "", 
    "documents": [ 
        { 
            "ship_document_type": "COMMERCIAL_INVOICE", 
            "filename" : "text.txt", 
            "content_type" : "text/plain", 
            "base_64_document": "Base64_text" 
        } 
    ] 
}
Notes
  • origin_location_codedestination_location_code, and form_code fields are not required.
  • ship_document_type can be one of the following:
    • CERTIFICATE_OF_ORIGIN
    • COMMERCIAL_INVOICE
    • DANGEROUS_GOODS_SHIPPERS_DECLARATION
    • CERTIFICATE_OF_ORIGIN
    • OP_900
    • PRO_FORMA_INVOICE
    • RETURN_INSTRUCTIONS
Documentation

For detailed information about this endpoint, refer to the FedEx API Documentation.

Response

The response provides details such as document type, document ID, folder ID, customer transaction ID, file name, and success status for each uploaded document.

[ 
    { 
        "output": { 
            "meta": { 
                "documentType": "CI", 
                "docId": "EGfWYE9BxLBZ7Dzn", 
                "folderId": "Ac7JnEwPoUm1I3M2" 
            } 
        }, 
        "customerTransactionId": "", 
        "file": "text.txt", 
        "success": true 
    }, 
    { 
        "output": { 
            "meta": { 
                "documentType": "CI", 
                "docId": "BQH8o1FI73ZnQOg6", 
                "folderId": "Ac7JnEwPoUm1I3M2" 
            } 
        }, 
        "customerTransactionId": "", 
        "file": "text.txt", 
        "success": true 
    } 
]