{
"action": "SubmitShipment",
"carrier": "Purolator",
"params": {
"carrier": "Purolator",
"from_addr1": "1300 Kamato Road",
"from_city": "Mississauga",
"from_code": "L4W2N2",
"from_country": "CA",
"from_name": "Mississauga",
"from_phone": "19052121055",
"from_state": "ON",
"image_type": "PDF",
"length_unit": "CM",
"customs": [
{
"customs_quantity_units": "EA",
"customs_quantity": 1,
"customs_line_amount": 50.00,
"country_of_manufacture": "US",
"customs_weight": 2.5,
"customs_description": "My Description",
"commodity_code": "55"
}
],
"packages": [
{
"height": 11,
"length": 11,
"reference_code": "IN",
"reference_value": "1234567890 | CUST_NO | 4567890",
"weight": 0.5,
"width": 9
}
],
"residential": true,
"service": "PurolatorGroundU.S.",
"ship_addr1": "1300 Kamato Road",
"ship_city": "Mississauga",
"ship_code": "L4W2N2",
"ship_country": "CA",
"ship_name": "Mississauga",
"ship_phone": "19052121055",
"ship_state": "ON",
"shipment_description": "My Custom Text",
"shipper": "Mississauga",
"test": true,
"to_addr1": "2043 Forest Street",
"to_attention_name": "QC",
"to_city": "Jacksonville",
"to_code": "32204",
"to_company": "Urban Inspirations",
"to_country": "US",
"to_name": "US Jacksonville",
"to_phone": "9042887732",
"to_state": "FL",
"weight_unit": "KG"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'action' => 'SubmitShipment',
'carrier' => 'Purolator',
'params' =>
array (
'carrier' => 'Purolator',
'from_addr1' => '1300 Kamato Road',
'from_city' => 'Mississauga',
'from_code' => 'L4W2N2',
'from_country' => 'CA',
'from_name' => 'Mississauga',
'from_phone' => '19052121055',
'from_state' => 'ON',
'image_type' => 'PDF',
'length_unit' => 'CM',
'customs' =>
array (
0 =>
array (
'customs_quantity_units' => 'EA',
'customs_quantity' => 1,
'customs_line_amount' => 50.0,
'country_of_manufacture' => 'US',
'customs_weight' => 2.5,
'customs_description' => 'My Description',
'commodity_code' => '55',
),
),
'packages' =>
array (
0 =>
array (
'height' => 11,
'length' => 11,
'reference_code' => 'IN',
'reference_value' => '1234567890 | CUST_NO | 4567890',
'weight' => 0.5,
'width' => 9,
),
),
'residential' => true,
'service' => 'PurolatorGroundU.S.',
'ship_addr1' => '1300 Kamato Road',
'ship_city' => 'Mississauga',
'ship_code' => 'L4W2N2',
'ship_country' => 'CA',
'ship_name' => 'Mississauga',
'ship_phone' => '19052121055',
'ship_state' => 'ON',
'shipment_description' => 'My Custom Text',
'shipper' => 'Mississauga',
'test' => true,
'to_addr1' => '2043 Forest Street',
'to_attention_name' => 'QC',
'to_city' => 'Jacksonville',
'to_code' => '32204',
'to_company' => 'Urban Inspirations',
'to_country' => 'US',
'to_name' => 'US Jacksonville',
'to_phone' => '9042887732',
'to_state' => 'FL',
'weight_unit' => 'KG',
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'Purolator',
'params': {'carrier': 'Purolator',
'customs': [{'commodity_code': '55',
'country_of_manufacture': 'US',
'customs_description': 'My Description',
'customs_line_amount': 50.0,
'customs_quantity': 1,
'customs_quantity_units': 'EA',
'customs_weight': 2.5}],
'from_addr1': '1300 Kamato Road',
'from_city': 'Mississauga',
'from_code': 'L4W2N2',
'from_country': 'CA',
'from_name': 'Mississauga',
'from_phone': '19052121055',
'from_state': 'ON',
'image_type': 'PDF',
'length_unit': 'CM',
'packages': [{'height': 11,
'length': 11,
'reference_code': 'IN',
'reference_value': '1234567890 | CUST_NO | 4567890',
'weight': 0.5,
'width': 9}],
'residential': True,
'service': 'PurolatorGroundU.S.',
'ship_addr1': '1300 Kamato Road',
'ship_city': 'Mississauga',
'ship_code': 'L4W2N2',
'ship_country': 'CA',
'ship_name': 'Mississauga',
'ship_phone': '19052121055',
'ship_state': 'ON',
'shipment_description': 'My Custom Text',
'shipper': 'Mississauga',
'test': True,
'to_addr1': '2043 Forest Street',
'to_attention_name': 'QC',
'to_city': 'Jacksonville',
'to_code': '32204',
'to_company': 'Urban Inspirations',
'to_country': 'US',
'to_name': 'US Jacksonville',
'to_phone': '9042887732',
'to_state': 'FL',
'weight_unit': 'KG'}}
)
rs.request(
{"action"=>"SubmitShipment",
"carrier"=>"Purolator",
"params"=>
{"carrier"=>"Purolator",
"from_addr1"=>"1300 Kamato Road",
"from_city"=>"Mississauga",
"from_code"=>"L4W2N2",
"from_country"=>"CA",
"from_name"=>"Mississauga",
"from_phone"=>"19052121055",
"from_state"=>"ON",
"image_type"=>"PDF",
"length_unit"=>"CM",
"customs"=>
[{"customs_quantity_units"=>"EA",
"customs_quantity"=>1,
"customs_line_amount"=>50.0,
"country_of_manufacture"=>"US",
"customs_weight"=>2.5,
"customs_description"=>"My Description",
"commodity_code"=>"55"}],
"packages"=>
[{"height"=>11,
"length"=>11,
"reference_code"=>"IN",
"reference_value"=>"1234567890 | CUST_NO | 4567890",
"weight"=>0.5,
"width"=>9}],
"residential"=>true,
"service"=>"PurolatorGroundU.S.",
"ship_addr1"=>"1300 Kamato Road",
"ship_city"=>"Mississauga",
"ship_code"=>"L4W2N2",
"ship_country"=>"CA",
"ship_name"=>"Mississauga",
"ship_phone"=>"19052121055",
"ship_state"=>"ON",
"shipment_description"=>"My Custom Text",
"shipper"=>"Mississauga",
"test"=>true,
"to_addr1"=>"2043 Forest Street",
"to_attention_name"=>"QC",
"to_city"=>"Jacksonville",
"to_code"=>"32204",
"to_company"=>"Urban Inspirations",
"to_country"=>"US",
"to_name"=>"US Jacksonville",
"to_phone"=>"9042887732",
"to_state"=>"FL",
"weight_unit"=>"KG"}}
)
rocketshipit.request(
{
"action": "SubmitShipment",
"carrier": "Purolator",
"params": {
"carrier": "Purolator",
"from_addr1": "1300 Kamato Road",
"from_city": "Mississauga",
"from_code": "L4W2N2",
"from_country": "CA",
"from_name": "Mississauga",
"from_phone": "19052121055",
"from_state": "ON",
"image_type": "PDF",
"length_unit": "CM",
"customs": [
{
"customs_quantity_units": "EA",
"customs_quantity": 1,
"customs_line_amount": 50.00,
"country_of_manufacture": "US",
"customs_weight": 2.5,
"customs_description": "My Description",
"commodity_code": "55"
}
],
"packages": [
{
"height": 11,
"length": 11,
"reference_code": "IN",
"reference_value": "1234567890 | CUST_NO | 4567890",
"weight": 0.5,
"width": 9
}
],
"residential": true,
"service": "PurolatorGroundU.S.",
"ship_addr1": "1300 Kamato Road",
"ship_city": "Mississauga",
"ship_code": "L4W2N2",
"ship_country": "CA",
"ship_name": "Mississauga",
"ship_phone": "19052121055",
"ship_state": "ON",
"shipment_description": "My Custom Text",
"shipper": "Mississauga",
"test": true,
"to_addr1": "2043 Forest Street",
"to_attention_name": "QC",
"to_city": "Jacksonville",
"to_code": "32204",
"to_company": "Urban Inspirations",
"to_country": "US",
"to_name": "US Jacksonville",
"to_phone": "9042887732",
"to_state": "FL",
"weight_unit": "KG"
}
}
)