FedEx-Freight - Label

Carrier
FedEx-Freight
Action
Label
{
  "carrier": "FedEx-Freight",
  "action": "submitshipment",
  "params": {
    "client_id": "your-client-id",
    "client_secret": "your-client-secret",
    "account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
    "service": "FEDEX_FREIGHT_ECONOMY",
    "packages": [
      {
        "description": "Bailing wire",
        "weight": 200.00,
        "length": 48,
        "width": 40,
        "height": 36,
        "sub_packaging_type": "PALLET",
        "freight_class": "50",
        "pieces": 10
      }
    ],
    "shipper": "RocketShipIt",
    "ship_contact": "John Doe",
    "ship_addr1": "1202 Chalet Ln",
    "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_city": "Akron",
    "to_state": "OH",
    "to_code": "44333",
    "to_country": "US",
    "to_phone": "1231231234",
    "weight_unit": "LB",
    "length_unit": "IN",
    "image_type": "PDF",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'FedEx-Freight',
  'action' => 'submitshipment',
  'params' => 
  array (
    'client_id' => 'your-client-id',
    'client_secret' => 'your-client-secret',
    'account_number' => 'YOUR_FREIGHT_ACCOUNT_NUMBER',
    'service' => 'FEDEX_FREIGHT_ECONOMY',
    'packages' => 
    array (
      0 => 
      array (
        'description' => 'Bailing wire',
        'weight' => 200.0,
        'length' => 48,
        'width' => 40,
        'height' => 36,
        'sub_packaging_type' => 'PALLET',
        'freight_class' => '50',
        'pieces' => 10,
      ),
    ),
    'shipper' => 'RocketShipIt',
    'ship_contact' => 'John Doe',
    'ship_addr1' => '1202 Chalet Ln',
    '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_city' => 'Akron',
    'to_state' => 'OH',
    'to_code' => '44333',
    'to_country' => 'US',
    'to_phone' => '1231231234',
    'weight_unit' => 'LB',
    'length_unit' => 'IN',
    'image_type' => 'PDF',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'FedEx-Freight',
 'params': {'account_number': 'YOUR_FREIGHT_ACCOUNT_NUMBER',
            'client_id': 'your-client-id',
            'client_secret': 'your-client-secret',
            'image_type': 'PDF',
            'length_unit': 'IN',
            'packages': [{'description': 'Bailing wire',
                          'freight_class': '50',
                          'height': 36,
                          'length': 48,
                          'pieces': 10,
                          'sub_packaging_type': 'PALLET',
                          'weight': 200.0,
                          'width': 40}],
            'service': 'FEDEX_FREIGHT_ECONOMY',
            'ship_addr1': '1202 Chalet Ln',
            'ship_city': 'Harrison',
            'ship_code': '72601',
            'ship_contact': 'John Doe',
            'ship_country': 'US',
            'ship_phone': '8705551234',
            'ship_state': 'AR',
            'shipper': 'RocketShipIt',
            '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-Freight",
 "action"=>"submitshipment",
 "params"=>
  {"client_id"=>"your-client-id",
   "client_secret"=>"your-client-secret",
   "account_number"=>"YOUR_FREIGHT_ACCOUNT_NUMBER",
   "service"=>"FEDEX_FREIGHT_ECONOMY",
   "packages"=>
    [{"description"=>"Bailing wire",
      "weight"=>200.0,
      "length"=>48,
      "width"=>40,
      "height"=>36,
      "sub_packaging_type"=>"PALLET",
      "freight_class"=>"50",
      "pieces"=>10}],
   "shipper"=>"RocketShipIt",
   "ship_contact"=>"John Doe",
   "ship_addr1"=>"1202 Chalet Ln",
   "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_city"=>"Akron",
   "to_state"=>"OH",
   "to_code"=>"44333",
   "to_country"=>"US",
   "to_phone"=>"1231231234",
   "weight_unit"=>"LB",
   "length_unit"=>"IN",
   "image_type"=>"PDF",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "FedEx-Freight",
  "action": "submitshipment",
  "params": {
    "client_id": "your-client-id",
    "client_secret": "your-client-secret",
    "account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
    "service": "FEDEX_FREIGHT_ECONOMY",
    "packages": [
      {
        "description": "Bailing wire",
        "weight": 200.00,
        "length": 48,
        "width": 40,
        "height": 36,
        "sub_packaging_type": "PALLET",
        "freight_class": "50",
        "pieces": 10
      }
    ],
    "shipper": "RocketShipIt",
    "ship_contact": "John Doe",
    "ship_addr1": "1202 Chalet Ln",
    "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_city": "Akron",
    "to_state": "OH",
    "to_code": "44333",
    "to_country": "US",
    "to_phone": "1231231234",
    "weight_unit": "LB",
    "length_unit": "IN",
    "image_type": "PDF",
    "test": true
  }
}
)

← All FedEx-Freight examples