{
"carrier": "FedEx-REST",
"action": "SubmitShipment",
"params": {
"key": "your-key-from-authenticate-request",
"freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
"service": "FEDEX_FREIGHT_PRIORITY",
"billing": [
{
"type": "transportation",
"payment_type": "third_party",
"company": "Acme Inc.",
"account": "805222441",
"postal_code": "72601",
"country_code": "US",
"city": "Harrison",
"state": "AR",
"addr1": "2000 Freight LTL Testing"
}
],
"packages": [
{
"description": "B48-48-16",
"weight": 155.0,
"sub_packaging_type": "PALLET",
"freight_class": "70",
"pieces": 1
}
],
"shipper": "Vendor - Harrison, AR",
"ship_contact": "John Doe",
"ship_addr1": "1202 Chalet Ln",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"ship_phone": "8447630135",
"to_company": "Test Qa",
"to_name": "Jane Smith",
"to_addr1": "2000 Freight LTL Testing",
"to_city": "Harrison",
"to_state": "AR",
"to_code": "72601",
"to_country": "US",
"to_phone": "8447630131",
"packaging_type": "YOUR_PACKAGING",
"weight_unit": "LB",
"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_PRIORITY',
'billing' =>
array (
0 =>
array (
'type' => 'transportation',
'payment_type' => 'third_party',
'company' => 'Acme Inc.',
'account' => '805222441',
'postal_code' => '72601',
'country_code' => 'US',
'city' => 'Harrison',
'state' => 'AR',
'addr1' => '2000 Freight LTL Testing',
),
),
'packages' =>
array (
0 =>
array (
'description' => 'B48-48-16',
'weight' => 155.0,
'sub_packaging_type' => 'PALLET',
'freight_class' => '70',
'pieces' => 1,
),
),
'shipper' => 'Vendor - Harrison, AR',
'ship_contact' => 'John Doe',
'ship_addr1' => '1202 Chalet Ln',
'ship_city' => 'Harrison',
'ship_state' => 'AR',
'ship_code' => '72601',
'ship_country' => 'US',
'ship_phone' => '8447630135',
'to_company' => 'Test Qa',
'to_name' => 'Jane Smith',
'to_addr1' => '2000 Freight LTL Testing',
'to_city' => 'Harrison',
'to_state' => 'AR',
'to_code' => '72601',
'to_country' => 'US',
'to_phone' => '8447630131',
'packaging_type' => 'YOUR_PACKAGING',
'weight_unit' => 'LB',
'image_type' => 'PDF',
'test' => true,
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'FedEx-REST',
'params': {'billing': [{'account': '805222441',
'addr1': '2000 Freight LTL Testing',
'city': 'Harrison',
'company': 'Acme Inc.',
'country_code': 'US',
'payment_type': 'third_party',
'postal_code': '72601',
'state': 'AR',
'type': 'transportation'}],
'freight_account_number': 'YOUR_FREIGHT_ACCOUNT_NUMBER',
'image_type': 'PDF',
'key': 'your-key-from-authenticate-request',
'packages': [{'description': 'B48-48-16',
'freight_class': '70',
'pieces': 1,
'sub_packaging_type': 'PALLET',
'weight': 155.0}],
'packaging_type': 'YOUR_PACKAGING',
'service': 'FEDEX_FREIGHT_PRIORITY',
'ship_addr1': '1202 Chalet Ln',
'ship_city': 'Harrison',
'ship_code': '72601',
'ship_contact': 'John Doe',
'ship_country': 'US',
'ship_phone': '8447630135',
'ship_state': 'AR',
'shipper': 'Vendor - Harrison, AR',
'test': True,
'to_addr1': '2000 Freight LTL Testing',
'to_city': 'Harrison',
'to_code': '72601',
'to_company': 'Test Qa',
'to_country': 'US',
'to_name': 'Jane Smith',
'to_phone': '8447630131',
'to_state': 'AR',
'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_PRIORITY",
"billing"=>
[{"type"=>"transportation",
"payment_type"=>"third_party",
"company"=>"Acme Inc.",
"account"=>"805222441",
"postal_code"=>"72601",
"country_code"=>"US",
"city"=>"Harrison",
"state"=>"AR",
"addr1"=>"2000 Freight LTL Testing"}],
"packages"=>
[{"description"=>"B48-48-16",
"weight"=>155.0,
"sub_packaging_type"=>"PALLET",
"freight_class"=>"70",
"pieces"=>1}],
"shipper"=>"Vendor - Harrison, AR",
"ship_contact"=>"John Doe",
"ship_addr1"=>"1202 Chalet Ln",
"ship_city"=>"Harrison",
"ship_state"=>"AR",
"ship_code"=>"72601",
"ship_country"=>"US",
"ship_phone"=>"8447630135",
"to_company"=>"Test Qa",
"to_name"=>"Jane Smith",
"to_addr1"=>"2000 Freight LTL Testing",
"to_city"=>"Harrison",
"to_state"=>"AR",
"to_code"=>"72601",
"to_country"=>"US",
"to_phone"=>"8447630131",
"packaging_type"=>"YOUR_PACKAGING",
"weight_unit"=>"LB",
"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_PRIORITY",
"billing": [
{
"type": "transportation",
"payment_type": "third_party",
"company": "Acme Inc.",
"account": "805222441",
"postal_code": "72601",
"country_code": "US",
"city": "Harrison",
"state": "AR",
"addr1": "2000 Freight LTL Testing"
}
],
"packages": [
{
"description": "B48-48-16",
"weight": 155.0,
"sub_packaging_type": "PALLET",
"freight_class": "70",
"pieces": 1
}
],
"shipper": "Vendor - Harrison, AR",
"ship_contact": "John Doe",
"ship_addr1": "1202 Chalet Ln",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"ship_phone": "8447630135",
"to_company": "Test Qa",
"to_name": "Jane Smith",
"to_addr1": "2000 Freight LTL Testing",
"to_city": "Harrison",
"to_state": "AR",
"to_code": "72601",
"to_country": "US",
"to_phone": "8447630131",
"packaging_type": "YOUR_PACKAGING",
"weight_unit": "LB",
"image_type": "PDF",
"test": true
}
}
)