{
"carrier": "asendia",
"action": "GetAllRates",
"params": {
"key": "YOUR_ASENDIA_API_KEY",
"account_number": "YOUR_ASENDIA_ACCOUNT_NUMBER",
"username": "YOUR_ASENDIA_USERNAME",
"password": "YOUR_ASENDIA_PASSWORD",
"meter_number": "YOUR_ASENDIA_DATA_SOURCE",
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"ship_country": "US",
"to_country": "CA",
"to_code": "V4W1N7",
"weight_unit": "LBS",
"pickup_type": "01",
"length_unit": "IN",
"packaging_type": "02"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'asendia',
'action' => 'GetAllRates',
'params' =>
array (
'key' => 'YOUR_ASENDIA_API_KEY',
'account_number' => 'YOUR_ASENDIA_ACCOUNT_NUMBER',
'username' => 'YOUR_ASENDIA_USERNAME',
'password' => 'YOUR_ASENDIA_PASSWORD',
'meter_number' => 'YOUR_ASENDIA_DATA_SOURCE',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 5,
'width' => 5,
'height' => 5,
),
),
'ship_country' => 'US',
'to_country' => 'CA',
'to_code' => 'V4W1N7',
'weight_unit' => 'LBS',
'pickup_type' => '01',
'length_unit' => 'IN',
'packaging_type' => '02',
),
)
);
rs.request(
{'action': 'GetAllRates',
'carrier': 'asendia',
'params': {'account_number': 'YOUR_ASENDIA_ACCOUNT_NUMBER',
'key': 'YOUR_ASENDIA_API_KEY',
'length_unit': 'IN',
'meter_number': 'YOUR_ASENDIA_DATA_SOURCE',
'packages': [{'height': 5, 'length': 5, 'weight': 5, 'width': 5}],
'packaging_type': '02',
'password': 'YOUR_ASENDIA_PASSWORD',
'pickup_type': '01',
'ship_country': 'US',
'to_code': 'V4W1N7',
'to_country': 'CA',
'username': 'YOUR_ASENDIA_USERNAME',
'weight_unit': 'LBS'}}
)
rs.request(
{"carrier"=>"asendia",
"action"=>"GetAllRates",
"params"=>
{"key"=>"YOUR_ASENDIA_API_KEY",
"account_number"=>"YOUR_ASENDIA_ACCOUNT_NUMBER",
"username"=>"YOUR_ASENDIA_USERNAME",
"password"=>"YOUR_ASENDIA_PASSWORD",
"meter_number"=>"YOUR_ASENDIA_DATA_SOURCE",
"packages"=>[{"weight"=>5, "length"=>5, "width"=>5, "height"=>5}],
"ship_country"=>"US",
"to_country"=>"CA",
"to_code"=>"V4W1N7",
"weight_unit"=>"LBS",
"pickup_type"=>"01",
"length_unit"=>"IN",
"packaging_type"=>"02"}}
)
rocketshipit.request(
{
"carrier": "asendia",
"action": "GetAllRates",
"params": {
"key": "YOUR_ASENDIA_API_KEY",
"account_number": "YOUR_ASENDIA_ACCOUNT_NUMBER",
"username": "YOUR_ASENDIA_USERNAME",
"password": "YOUR_ASENDIA_PASSWORD",
"meter_number": "YOUR_ASENDIA_DATA_SOURCE",
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"ship_country": "US",
"to_country": "CA",
"to_code": "V4W1N7",
"weight_unit": "LBS",
"pickup_type": "01",
"length_unit": "IN",
"packaging_type": "02"
}
}
)