?
Solved

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

Posted on 2013-06-14
2
Medium Priority
?
703 Views
Last Modified: 2013-10-31
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
0
Comment
Question by:col1dxw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 39250107
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
0
 
LVL 16

Accepted Solution

by:
theo kouwenhoven earned 2000 total points
ID: 39250372
Hi again,

I checked, and the answer is that you first need the wsdl.
after that you can create the right objects, I don't know how todo in vb, but my language it is :


Var=Action dataType=MagentoOperations()
Var=MagentoParm  dataType=salesOrderShipmentAddTrackRequestParam
Var=Response dataType=salesOrderShipmentAddTrackResponseParam

Set MagentoParm.sessionID=mySession
Set MagentoParm.carrier=myCarrier
Set MagentoParm.shipmentIncrementId=Id+1
Set MagentoParm.title=myTitle
Set MagentoParm.trackNumber=myTrackSeq

Set Response=Action.salesOrderShipmentAddTrack(MagentoParm)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question