Solved

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

Posted on 2013-06-14
2
648 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
  • 2
2 Comments
 
LVL 16

Expert Comment

by:theo kouwenhoven
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
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. 
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now