WebShipping Demo: Interactive Javascript playroom (JSFiddle for WebShipping API)
var shipment = { ShipTo : { Name: "John Smith", Company: "Acme Widgets", Address1: "5th ave S", Address2: "#101", City: "Seattle", State: "WA", PostalCode: "98118", Country: "US", Phone: "(206)332-2233" }, CarrierTypeName: "FedEx", ServiceTypeName: "Ground", Packages: [{ Weight: "2" }] } shipRushClient.Open( { Shipment: shipment, OnShipmentCompleted: function (data) { alert(data.Shipment.TrackingNumber); // Return "true" to close shipping form return true; } });