View Full Version : Postback does not include tracking number

02-15-2019, 10:33 AM
I'm moving a client from the shiprush desktop version to the web version for a custom shopping cart. I'm trying to implement the javascript TRequest type of code as outlined in this article https://my.shiprush.com/static.shiprush.com/ship.app/demos/javascript-api-trequest-demo.html

The javascript that I'm using is this:

$("#shiplink").click(function () {

var shipTransactionXML = '<?xml version="1.0"?><Request><ShipTransaction><Shipment><UPSServiceType>03</UPSServiceType><DeliveryAddress><Address><FirstName>John Doe</FirstName><Company>Web Development</Company><Address1>123 Main St.</Address1><Address2></Address2><City>Anytown</City><State>CA</State><PostalCode>90210</PostalCode><Country>US</Country><Phone>1231231234</Phone></Address></DeliveryAddress><PostbackUrl>https://www.ourwebsite.com/postbackurl.aspx?otype=0&amp;oid=80702&amp;sid=162367&amp;rid= 0</PostbackUrl><PostbackContentType>TRequest</PostbackContentType><Package><PackageReference1>Ord#80702</PackageReference1><PackageReference2></PackageReference2></Package></Shipment></ShipTransaction></Request>'

ShipTransactionRequest: shipTransactionXML,
OpenInNewWindow: true,
OnShipmentCompleted: function (data) {
return true;

The domain in the postback url has been changed for privacy.
I get the postback and the querystring is intact with what was passed to ShipRush but there are no forms values being sent. I have a data logger setup on the postback url that logs all querystring and form values. The desktop version worked fine and and would postback the tracking number among other values.

Any idea what the problem is?

02-15-2019, 11:04 AM
I tested directly from that page to a test postback URL site, https://webhook.site/

I dropped that into our page and ran a shipment. I see postback to the URL above, and that includes things like account used and tracking #.

Can you send what you're capturing in your postback to support at shiprush dot com (in a txt of the raw XML that is sent to your URL)?

Thank you,

02-15-2019, 12:18 PM
How is it being posted back? Is it as form values or as an XML document? With the desktop version the tracking number was obtained via Request.Form("TrackingNumber")

02-15-2019, 01:14 PM
It is posted back as XML.