{
"carrier": "FedEx-REST",
"action": "SubmitShipment",
"params": {
"key": "your-key-from-authenticate-request",
"freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
"service": "FEDEX_FREIGHT_ECONOMY",
"lift_gate_required": true,
"packages": [
{
"description": "Bailing wire",
"weight": 200.00,
"length": 150,
"width": 90,
"height": 100,
"sub_packaging_type": "PALLET",
"freight_class": "50",
"pieces": 10
},
{
"description": "Steel rods",
"weight": 300.00,
"length": 120,
"width": 48,
"height": 48,
"sub_packaging_type": "PALLET",
"freight_class": "70",
"pieces": 5
}
],
"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',
'lift_gate_required' => true,
'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,
),
1 =>
array (
'description' => 'Steel rods',
'weight' => 300.0,
'length' => 120,
'width' => 48,
'height' => 48,
'sub_packaging_type' => 'PALLET',
'freight_class' => '70',
'pieces' => 5,
),
),
'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',
'lift_gate_required': True,
'packages': [{'description': 'Bailing wire',
'freight_class': '50',
'height': 100,
'length': 150,
'pieces': 10,
'sub_packaging_type': 'PALLET',
'weight': 200.0,
'width': 90},
{'description': 'Steel rods',
'freight_class': '70',
'height': 48,
'length': 120,
'pieces': 5,
'sub_packaging_type': 'PALLET',
'weight': 300.0,
'width': 48}],
'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",
"lift_gate_required"=>true,
"packages"=>
[{"description"=>"Bailing wire",
"weight"=>200.0,
"length"=>150,
"width"=>90,
"height"=>100,
"sub_packaging_type"=>"PALLET",
"freight_class"=>"50",
"pieces"=>10},
{"description"=>"Steel rods",
"weight"=>300.0,
"length"=>120,
"width"=>48,
"height"=>48,
"sub_packaging_type"=>"PALLET",
"freight_class"=>"70",
"pieces"=>5}],
"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",
"lift_gate_required": true,
"packages": [
{
"description": "Bailing wire",
"weight": 200.00,
"length": 150,
"width": 90,
"height": 100,
"sub_packaging_type": "PALLET",
"freight_class": "50",
"pieces": 10
},
{
"description": "Steel rods",
"weight": 300.00,
"length": 120,
"width": 48,
"height": 48,
"sub_packaging_type": "PALLET",
"freight_class": "70",
"pieces": 5
}
],
"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
}
}
)