Solved

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

Posted on 2013-06-14
2
689 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 500 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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

687 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