Creating Post Shipment Scripts
By creating script in your database, you can easily pull back ship results with little effort. Simply create fields in your table for the data you'd like to store, and then pull from the following NRGship fields after calling the "External - Perform ship for passed in Ship_ID":
Response_ShipmentIdentificationNumber
Response_TotalCharges
Response_NegotiatedRates_NetSummaryCharge_GrandTotal_MonetaryValue
Response_BillingWeight
Response_ServiceOptionsCharges
Status [New Shipment|Shipped|Delivered|Voided|Exception]
Automation
After ship or void transactions, NRGship can pass data back using one of several methods. In NRGship preferences there is an option to set one or more Automation options. In an integrated environment, you will most often want to utilize the Run User Script option.
Copy Track Number to Clipboard
No doubt the simplest option, after shipment the resultant Track Number will be copied to the clipboard and it can be pasted into another field or web page.
Run User Script
After shipment this script will get called in the NRGship file. This script then passes the Ship_ID value to the User Post Script located in the NRGship UPS Pro Data file.
By adding an External Data Source in the NRGship UPS Pro Data file back to your database, you can then pass information back by adding a relationship from a "UserField_*" field (In the ship table) to your Primary Key.
Response_ShipmentIdentificationNumber
Response_TotalCharges
Response_NegotiatedRates_NetSummaryCharge_GrandTotal_MonetaryValue
Response_BillingWeight
Response_ServiceOptionsCharges
Status [New Shipment|Shipped|Delivered|Voided|Exception]
You may also want to update your tables with the final values for Service in case the shipping clerk makes changes after you set the values.
NOTE: Not all response fields may have values.
Invoke URL handler
NRGship has the ability to invoke a URL after shipment or voiding. This can be used to quickly update eCommerce data without the need for complex scripting. By setting a value in the UserField_URL field, this URL will be called and shipment data will be passed for processing by the remote server.
View more URL handler information