python-fedex-devs / python-fedex

A light wrapper around FedEx's SOAP API.
http://python-fedex.readthedocs.org
BSD 3-Clause "New" or "Revised" License
155 stars 139 forks source link

International shipment example with Eletronic Trade Documents #145

Open madshadsen opened 3 years ago

madshadsen commented 3 years ago

Hi there,

I've tried through the past years to utilize this library to automate my international FedEx shipments. We ship commodities to different countries and need to attach commercial invoices (and sometimes PDFs with product descriptions) as electronic trade document attachments.

However, I continue to struggle to get a fully working example up and running for this use case. I imagine there must be many others that would like to use this awesome Python wrapper for international shipments and maybe some have succeeded - if so, I'd be very interested if anyone knows of a working example (e.g. as part of a fork or similar)?

MatinF commented 3 years ago

We would very much like to see this as well

radzhome commented 3 years ago

Someone just provided an example, I'l upload soon.

MatinF commented 3 years ago

This has been added now: https://github.com/python-fedex-devs/python-fedex/blob/master/examples/create_international_shipment.py

admiralmaggie commented 2 years ago

Just in case anyone else had a similar issue: I was getting an "Authentication Failed (Error code: 1000)" when testing the UploadDocumentsRequest. You would need to call FedEx and have them activate the ETD Document Upload on your test account otherwise you will receive authentication error.

ppa-odoo commented 1 year ago

I am working on same and I got the error :

 File "/.local/lib/python3.8/site-packages/zeep/proxy.py", line 40, in __call__
    return self._proxy._binding.send(
  File "/.local/lib/python3.8/site-packages/zeep/wsdl/bindings/soap.py", line 132, in send
    return self.process_reply(client, operation_obj, response)
  File "/.local/lib/python3.8/site-packages/zeep/wsdl/bindings/soap.py", line 194, in process_reply
    return self.process_error(doc, operation)
  File "/.local/lib/python3.8/site-packages/zeep/wsdl/bindings/soap.py", line 295, in process_error
    raise Fault(
zeep.exceptions.Fault: Fault

https://stackoverflow.com/questions/76482755/using-python-uploadimages-letterhead-signature-on-fedex-got-the-error-zeep