{
"carrier": "UPS",
"action": "GetAllRates",
"params": {
"password": "YOUR_PASSWORD",
"username": "YOUR_USERNAME",
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5,
"additional_handling": true
}
],
"test": true,
"residential": true,
"customs": [],
"shipper": "RocketShipIt",
"account_number": "YOUR_ACCOUNT_NUMBER",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_country": "US",
"to_country": "US",
"to_code": "90210",
"weight_unit": "LBS",
"pickup_type": "01",
"customer_classification": "01",
"length_unit": "IN",
"key": "YOUR_KEY",
"packaging_type": "02"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'UPS',
'action' => 'GetAllRates',
'params' =>
array (
'password' => 'YOUR_PASSWORD',
'username' => 'YOUR_USERNAME',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 5,
'width' => 5,
'height' => 5,
'additional_handling' => true,
),
),
'test' => true,
'residential' => true,
'customs' =>
array (
),
'shipper' => 'RocketShipIt',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_country' => 'US',
'to_country' => 'US',
'to_code' => '90210',
'weight_unit' => 'LBS',
'pickup_type' => '01',
'customer_classification' => '01',
'length_unit' => 'IN',
'key' => 'YOUR_KEY',
'packaging_type' => '02',
),
)
);
rs.request(
{'action': 'GetAllRates',
'carrier': 'UPS',
'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
'customer_classification': '01',
'customs': [],
'key': 'YOUR_KEY',
'length_unit': 'IN',
'packages': [{'additional_handling': True,
'height': 5,
'length': 5,
'weight': 5,
'width': 5}],
'packaging_type': '02',
'password': 'YOUR_PASSWORD',
'pickup_type': '01',
'residential': True,
'ship_addr1': '123 Main St',
'ship_city': 'Whitehall',
'ship_code': '59759',
'ship_country': 'US',
'ship_state': 'MT',
'shipper': 'RocketShipIt',
'test': True,
'to_code': '90210',
'to_country': 'US',
'username': 'YOUR_USERNAME',
'weight_unit': 'LBS'}}
)
rs.request(
{"carrier"=>"UPS",
"action"=>"GetAllRates",
"params"=>
{"password"=>"YOUR_PASSWORD",
"username"=>"YOUR_USERNAME",
"packages"=>
[{"weight"=>5,
"length"=>5,
"width"=>5,
"height"=>5,
"additional_handling"=>true}],
"test"=>true,
"residential"=>true,
"customs"=>[],
"shipper"=>"RocketShipIt",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Whitehall",
"ship_state"=>"MT",
"ship_code"=>"59759",
"ship_country"=>"US",
"to_country"=>"US",
"to_code"=>"90210",
"weight_unit"=>"LBS",
"pickup_type"=>"01",
"customer_classification"=>"01",
"length_unit"=>"IN",
"key"=>"YOUR_KEY",
"packaging_type"=>"02"}}
)
rocketshipit.request(
{
"carrier": "UPS",
"action": "GetAllRates",
"params": {
"password": "YOUR_PASSWORD",
"username": "YOUR_USERNAME",
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5,
"additional_handling": true
}
],
"test": true,
"residential": true,
"customs": [],
"shipper": "RocketShipIt",
"account_number": "YOUR_ACCOUNT_NUMBER",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_country": "US",
"to_country": "US",
"to_code": "90210",
"weight_unit": "LBS",
"pickup_type": "01",
"customer_classification": "01",
"length_unit": "IN",
"key": "YOUR_KEY",
"packaging_type": "02"
}
}
)