{
"carrier": "OD",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"ship_email": "your@email.com",
"packages": [
{
"description": "This is a test shipment",
"weight": 200.00,
"length": 150,
"width": 90,
"height": 100,
"packaging_type": "skid",
"freight_class": "50",
"pieces": 10
}
],
"shipper": "Acme Company",
"ship_addr1": "1202 Chalet Ln",
"ship_addr2": "fake shipment",
"ship_city": "San Diego",
"ship_state": "CA",
"ship_code": "92101",
"ship_phone": "8705551234",
"to_name": "ABC Widget Co",
"to_addr1": "1234 Main St",
"to_addr2": "Suite 200",
"to_state": "OH",
"to_city": "Akron",
"to_code": "44333",
"to_phone": "1231231234",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'OD',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'ship_email' => 'your@email.com',
'packages' =>
array (
0 =>
array (
'description' => 'This is a test shipment',
'weight' => 200.0,
'length' => 150,
'width' => 90,
'height' => 100,
'packaging_type' => 'skid',
'freight_class' => '50',
'pieces' => 10,
),
),
'shipper' => 'Acme Company',
'ship_addr1' => '1202 Chalet Ln',
'ship_addr2' => 'fake shipment',
'ship_city' => 'San Diego',
'ship_state' => 'CA',
'ship_code' => '92101',
'ship_phone' => '8705551234',
'to_name' => 'ABC Widget Co',
'to_addr1' => '1234 Main St',
'to_addr2' => 'Suite 200',
'to_state' => 'OH',
'to_city' => 'Akron',
'to_code' => '44333',
'to_phone' => '1231231234',
'test' => true,
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'OD',
'params': {'packages': [{'description': 'This is a test shipment',
'freight_class': '50',
'height': 100,
'length': 150,
'packaging_type': 'skid',
'pieces': 10,
'weight': 200.0,
'width': 90}],
'password': 'YOUR_PASSWORD',
'ship_addr1': '1202 Chalet Ln',
'ship_addr2': 'fake shipment',
'ship_city': 'San Diego',
'ship_code': '92101',
'ship_email': 'your@email.com',
'ship_phone': '8705551234',
'ship_state': 'CA',
'shipper': 'Acme Company',
'test': True,
'to_addr1': '1234 Main St',
'to_addr2': 'Suite 200',
'to_city': 'Akron',
'to_code': '44333',
'to_name': 'ABC Widget Co',
'to_phone': '1231231234',
'to_state': 'OH',
'username': 'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"OD",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"ship_email"=>"your@email.com",
"packages"=>
[{"description"=>"This is a test shipment",
"weight"=>200.0,
"length"=>150,
"width"=>90,
"height"=>100,
"packaging_type"=>"skid",
"freight_class"=>"50",
"pieces"=>10}],
"shipper"=>"Acme Company",
"ship_addr1"=>"1202 Chalet Ln",
"ship_addr2"=>"fake shipment",
"ship_city"=>"San Diego",
"ship_state"=>"CA",
"ship_code"=>"92101",
"ship_phone"=>"8705551234",
"to_name"=>"ABC Widget Co",
"to_addr1"=>"1234 Main St",
"to_addr2"=>"Suite 200",
"to_state"=>"OH",
"to_city"=>"Akron",
"to_code"=>"44333",
"to_phone"=>"1231231234",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "OD",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"ship_email": "your@email.com",
"packages": [
{
"description": "This is a test shipment",
"weight": 200.00,
"length": 150,
"width": 90,
"height": 100,
"packaging_type": "skid",
"freight_class": "50",
"pieces": 10
}
],
"shipper": "Acme Company",
"ship_addr1": "1202 Chalet Ln",
"ship_addr2": "fake shipment",
"ship_city": "San Diego",
"ship_state": "CA",
"ship_code": "92101",
"ship_phone": "8705551234",
"to_name": "ABC Widget Co",
"to_addr1": "1234 Main St",
"to_addr2": "Suite 200",
"to_state": "OH",
"to_city": "Akron",
"to_code": "44333",
"to_phone": "1231231234",
"test": true
}
}
)