{
"carrier": "FedEx-REST",
"action": "SubmitShipment",
"params": {
"test": true,
"key": "your-key-from-authenticate-request",
"currency": "CAD",
"packages": [
{
"weight": 5,
"length": 1,
"width": 1,
"height": 1
},
{
"weight": 5,
"length": 1,
"width": 1,
"height": 1
}
],
"customs": [
{
"customs_quantity_units": "EA",
"customs_quantity": 1,
"customs_line_amount": 50.00,
"country_of_manufacture": "US",
"customs_weight": 2.5,
"customs_description": "My Description"
}
],
"sold_company": "Acme Inc.",
"sold_name": "John Doe",
"sold_tax_id": "123abc",
"sold_phone": "1231231234",
"sold_addr1": "2000 Meadowvale Rd",
"sold_city": "Toronto",
"sold_state": "ON",
"sold_code": "M1B5K7",
"sold_country": "CA",
"service": "INTERNATIONAL_PRIORITY",
"shipper": "John Doe",
"ship_contact": "John Doe",
"ship_addr1": "2000 Meadowvale Rd",
"ship_city": "Toronto",
"ship_state": "ON",
"ship_code": "M1B5K7",
"ship_country": "CA",
"ship_phone": "1231231234",
"to_attention_name": "John Doe",
"to_name": "John Doe",
"to_addr1": "2300 Southern Blvd",
"to_state": "NY",
"to_city": "Bronx",
"to_code": "10460",
"to_country": "US",
"to_phone": "1231231234",
"image_type": "PNG",
"shipment_description": "xxx",
"packaging_type": "YOUR_PACKAGING",
"pickup_type": "02",
"weight_unit": "LB",
"length_unit": "IN"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx-REST',
'action' => 'SubmitShipment',
'params' =>
array (
'test' => true,
'key' => 'your-key-from-authenticate-request',
'currency' => 'CAD',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 1,
'width' => 1,
'height' => 1,
),
1 =>
array (
'weight' => 5,
'length' => 1,
'width' => 1,
'height' => 1,
),
),
'customs' =>
array (
0 =>
array (
'customs_quantity_units' => 'EA',
'customs_quantity' => 1,
'customs_line_amount' => 50.0,
'country_of_manufacture' => 'US',
'customs_weight' => 2.5,
'customs_description' => 'My Description',
),
),
'sold_company' => 'Acme Inc.',
'sold_name' => 'John Doe',
'sold_tax_id' => '123abc',
'sold_phone' => '1231231234',
'sold_addr1' => '2000 Meadowvale Rd',
'sold_city' => 'Toronto',
'sold_state' => 'ON',
'sold_code' => 'M1B5K7',
'sold_country' => 'CA',
'service' => 'INTERNATIONAL_PRIORITY',
'shipper' => 'John Doe',
'ship_contact' => 'John Doe',
'ship_addr1' => '2000 Meadowvale Rd',
'ship_city' => 'Toronto',
'ship_state' => 'ON',
'ship_code' => 'M1B5K7',
'ship_country' => 'CA',
'ship_phone' => '1231231234',
'to_attention_name' => 'John Doe',
'to_name' => 'John Doe',
'to_addr1' => '2300 Southern Blvd',
'to_state' => 'NY',
'to_city' => 'Bronx',
'to_code' => '10460',
'to_country' => 'US',
'to_phone' => '1231231234',
'image_type' => 'PNG',
'shipment_description' => 'xxx',
'packaging_type' => 'YOUR_PACKAGING',
'pickup_type' => '02',
'weight_unit' => 'LB',
'length_unit' => 'IN',
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'FedEx-REST',
'params': {'currency': 'CAD',
'customs': [{'country_of_manufacture': 'US',
'customs_description': 'My Description',
'customs_line_amount': 50.0,
'customs_quantity': 1,
'customs_quantity_units': 'EA',
'customs_weight': 2.5}],
'image_type': 'PNG',
'key': 'your-key-from-authenticate-request',
'length_unit': 'IN',
'packages': [{'height': 1, 'length': 1, 'weight': 5, 'width': 1},
{'height': 1, 'length': 1, 'weight': 5, 'width': 1}],
'packaging_type': 'YOUR_PACKAGING',
'pickup_type': '02',
'service': 'INTERNATIONAL_PRIORITY',
'ship_addr1': '2000 Meadowvale Rd',
'ship_city': 'Toronto',
'ship_code': 'M1B5K7',
'ship_contact': 'John Doe',
'ship_country': 'CA',
'ship_phone': '1231231234',
'ship_state': 'ON',
'shipment_description': 'xxx',
'shipper': 'John Doe',
'sold_addr1': '2000 Meadowvale Rd',
'sold_city': 'Toronto',
'sold_code': 'M1B5K7',
'sold_company': 'Acme Inc.',
'sold_country': 'CA',
'sold_name': 'John Doe',
'sold_phone': '1231231234',
'sold_state': 'ON',
'sold_tax_id': '123abc',
'test': True,
'to_addr1': '2300 Southern Blvd',
'to_attention_name': 'John Doe',
'to_city': 'Bronx',
'to_code': '10460',
'to_country': 'US',
'to_name': 'John Doe',
'to_phone': '1231231234',
'to_state': 'NY',
'weight_unit': 'LB'}}
)
rs.request(
{"carrier"=>"FedEx-REST",
"action"=>"SubmitShipment",
"params"=>
{"test"=>true,
"key"=>"your-key-from-authenticate-request",
"currency"=>"CAD",
"packages"=>
[{"weight"=>5, "length"=>1, "width"=>1, "height"=>1},
{"weight"=>5, "length"=>1, "width"=>1, "height"=>1}],
"customs"=>
[{"customs_quantity_units"=>"EA",
"customs_quantity"=>1,
"customs_line_amount"=>50.0,
"country_of_manufacture"=>"US",
"customs_weight"=>2.5,
"customs_description"=>"My Description"}],
"sold_company"=>"Acme Inc.",
"sold_name"=>"John Doe",
"sold_tax_id"=>"123abc",
"sold_phone"=>"1231231234",
"sold_addr1"=>"2000 Meadowvale Rd",
"sold_city"=>"Toronto",
"sold_state"=>"ON",
"sold_code"=>"M1B5K7",
"sold_country"=>"CA",
"service"=>"INTERNATIONAL_PRIORITY",
"shipper"=>"John Doe",
"ship_contact"=>"John Doe",
"ship_addr1"=>"2000 Meadowvale Rd",
"ship_city"=>"Toronto",
"ship_state"=>"ON",
"ship_code"=>"M1B5K7",
"ship_country"=>"CA",
"ship_phone"=>"1231231234",
"to_attention_name"=>"John Doe",
"to_name"=>"John Doe",
"to_addr1"=>"2300 Southern Blvd",
"to_state"=>"NY",
"to_city"=>"Bronx",
"to_code"=>"10460",
"to_country"=>"US",
"to_phone"=>"1231231234",
"image_type"=>"PNG",
"shipment_description"=>"xxx",
"packaging_type"=>"YOUR_PACKAGING",
"pickup_type"=>"02",
"weight_unit"=>"LB",
"length_unit"=>"IN"}}
)
rocketshipit.request(
{
"carrier": "FedEx-REST",
"action": "SubmitShipment",
"params": {
"test": true,
"key": "your-key-from-authenticate-request",
"currency": "CAD",
"packages": [
{
"weight": 5,
"length": 1,
"width": 1,
"height": 1
},
{
"weight": 5,
"length": 1,
"width": 1,
"height": 1
}
],
"customs": [
{
"customs_quantity_units": "EA",
"customs_quantity": 1,
"customs_line_amount": 50.00,
"country_of_manufacture": "US",
"customs_weight": 2.5,
"customs_description": "My Description"
}
],
"sold_company": "Acme Inc.",
"sold_name": "John Doe",
"sold_tax_id": "123abc",
"sold_phone": "1231231234",
"sold_addr1": "2000 Meadowvale Rd",
"sold_city": "Toronto",
"sold_state": "ON",
"sold_code": "M1B5K7",
"sold_country": "CA",
"service": "INTERNATIONAL_PRIORITY",
"shipper": "John Doe",
"ship_contact": "John Doe",
"ship_addr1": "2000 Meadowvale Rd",
"ship_city": "Toronto",
"ship_state": "ON",
"ship_code": "M1B5K7",
"ship_country": "CA",
"ship_phone": "1231231234",
"to_attention_name": "John Doe",
"to_name": "John Doe",
"to_addr1": "2300 Southern Blvd",
"to_state": "NY",
"to_city": "Bronx",
"to_code": "10460",
"to_country": "US",
"to_phone": "1231231234",
"image_type": "PNG",
"shipment_description": "xxx",
"packaging_type": "YOUR_PACKAGING",
"pickup_type": "02",
"weight_unit": "LB",
"length_unit": "IN"
}
}
)