{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"billing": [
{
"type": "transportation",
"payment_type": "collect",
"account": "abc123"
}
],
"packages": [
{
"width": 14,
"length": 11,
"height": 8,
"weight": 5,
"reference_code": "P_O_NUMBER",
"reference_value": "abc123",
"reference_code2": "CUSTOMER_REFERENCE",
"reference_value2": "123456"
}
],
"shipper": "Acme Inc",
"ship_addr1": "123 Main St.",
"ship_city": "Vancouver",
"ship_state": "WA",
"ship_code": "98685",
"ship_phone": "123-123-1234",
"ship_country": "US",
"to_country": "US",
"to_code": "11040",
"to_name": "Big Box Store",
"to_addr1": "123 Fake St.",
"to_state": "NY",
"to_city": "New Hyde Park",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'billing' =>
array (
0 =>
array (
'type' => 'transportation',
'payment_type' => 'collect',
'account' => 'abc123',
),
),
'packages' =>
array (
0 =>
array (
'width' => 14,
'length' => 11,
'height' => 8,
'weight' => 5,
'reference_code' => 'P_O_NUMBER',
'reference_value' => 'abc123',
'reference_code2' => 'CUSTOMER_REFERENCE',
'reference_value2' => '123456',
),
),
'shipper' => 'Acme Inc',
'ship_addr1' => '123 Main St.',
'ship_city' => 'Vancouver',
'ship_state' => 'WA',
'ship_code' => '98685',
'ship_phone' => '123-123-1234',
'ship_country' => 'US',
'to_country' => 'US',
'to_code' => '11040',
'to_name' => 'Big Box Store',
'to_addr1' => '123 Fake St.',
'to_state' => 'NY',
'to_city' => 'New Hyde Park',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'FedEx',
'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
'billing': [{'account': 'abc123',
'payment_type': 'collect',
'type': 'transportation'}],
'key': 'YOUR_KEY',
'meter_number': 'YOUR_METER_NUMBER',
'packages': [{'height': 8,
'length': 11,
'reference_code': 'P_O_NUMBER',
'reference_code2': 'CUSTOMER_REFERENCE',
'reference_value': 'abc123',
'reference_value2': '123456',
'weight': 5,
'width': 14}],
'packaging_type': 'YOUR_PACKAGING',
'password': 'YOUR_PASSWORD',
'ship_addr1': '123 Main St.',
'ship_city': 'Vancouver',
'ship_code': '98685',
'ship_country': 'US',
'ship_phone': '123-123-1234',
'ship_state': 'WA',
'shipper': 'Acme Inc',
'test': True,
'to_addr1': '123 Fake St.',
'to_city': 'New Hyde Park',
'to_code': '11040',
'to_country': 'US',
'to_name': 'Big Box Store',
'to_state': 'NY'}}
)
rs.request(
{"carrier"=>"FedEx",
"action"=>"SubmitShipment",
"params"=>
{"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"billing"=>
[{"type"=>"transportation",
"payment_type"=>"collect",
"account"=>"abc123"}],
"packages"=>
[{"width"=>14,
"length"=>11,
"height"=>8,
"weight"=>5,
"reference_code"=>"P_O_NUMBER",
"reference_value"=>"abc123",
"reference_code2"=>"CUSTOMER_REFERENCE",
"reference_value2"=>"123456"}],
"shipper"=>"Acme Inc",
"ship_addr1"=>"123 Main St.",
"ship_city"=>"Vancouver",
"ship_state"=>"WA",
"ship_code"=>"98685",
"ship_phone"=>"123-123-1234",
"ship_country"=>"US",
"to_country"=>"US",
"to_code"=>"11040",
"to_name"=>"Big Box Store",
"to_addr1"=>"123 Fake St.",
"to_state"=>"NY",
"to_city"=>"New Hyde Park",
"packaging_type"=>"YOUR_PACKAGING",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"billing": [
{
"type": "transportation",
"payment_type": "collect",
"account": "abc123"
}
],
"packages": [
{
"width": 14,
"length": 11,
"height": 8,
"weight": 5,
"reference_code": "P_O_NUMBER",
"reference_value": "abc123",
"reference_code2": "CUSTOMER_REFERENCE",
"reference_value2": "123456"
}
],
"shipper": "Acme Inc",
"ship_addr1": "123 Main St.",
"ship_city": "Vancouver",
"ship_state": "WA",
"ship_code": "98685",
"ship_phone": "123-123-1234",
"ship_country": "US",
"to_country": "US",
"to_code": "11040",
"to_name": "Big Box Store",
"to_addr1": "123 Fake St.",
"to_state": "NY",
"to_city": "New Hyde Park",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)