{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"service": "FEDEX_FREIGHT_ECONOMY",
"lift_gate_required": true,
"packages": [
{
"description": "Bailing wire",
"weight": 200.00,
"length": 150,
"width": 90,
"height": 100,
"packaging_type": "PALLET",
"freight_class": "50",
"pieces": 10
},
{
"description": "Bailing wire",
"weight": 200.00,
"length": 150,
"width": 90,
"height": 100,
"packaging_type": "PALLET",
"freight_class": "50",
"pieces": 10
}
],
"shipper": "FedEx",
"ship_addr1": "1202 Chalet Ln",
"ship_addr2": "Do Not Delete - Test Account",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_phone": "8705551234",
"to_name": "ABC Widget Co",
"to_addr1": "1234 Main St",
"to_addr2": "Suite 200",
"to_state": "OH",
"to_city": "Akron",
"to_code": "44333",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'freight_account_number' => 'YOUR_FREIGHT_ACCOUNT_NUMBER',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'service' => 'FEDEX_FREIGHT_ECONOMY',
'lift_gate_required' => true,
'packages' =>
array (
0 =>
array (
'description' => 'Bailing wire',
'weight' => 200.0,
'length' => 150,
'width' => 90,
'height' => 100,
'packaging_type' => 'PALLET',
'freight_class' => '50',
'pieces' => 10,
),
1 =>
array (
'description' => 'Bailing wire',
'weight' => 200.0,
'length' => 150,
'width' => 90,
'height' => 100,
'packaging_type' => 'PALLET',
'freight_class' => '50',
'pieces' => 10,
),
),
'shipper' => 'FedEx',
'ship_addr1' => '1202 Chalet Ln',
'ship_addr2' => 'Do Not Delete - Test Account',
'ship_city' => 'Harrison',
'ship_state' => 'AR',
'ship_code' => '72601',
'ship_phone' => '8705551234',
'to_name' => 'ABC Widget Co',
'to_addr1' => '1234 Main St',
'to_addr2' => 'Suite 200',
'to_state' => 'OH',
'to_city' => 'Akron',
'to_code' => '44333',
'to_phone' => '1231231234',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'FedEx',
'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
'freight_account_number': 'YOUR_FREIGHT_ACCOUNT_NUMBER',
'key': 'YOUR_KEY',
'lift_gate_required': True,
'meter_number': 'YOUR_METER_NUMBER',
'packages': [{'description': 'Bailing wire',
'freight_class': '50',
'height': 100,
'length': 150,
'packaging_type': 'PALLET',
'pieces': 10,
'weight': 200.0,
'width': 90},
{'description': 'Bailing wire',
'freight_class': '50',
'height': 100,
'length': 150,
'packaging_type': 'PALLET',
'pieces': 10,
'weight': 200.0,
'width': 90}],
'packaging_type': 'YOUR_PACKAGING',
'password': 'YOUR_PASSWORD',
'service': 'FEDEX_FREIGHT_ECONOMY',
'ship_addr1': '1202 Chalet Ln',
'ship_addr2': 'Do Not Delete - Test Account',
'ship_city': 'Harrison',
'ship_code': '72601',
'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_name': 'ABC Widget Co',
'to_phone': '1231231234',
'to_state': 'OH'}}
)
rs.request(
{"carrier"=>"FedEx",
"action"=>"SubmitShipment",
"params"=>
{"freight_account_number"=>"YOUR_FREIGHT_ACCOUNT_NUMBER",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"service"=>"FEDEX_FREIGHT_ECONOMY",
"lift_gate_required"=>true,
"packages"=>
[{"description"=>"Bailing wire",
"weight"=>200.0,
"length"=>150,
"width"=>90,
"height"=>100,
"packaging_type"=>"PALLET",
"freight_class"=>"50",
"pieces"=>10},
{"description"=>"Bailing wire",
"weight"=>200.0,
"length"=>150,
"width"=>90,
"height"=>100,
"packaging_type"=>"PALLET",
"freight_class"=>"50",
"pieces"=>10}],
"shipper"=>"FedEx",
"ship_addr1"=>"1202 Chalet Ln",
"ship_addr2"=>"Do Not Delete - Test Account",
"ship_city"=>"Harrison",
"ship_state"=>"AR",
"ship_code"=>"72601",
"ship_phone"=>"8705551234",
"to_name"=>"ABC Widget Co",
"to_addr1"=>"1234 Main St",
"to_addr2"=>"Suite 200",
"to_state"=>"OH",
"to_city"=>"Akron",
"to_code"=>"44333",
"to_phone"=>"1231231234",
"packaging_type"=>"YOUR_PACKAGING",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"service": "FEDEX_FREIGHT_ECONOMY",
"lift_gate_required": true,
"packages": [
{
"description": "Bailing wire",
"weight": 200.00,
"length": 150,
"width": 90,
"height": 100,
"packaging_type": "PALLET",
"freight_class": "50",
"pieces": 10
},
{
"description": "Bailing wire",
"weight": 200.00,
"length": 150,
"width": 90,
"height": 100,
"packaging_type": "PALLET",
"freight_class": "50",
"pieces": 10
}
],
"shipper": "FedEx",
"ship_addr1": "1202 Chalet Ln",
"ship_addr2": "Do Not Delete - Test Account",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_phone": "8705551234",
"to_name": "ABC Widget Co",
"to_addr1": "1234 Main St",
"to_addr2": "Suite 200",
"to_state": "OH",
"to_city": "Akron",
"to_code": "44333",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)