SW560

UPS Shipping Quotes

Last Revised: 09/14/15

This program will interact with the UPS "Rating" API and will retrieve delivery pricing and time-frame information for the requested UPS shipping service. This will ultimately allow for comparison of this information among different service options to choose the most appropriate combination of price and delivery time. In order of increasing priority (and cost), the most commonly used services offered by UPS for single-package shipments include UPS Ground, 3 Day Select, 2nd Day Air, 2nd Day Air A.M., UPS Next Day Saver, Next Day Air, and Next Day Air Early A.M.

See also CDS279

 

Calling Format:

CALL "SW560", Y$, SW560$, SW561$

CALL "CDS030", ERR=EOJ, Y$, "SW560", -10, SW560$, SW561$

 

SW560 UPS Input Parameters
Field Passed To/From Type Description
Y$ To templated Session Control Variable
SW560.SHIP2ADDR$ To C(30) The street address where the package will be delivered to
SW560.SHIP2CITY$ To C(28) The city where the package will be delivered to
SW560.SHIP2STATE$[4] To C(2) The state where the package will be delivered to
SW560.SHIP2ZIP$[4] To C(10) The zip code where the package will be delivered to
SW560.SHIP2CNTRY$[4] To C(2) The country where the package will be delivered to
SW560.SHIPFADDR$ To C(30) The street address where the package will be shipped from
SW560.SHIPFCITY To C(28) The city where the package will be shipped from
SW560.SHIPFSTATE To C(2) The state where the package will be shipped from
SW560.SHIPFZIP To C(10) The zip code where the package will be shipped from
SW560.SHIPFCNTRY$ To C(2) The country where the package will be shipped from
SW560.PCKGTYPE$ To C(2) The type of package to be shipped (box, letter, pallet, etc.). More detail on UPS package codes can be found on the UPS website.
SW560.WEIGHT$ To N(5) The weight of the package to be shipped. The more accurate the weight, the more accurate the estimate.
SW560.SPEC_RATE$ To C(1) Yes or No are the options here. If you get a special discount through UPS and would like to pass that price along to a cusomer, select Yes and you will be quoting the shipping price, including discount. If you do not get a special rate, or you do not wish to pass the discount on to your customer, choose No.

 

SW561

Contains the parameters for the output to BBj and BBx

SW561 UPS Output Parameters
Field Passed To/From Type Description
SW561.NEXTDAYAIR$ To N(9) Guaranteed delivery by end of day on next business day
SW561.SECONDDAYAIR$ To N(9) Guaranteed delivery by end of day on 2nd business day
SW561.GROUND$[4] To N(9) Delivery based on distance to destination. View map
SW561.THREEDAYSELECT$[4] To N(9) Delivery by end of day on 3rd business day
SW561.NEXTDAYSAVER$[4] To N(9) Guaranteed delivery by 3:00 p.m. on next business day
SW561.NEXTDAYAM$ To N(9) Guaranteed delivery by 10:30 a.m. on next business day
SW561.SECONDDAYAM To N(9) Guaranteed delivery by 10:30 a.m. on 2nd business day
SW561.WWEXPRESS To N(9) International shipping 1-3 business days with delivery by 10:30 a.m. or 12:00 noon
SW561.WWEXPEDITED To N(9) International shipping 2-5 business days with delivery by end of day

 

 

 

Screenshots illustrating the input and output in BBj and BBx.

 

BBj input:

BBj output

 

 

BBx input:

 

BBx output: