A Cheat Sheet for FedEx ShipAPI Certification Test Scenarios

In my two previous posts, I talked about FedEx API. Here is another post on the same API. Before FedEx provides you with access to their production API, they request that you create a set of sample shipping labels and mail them to FedEx office. I am guessing that they want to verify how capable you are of printing labels in the correct format. To do that, FedEx provides you with a Certification Test Scenarios sheet with multiple categories, such as domestic, international, and global shipping. Here is the code for “U.S. Domestic Shipping Test Scenarios” (on the test sheet dated January 26, 2001) to use on the previous FedEx API ColdFusion function. (You need the prevous function to run this code and create your Sample Labels). Once they are created, you are ready to print them out, put them in an envelope, and mail them to FedEx.

Test Case 1: Priority Overnight - Letter

   1: <cfset shipping(Company:'Fake Company',
   2:  Name:'John Doe',
   3:  Address1:'123 Bishop Road',
   4:  City:'Honolulu',
   5:  State:'HI',
   6:  ZIP:'96819',
   7:  Phone : '123456789000',
   8:  Weight:'1',
   9:  Length:'14',
  10:  Width:'12',
  11:  Height:'1',
  12:  PackagingType: 'FEDEX_ENVELOPE',
  13:  ShippingMethod: 'PRIORITY_OVERNIGHT',
  14:  orderid: 'Test-1')
>
Show/Hide Line Numbers . Full Screen . Plain

Test Case 2: Priority Overnight - Pak - Saturday Delivery (Be sure to change the "ShipDate" argument to next Friday’s date)

   1: <cfset shipping(Company:'Fake Company',
   2:  Name:'John Doe',
   3:  Address1:'123 Software Lane',
   4:  City:'Atlanta',
   5:  State:'GA',
   6:  ZIP:'30303',
   7:  Phone : '123456789000',
   8:  Weight:'3',
   9:  Length:'14',
  10:  Width:'12',
  11:  Height:'3',
  12:  PackagingType: 'FEDEX_PAK',
  13:  ShippingMethod: 'PRIORITY_OVERNIGHT',
  14:  orderid: 'Test-2',
  15:  ShipDate : '4/30/2010',
  16:  SpecialServices : 'SATURDAY_DELIVERY' )
>
Show/Hide Line Numbers . Full Screen . Plain

Test Case 3: Priority Overnight - Your Packaging - Dangerous Goods
I did not have time to work on this case. If any of you complete the task, feel free to submit an XML request. I can add that to the Coldfusion function.

Test Case 4: Standard Overnight - Letter

   1: <cfset shipping(Company:'Fake Company',
   2:  Name:'John Doe',
   3:  Address1:'789 Davies',
   4:  City:'Englewood',
   5:  State:'CO',
   6:  ZIP:'80112',
   7:  Phone : '123456789000',
   8:  Weight:'1',
   9:  Length:'14',
  10:  Width:'12',
  11:  Height:'1',
  12:  PackagingType: 'FEDEX_ENVELOPE',
  13:  ShippingMethod: 'STANDARD_OVERNIGHT',
  14:  orderid: 'Test-4')
>
Show/Hide Line Numbers . Full Screen . Plain

Test Case 5: Standard Overnight - Your Packaging - Dry Ice

   1: <cfset shipping(Company:'Fake Company',
   2:  Name:'John Doe',
   3:  Address1:'50 Freemont Street',
   4:  City:'San Francisco',
   5:  State:'CA',
   6:  ZIP:'94108',
   7:  Phone : '123456789000',
   8:  Weight:'5',
   9:  Length:'10',
  10:  Width:'10',
  11:  Height:'10',
  12:  PackagingType: 'YOUR_PACKAGING',
  13:  ShippingMethod: 'STANDARD_OVERNIGHT',
  14:  SpecialServices : 'DRY_ICE',
  15:  DryIceWeight : '0.9',
  16:  orderid: 'Test-5')
>
Show/Hide Line Numbers . Full Screen . Plain

Test Case 6: Economy 2 Day - Letter - Hold at Location

   1: <cfset shipping(Company:'Fake Company',
   2:  Name:'John Doe',
   3:  Address1:'13342 Lake Front Drive',
   4:  City:'Kansas City',
   5:  State:'MO',
   6:  ZIP:'64112',
   7:  Phone : '123456789000',
   8:  Weight:'1',
   9:  Length:'14',
  10:  Width:'12',
  11:  Height:'1',
  12:  PackagingType: 'FEDEX_ENVELOPE',
  13:  ShippingMethod: 'FEDEX_2_DAY',
  14:  SpecialServices : 'HOLD_AT_LOCATION',
  15:  HoldAtAddress1 : '55 Riverfront Drive,',
  16:  HoldAtCity : 'Kansas City,',
  17:  HoldAtState : 'MO',
  18:  HoldAtZIP : '64120',
  19:  HoldAtPhone : '123456789000',
  20:  orderid: 'Test-6')
>
Show/Hide Line Numbers . Full Screen . Plain

Test Case 7: Economy 2 Day - Pak

   1: <cfset shipping(Company:'Fake Company',
   2:  Name:'John Doe',
   3:  Address1:'6050 Rockwell Avenue',
   4:  City:'Anchorage',
   5:  State:'AK',
   6:  ZIP:'99501',
   7:  Phone : '123456789000',
   8:  Weight:'5',
   9:  Length:'14',
  10:  Width:'12',
  11:  Height:'3',
  12:  PackagingType: 'FEDEX_PAK',
  13:  ShippingMethod: 'FEDEX_2_DAY',
  14:  orderid: 'Test-7')
>
Show/Hide Line Numbers . Full Screen . Plain

Test Case 8: First Overnight - Letter

   1: <cfset shipping(Company:'Fake Company',
   2:  Name:'John Doe',
   3:  Address1:'44 Binney Street',
   4:  City:'Boston',
   5:  State:'MA',
   6:  ZIP:'02115',
   7:  Phone : '123456789000',
   8:  Weight:'1',
   9:  Length:'14',
  10:  Width:'12',
  11:  Height:'1',
  12:  PackagingType: 'FEDEX_ENVELOPE',
  13:  ShippingMethod: 'FIRST_OVERNIGHT',
  14:  orderid: 'Test-8')
>
Show/Hide Line Numbers . Full Screen . Plain

Test Case 9: First Overnight - Your Packaging

   1: <cfset shipping(Company:'Fake Company',
   2:  Name:'John Doe',
   3:  Address1:'16 Court Street',
   4:  City:'New York',
   5:  State:'NY',
   6:  ZIP:'10211',
   7:  Phone : '123456789000',
   8:  Weight:'8',
   9:  Length:'7',
  10:  Width:'10',
  11:  Height:'15',
  12:  PackagingType: 'YOUR_PACKAGING',
  13:  ShippingMethod: 'FIRST_OVERNIGHT',
  14:  orderid: 'Test-9')
>
Show/Hide Line Numbers . Full Screen . Plain

Test Case 10: Express Saver - Letter

   1: <cfset shipping(Company:'Fake Company',
   2:  Name:'John Doe',
   3:  Address1:'SW 129th Street',
   4:  City:'Miami',
   5:  State:'FL',
   6:  ZIP:'33156',
   7:  Phone : '123456789000',
   8:  Weight:'1',
   9:  Length:'14',
  10:  Width:'12',
  11:  Height:'1',
  12:  PackagingType: 'FEDEX_ENVELOPE',
  13:  ShippingMethod: 'FEDEX_EXPRESS_SAVER',
  14:  orderid: 'Test-10')
>
Show/Hide Line Numbers . Full Screen . Plain

Test Case 11: Express Saver - Your Packaging

   1: <cfset shipping(Company:'Fake Company',
   2:  Name:'John Doe',
   3:  Address1:'36 Charles Lane',
   4:  City:'Baltimore',
   5:  State:'MD',
   6:  ZIP:'21201',
   7:  Phone : '123456789000',
   8:  Weight:'150',
   9:  Length:'10',
  10:  Width:'10',
  11:  Height:'15',
  12:  PackagingType: 'YOUR_PACKAGING',
  13:  ShippingMethod: 'FEDEX_EXPRESS_SAVER',
  14:  orderid: 'Test-11')
>
Show/Hide Line Numbers . Full Screen . Plain

Test Case 12: Overnight Freight Service

   1: <cfset shipping(Company:'Fake Company',
   2:  Name:'John Doe',
   3:  Address1:'123 Winchester Road',
   4:  City:'Memphis',
   5:  State:'TN',
   6:  ZIP:'38141',
   7:  Phone : '123456789000',
   8:  Weight:'300',
   9:  Length:'10',
  10:  Width:'10',
  11:  Height:'10',
  12:  PackagingType: 'YOUR_PACKAGING',
  13:  ShippingMethod: 'FEDEX_1_DAY_FREIGHT',
  14:  orderid: 'Test-12')
>
Show/Hide Line Numbers . Full Screen . Plain