Basic Shipping: Create a Domestic Shipment Script
Follow these steps to create a basic shipping script in your system to set values in the NRGship file for a domestic shipment. Note that not all values below are required, you should script based on your own needs.
NOTE: In order to submit a test request and generate a test label , set the value of Test.t to "YES"
Create a new script and call it "Set Ship Data and Create Label". Using the Set Field script step, you will need to set a value in the following fields of the Ship_ELS table:
Set recipient information
Set service information
Set packaging information
Set reference ID for Endicia logs
Set reference fields which will print on the label (Express Mail, international, and integrated labels will not include Rubber Stamp fields)
Set package information
Perform External Script "External - Ship via USPS thru Endicia Label Server for Ship_ID" in NRGShip Toolkit for Endicia Label Server file
Once the Ship_ELS record is created, you can pass the _pk_ShipID.n value to scripts in theNRGShip Toolkit for Endicia Label Server file to ship the record. If Ship & Print is checked in Defaults, the label will be automatically printed.