FedEx-REST - Freight Label

Carrier: FedEx-REST
Action: Freight Label
Description: Example implementation for FedEx-REST Freight Label
{
  "carrier": "FedEx-REST",
  "action": "SubmitShipment",
  "params": {
    "key": "your-key-from-authenticate-request",
    "freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
    "service": "FEDEX_FREIGHT_ECONOMY",
    "packages": [
      {
        "description": "Bailing wire",
        "weight": 200.00,
        "length": 150,
        "width": 90,
        "height": 100,
        "sub_packaging_type": "PALLET",
        "freight_class": "50",
        "pieces": 10
      }
    ],
    "shipper": "FedEx",
    "ship_contact": "John Doe",
    "ship_addr1": "1202 Chalet Ln",
    "ship_addr2": "Do Not Delete - Test Account",
    "ship_city": "Harrison",
    "ship_state": "AR",
    "ship_code": "72601",
    "ship_country": "US",
    "ship_phone": "8705551234",
    "to_company": "ABC Widget Co",
    "to_name": "Jane Smith",
    "to_addr1": "1234 Main St",
    "to_addr2": "Suite 200",
    "to_state": "OH",
    "to_city": "Akron",
    "to_code": "44333",
    "to_country": "US",
    "to_phone": "1231231234",
    "packaging_type": "YOUR_PACKAGING",
    "weight_unit": "LB",
    "length_unit": "IN",
    "image_type": "PDF",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'FedEx-REST',
  'action' => 'SubmitShipment',
  'params' => 
  array (
    'key' => 'your-key-from-authenticate-request',
    'freight_account_number' => 'YOUR_FREIGHT_ACCOUNT_NUMBER',
    'service' => 'FEDEX_FREIGHT_ECONOMY',
    'packages' => 
    array (
      0 => 
      array (
        'description' => 'Bailing wire',
        'weight' => 200.0,
        'length' => 150,
        'width' => 90,
        'height' => 100,
        'sub_packaging_type' => 'PALLET',
        'freight_class' => '50',
        'pieces' => 10,
      ),
    ),
    'shipper' => 'FedEx',
    'ship_contact' => 'John Doe',
    'ship_addr1' => '1202 Chalet Ln',
    'ship_addr2' => 'Do Not Delete - Test Account',
    'ship_city' => 'Harrison',
    'ship_state' => 'AR',
    'ship_code' => '72601',
    'ship_country' => 'US',
    'ship_phone' => '8705551234',
    'to_company' => 'ABC Widget Co',
    'to_name' => 'Jane Smith',
    'to_addr1' => '1234 Main St',
    'to_addr2' => 'Suite 200',
    'to_state' => 'OH',
    'to_city' => 'Akron',
    'to_code' => '44333',
    'to_country' => 'US',
    'to_phone' => '1231231234',
    'packaging_type' => 'YOUR_PACKAGING',
    'weight_unit' => 'LB',
    'length_unit' => 'IN',
    'image_type' => 'PDF',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'SubmitShipment',
 'carrier': 'FedEx-REST',
 'params': {'freight_account_number': 'YOUR_FREIGHT_ACCOUNT_NUMBER',
            'image_type': 'PDF',
            'key': 'your-key-from-authenticate-request',
            'length_unit': 'IN',
            'packages': [{'description': 'Bailing wire',
                          'freight_class': '50',
                          'height': 100,
                          'length': 150,
                          'pieces': 10,
                          'sub_packaging_type': 'PALLET',
                          'weight': 200.0,
                          'width': 90}],
            'packaging_type': 'YOUR_PACKAGING',
            'service': 'FEDEX_FREIGHT_ECONOMY',
            'ship_addr1': '1202 Chalet Ln',
            'ship_addr2': 'Do Not Delete - Test Account',
            'ship_city': 'Harrison',
            'ship_code': '72601',
            'ship_contact': 'John Doe',
            'ship_country': 'US',
            'ship_phone': '8705551234',
            'ship_state': 'AR',
            'shipper': 'FedEx',
            'test': True,
            'to_addr1': '1234 Main St',
            'to_addr2': 'Suite 200',
            'to_city': 'Akron',
            'to_code': '44333',
            'to_company': 'ABC Widget Co',
            'to_country': 'US',
            'to_name': 'Jane Smith',
            'to_phone': '1231231234',
            'to_state': 'OH',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"FedEx-REST",
 "action"=>"SubmitShipment",
 "params"=>
  {"key"=>"your-key-from-authenticate-request",
   "freight_account_number"=>"YOUR_FREIGHT_ACCOUNT_NUMBER",
   "service"=>"FEDEX_FREIGHT_ECONOMY",
   "packages"=>
    [{"description"=>"Bailing wire",
      "weight"=>200.0,
      "length"=>150,
      "width"=>90,
      "height"=>100,
      "sub_packaging_type"=>"PALLET",
      "freight_class"=>"50",
      "pieces"=>10}],
   "shipper"=>"FedEx",
   "ship_contact"=>"John Doe",
   "ship_addr1"=>"1202 Chalet Ln",
   "ship_addr2"=>"Do Not Delete - Test Account",
   "ship_city"=>"Harrison",
   "ship_state"=>"AR",
   "ship_code"=>"72601",
   "ship_country"=>"US",
   "ship_phone"=>"8705551234",
   "to_company"=>"ABC Widget Co",
   "to_name"=>"Jane Smith",
   "to_addr1"=>"1234 Main St",
   "to_addr2"=>"Suite 200",
   "to_state"=>"OH",
   "to_city"=>"Akron",
   "to_code"=>"44333",
   "to_country"=>"US",
   "to_phone"=>"1231231234",
   "packaging_type"=>"YOUR_PACKAGING",
   "weight_unit"=>"LB",
   "length_unit"=>"IN",
   "image_type"=>"PDF",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "FedEx-REST",
  "action": "SubmitShipment",
  "params": {
    "key": "your-key-from-authenticate-request",
    "freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
    "service": "FEDEX_FREIGHT_ECONOMY",
    "packages": [
      {
        "description": "Bailing wire",
        "weight": 200.00,
        "length": 150,
        "width": 90,
        "height": 100,
        "sub_packaging_type": "PALLET",
        "freight_class": "50",
        "pieces": 10
      }
    ],
    "shipper": "FedEx",
    "ship_contact": "John Doe",
    "ship_addr1": "1202 Chalet Ln",
    "ship_addr2": "Do Not Delete - Test Account",
    "ship_city": "Harrison",
    "ship_state": "AR",
    "ship_code": "72601",
    "ship_country": "US",
    "ship_phone": "8705551234",
    "to_company": "ABC Widget Co",
    "to_name": "Jane Smith",
    "to_addr1": "1234 Main St",
    "to_addr2": "Suite 200",
    "to_state": "OH",
    "to_city": "Akron",
    "to_code": "44333",
    "to_country": "US",
    "to_phone": "1231231234",
    "packaging_type": "YOUR_PACKAGING",
    "weight_unit": "LB",
    "length_unit": "IN",
    "image_type": "PDF",
    "test": true
  }
}
)
← Back to FedEx-REST Examples

Other FedEx-REST Examples

Address Validation
Example implementation for FedEx-REST Address Validation
Authenticate
Example implementation for FedEx-REST Authenticate
Freight Label Multi-pallet
Example implementation for FedEx-REST Freight Label Multi-pallet
Freight Label Third Party Billing
Example implementation for FedEx-REST Freight Label Third Party Billing
Freight Pickup
Example implementation for FedEx-REST Freight Pickup
Freight Pickup Cancel
Example implementation for FedEx-REST Freight Pickup Cancel
Freight Rating
Example implementation for FedEx-REST Freight Rating
Label
Example implementation for FedEx-REST Label
Label Additional Handling PAIL
Example implementation for FedEx-REST Label Additional Handling PAIL
Label Alcohol
Example implementation for FedEx-REST Label Alcohol
Label Alcohol to Licensee
Example implementation for FedEx-REST Label Alcohol to Licensee
Label Alternate Return Address
Example implementation for FedEx-REST Label Alternate Return Address
Label Bill Duty to Recipient
Example implementation for FedEx-REST Label Bill Duty to Recipient
Label Bill Recipient
Example implementation for FedEx-REST Label Bill Recipient
Label Dry Ice
Example implementation for FedEx-REST Label Dry Ice
Label Email Notifications
Example implementation for FedEx-REST Label Email Notifications
Label Ground Collect (Not COD)
Example implementation for FedEx-REST Label Ground Collect (Not COD)
Label Hidden Account Number
Example implementation for FedEx-REST Label Hidden Account Number
Label Hold at Location
Example implementation for FedEx-REST Label Hold at Location
Label Home Delivery No Signature
Example implementation for FedEx-REST Label Home Delivery No Signature
Label International
Example implementation for FedEx-REST Label International
Label International Documents Only
Example implementation for FedEx-REST Label International Documents Only
Label International NO EEI Exemption
Example implementation for FedEx-REST Label International NO EEI Exemption
Label International Paperless Customs (ETD)
Example implementation for FedEx-REST Label International Paperless Customs (ETD)
Label International Sender Pays Duties
Example implementation for FedEx-REST Label International Sender Pays Duties
Label International w/ CI and USMCA
Example implementation for FedEx-REST Label International w/ CI and USMCA
Label International w/ CI and USMCA Custom Images
Example implementation for FedEx-REST Label International w/ CI and USMCA Custom Images
Label International with Broker
Example implementation for FedEx-REST Label International with Broker
Label Lithium Battery
Example implementation for FedEx-REST Label Lithium Battery
Label Multi-package
Example implementation for FedEx-REST Label Multi-package
Label Multi-package International
Example implementation for FedEx-REST Label Multi-package International
Label OneRate
Example implementation for FedEx-REST Label OneRate
Label Reference Values
Example implementation for FedEx-REST Label Reference Values
Label Residential
Example implementation for FedEx-REST Label Residential
Label Return Email label
Example implementation for FedEx-REST Label Return Email label
Label Return label
Example implementation for FedEx-REST Label Return label
Label SmartPost
Example implementation for FedEx-REST Label SmartPost
Label Third Party Billing
Example implementation for FedEx-REST Label Third Party Billing
Label User Uploaded Customs Documents
Example implementation for FedEx-REST Label User Uploaded Customs Documents
Label with Insurance
Example implementation for FedEx-REST Label with Insurance
Locator
Example implementation for FedEx-REST Locator
Pickup Cancel
Example implementation for FedEx-REST Pickup Cancel
Pickup Express
Example implementation for FedEx-REST Pickup Express
Pickup Ground
Example implementation for FedEx-REST Pickup Ground
Rates
Example implementation for FedEx-REST Rates
Rates International
Example implementation for FedEx-REST Rates International
Rates OneRate
Example implementation for FedEx-REST Rates OneRate
Time in Transit
Example implementation for FedEx-REST Time in Transit
Track
Example implementation for FedEx-REST Track
Tracking by Reference without account
Example implementation for FedEx-REST Tracking by Reference without account
Upload Customs Document
Example implementation for FedEx-REST Upload Customs Document
Upload Images
Example implementation for FedEx-REST Upload Images
Void
Example implementation for FedEx-REST Void
Void all packages
Example implementation for FedEx-REST Void all packages