{
"carrier": "RXO",
"action": "submitshipment",
"params": {
"key": "YOUR_RXO_API_KEY",
"client_id": "YOUR_RXO_CLIENT_ID",
"client_secret": "YOUR_RXO_CLIENT_SECRET",
"scope": "YOUR_RXO_SCOPE",
"partner_code": "YOUR_RXO_PARTNER_CODE",
"rate_id": "QUOTE_ID_FROM_GETALLRATES",
"service": "LTL",
"packages": [
{
"description": "machine parts",
"packaging_type": "PALLET",
"sub_packaging_type": "BOX",
"pieces": 4,
"weight": 500,
"length": 48,
"width": 40,
"height": 36,
"freight_class": "70",
"insured_value": 1500,
"po_number": "PO1234"
}
],
"shipper": "RocketShipIt",
"ship_contact": "John Doe",
"ship_phone": "8705551234",
"ship_email": "[email protected]",
"ship_addr1": "1202 Chalet Ln",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"to_company": "ABC Widget Co",
"to_name": "Jane Smith",
"to_phone": "3305559876",
"to_email": "[email protected]",
"to_addr1": "1234 Main St",
"to_city": "Akron",
"to_state": "OH",
"to_code": "44333",
"to_country": "US",
"ship_date": "2026-12-15",
"weight_unit": "LB",
"length_unit": "IN",
"accessorials": ["LFD"],
"special_instructions": "Call before delivery"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'RXO',
'action' => 'submitshipment',
'params' =>
array (
'key' => 'YOUR_RXO_API_KEY',
'client_id' => 'YOUR_RXO_CLIENT_ID',
'client_secret' => 'YOUR_RXO_CLIENT_SECRET',
'scope' => 'YOUR_RXO_SCOPE',
'partner_code' => 'YOUR_RXO_PARTNER_CODE',
'rate_id' => 'QUOTE_ID_FROM_GETALLRATES',
'service' => 'LTL',
'packages' =>
array (
0 =>
array (
'description' => 'machine parts',
'packaging_type' => 'PALLET',
'sub_packaging_type' => 'BOX',
'pieces' => 4,
'weight' => 500,
'length' => 48,
'width' => 40,
'height' => 36,
'freight_class' => '70',
'insured_value' => 1500,
'po_number' => 'PO1234',
),
),
'shipper' => 'RocketShipIt',
'ship_contact' => 'John Doe',
'ship_phone' => '8705551234',
'ship_email' => '[email protected]',
'ship_addr1' => '1202 Chalet Ln',
'ship_city' => 'Harrison',
'ship_state' => 'AR',
'ship_code' => '72601',
'ship_country' => 'US',
'to_company' => 'ABC Widget Co',
'to_name' => 'Jane Smith',
'to_phone' => '3305559876',
'to_email' => '[email protected]',
'to_addr1' => '1234 Main St',
'to_city' => 'Akron',
'to_state' => 'OH',
'to_code' => '44333',
'to_country' => 'US',
'ship_date' => '2026-12-15',
'weight_unit' => 'LB',
'length_unit' => 'IN',
'accessorials' =>
array (
0 => 'LFD',
),
'special_instructions' => 'Call before delivery',
),
)
);
rs.request(
{'action': 'submitshipment',
'carrier': 'RXO',
'params': {'accessorials': ['LFD'],
'client_id': 'YOUR_RXO_CLIENT_ID',
'client_secret': 'YOUR_RXO_CLIENT_SECRET',
'key': 'YOUR_RXO_API_KEY',
'length_unit': 'IN',
'packages': [{'description': 'machine parts',
'freight_class': '70',
'height': 36,
'insured_value': 1500,
'length': 48,
'packaging_type': 'PALLET',
'pieces': 4,
'po_number': 'PO1234',
'sub_packaging_type': 'BOX',
'weight': 500,
'width': 40}],
'partner_code': 'YOUR_RXO_PARTNER_CODE',
'rate_id': 'QUOTE_ID_FROM_GETALLRATES',
'scope': 'YOUR_RXO_SCOPE',
'service': 'LTL',
'ship_addr1': '1202 Chalet Ln',
'ship_city': 'Harrison',
'ship_code': '72601',
'ship_contact': 'John Doe',
'ship_country': 'US',
'ship_date': '2026-12-15',
'ship_email': '[email protected]',
'ship_phone': '8705551234',
'ship_state': 'AR',
'shipper': 'RocketShipIt',
'special_instructions': 'Call before delivery',
'to_addr1': '1234 Main St',
'to_city': 'Akron',
'to_code': '44333',
'to_company': 'ABC Widget Co',
'to_country': 'US',
'to_email': '[email protected]',
'to_name': 'Jane Smith',
'to_phone': '3305559876',
'to_state': 'OH',
'weight_unit': 'LB'}}
)
rs.request(
{"carrier"=>"RXO",
"action"=>"submitshipment",
"params"=>
{"key"=>"YOUR_RXO_API_KEY",
"client_id"=>"YOUR_RXO_CLIENT_ID",
"client_secret"=>"YOUR_RXO_CLIENT_SECRET",
"scope"=>"YOUR_RXO_SCOPE",
"partner_code"=>"YOUR_RXO_PARTNER_CODE",
"rate_id"=>"QUOTE_ID_FROM_GETALLRATES",
"service"=>"LTL",
"packages"=>
[{"description"=>"machine parts",
"packaging_type"=>"PALLET",
"sub_packaging_type"=>"BOX",
"pieces"=>4,
"weight"=>500,
"length"=>48,
"width"=>40,
"height"=>36,
"freight_class"=>"70",
"insured_value"=>1500,
"po_number"=>"PO1234"}],
"shipper"=>"RocketShipIt",
"ship_contact"=>"John Doe",
"ship_phone"=>"8705551234",
"ship_email"=>"[email protected]",
"ship_addr1"=>"1202 Chalet Ln",
"ship_city"=>"Harrison",
"ship_state"=>"AR",
"ship_code"=>"72601",
"ship_country"=>"US",
"to_company"=>"ABC Widget Co",
"to_name"=>"Jane Smith",
"to_phone"=>"3305559876",
"to_email"=>"[email protected]",
"to_addr1"=>"1234 Main St",
"to_city"=>"Akron",
"to_state"=>"OH",
"to_code"=>"44333",
"to_country"=>"US",
"ship_date"=>"2026-12-15",
"weight_unit"=>"LB",
"length_unit"=>"IN",
"accessorials"=>["LFD"],
"special_instructions"=>"Call before delivery"}}
)
rocketshipit.request(
{
"carrier": "RXO",
"action": "submitshipment",
"params": {
"key": "YOUR_RXO_API_KEY",
"client_id": "YOUR_RXO_CLIENT_ID",
"client_secret": "YOUR_RXO_CLIENT_SECRET",
"scope": "YOUR_RXO_SCOPE",
"partner_code": "YOUR_RXO_PARTNER_CODE",
"rate_id": "QUOTE_ID_FROM_GETALLRATES",
"service": "LTL",
"packages": [
{
"description": "machine parts",
"packaging_type": "PALLET",
"sub_packaging_type": "BOX",
"pieces": 4,
"weight": 500,
"length": 48,
"width": 40,
"height": 36,
"freight_class": "70",
"insured_value": 1500,
"po_number": "PO1234"
}
],
"shipper": "RocketShipIt",
"ship_contact": "John Doe",
"ship_phone": "8705551234",
"ship_email": "[email protected]",
"ship_addr1": "1202 Chalet Ln",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"to_company": "ABC Widget Co",
"to_name": "Jane Smith",
"to_phone": "3305559876",
"to_email": "[email protected]",
"to_addr1": "1234 Main St",
"to_city": "Akron",
"to_state": "OH",
"to_code": "44333",
"to_country": "US",
"ship_date": "2026-12-15",
"weight_unit": "LB",
"length_unit": "IN",
"accessorials": ["LFD"],
"special_instructions": "Call before delivery"
}
}
)