Link to home
Start Free TrialLog in
Avatar of col1dxw
col1dxw

asked on

Magneto API- I need help with adding tracking number using " sales_order_shipment.addTrack "

I'm seeking help updating Magneto using Vbscript /XML and their API.  I'm able to successfully query and import order address information.  However,  I receive an error on export when I attempt to update the tracking number using the api call sales_order_shipment.addTrack -  I receive error 100 "Requested shipment not exists."  

I am able to created a new sales order with the api prior to the tracking call.
SalesOrderShipmentAddTrackReques.xml
Avatar of Theo Kouwenhoven
Theo Kouwenhoven
Flag of Netherlands image

Hi cl1dwx,

in your example, you write:
"This XML file does not appear to have any style information associated with it. The document tree is shown below."

That is becuse it's not realy a "normal"xml file, it's probably part of the wsdl.
If you import the wsdl, you get 2 objects, one with the data objects and one with the "actions"
So to do your "sales_order_shipment.addTrack" you probably need two other objects:

They are named something like:
sales_order_shipment_addTrack_object
sales_order_shipment_addTrack_responseobject

I will check later-on and let you know
ASKER CERTIFIED SOLUTION
Avatar of Theo Kouwenhoven
Theo Kouwenhoven
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial