{
"carrier": "stamps",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"label_stock_type": "Normal4X6CP72",
"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": "Toronto Zoo",
"to_addr1": "2000 Meadowvale Road",
"to_state": "MB",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_phone": "1231231234",
"to_country": "CA",
"test": true,
"service": "US-PMI",
"reference_value": "asdf",
"customs_content_type": "Commercial Sample"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'stamps',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'label_stock_type' => 'Normal4X6CP72',
'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' => 'Toronto Zoo',
'to_addr1' => '2000 Meadowvale Road',
'to_state' => 'MB',
'to_city' => 'Toronto',
'to_code' => 'M1B5K7',
'to_phone' => '1231231234',
'to_country' => 'CA',
'test' => true,
'service' => 'US-PMI',
'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,
'label_stock_type': 'Normal4X6CP72',
'packages': [{'height': 8,
'length': 6,
'packaging_type': 'Package',
'weight': 5,
'width': 7}],
'password': 'YOUR_PASSWORD',
'reference_value': 'asdf',
'service': 'US-PMI',
'ship_addr1': '123 Main St',
'ship_city': 'Whitehall',
'ship_code': '59759',
'ship_phone': '1231231234',
'ship_state': 'MT',
'shipper': 'RocketShipIt',
'test': True,
'to_addr1': '2000 Meadowvale Road',
'to_city': 'Toronto',
'to_code': 'M1B5K7',
'to_country': 'CA',
'to_name': 'Toronto Zoo',
'to_phone': '1231231234',
'to_state': 'MB',
'username': 'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"stamps",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"label_stock_type"=>"Normal4X6CP72",
"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"=>"Toronto Zoo",
"to_addr1"=>"2000 Meadowvale Road",
"to_state"=>"MB",
"to_city"=>"Toronto",
"to_code"=>"M1B5K7",
"to_phone"=>"1231231234",
"to_country"=>"CA",
"test"=>true,
"service"=>"US-PMI",
"reference_value"=>"asdf",
"customs_content_type"=>"Commercial Sample"}}
)
rocketshipit.request(
{
"carrier": "stamps",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"label_stock_type": "Normal4X6CP72",
"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": "Toronto Zoo",
"to_addr1": "2000 Meadowvale Road",
"to_state": "MB",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_phone": "1231231234",
"to_country": "CA",
"test": true,
"service": "US-PMI",
"reference_value": "asdf",
"customs_content_type": "Commercial Sample"
}
}
)