FedEx - Label

Carrier: FedEx
Action: Label
Description: Example implementation for FedEx Label
{
  "carrier": "FedEx",
  "action": "SubmitShipment",
  "params": {
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "meter_number": "YOUR_METER_NUMBER",
    "key": "YOUR_KEY",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 15
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_phone": "1231231234",
    "to_name": "John Doe",
    "to_addr1": "123 Main St",
    "to_state": "CA",
    "to_city": "Beverly Hills",
    "to_code": "90210",
    "to_phone": "1231231234",
    "packaging_type": "YOUR_PACKAGING",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'FedEx',
  'action' => 'SubmitShipment',
  'params' => 
  array (
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'meter_number' => 'YOUR_METER_NUMBER',
    'key' => 'YOUR_KEY',
    'password' => 'YOUR_PASSWORD',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 15,
      ),
    ),
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '123 Main St',
    'ship_city' => 'Whitehall',
    'ship_state' => 'MT',
    'ship_code' => '59759',
    'ship_phone' => '1231231234',
    'to_name' => 'John Doe',
    'to_addr1' => '123 Main St',
    'to_state' => 'CA',
    'to_city' => 'Beverly Hills',
    'to_code' => '90210',
    'to_phone' => '1231231234',
    'packaging_type' => 'YOUR_PACKAGING',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'SubmitShipment',
 'carrier': 'FedEx',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'key': 'YOUR_KEY',
            'meter_number': 'YOUR_METER_NUMBER',
            'packages': [{'weight': 15}],
            'packaging_type': 'YOUR_PACKAGING',
            'password': 'YOUR_PASSWORD',
            'ship_addr1': '123 Main St',
            'ship_city': 'Whitehall',
            'ship_code': '59759',
            'ship_phone': '1231231234',
            'ship_state': 'MT',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '123 Main St',
            'to_city': 'Beverly Hills',
            'to_code': '90210',
            'to_name': 'John Doe',
            'to_phone': '1231231234',
            'to_state': 'CA'}}

)

rs.request(
  {"carrier"=>"FedEx",
 "action"=>"SubmitShipment",
 "params"=>
  {"account_number"=>"YOUR_ACCOUNT_NUMBER",
   "meter_number"=>"YOUR_METER_NUMBER",
   "key"=>"YOUR_KEY",
   "password"=>"YOUR_PASSWORD",
   "packages"=>[{"weight"=>15}],
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"123 Main St",
   "ship_city"=>"Whitehall",
   "ship_state"=>"MT",
   "ship_code"=>"59759",
   "ship_phone"=>"1231231234",
   "to_name"=>"John Doe",
   "to_addr1"=>"123 Main St",
   "to_state"=>"CA",
   "to_city"=>"Beverly Hills",
   "to_code"=>"90210",
   "to_phone"=>"1231231234",
   "packaging_type"=>"YOUR_PACKAGING",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "FedEx",
  "action": "SubmitShipment",
  "params": {
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "meter_number": "YOUR_METER_NUMBER",
    "key": "YOUR_KEY",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 15
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_phone": "1231231234",
    "to_name": "John Doe",
    "to_addr1": "123 Main St",
    "to_state": "CA",
    "to_city": "Beverly Hills",
    "to_code": "90210",
    "to_phone": "1231231234",
    "packaging_type": "YOUR_PACKAGING",
    "test": true
  }
}
)
← Back to All Examples

Other FedEx Examples

Address Validation
Example implementation for FedEx Address Validation
Create Manifest
Example implementation for FedEx Create Manifest
Create Manifest Smart Post
Example implementation for FedEx Create Manifest Smart Post
Email notification on delivery
Example implementation for FedEx Email notification on delivery
Freight Label International
Example implementation for FedEx Freight Label International
Freight Label Third Party Billing
Example implementation for FedEx Freight Label Third Party Billing
Freight Label w/ BOL
Example implementation for FedEx Freight Label w/ BOL
Freight Label w/ BOL multi-pallet
Example implementation for FedEx Freight Label w/ BOL multi-pallet
Freight Rating
Example implementation for FedEx Freight Rating
Freight Rating w/ liftgate
Example implementation for FedEx Freight Rating w/ liftgate
Freight Rating with Addons
Example implementation for FedEx Freight Rating with Addons
Get BOL Freight Document
Example implementation for FedEx Get BOL Freight Document
Label Alcohol
Example implementation for FedEx Label Alcohol
Label Alcohol to Licensee
Example implementation for FedEx Label Alcohol to Licensee
Label Alternate Return Address
Example implementation for FedEx Label Alternate Return Address
Label Bill Recipient
Example implementation for FedEx Label Bill Recipient
Label Dry Ice
Example implementation for FedEx Label Dry Ice
Label Email Notifications
Example implementation for FedEx Label Email Notifications
Label Ground Collect (Not COD)
Example implementation for FedEx Label Ground Collect (Not COD)
Label Hidden Account Number
Example implementation for FedEx Label Hidden Account Number
Label Hold at Location
Example implementation for FedEx Label Hold at Location
Label Home Delivery No Signature
Example implementation for FedEx Label Home Delivery No Signature
Label IN -> IN with COD
Example implementation for FedEx Label IN -> IN with COD
Label International
Example implementation for FedEx Label International
Label International Documents Only
Example implementation for FedEx Label International Documents Only
Label International NO EEI Exemption
Example implementation for FedEx Label International NO EEI Exemption
Label International Paperless Customs (ETD)
Example implementation for FedEx Label International Paperless Customs (ETD)
Label International Sender Pays Duties
Example implementation for FedEx Label International Sender Pays Duties
Label International w/ CI and NAFTA
Example implementation for FedEx Label International w/ CI and NAFTA
Label International w/ CI and NAFTA Custom Images
Example implementation for FedEx Label International w/ CI and NAFTA Custom Images
Label Multi-package
Example implementation for FedEx Label Multi-package
Label Multi-package International
Example implementation for FedEx Label Multi-package International
Label Reference Values
Example implementation for FedEx Label Reference Values
Label Residential
Example implementation for FedEx Label Residential
Label Return Email label
Example implementation for FedEx Label Return Email label
Label Return label
Example implementation for FedEx Label Return label
Label Return label International
Example implementation for FedEx Label Return label International
Label SmartPost
Example implementation for FedEx Label SmartPost
Label Third Party Billing
Example implementation for FedEx Label Third Party Billing
Label with Insurance
Example implementation for FedEx Label with Insurance
Locator
Example implementation for FedEx Locator
Pickup Cancel
Example implementation for FedEx Pickup Cancel
Pickup Express
Example implementation for FedEx Pickup Express
Pickup Freight LTL
Example implementation for FedEx Pickup Freight LTL
Pickup Ground
Example implementation for FedEx Pickup Ground
Rate COD
Example implementation for FedEx Rate COD
Rate Future Date
Example implementation for FedEx Rate Future Date
Rates COD
Example implementation for FedEx Rates COD
Rates Dry Ice with Insurance
Example implementation for FedEx Rates Dry Ice with Insurance
Rates Insurance
Example implementation for FedEx Rates Insurance
Rates International Duties and Taxes
Example implementation for FedEx Rates International Duties and Taxes
Rates Negotiated
Example implementation for FedEx Rates Negotiated
Rates OneRate
Example implementation for FedEx Rates OneRate
Rates Residential Home Delivery
Example implementation for FedEx Rates Residential Home Delivery
Rates Return Label
Example implementation for FedEx Rates Return Label
Rates Signature Required
Example implementation for FedEx Rates Signature Required
Rates SmartPost
Example implementation for FedEx Rates SmartPost
Rating Hold at Location
Example implementation for FedEx Rating Hold at Location
Time in Transit
Example implementation for FedEx Time in Transit
Tracking
Example implementation for FedEx Tracking
Tracking Duplicate IDs Request Unique
Example implementation for FedEx Tracking Duplicate IDs Request Unique
Tracking by Control Number
Example implementation for FedEx Tracking by Control Number
Tracking by Reference
Example implementation for FedEx Tracking by Reference
Tracking by Reference without account
Example implementation for FedEx Tracking by Reference without account
Upload Customs Document
Example implementation for FedEx Upload Customs Document
Upload Images
Example implementation for FedEx Upload Images
Void
Example implementation for FedEx Void