{
"carrier": "stamps",
"action": "SubmitShipment",
"params": {
"username": "",
"password": "",
"packages": [
{
"weight": 5,
"length": 6,
"width": 7,
"height": 8,
"packaging_type": "Package"
}
],
"customs": [
{
"customs_description": "my shipment",
"customs_quantity": 1,
"customs_weight": 2.5,
"customs_value": 5.0,
"customs_hs_tariff": "",
"customs_origin_country": "US"
}
],
"customs_value": 200,
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "CPT JOHN DOE",
"to_addr1": "PSC 556 BOX 177",
"to_state": "AP",
"to_city": "APO",
"to_code": "96386",
"to_phone": "1231231234",
"to_country": "US",
"test": true,
"service": "US-PM",
"reference_value": "asdf",
"customs_content_type": "Commercial Sample"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'stamps',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => '',
'password' => '',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 6,
'width' => 7,
'height' => 8,
'packaging_type' => 'Package',
),
),
'customs' =>
array (
0 =>
array (
'customs_description' => 'my shipment',
'customs_quantity' => 1,
'customs_weight' => 2.5,
'customs_value' => 5.0,
'customs_hs_tariff' => '',
'customs_origin_country' => 'US',
),
),
'customs_value' => 200,
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_phone' => '1231231234',
'to_name' => 'CPT JOHN DOE',
'to_addr1' => 'PSC 556 BOX 177',
'to_state' => 'AP',
'to_city' => 'APO',
'to_code' => '96386',
'to_phone' => '1231231234',
'to_country' => 'US',
'test' => true,
'service' => 'US-PM',
'reference_value' => 'asdf',
'customs_content_type' => 'Commercial Sample',
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'stamps',
'params': {'customs': [{'customs_description': 'my shipment',
'customs_hs_tariff': '',
'customs_origin_country': 'US',
'customs_quantity': 1,
'customs_value': 5.0,
'customs_weight': 2.5}],
'customs_content_type': 'Commercial Sample',
'customs_value': 200,
'packages': [{'height': 8,
'length': 6,
'packaging_type': 'Package',
'weight': 5,
'width': 7}],
'password': '',
'reference_value': 'asdf',
'service': 'US-PM',
'ship_addr1': '123 Main St',
'ship_city': 'Whitehall',
'ship_code': '59759',
'ship_phone': '1231231234',
'ship_state': 'MT',
'shipper': 'RocketShipIt',
'test': True,
'to_addr1': 'PSC 556 BOX 177',
'to_city': 'APO',
'to_code': '96386',
'to_country': 'US',
'to_name': 'CPT JOHN DOE',
'to_phone': '1231231234',
'to_state': 'AP',
'username': ''}}
)
rs.request(
{"carrier"=>"stamps",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"",
"password"=>"",
"packages"=>
[{"weight"=>5,
"length"=>6,
"width"=>7,
"height"=>8,
"packaging_type"=>"Package"}],
"customs"=>
[{"customs_description"=>"my shipment",
"customs_quantity"=>1,
"customs_weight"=>2.5,
"customs_value"=>5.0,
"customs_hs_tariff"=>"",
"customs_origin_country"=>"US"}],
"customs_value"=>200,
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Whitehall",
"ship_state"=>"MT",
"ship_code"=>"59759",
"ship_phone"=>"1231231234",
"to_name"=>"CPT JOHN DOE",
"to_addr1"=>"PSC 556 BOX 177",
"to_state"=>"AP",
"to_city"=>"APO",
"to_code"=>"96386",
"to_phone"=>"1231231234",
"to_country"=>"US",
"test"=>true,
"service"=>"US-PM",
"reference_value"=>"asdf",
"customs_content_type"=>"Commercial Sample"}}
)
rocketshipit.request(
{
"carrier": "stamps",
"action": "SubmitShipment",
"params": {
"username": "",
"password": "",
"packages": [
{
"weight": 5,
"length": 6,
"width": 7,
"height": 8,
"packaging_type": "Package"
}
],
"customs": [
{
"customs_description": "my shipment",
"customs_quantity": 1,
"customs_weight": 2.5,
"customs_value": 5.0,
"customs_hs_tariff": "",
"customs_origin_country": "US"
}
],
"customs_value": 200,
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "CPT JOHN DOE",
"to_addr1": "PSC 556 BOX 177",
"to_state": "AP",
"to_city": "APO",
"to_code": "96386",
"to_phone": "1231231234",
"to_country": "US",
"test": true,
"service": "US-PM",
"reference_value": "asdf",
"customs_content_type": "Commercial Sample"
}
}
)