{
"carrier": "FedEx-FIMS",
"action": "SubmitShipment",
"params": {
"username": "YOUR_FIMS_CUSTCODE",
"password": "YOUR_FIMS_SERVICE_ID",
"airway_bill": "123456789098",
"packages": [
{
"weight": 15,
"length": 10,
"width": 10,
"height": 10
}
],
"customs": [
{
"customs_weight": 10,
"customs_line_amount": 10,
"customs_description": "books",
"customs_hs_tariff": "2100",
"country_of_manufacture": "US"
}
],
"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",
"to_country": "CA",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx-FIMS',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_FIMS_CUSTCODE',
'password' => 'YOUR_FIMS_SERVICE_ID',
'airway_bill' => '123456789098',
'packages' =>
array (
0 =>
array (
'weight' => 15,
'length' => 10,
'width' => 10,
'height' => 10,
),
),
'customs' =>
array (
0 =>
array (
'customs_weight' => 10,
'customs_line_amount' => 10,
'customs_description' => 'books',
'customs_hs_tariff' => '2100',
'country_of_manufacture' => 'US',
),
),
'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',
'to_country' => 'CA',
'test' => true,
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'FedEx-FIMS',
'params': {'airway_bill': '123456789098',
'customs': [{'country_of_manufacture': 'US',
'customs_description': 'books',
'customs_hs_tariff': '2100',
'customs_line_amount': 10,
'customs_weight': 10}],
'packages': [{'height': 10,
'length': 10,
'weight': 15,
'width': 10}],
'password': 'YOUR_FIMS_SERVICE_ID',
'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_country': 'CA',
'to_name': 'John Doe',
'to_phone': '1231231234',
'to_state': 'CA',
'username': 'YOUR_FIMS_CUSTCODE'}}
)
rs.request(
{"carrier"=>"FedEx-FIMS",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_FIMS_CUSTCODE",
"password"=>"YOUR_FIMS_SERVICE_ID",
"airway_bill"=>"123456789098",
"packages"=>[{"weight"=>15, "length"=>10, "width"=>10, "height"=>10}],
"customs"=>
[{"customs_weight"=>10,
"customs_line_amount"=>10,
"customs_description"=>"books",
"customs_hs_tariff"=>"2100",
"country_of_manufacture"=>"US"}],
"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",
"to_country"=>"CA",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx-FIMS",
"action": "SubmitShipment",
"params": {
"username": "YOUR_FIMS_CUSTCODE",
"password": "YOUR_FIMS_SERVICE_ID",
"airway_bill": "123456789098",
"packages": [
{
"weight": 15,
"length": 10,
"width": 10,
"height": 10
}
],
"customs": [
{
"customs_weight": 10,
"customs_line_amount": 10,
"customs_description": "books",
"customs_hs_tariff": "2100",
"country_of_manufacture": "US"
}
],
"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",
"to_country": "CA",
"test": true
}
}
)