Integration»Basic Shipping

Basic Shipping

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 Endicia Desktop Connect file for a domestic shipment.

NOTE: In order to submit a test request and generate a test label through either Endicia for Mac or Dazzle for window, set the value of Dazzle_TestRequest.n to "1"

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_USPS table:

Set recipient information

ToCompany.t
ToName.t
ToAddress1.t
ToAddress2.t
ToAddress3.t
ToCity.t
ToState.t
ToPostalCode.t
ToCountry.t
ToPhone.t
ToEmail.t

Set service information

MailClass.t

Set packaging information

PackageType.t

Set reference fields

ReferenceID.t
RubberStamp1.t

Set package information

WeightOz.n
Value.n
Width.n
Length.n
Height.n

[commit record]

Create Label

Perform External Script "External - Ship via USPS thru Endicia App for Ship_ID" in NRGship Toolkit for Endicia Desktop file

Once the Ship_USPS record is created, you can pass the _pk_ShipID.n value to scripts in the NRGship Toolkit for Endicia Desktop file to ship the record.