{
"carrier": "FedEx-REST",
"action": "SubmitShipment",
"params": {
"key": "your-key-from-authenticate-request",
"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-REST',
'action' => 'SubmitShipment',
'params' =>
array (
'key' => 'your-key-from-authenticate-request',
'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-REST',
'params': {'billing': [{'account': 'abc123',
'payment_type': 'collect',
'type': 'transportation'}],
'key': 'your-key-from-authenticate-request',
'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',
'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-REST",
"action"=>"SubmitShipment",
"params"=>
{"key"=>"your-key-from-authenticate-request",
"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-REST",
"action": "SubmitShipment",
"params": {
"key": "your-key-from-authenticate-request",
"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
}
}
)