Quantcast
Channel: ShipRush Support Forums
Viewing all articles
Browse latest Browse all 1680

Web Shipping Javascript SDK Questions

$
0
0
Hello, I am currently integrating the Web Shipping Javascript SDK into my custom ecommerce site to create shipments. I can view orders in my system that do not have tracking information and click a button that launches My.ShipRush with a new shipment, pre-populated with data I have passed in. Once I click the "ship" link the label is created, my account is charged and I am able to persist data (shipmentId, trackingNumber, etc...) returned by Shiprush Web into my system.

What I would like to do next is to be able to click an order in my system that has a tracking number, launch My.ShipRush and be able to view that specific shipment and either void it or reprint. Right now I am running into a couple problems.

1. Using the JS SDK, the only way I can "view" an order is to pass in a populated shipment object with the existing tracking number. However if I navigate to the shipped folder, it creates a duplicate of the shipment (that pre-populates with whatever data I pass in). Is there a way to view an existing shipment using the JS SDK without creating a duplicate?

2. Assuming I can view an existing shipment, if a user clicks the "void" button in the right column, a callback to "OnShipmentCompleted" is never fired. I was hoping it would and the "EventName" value would be something like "shipment_voided".

3. If I view a shipment and click the re-print link in the right column, the "OnShipmentCompleted" callback is fired but the event name value is "shipment_completed" and the shipment object is empty. Is there a way to know that a user clicked the reprint link?


Hopefully this makes sense. What I want to avoid is having a bunch of drafts, dupes or accidentally voided shipments in my system and in ship rush.

Thanks

Viewing all articles
Browse latest Browse all 1680

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>