FedEx-REST - Rates Hazmat

Carrier
FedEx-REST
Action
Rates Hazmat
{
  "carrier": "FedEx-REST",
  "action": "getallrates",
  "params": {
    "test": true,
    "account_number": "1234567890",
    "key": "your-key-from-authenticate-request",
    "packages": [
      {
        "weight": 25,
        "length": 10,
        "width": 10,
        "height": 10,
        "hazmat": {
          "transport_mode": "Ground",
          "emergency_phone": "8005551234",
          "emergency_contact": "Hazmat Response Team",
          "all_packed_in_one": true,
          "chemical_records": [
            {
              "identifier": "1",
              "regulated_level_code": "FR",
              "id_number": "UN3480",
              "proper_shipping_name": "Lithium ion batteries",
              "technical_name": "Lithium Ion",
              "class_division_number": "9",
              "packaging_group": "II",
              "quantity": "6",
              "uom": "kg",
              "packaging_instruction_code": "965",
              "packaging_type": "Fiberboard Box",
              "packaging_type_quantity": "1",
              "additional_description": "Limited Quantity"
            }
          ]
        }
      }
    ],
    "shipper": "My Company",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_country": "US",
    "to_country": "US",
    "to_state": "CA",
    "to_code": "90210",
    "weight_unit": "LB",
    "packaging_type": "YOUR_PACKAGING",
    "dropoff_type": "USE_SCHEDULED_PICKUP"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'FedEx-REST',
  'action' => 'getallrates',
  'params' => 
  array (
    'test' => true,
    'account_number' => '1234567890',
    'key' => 'your-key-from-authenticate-request',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 25,
        'length' => 10,
        'width' => 10,
        'height' => 10,
        'hazmat' => 
        array (
          'transport_mode' => 'Ground',
          'emergency_phone' => '8005551234',
          'emergency_contact' => 'Hazmat Response Team',
          'all_packed_in_one' => true,
          'chemical_records' => 
          array (
            0 => 
            array (
              'identifier' => '1',
              'regulated_level_code' => 'FR',
              'id_number' => 'UN3480',
              'proper_shipping_name' => 'Lithium ion batteries',
              'technical_name' => 'Lithium Ion',
              'class_division_number' => '9',
              'packaging_group' => 'II',
              'quantity' => '6',
              'uom' => 'kg',
              'packaging_instruction_code' => '965',
              'packaging_type' => 'Fiberboard Box',
              'packaging_type_quantity' => '1',
              'additional_description' => 'Limited Quantity',
            ),
          ),
        ),
      ),
    ),
    'shipper' => 'My Company',
    'ship_addr1' => '123 Main St',
    'ship_city' => 'Whitehall',
    'ship_state' => 'MT',
    'ship_code' => '59759',
    'ship_country' => 'US',
    'to_country' => 'US',
    'to_state' => 'CA',
    'to_code' => '90210',
    'weight_unit' => 'LB',
    'packaging_type' => 'YOUR_PACKAGING',
    'dropoff_type' => 'USE_SCHEDULED_PICKUP',
  ),
)
);

rs.request(
  {'action': 'getallrates',
 'carrier': 'FedEx-REST',
 'params': {'account_number': '1234567890',
            'dropoff_type': 'USE_SCHEDULED_PICKUP',
            'key': 'your-key-from-authenticate-request',
            'packages': [{'hazmat': {'all_packed_in_one': True,
                                     'chemical_records': [{'additional_description': 'Limited '
                                                                                     'Quantity',
                                                           'class_division_number': '9',
                                                           'id_number': 'UN3480',
                                                           'identifier': '1',
                                                           'packaging_group': 'II',
                                                           'packaging_instruction_code': '965',
                                                           'packaging_type': 'Fiberboard '
                                                                             'Box',
                                                           'packaging_type_quantity': '1',
                                                           'proper_shipping_name': 'Lithium '
                                                                                   'ion '
                                                                                   'batteries',
                                                           'quantity': '6',
                                                           'regulated_level_code': 'FR',
                                                           'technical_name': 'Lithium '
                                                                             'Ion',
                                                           'uom': 'kg'}],
                                     'emergency_contact': 'Hazmat Response '
                                                          'Team',
                                     'emergency_phone': '8005551234',
                                     'transport_mode': 'Ground'},
                          'height': 10,
                          'length': 10,
                          'weight': 25,
                          'width': 10}],
            'packaging_type': 'YOUR_PACKAGING',
            'ship_addr1': '123 Main St',
            'ship_city': 'Whitehall',
            'ship_code': '59759',
            'ship_country': 'US',
            'ship_state': 'MT',
            'shipper': 'My Company',
            'test': True,
            'to_code': '90210',
            'to_country': 'US',
            'to_state': 'CA',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"FedEx-REST",
 "action"=>"getallrates",
 "params"=>
  {"test"=>true,
   "account_number"=>"1234567890",
   "key"=>"your-key-from-authenticate-request",
   "packages"=>
    [{"weight"=>25,
      "length"=>10,
      "width"=>10,
      "height"=>10,
      "hazmat"=>
       {"transport_mode"=>"Ground",
        "emergency_phone"=>"8005551234",
        "emergency_contact"=>"Hazmat Response Team",
        "all_packed_in_one"=>true,
        "chemical_records"=>
         [{"identifier"=>"1",
           "regulated_level_code"=>"FR",
           "id_number"=>"UN3480",
           "proper_shipping_name"=>"Lithium ion batteries",
           "technical_name"=>"Lithium Ion",
           "class_division_number"=>"9",
           "packaging_group"=>"II",
           "quantity"=>"6",
           "uom"=>"kg",
           "packaging_instruction_code"=>"965",
           "packaging_type"=>"Fiberboard Box",
           "packaging_type_quantity"=>"1",
           "additional_description"=>"Limited Quantity"}]}}],
   "shipper"=>"My Company",
   "ship_addr1"=>"123 Main St",
   "ship_city"=>"Whitehall",
   "ship_state"=>"MT",
   "ship_code"=>"59759",
   "ship_country"=>"US",
   "to_country"=>"US",
   "to_state"=>"CA",
   "to_code"=>"90210",
   "weight_unit"=>"LB",
   "packaging_type"=>"YOUR_PACKAGING",
   "dropoff_type"=>"USE_SCHEDULED_PICKUP"}}

)

rocketshipit.request(
  {
  "carrier": "FedEx-REST",
  "action": "getallrates",
  "params": {
    "test": true,
    "account_number": "1234567890",
    "key": "your-key-from-authenticate-request",
    "packages": [
      {
        "weight": 25,
        "length": 10,
        "width": 10,
        "height": 10,
        "hazmat": {
          "transport_mode": "Ground",
          "emergency_phone": "8005551234",
          "emergency_contact": "Hazmat Response Team",
          "all_packed_in_one": true,
          "chemical_records": [
            {
              "identifier": "1",
              "regulated_level_code": "FR",
              "id_number": "UN3480",
              "proper_shipping_name": "Lithium ion batteries",
              "technical_name": "Lithium Ion",
              "class_division_number": "9",
              "packaging_group": "II",
              "quantity": "6",
              "uom": "kg",
              "packaging_instruction_code": "965",
              "packaging_type": "Fiberboard Box",
              "packaging_type_quantity": "1",
              "additional_description": "Limited Quantity"
            }
          ]
        }
      }
    ],
    "shipper": "My Company",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_country": "US",
    "to_country": "US",
    "to_state": "CA",
    "to_code": "90210",
    "weight_unit": "LB",
    "packaging_type": "YOUR_PACKAGING",
    "dropoff_type": "USE_SCHEDULED_PICKUP"
  }
}
)

← All FedEx-REST examples