Examples
Amazon MWS - Rates
{
"carrier": "amazon-mws",
"action": "GetAllRates",
"params": {
"key": "YOUR_SELLER_ID",
"username": "YOUR_ACCESS_KEY_ID",
"password": "YOUR_SECRET_KEY",
"order": {
"id": "111-7676169-9674624",
"items": [
{
"id": "28367575711066",
"quantity": 1
}
]
},
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_country": "US",
"ship_email": "john@doe.com",
"ship_phone": "1231231234",
"weight_unit": "oz"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'amazon-mws',
'action' => 'GetAllRates',
'params' =>
array (
'key' => 'YOUR_SELLER_ID',
'username' => 'YOUR_ACCESS_KEY_ID',
'password' => 'YOUR_SECRET_KEY',
'order' =>
array (
'id' => '111-7676169-9674624',
'items' =>
array (
0 =>
array (
'id' => '28367575711066',
'quantity' => 1,
),
),
),
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 5,
'width' => 5,
'height' => 5,
),
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_country' => 'US',
'ship_email' => 'john@doe.com',
'ship_phone' => '1231231234',
'weight_unit' => 'oz',
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'amazon-mws',
u'params': {u'key': u'YOUR_SELLER_ID',
u'order': {u'id': u'111-7676169-9674624',
u'items': [{u'id': u'28367575711066',
u'quantity': 1}]},
u'packages': [{u'height': 5,
u'length': 5,
u'weight': 5,
u'width': 5}],
u'password': u'YOUR_SECRET_KEY',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Whitehall',
u'ship_code': u'59759',
u'ship_country': u'US',
u'ship_email': u'john@doe.com',
u'ship_phone': u'1231231234',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
u'username': u'YOUR_ACCESS_KEY_ID',
u'weight_unit': u'oz'}}
)
rs.request(
{"carrier"=>"amazon-mws",
"action"=>"GetAllRates",
"params"=>
{"key"=>"YOUR_SELLER_ID",
"username"=>"YOUR_ACCESS_KEY_ID",
"password"=>"YOUR_SECRET_KEY",
"order"=>
{"id"=>"111-7676169-9674624",
"items"=>[{"id"=>"28367575711066", "quantity"=>1}]},
"packages"=>[{"weight"=>5, "length"=>5, "width"=>5, "height"=>5}],
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Whitehall",
"ship_state"=>"MT",
"ship_code"=>"59759",
"ship_country"=>"US",
"ship_email"=>"john@doe.com",
"ship_phone"=>"1231231234",
"weight_unit"=>"oz"}}
)
rocketshipit.request(
{
"carrier": "amazon-mws",
"action": "GetAllRates",
"params": {
"key": "YOUR_SELLER_ID",
"username": "YOUR_ACCESS_KEY_ID",
"password": "YOUR_SECRET_KEY",
"order": {
"id": "111-7676169-9674624",
"items": [
{
"id": "28367575711066",
"quantity": 1
}
]
},
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_country": "US",
"ship_email": "john@doe.com",
"ship_phone": "1231231234",
"weight_unit": "oz"
}
}
)
Asendia - Rates
{
"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(
{u'action': u'GetAllRates',
u'carrier': u'asendia',
u'params': {u'account_number': u'YOUR_ASENDIA_ACCOUNT_NUMBER',
u'key': u'YOUR_ASENDIA_API_KEY',
u'length_unit': u'IN',
u'meter_number': u'YOUR_ASENDIA_DATA_SOURCE',
u'packages': [{u'height': 5,
u'length': 5,
u'weight': 5,
u'width': 5}],
u'packaging_type': u'02',
u'password': u'YOUR_ASENDIA_PASSWORD',
u'pickup_type': u'01',
u'ship_country': u'US',
u'to_code': u'V4W1N7',
u'to_country': u'CA',
u'username': u'YOUR_ASENDIA_USERNAME',
u'weight_unit': u'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"
}
}
)
Batch Request - UPS, FedEx, USPS Rates
{
"batch": [
{
"request_id": "UPS Rates",
"request": {
"carrier": "UPS",
"action": "GetAllRates",
"params": {
"key": "YOUR_UPS_API_KEY",
"account_number": "YOUR_ACCOUNT_NUMBER",
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"customs": [],
"shipper": "RocketShipIt",
"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",
"packaging_type": "02"
}
}
},
{
"request_id": "USPS Rates",
"request": {
"carrier": "USPS",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"packages": [
{
"weight": 6
}
],
"ship_code": "59759",
"to_code": "90210"
}
}
},
{
"request_id": "FedEx Rates",
"request": {
"carrier": "FedEx",
"action": "GetAllRates",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 2
}
],
"customs": [],
"shipper": "RocketShipIt",
"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": "LB",
"packaging_type": "YOUR_PACKAGING",
"dropoff_type": "REGULAR_PICKUP",
"test": true,
"negotiated_rates": true
}
}
}
]
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'batch' =>
array (
0 =>
array (
'request_id' => 'UPS Rates',
'request' =>
array (
'carrier' => 'UPS',
'action' => 'GetAllRates',
'params' =>
array (
'key' => 'YOUR_UPS_API_KEY',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 5,
'width' => 5,
'height' => 5,
),
),
'customs' =>
array (
),
'shipper' => 'RocketShipIt',
'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',
'packaging_type' => '02',
),
),
),
1 =>
array (
'request_id' => 'USPS Rates',
'request' =>
array (
'carrier' => 'USPS',
'action' => 'GetAllRates',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'packages' =>
array (
0 =>
array (
'weight' => 6,
),
),
'ship_code' => '59759',
'to_code' => '90210',
),
),
),
2 =>
array (
'request_id' => 'FedEx Rates',
'request' =>
array (
'carrier' => 'FedEx',
'action' => 'GetAllRates',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 2,
),
),
'customs' =>
array (
),
'shipper' => 'RocketShipIt',
'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' => 'LB',
'packaging_type' => 'YOUR_PACKAGING',
'dropoff_type' => 'REGULAR_PICKUP',
'test' => true,
'negotiated_rates' => true,
),
),
),
),
)
);
rs.request(
{u'batch': [{u'request': {u'action': u'GetAllRates',
u'carrier': u'UPS',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'customer_classification': u'01',
u'customs': [],
u'key': u'YOUR_UPS_API_KEY',
u'length_unit': u'IN',
u'packages': [{u'height': 5,
u'length': 5,
u'weight': 5,
u'width': 5}],
u'packaging_type': u'02',
u'password': u'YOUR_PASSWORD',
u'pickup_type': u'01',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Whitehall',
u'ship_code': u'59759',
u'ship_country': u'US',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
u'to_code': u'90210',
u'to_country': u'US',
u'username': u'YOUR_USERNAME',
u'weight_unit': u'LBS'}},
u'request_id': u'UPS Rates'},
{u'request': {u'action': u'GetAllRates',
u'carrier': u'USPS',
u'params': {u'packages': [{u'weight': 6}],
u'ship_code': u'59759',
u'to_code': u'90210',
u'username': u'YOUR_USERNAME'}},
u'request_id': u'USPS Rates'},
{u'request': {u'action': u'GetAllRates',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'customs': [],
u'dropoff_type': u'REGULAR_PICKUP',
u'key': u'YOUR_KEY',
u'meter_number': u'YOUR_METER_NUMBER',
u'negotiated_rates': True,
u'packages': [{u'weight': 2}],
u'packaging_type': u'YOUR_PACKAGING',
u'password': u'YOUR_PASSWORD',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Whitehall',
u'ship_code': u'59759',
u'ship_country': u'US',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_code': u'90210',
u'to_country': u'US',
u'weight_unit': u'LB'}},
u'request_id': u'FedEx Rates'}]}
)
rs.request(
{"batch"=>
[{"request_id"=>"UPS Rates",
"request"=>
{"carrier"=>"UPS",
"action"=>"GetAllRates",
"params"=>
{"key"=>"YOUR_UPS_API_KEY",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"packages"=>[{"weight"=>5, "length"=>5, "width"=>5, "height"=>5}],
"customs"=>[],
"shipper"=>"RocketShipIt",
"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",
"packaging_type"=>"02"}}},
{"request_id"=>"USPS Rates",
"request"=>
{"carrier"=>"USPS",
"action"=>"GetAllRates",
"params"=>
{"username"=>"YOUR_USERNAME",
"packages"=>[{"weight"=>6}],
"ship_code"=>"59759",
"to_code"=>"90210"}}},
{"request_id"=>"FedEx Rates",
"request"=>
{"carrier"=>"FedEx",
"action"=>"GetAllRates",
"params"=>
{"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"packages"=>[{"weight"=>2}],
"customs"=>[],
"shipper"=>"RocketShipIt",
"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"=>"LB",
"packaging_type"=>"YOUR_PACKAGING",
"dropoff_type"=>"REGULAR_PICKUP",
"test"=>true,
"negotiated_rates"=>true}}}]}
)
rocketshipit.request(
{
"batch": [
{
"request_id": "UPS Rates",
"request": {
"carrier": "UPS",
"action": "GetAllRates",
"params": {
"key": "YOUR_UPS_API_KEY",
"account_number": "YOUR_ACCOUNT_NUMBER",
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"customs": [],
"shipper": "RocketShipIt",
"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",
"packaging_type": "02"
}
}
},
{
"request_id": "USPS Rates",
"request": {
"carrier": "USPS",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"packages": [
{
"weight": 6
}
],
"ship_code": "59759",
"to_code": "90210"
}
}
},
{
"request_id": "FedEx Rates",
"request": {
"carrier": "FedEx",
"action": "GetAllRates",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 2
}
],
"customs": [],
"shipper": "RocketShipIt",
"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": "LB",
"packaging_type": "YOUR_PACKAGING",
"dropoff_type": "REGULAR_PICKUP",
"test": true,
"negotiated_rates": true
}
}
}
]
}
)
Canada Post - Create Manifest
{
"carrier": "Canada",
"action": "CreateManifest",
"params": {
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"group_ids": [
"5432",
"1234"
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"image_type": "PDF",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'Canada',
'action' => 'CreateManifest',
'params' =>
array (
'contract_id' => '42708517',
'username' => '6e93d53968881714',
'password' => '0bfa9fcb9853d1f51ee57a',
'account_number' => '2004381',
'group_ids' =>
array (
0 => '5432',
1 => '1234',
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Ottawa',
'ship_state' => 'ON',
'ship_code' => 'K1A0B1',
'ship_phone' => '1231231234',
'ship_country' => 'CA',
'image_type' => 'PDF',
'test' => true,
),
)
);
rs.request(
{u'action': u'CreateManifest',
u'carrier': u'Canada',
u'params': {u'account_number': u'2004381',
u'contract_id': u'42708517',
u'group_ids': [u'5432', u'1234'],
u'image_type': u'PDF',
u'password': u'0bfa9fcb9853d1f51ee57a',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Ottawa',
u'ship_code': u'K1A0B1',
u'ship_country': u'CA',
u'ship_phone': u'1231231234',
u'ship_state': u'ON',
u'shipper': u'RocketShipIt',
u'test': True,
u'username': u'6e93d53968881714'}}
)
rs.request(
{"carrier"=>"Canada",
"action"=>"CreateManifest",
"params"=>
{"contract_id"=>"42708517",
"username"=>"6e93d53968881714",
"password"=>"0bfa9fcb9853d1f51ee57a",
"account_number"=>"2004381",
"group_ids"=>["5432", "1234"],
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Ottawa",
"ship_state"=>"ON",
"ship_code"=>"K1A0B1",
"ship_phone"=>"1231231234",
"ship_country"=>"CA",
"image_type"=>"PDF",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "Canada",
"action": "CreateManifest",
"params": {
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"group_ids": [
"5432",
"1234"
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"image_type": "PDF",
"test": true
}
}
)
Canada Post - Label
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'SubmitShipment',
'params' =>
array (
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 5,
'height' => 5,
),
),
'service' => 'DOM.EP',
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Ottawa',
'ship_state' => 'ON',
'ship_code' => 'K1A0B1',
'ship_phone' => '1231231234',
'ship_country' => 'US',
'to_name' => 'John Doe',
'to_addr1' => '361A Old Finch Avenue',
'to_addr2' => '#103',
'to_state' => 'ON',
'to_city' => 'Toronto',
'to_code' => 'M1B5K7',
'to_country' => 'CA',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'canada',
u'params': {u'packages': [{u'height': 5,
u'length': 7,
u'weight': 4,
u'width': 5}],
u'service': u'DOM.EP',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Ottawa',
u'ship_code': u'K1A0B1',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'ON',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'361A Old Finch Avenue',
u'to_addr2': u'#103',
u'to_city': u'Toronto',
u'to_code': u'M1B5K7',
u'to_country': u'CA',
u'to_name': u'John Doe',
u'to_state': u'ON'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"SubmitShipment",
"params"=>
{"packages"=>[{"weight"=>4, "length"=>7, "width"=>5, "height"=>5}],
"service"=>"DOM.EP",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Ottawa",
"ship_state"=>"ON",
"ship_code"=>"K1A0B1",
"ship_phone"=>"1231231234",
"ship_country"=>"US",
"to_name"=>"John Doe",
"to_addr1"=>"361A Old Finch Avenue",
"to_addr2"=>"#103",
"to_state"=>"ON",
"to_city"=>"Toronto",
"to_code"=>"M1B5K7",
"to_country"=>"CA",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
)
Canada Post - Label International
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"test": true,
"reason_for_export": "SOG",
"customs": [
{
"customs_description": "books",
"customs_weight": 4,
"customs_quantity": 2,
"customs_line_amount": 10.00,
"customs_quantity_units": "EA"
}
],
"packages": [
{
"weight": 30,
"length": 7,
"width": 5,
"height": 5
}
],
"service": "USA.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_phone": "123-123-1234",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'test' => true,
'reason_for_export' => 'SOG',
'customs' =>
array (
0 =>
array (
'customs_description' => 'books',
'customs_weight' => 4,
'customs_quantity' => 2,
'customs_line_amount' => 10.0,
'customs_quantity_units' => 'EA',
),
),
'packages' =>
array (
0 =>
array (
'weight' => 30,
'length' => 7,
'width' => 5,
'height' => 5,
),
),
'service' => 'USA.EP',
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Ottawa',
'ship_state' => 'ON',
'ship_code' => 'K1A0B1',
'ship_phone' => '1231231234',
'ship_country' => 'CA',
'to_phone' => '123-123-1234',
'to_name' => 'John Doe',
'to_addr1' => '940 Presidio Ave',
'to_addr2' => '103',
'to_state' => 'CA',
'to_city' => 'San Francisco',
'to_code' => '94115',
'to_country' => 'US',
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'canada',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'customs': [{u'customs_description': u'books',
u'customs_line_amount': 10.0,
u'customs_quantity': 2,
u'customs_quantity_units': u'EA',
u'customs_weight': 4}],
u'packages': [{u'height': 5,
u'length': 7,
u'weight': 30,
u'width': 5}],
u'password': u'YOUR_PASSWORD',
u'reason_for_export': u'SOG',
u'service': u'USA.EP',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Ottawa',
u'ship_code': u'K1A0B1',
u'ship_country': u'CA',
u'ship_phone': u'1231231234',
u'ship_state': u'ON',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'940 Presidio Ave',
u'to_addr2': u'103',
u'to_city': u'San Francisco',
u'to_code': u'94115',
u'to_country': u'US',
u'to_name': u'John Doe',
u'to_phone': u'123-123-1234',
u'to_state': u'CA',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"test"=>true,
"reason_for_export"=>"SOG",
"customs"=>
[{"customs_description"=>"books",
"customs_weight"=>4,
"customs_quantity"=>2,
"customs_line_amount"=>10.0,
"customs_quantity_units"=>"EA"}],
"packages"=>[{"weight"=>30, "length"=>7, "width"=>5, "height"=>5}],
"service"=>"USA.EP",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Ottawa",
"ship_state"=>"ON",
"ship_code"=>"K1A0B1",
"ship_phone"=>"1231231234",
"ship_country"=>"CA",
"to_phone"=>"123-123-1234",
"to_name"=>"John Doe",
"to_addr1"=>"940 Presidio Ave",
"to_addr2"=>"103",
"to_state"=>"CA",
"to_city"=>"San Francisco",
"to_code"=>"94115",
"to_country"=>"US"}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"test": true,
"reason_for_export": "SOG",
"customs": [
{
"customs_description": "books",
"customs_weight": 4,
"customs_quantity": 2,
"customs_line_amount": 10.00,
"customs_quantity_units": "EA"
}
],
"packages": [
{
"weight": 30,
"length": 7,
"width": 5,
"height": 5
}
],
"service": "USA.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_phone": "123-123-1234",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US"
}
}
)
Canada Post - Label Return
{
"carrier": "Canada",
"action": "SubmitShipment",
"params": {
"username": "YOUR_URSERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"return_code": "PRINT_RETURN_LABEL",
"service": "DOM.EP",
"packages": [
{
"weight": 2
}
],
"ship_name": "Jane Doe Returner",
"shipper": "Capsule Corp.",
"ship_addr1": "2701 Return Avenue",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_country": "CA",
"to_name": "John Doe",
"to_company": "Receiver of Return",
"to_addr1": "2701 Riverside Drive",
"to_state": "ON",
"to_city": "Ottawa",
"to_code": "K1A0B1",
"to_country": "CA",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'Canada',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_URSERNAME',
'password' => 'YOUR_PASSWORD',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'return_code' => 'PRINT_RETURN_LABEL',
'service' => 'DOM.EP',
'packages' =>
array (
0 =>
array (
'weight' => 2,
),
),
'ship_name' => 'Jane Doe Returner',
'shipper' => 'Capsule Corp.',
'ship_addr1' => '2701 Return Avenue',
'ship_city' => 'Ottawa',
'ship_state' => 'ON',
'ship_code' => 'K1A0B1',
'ship_country' => 'CA',
'to_name' => 'John Doe',
'to_company' => 'Receiver of Return',
'to_addr1' => '2701 Riverside Drive',
'to_state' => 'ON',
'to_city' => 'Ottawa',
'to_code' => 'K1A0B1',
'to_country' => 'CA',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'Canada',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'packages': [{u'weight': 2}],
u'password': u'YOUR_PASSWORD',
u'return_code': u'PRINT_RETURN_LABEL',
u'service': u'DOM.EP',
u'ship_addr1': u'2701 Return Avenue',
u'ship_city': u'Ottawa',
u'ship_code': u'K1A0B1',
u'ship_country': u'CA',
u'ship_name': u'Jane Doe Returner',
u'ship_state': u'ON',
u'shipper': u'Capsule Corp.',
u'test': True,
u'to_addr1': u'2701 Riverside Drive',
u'to_city': u'Ottawa',
u'to_code': u'K1A0B1',
u'to_company': u'Receiver of Return',
u'to_country': u'CA',
u'to_name': u'John Doe',
u'to_state': u'ON',
u'username': u'YOUR_URSERNAME'}}
)
rs.request(
{"carrier"=>"Canada",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_URSERNAME",
"password"=>"YOUR_PASSWORD",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"return_code"=>"PRINT_RETURN_LABEL",
"service"=>"DOM.EP",
"packages"=>[{"weight"=>2}],
"ship_name"=>"Jane Doe Returner",
"shipper"=>"Capsule Corp.",
"ship_addr1"=>"2701 Return Avenue",
"ship_city"=>"Ottawa",
"ship_state"=>"ON",
"ship_code"=>"K1A0B1",
"ship_country"=>"CA",
"to_name"=>"John Doe",
"to_company"=>"Receiver of Return",
"to_addr1"=>"2701 Riverside Drive",
"to_state"=>"ON",
"to_city"=>"Ottawa",
"to_code"=>"K1A0B1",
"to_country"=>"CA",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "Canada",
"action": "SubmitShipment",
"params": {
"username": "YOUR_URSERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"return_code": "PRINT_RETURN_LABEL",
"service": "DOM.EP",
"packages": [
{
"weight": 2
}
],
"ship_name": "Jane Doe Returner",
"shipper": "Capsule Corp.",
"ship_addr1": "2701 Return Avenue",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_country": "CA",
"to_name": "John Doe",
"to_company": "Receiver of Return",
"to_addr1": "2701 Riverside Drive",
"to_state": "ON",
"to_city": "Ottawa",
"to_code": "K1A0B1",
"to_country": "CA",
"test": true
}
}
)
Canada Post - Label Return with Reference
{
"carrier": "Canada",
"action": "SubmitShipment",
"params": {
"username": "YOUR_URSERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"return_code": "PRINT_RETURN_LABEL",
"service": "DOM.EP",
"packages": [
{
"weight": 2,
"reference_value": "my reference value",
"reference_value2": "another reference"
}
],
"ship_name": "Jane Doe Returner",
"shipper": "Capsule Corp.",
"ship_addr1": "2701 Return Avenue",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_country": "CA",
"to_name": "John Doe",
"to_company": "Receiver of Return",
"to_addr1": "2701 Riverside Drive",
"to_state": "ON",
"to_city": "Ottawa",
"to_code": "K1A0B1",
"to_country": "CA",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'Canada',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_URSERNAME',
'password' => 'YOUR_PASSWORD',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'return_code' => 'PRINT_RETURN_LABEL',
'service' => 'DOM.EP',
'packages' =>
array (
0 =>
array (
'weight' => 2,
'reference_value' => 'my reference value',
'reference_value2' => 'another reference',
),
),
'ship_name' => 'Jane Doe Returner',
'shipper' => 'Capsule Corp.',
'ship_addr1' => '2701 Return Avenue',
'ship_city' => 'Ottawa',
'ship_state' => 'ON',
'ship_code' => 'K1A0B1',
'ship_country' => 'CA',
'to_name' => 'John Doe',
'to_company' => 'Receiver of Return',
'to_addr1' => '2701 Riverside Drive',
'to_state' => 'ON',
'to_city' => 'Ottawa',
'to_code' => 'K1A0B1',
'to_country' => 'CA',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'Canada',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'packages': [{u'reference_value': u'my reference value',
u'reference_value2': u'another reference',
u'weight': 2}],
u'password': u'YOUR_PASSWORD',
u'return_code': u'PRINT_RETURN_LABEL',
u'service': u'DOM.EP',
u'ship_addr1': u'2701 Return Avenue',
u'ship_city': u'Ottawa',
u'ship_code': u'K1A0B1',
u'ship_country': u'CA',
u'ship_name': u'Jane Doe Returner',
u'ship_state': u'ON',
u'shipper': u'Capsule Corp.',
u'test': True,
u'to_addr1': u'2701 Riverside Drive',
u'to_city': u'Ottawa',
u'to_code': u'K1A0B1',
u'to_company': u'Receiver of Return',
u'to_country': u'CA',
u'to_name': u'John Doe',
u'to_state': u'ON',
u'username': u'YOUR_URSERNAME'}}
)
rs.request(
{"carrier"=>"Canada",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_URSERNAME",
"password"=>"YOUR_PASSWORD",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"return_code"=>"PRINT_RETURN_LABEL",
"service"=>"DOM.EP",
"packages"=>
[{"weight"=>2,
"reference_value"=>"my reference value",
"reference_value2"=>"another reference"}],
"ship_name"=>"Jane Doe Returner",
"shipper"=>"Capsule Corp.",
"ship_addr1"=>"2701 Return Avenue",
"ship_city"=>"Ottawa",
"ship_state"=>"ON",
"ship_code"=>"K1A0B1",
"ship_country"=>"CA",
"to_name"=>"John Doe",
"to_company"=>"Receiver of Return",
"to_addr1"=>"2701 Riverside Drive",
"to_state"=>"ON",
"to_city"=>"Ottawa",
"to_code"=>"K1A0B1",
"to_country"=>"CA",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "Canada",
"action": "SubmitShipment",
"params": {
"username": "YOUR_URSERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"return_code": "PRINT_RETURN_LABEL",
"service": "DOM.EP",
"packages": [
{
"weight": 2,
"reference_value": "my reference value",
"reference_value2": "another reference"
}
],
"ship_name": "Jane Doe Returner",
"shipper": "Capsule Corp.",
"ship_addr1": "2701 Return Avenue",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_country": "CA",
"to_name": "John Doe",
"to_company": "Receiver of Return",
"to_addr1": "2701 Riverside Drive",
"to_state": "ON",
"to_city": "Ottawa",
"to_code": "K1A0B1",
"to_country": "CA",
"test": true
}
}
)
Canada Post - Label Third Party Billing
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"billing": [
{
"type": "transportation",
"payment_type": "third_party",
"account": "1234567"
}
],
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'SubmitShipment',
'params' =>
array (
'contract_id' => '42708517',
'username' => '6e93d53968881714',
'password' => '0bfa9fcb9853d1f51ee57a',
'account_number' => '2004381',
'billing' =>
array (
0 =>
array (
'type' => 'transportation',
'payment_type' => 'third_party',
'account' => '1234567',
),
),
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 5,
'height' => 5,
),
),
'service' => 'DOM.EP',
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Ottawa',
'ship_state' => 'ON',
'ship_code' => 'K1A0B1',
'ship_phone' => '1231231234',
'ship_country' => 'CA',
'to_name' => 'John Doe',
'to_addr1' => '361A Old Finch Avenue',
'to_addr2' => '#103',
'to_state' => 'ON',
'to_city' => 'Toronto',
'to_code' => 'M1B5K7',
'to_country' => 'CA',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'canada',
u'params': {u'account_number': u'2004381',
u'billing': [{u'account': u'1234567',
u'payment_type': u'third_party',
u'type': u'transportation'}],
u'contract_id': u'42708517',
u'packages': [{u'height': 5,
u'length': 7,
u'weight': 4,
u'width': 5}],
u'password': u'0bfa9fcb9853d1f51ee57a',
u'service': u'DOM.EP',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Ottawa',
u'ship_code': u'K1A0B1',
u'ship_country': u'CA',
u'ship_phone': u'1231231234',
u'ship_state': u'ON',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'361A Old Finch Avenue',
u'to_addr2': u'#103',
u'to_city': u'Toronto',
u'to_code': u'M1B5K7',
u'to_country': u'CA',
u'to_name': u'John Doe',
u'to_state': u'ON',
u'username': u'6e93d53968881714'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"SubmitShipment",
"params"=>
{"contract_id"=>"42708517",
"username"=>"6e93d53968881714",
"password"=>"0bfa9fcb9853d1f51ee57a",
"account_number"=>"2004381",
"billing"=>
[{"type"=>"transportation",
"payment_type"=>"third_party",
"account"=>"1234567"}],
"packages"=>[{"weight"=>4, "length"=>7, "width"=>5, "height"=>5}],
"service"=>"DOM.EP",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Ottawa",
"ship_state"=>"ON",
"ship_code"=>"K1A0B1",
"ship_phone"=>"1231231234",
"ship_country"=>"CA",
"to_name"=>"John Doe",
"to_addr1"=>"361A Old Finch Avenue",
"to_addr2"=>"#103",
"to_state"=>"ON",
"to_city"=>"Toronto",
"to_code"=>"M1B5K7",
"to_country"=>"CA",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"billing": [
{
"type": "transportation",
"payment_type": "third_party",
"account": "1234567"
}
],
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
)
Canada Post - Label with Contract 19+ Signature Required
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"addons": [
"PA19"
],
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5,
"signature_type": "DIRECT"
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'SubmitShipment',
'params' =>
array (
'addons' =>
array (
0 => 'PA19',
),
'contract_id' => '42708517',
'username' => '6e93d53968881714',
'password' => '0bfa9fcb9853d1f51ee57a',
'account_number' => '2004381',
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 5,
'height' => 5,
'signature_type' => 'DIRECT',
),
),
'service' => 'DOM.EP',
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Ottawa',
'ship_state' => 'ON',
'ship_code' => 'K1A0B1',
'ship_phone' => '1231231234',
'ship_country' => 'CA',
'to_name' => 'John Doe',
'to_addr1' => '361A Old Finch Avenue',
'to_addr2' => '#103',
'to_state' => 'ON',
'to_city' => 'Toronto',
'to_code' => 'M1B5K7',
'to_country' => 'CA',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'canada',
u'params': {u'account_number': u'2004381',
u'addons': [u'PA19'],
u'contract_id': u'42708517',
u'packages': [{u'height': 5,
u'length': 7,
u'signature_type': u'DIRECT',
u'weight': 4,
u'width': 5}],
u'password': u'0bfa9fcb9853d1f51ee57a',
u'service': u'DOM.EP',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Ottawa',
u'ship_code': u'K1A0B1',
u'ship_country': u'CA',
u'ship_phone': u'1231231234',
u'ship_state': u'ON',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'361A Old Finch Avenue',
u'to_addr2': u'#103',
u'to_city': u'Toronto',
u'to_code': u'M1B5K7',
u'to_country': u'CA',
u'to_name': u'John Doe',
u'to_state': u'ON',
u'username': u'6e93d53968881714'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"SubmitShipment",
"params"=>
{"addons"=>["PA19"],
"contract_id"=>"42708517",
"username"=>"6e93d53968881714",
"password"=>"0bfa9fcb9853d1f51ee57a",
"account_number"=>"2004381",
"packages"=>
[{"weight"=>4,
"length"=>7,
"width"=>5,
"height"=>5,
"signature_type"=>"DIRECT"}],
"service"=>"DOM.EP",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Ottawa",
"ship_state"=>"ON",
"ship_code"=>"K1A0B1",
"ship_phone"=>"1231231234",
"ship_country"=>"CA",
"to_name"=>"John Doe",
"to_addr1"=>"361A Old Finch Avenue",
"to_addr2"=>"#103",
"to_state"=>"ON",
"to_city"=>"Toronto",
"to_code"=>"M1B5K7",
"to_country"=>"CA",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"addons": [
"PA19"
],
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5,
"signature_type": "DIRECT"
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
)
Canada Post - Label with Contract Signature Required
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5,
"signature_type": "DIRECT"
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'SubmitShipment',
'params' =>
array (
'contract_id' => '42708517',
'username' => '6e93d53968881714',
'password' => '0bfa9fcb9853d1f51ee57a',
'account_number' => '2004381',
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 5,
'height' => 5,
'signature_type' => 'DIRECT',
),
),
'service' => 'DOM.EP',
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Ottawa',
'ship_state' => 'ON',
'ship_code' => 'K1A0B1',
'ship_phone' => '1231231234',
'ship_country' => 'CA',
'to_name' => 'John Doe',
'to_addr1' => '361A Old Finch Avenue',
'to_addr2' => '#103',
'to_state' => 'ON',
'to_city' => 'Toronto',
'to_code' => 'M1B5K7',
'to_country' => 'CA',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'canada',
u'params': {u'account_number': u'2004381',
u'contract_id': u'42708517',
u'packages': [{u'height': 5,
u'length': 7,
u'signature_type': u'DIRECT',
u'weight': 4,
u'width': 5}],
u'password': u'0bfa9fcb9853d1f51ee57a',
u'service': u'DOM.EP',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Ottawa',
u'ship_code': u'K1A0B1',
u'ship_country': u'CA',
u'ship_phone': u'1231231234',
u'ship_state': u'ON',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'361A Old Finch Avenue',
u'to_addr2': u'#103',
u'to_city': u'Toronto',
u'to_code': u'M1B5K7',
u'to_country': u'CA',
u'to_name': u'John Doe',
u'to_state': u'ON',
u'username': u'6e93d53968881714'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"SubmitShipment",
"params"=>
{"contract_id"=>"42708517",
"username"=>"6e93d53968881714",
"password"=>"0bfa9fcb9853d1f51ee57a",
"account_number"=>"2004381",
"packages"=>
[{"weight"=>4,
"length"=>7,
"width"=>5,
"height"=>5,
"signature_type"=>"DIRECT"}],
"service"=>"DOM.EP",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Ottawa",
"ship_state"=>"ON",
"ship_code"=>"K1A0B1",
"ship_phone"=>"1231231234",
"ship_country"=>"CA",
"to_name"=>"John Doe",
"to_addr1"=>"361A Old Finch Avenue",
"to_addr2"=>"#103",
"to_state"=>"ON",
"to_city"=>"Toronto",
"to_code"=>"M1B5K7",
"to_country"=>"CA",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5,
"signature_type": "DIRECT"
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
)
Canada Post - Label with contract
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'SubmitShipment',
'params' =>
array (
'contract_id' => '42708517',
'username' => '6e93d53968881714',
'password' => '0bfa9fcb9853d1f51ee57a',
'account_number' => '2004381',
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 5,
'height' => 5,
),
),
'service' => 'DOM.EP',
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Ottawa',
'ship_state' => 'ON',
'ship_code' => 'K1A0B1',
'ship_phone' => '1231231234',
'ship_country' => 'CA',
'to_name' => 'John Doe',
'to_addr1' => '361A Old Finch Avenue',
'to_addr2' => '#103',
'to_state' => 'ON',
'to_city' => 'Toronto',
'to_code' => 'M1B5K7',
'to_country' => 'CA',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'canada',
u'params': {u'account_number': u'2004381',
u'contract_id': u'42708517',
u'packages': [{u'height': 5,
u'length': 7,
u'weight': 4,
u'width': 5}],
u'password': u'0bfa9fcb9853d1f51ee57a',
u'service': u'DOM.EP',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Ottawa',
u'ship_code': u'K1A0B1',
u'ship_country': u'CA',
u'ship_phone': u'1231231234',
u'ship_state': u'ON',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'361A Old Finch Avenue',
u'to_addr2': u'#103',
u'to_city': u'Toronto',
u'to_code': u'M1B5K7',
u'to_country': u'CA',
u'to_name': u'John Doe',
u'to_state': u'ON',
u'username': u'6e93d53968881714'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"SubmitShipment",
"params"=>
{"contract_id"=>"42708517",
"username"=>"6e93d53968881714",
"password"=>"0bfa9fcb9853d1f51ee57a",
"account_number"=>"2004381",
"packages"=>[{"weight"=>4, "length"=>7, "width"=>5, "height"=>5}],
"service"=>"DOM.EP",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Ottawa",
"ship_state"=>"ON",
"ship_code"=>"K1A0B1",
"ship_phone"=>"1231231234",
"ship_country"=>"CA",
"to_name"=>"John Doe",
"to_addr1"=>"361A Old Finch Avenue",
"to_addr2"=>"#103",
"to_state"=>"ON",
"to_city"=>"Toronto",
"to_code"=>"M1B5K7",
"to_country"=>"CA",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
)
Canada Post - Label with contract (ZPL)
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"image_type": "ZPL",
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'SubmitShipment',
'params' =>
array (
'contract_id' => '42708517',
'username' => '6e93d53968881714',
'password' => '0bfa9fcb9853d1f51ee57a',
'account_number' => '2004381',
'image_type' => 'ZPL',
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 5,
'height' => 5,
),
),
'service' => 'DOM.EP',
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Ottawa',
'ship_state' => 'ON',
'ship_code' => 'K1A0B1',
'ship_phone' => '1231231234',
'ship_country' => 'CA',
'to_name' => 'John Doe',
'to_addr1' => '361A Old Finch Avenue',
'to_addr2' => '#103',
'to_state' => 'ON',
'to_city' => 'Toronto',
'to_code' => 'M1B5K7',
'to_country' => 'CA',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'canada',
u'params': {u'account_number': u'2004381',
u'contract_id': u'42708517',
u'image_type': u'ZPL',
u'packages': [{u'height': 5,
u'length': 7,
u'weight': 4,
u'width': 5}],
u'password': u'0bfa9fcb9853d1f51ee57a',
u'service': u'DOM.EP',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Ottawa',
u'ship_code': u'K1A0B1',
u'ship_country': u'CA',
u'ship_phone': u'1231231234',
u'ship_state': u'ON',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'361A Old Finch Avenue',
u'to_addr2': u'#103',
u'to_city': u'Toronto',
u'to_code': u'M1B5K7',
u'to_country': u'CA',
u'to_name': u'John Doe',
u'to_state': u'ON',
u'username': u'6e93d53968881714'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"SubmitShipment",
"params"=>
{"contract_id"=>"42708517",
"username"=>"6e93d53968881714",
"password"=>"0bfa9fcb9853d1f51ee57a",
"account_number"=>"2004381",
"image_type"=>"ZPL",
"packages"=>[{"weight"=>4, "length"=>7, "width"=>5, "height"=>5}],
"service"=>"DOM.EP",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Ottawa",
"ship_state"=>"ON",
"ship_code"=>"K1A0B1",
"ship_phone"=>"1231231234",
"ship_country"=>"CA",
"to_name"=>"John Doe",
"to_addr1"=>"361A Old Finch Avenue",
"to_addr2"=>"#103",
"to_state"=>"ON",
"to_city"=>"Toronto",
"to_code"=>"M1B5K7",
"to_country"=>"CA",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "SubmitShipment",
"params": {
"contract_id": "42708517",
"username": "6e93d53968881714",
"password": "0bfa9fcb9853d1f51ee57a",
"account_number": "2004381",
"image_type": "ZPL",
"packages": [
{
"weight": 4,
"length": 7,
"width": 5,
"height": 5
}
],
"service": "DOM.EP",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Ottawa",
"ship_state": "ON",
"ship_code": "K1A0B1",
"ship_phone": "1231231234",
"ship_country": "CA",
"to_name": "John Doe",
"to_addr1": "361A Old Finch Avenue",
"to_addr2": "#103",
"to_state": "ON",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_country": "CA",
"test": true
}
}
)
Canada Post - Pickup Cancel
{
"carrier": "Canada",
"action": "CancelPickup",
"params": {
"pickup_id": "00110215",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'Canada',
'action' => 'CancelPickup',
'params' =>
array (
'pickup_id' => '00110215',
'test' => true,
),
)
);
rs.request(
{u'action': u'CancelPickup',
u'carrier': u'Canada',
u'params': {u'pickup_id': u'00110215', u'test': True}}
)
rs.request(
{"carrier"=>"Canada",
"action"=>"CancelPickup",
"params"=>{"pickup_id"=>"00110215", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "Canada",
"action": "CancelPickup",
"params": {
"pickup_id": "00110215",
"test": true
}
}
)
Canada Post - Pickup Schedule
{
"carrier": "Canada",
"action": "CreatePickup",
"params": {
"contract_id": "YOUR CONTRACT ID",
"pickup_company_name": "Acme Inc",
"pickup_contact_name": "Mark Sanborn",
"pickup_addr1": "123 Main St",
"pickup_city": "Vancouver",
"pickup_state": "BC",
"pickup_code": "V4W1N7",
"pickup_country": "US",
"pickup_phone": "123-123-1234",
"pickup_email": "john.doe@example.com",
"pickup_quantity": 1,
"pickup_date": "2019-06-20",
"close_time": "17:00",
"ready_time": "15:00",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'Canada',
'action' => 'CreatePickup',
'params' =>
array (
'contract_id' => 'YOUR CONTRACT ID',
'pickup_company_name' => 'Acme Inc',
'pickup_contact_name' => 'Mark Sanborn',
'pickup_addr1' => '123 Main St',
'pickup_city' => 'Vancouver',
'pickup_state' => 'BC',
'pickup_code' => 'V4W1N7',
'pickup_country' => 'US',
'pickup_phone' => '123-123-1234',
'pickup_email' => 'john.doe@example.com',
'pickup_quantity' => 1,
'pickup_date' => '2019-06-20',
'close_time' => '17:00',
'ready_time' => '15:00',
'test' => true,
),
)
);
rs.request(
{u'action': u'CreatePickup',
u'carrier': u'Canada',
u'params': {u'close_time': u'17:00',
u'contract_id': u'YOUR CONTRACT ID',
u'pickup_addr1': u'123 Main St',
u'pickup_city': u'Vancouver',
u'pickup_code': u'V4W1N7',
u'pickup_company_name': u'Acme Inc',
u'pickup_contact_name': u'Mark Sanborn',
u'pickup_country': u'US',
u'pickup_date': u'2019-06-20',
u'pickup_email': u'john.doe@example.com',
u'pickup_phone': u'123-123-1234',
u'pickup_quantity': 1,
u'pickup_state': u'BC',
u'ready_time': u'15:00',
u'test': True}}
)
rs.request(
{"carrier"=>"Canada",
"action"=>"CreatePickup",
"params"=>
{"contract_id"=>"YOUR CONTRACT ID",
"pickup_company_name"=>"Acme Inc",
"pickup_contact_name"=>"Mark Sanborn",
"pickup_addr1"=>"123 Main St",
"pickup_city"=>"Vancouver",
"pickup_state"=>"BC",
"pickup_code"=>"V4W1N7",
"pickup_country"=>"US",
"pickup_phone"=>"123-123-1234",
"pickup_email"=>"john.doe@example.com",
"pickup_quantity"=>1,
"pickup_date"=>"2019-06-20",
"close_time"=>"17:00",
"ready_time"=>"15:00",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "Canada",
"action": "CreatePickup",
"params": {
"contract_id": "YOUR CONTRACT ID",
"pickup_company_name": "Acme Inc",
"pickup_contact_name": "Mark Sanborn",
"pickup_addr1": "123 Main St",
"pickup_city": "Vancouver",
"pickup_state": "BC",
"pickup_code": "V4W1N7",
"pickup_country": "US",
"pickup_phone": "123-123-1234",
"pickup_email": "john.doe@example.com",
"pickup_quantity": 1,
"pickup_date": "2019-06-20",
"close_time": "17:00",
"ready_time": "15:00",
"test": true
}
}
)
Canada Post - Pickup Status
{
"carrier": "Canada",
"action": "PickupStatus",
"params": {
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'Canada',
'action' => 'PickupStatus',
'params' =>
array (
'test' => true,
),
)
);
rs.request(
{u'action': u'PickupStatus', u'carrier': u'Canada', u'params': {u'test': True}}
)
rs.request(
{"carrier"=>"Canada", "action"=>"PickupStatus", "params"=>{"test"=>true}}
)
rocketshipit.request(
{
"carrier": "Canada",
"action": "PickupStatus",
"params": {
"test": true
}
}
)
Canada Post - Rate Domestic
{
"carrier": "canada",
"action": "GetAllRates",
"params": {
"test": true,
"packages": [
{
"weight": 2,
"length": 6,
"width": 16,
"height": 26
}
],
"customs": [],
"shipper": "John Doe",
"ship_state": "BC",
"ship_code": "V7A4M1",
"ship_country": "CA",
"to_state": "ON",
"to_code": "L3R9W6",
"to_country": "CA",
"weight_unit": "KG",
"length_unit": "CM"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'GetAllRates',
'params' =>
array (
'test' => true,
'packages' =>
array (
0 =>
array (
'weight' => 2,
'length' => 6,
'width' => 16,
'height' => 26,
),
),
'customs' =>
array (
),
'shipper' => 'John Doe',
'ship_state' => 'BC',
'ship_code' => 'V7A4M1',
'ship_country' => 'CA',
'to_state' => 'ON',
'to_code' => 'L3R9W6',
'to_country' => 'CA',
'weight_unit' => 'KG',
'length_unit' => 'CM',
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'canada',
u'params': {u'customs': [],
u'length_unit': u'CM',
u'packages': [{u'height': 26,
u'length': 6,
u'weight': 2,
u'width': 16}],
u'ship_code': u'V7A4M1',
u'ship_country': u'CA',
u'ship_state': u'BC',
u'shipper': u'John Doe',
u'test': True,
u'to_code': u'L3R9W6',
u'to_country': u'CA',
u'to_state': u'ON',
u'weight_unit': u'KG'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"GetAllRates",
"params"=>
{"test"=>true,
"packages"=>[{"weight"=>2, "length"=>6, "width"=>16, "height"=>26}],
"customs"=>[],
"shipper"=>"John Doe",
"ship_state"=>"BC",
"ship_code"=>"V7A4M1",
"ship_country"=>"CA",
"to_state"=>"ON",
"to_code"=>"L3R9W6",
"to_country"=>"CA",
"weight_unit"=>"KG",
"length_unit"=>"CM"}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "GetAllRates",
"params": {
"test": true,
"packages": [
{
"weight": 2,
"length": 6,
"width": 16,
"height": 26
}
],
"customs": [],
"shipper": "John Doe",
"ship_state": "BC",
"ship_code": "V7A4M1",
"ship_country": "CA",
"to_state": "ON",
"to_code": "L3R9W6",
"to_country": "CA",
"weight_unit": "KG",
"length_unit": "CM"
}
}
)
Canada Post - Rates
{
"carrier": "canada",
"action": "GetAllRates",
"params": {
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"customs": [],
"ship_city": "BELLEVILLE",
"ship_code": "K8N5W6",
"to_country": "US",
"to_code": "90210"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'GetAllRates',
'params' =>
array (
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 5,
'width' => 5,
'height' => 5,
),
),
'customs' =>
array (
),
'ship_city' => 'BELLEVILLE',
'ship_code' => 'K8N5W6',
'to_country' => 'US',
'to_code' => '90210',
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'canada',
u'params': {u'customs': [],
u'packages': [{u'height': 5,
u'length': 5,
u'weight': 5,
u'width': 5}],
u'ship_city': u'BELLEVILLE',
u'ship_code': u'K8N5W6',
u'to_code': u'90210',
u'to_country': u'US'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"GetAllRates",
"params"=>
{"packages"=>[{"weight"=>5, "length"=>5, "width"=>5, "height"=>5}],
"customs"=>[],
"ship_city"=>"BELLEVILLE",
"ship_code"=>"K8N5W6",
"to_country"=>"US",
"to_code"=>"90210"}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "GetAllRates",
"params": {
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"customs": [],
"ship_city": "BELLEVILLE",
"ship_code": "K8N5W6",
"to_country": "US",
"to_code": "90210"
}
}
)
Canada Post - Rates Insurance
{
"carrier": "canada",
"action": "GetAllRates",
"params": {
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5,
"insured_value": 700
}
],
"customs": [],
"ship_city": "BELLEVILLE",
"ship_code": "K8N5W6",
"to_country": "US",
"to_code": "90210"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'GetAllRates',
'params' =>
array (
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 5,
'width' => 5,
'height' => 5,
'insured_value' => 700,
),
),
'customs' =>
array (
),
'ship_city' => 'BELLEVILLE',
'ship_code' => 'K8N5W6',
'to_country' => 'US',
'to_code' => '90210',
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'canada',
u'params': {u'customs': [],
u'packages': [{u'height': 5,
u'insured_value': 700,
u'length': 5,
u'weight': 5,
u'width': 5}],
u'ship_city': u'BELLEVILLE',
u'ship_code': u'K8N5W6',
u'to_code': u'90210',
u'to_country': u'US'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"GetAllRates",
"params"=>
{"packages"=>
[{"weight"=>5,
"length"=>5,
"width"=>5,
"height"=>5,
"insured_value"=>700}],
"customs"=>[],
"ship_city"=>"BELLEVILLE",
"ship_code"=>"K8N5W6",
"to_country"=>"US",
"to_code"=>"90210"}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "GetAllRates",
"params": {
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5,
"insured_value": 700
}
],
"customs": [],
"ship_city": "BELLEVILLE",
"ship_code": "K8N5W6",
"to_country": "US",
"to_code": "90210"
}
}
)
Canada Post - Tracking
{
"carrier": "canada",
"action": "track",
"params": {
"username": "YOUR_URSERNAME",
"password": "YOUR_PASSWORD",
"tracking_number": "1371134583769923",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'track',
'params' =>
array (
'username' => 'YOUR_URSERNAME',
'password' => 'YOUR_PASSWORD',
'tracking_number' => '1371134583769923',
'test' => true,
),
)
);
rs.request(
{u'action': u'track',
u'carrier': u'canada',
u'params': {u'password': u'YOUR_PASSWORD',
u'test': True,
u'tracking_number': u'1371134583769923',
u'username': u'YOUR_URSERNAME'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"track",
"params"=>
{"username"=>"YOUR_URSERNAME",
"password"=>"YOUR_PASSWORD",
"tracking_number"=>"1371134583769923",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "track",
"params": {
"username": "YOUR_URSERNAME",
"password": "YOUR_PASSWORD",
"tracking_number": "1371134583769923",
"test": true
}
}
)
Canada Post - Void
{
"carrier": "canada",
"action": "VoidShipment",
"params": {
"username": "YOUR_URSERNAME",
"password": "YOUR_PASSWORD",
"shipment_id": "GT12345678RT",
"ship_email": "me@mycompany.com",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'VoidShipment',
'params' =>
array (
'username' => 'YOUR_URSERNAME',
'password' => 'YOUR_PASSWORD',
'shipment_id' => 'GT12345678RT',
'ship_email' => 'me@mycompany.com',
'test' => true,
),
)
);
rs.request(
{u'action': u'VoidShipment',
u'carrier': u'canada',
u'params': {u'password': u'YOUR_PASSWORD',
u'ship_email': u'me@mycompany.com',
u'shipment_id': u'GT12345678RT',
u'test': True,
u'username': u'YOUR_URSERNAME'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"VoidShipment",
"params"=>
{"username"=>"YOUR_URSERNAME",
"password"=>"YOUR_PASSWORD",
"shipment_id"=>"GT12345678RT",
"ship_email"=>"me@mycompany.com",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "VoidShipment",
"params": {
"username": "YOUR_URSERNAME",
"password": "YOUR_PASSWORD",
"shipment_id": "GT12345678RT",
"ship_email": "me@mycompany.com",
"test": true
}
}
)
DHL - CreateManifest GlobalMail
{
"carrier": "dhl-globalmail",
"action": "CreateManifest",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"key": "YOUR_CLIENT_ID",
"pickup_location": "5300000",
"shipment_ids": [
"99999999999999999999999999999"
]
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'dhl-globalmail',
'action' => 'CreateManifest',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'key' => 'YOUR_CLIENT_ID',
'pickup_location' => '5300000',
'shipment_ids' =>
array (
0 => '99999999999999999999999999999',
),
),
)
);
rs.request(
{u'action': u'CreateManifest',
u'carrier': u'dhl-globalmail',
u'params': {u'key': u'YOUR_CLIENT_ID',
u'password': u'YOUR_PASSWORD',
u'pickup_location': u'5300000',
u'shipment_ids': [u'99999999999999999999999999999'],
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"dhl-globalmail",
"action"=>"CreateManifest",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"key"=>"YOUR_CLIENT_ID",
"pickup_location"=>"5300000",
"shipment_ids"=>["99999999999999999999999999999"]}}
)
rocketshipit.request(
{
"carrier": "dhl-globalmail",
"action": "CreateManifest",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"key": "YOUR_CLIENT_ID",
"pickup_location": "5300000",
"shipment_ids": [
"99999999999999999999999999999"
]
}
}
)
DHL - GlobalMail International
{
"carrier": "DHL-GlobalMail",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"key": "YOUR_CLIENT_ID",
"service": "22",
"account_number": "5337502",
"packages": [
{
"weight": 0.3
}
],
"shipper": "Mr. Returns",
"ship_addr1": "5048 264 St",
"ship_city": "Aldergrove",
"ship_state": "BC",
"ship_code": "V4W1N7",
"ship_phone": "123-123-1234",
"to_name": "Joe Bloggs",
"to_addr1": "1234 Main Street",
"to_state": "GA",
"to_city": "Anytown",
"to_code": "30297",
"to_phone": "123-123-1234",
"customs_value": 10
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL-GlobalMail',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'key' => 'YOUR_CLIENT_ID',
'service' => '22',
'account_number' => '5337502',
'packages' =>
array (
0 =>
array (
'weight' => 0.3,
),
),
'shipper' => 'Mr. Returns',
'ship_addr1' => '5048 264 St',
'ship_city' => 'Aldergrove',
'ship_state' => 'BC',
'ship_code' => 'V4W1N7',
'ship_phone' => '123-123-1234',
'to_name' => 'Joe Bloggs',
'to_addr1' => '1234 Main Street',
'to_state' => 'GA',
'to_city' => 'Anytown',
'to_code' => '30297',
'to_phone' => '123-123-1234',
'customs_value' => 10,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL-GlobalMail',
u'params': {u'account_number': u'5337502',
u'customs_value': 10,
u'key': u'YOUR_CLIENT_ID',
u'packages': [{u'weight': 0.3}],
u'password': u'YOUR_PASSWORD',
u'service': u'22',
u'ship_addr1': u'5048 264 St',
u'ship_city': u'Aldergrove',
u'ship_code': u'V4W1N7',
u'ship_phone': u'123-123-1234',
u'ship_state': u'BC',
u'shipper': u'Mr. Returns',
u'to_addr1': u'1234 Main Street',
u'to_city': u'Anytown',
u'to_code': u'30297',
u'to_name': u'Joe Bloggs',
u'to_phone': u'123-123-1234',
u'to_state': u'GA',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL-GlobalMail",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"key"=>"YOUR_CLIENT_ID",
"service"=>"22",
"account_number"=>"5337502",
"packages"=>[{"weight"=>0.3}],
"shipper"=>"Mr. Returns",
"ship_addr1"=>"5048 264 St",
"ship_city"=>"Aldergrove",
"ship_state"=>"BC",
"ship_code"=>"V4W1N7",
"ship_phone"=>"123-123-1234",
"to_name"=>"Joe Bloggs",
"to_addr1"=>"1234 Main Street",
"to_state"=>"GA",
"to_city"=>"Anytown",
"to_code"=>"30297",
"to_phone"=>"123-123-1234",
"customs_value"=>10}}
)
rocketshipit.request(
{
"carrier": "DHL-GlobalMail",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"key": "YOUR_CLIENT_ID",
"service": "22",
"account_number": "5337502",
"packages": [
{
"weight": 0.3
}
],
"shipper": "Mr. Returns",
"ship_addr1": "5048 264 St",
"ship_city": "Aldergrove",
"ship_state": "BC",
"ship_code": "V4W1N7",
"ship_phone": "123-123-1234",
"to_name": "Joe Bloggs",
"to_addr1": "1234 Main Street",
"to_state": "GA",
"to_city": "Anytown",
"to_code": "30297",
"to_phone": "123-123-1234",
"customs_value": 10
}
}
)
DHL - Label
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"account_number": "803921577",
"packages": [
{
"weight": 4,
"length": 7,
"width": 4,
"height": 4
}
],
"service": "N",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => '803921577',
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 4,
'height' => 4,
),
),
'service' => 'N',
'shipper' => 'RocketShipIt',
'ship_addr1' => '1401 Park Ave',
'ship_city' => 'Emeryville',
'ship_state' => 'CA',
'ship_code' => '94608',
'ship_phone' => '1231231234',
'ship_country' => 'US',
'to_name' => 'John Doe',
'to_addr1' => '940 Presidio Ave',
'to_addr2' => '#103',
'to_state' => 'CA',
'to_city' => 'San Francisco',
'to_code' => '94115',
'to_country' => 'US',
'image_type' => 'PDF',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL',
u'params': {u'account_number': u'803921577',
u'image_type': u'PDF',
u'packages': [{u'height': 4,
u'length': 7,
u'weight': 4,
u'width': 4}],
u'service': u'N',
u'ship_addr1': u'1401 Park Ave',
u'ship_city': u'Emeryville',
u'ship_code': u'94608',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'CA',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'940 Presidio Ave',
u'to_addr2': u'#103',
u'to_city': u'San Francisco',
u'to_code': u'94115',
u'to_country': u'US',
u'to_name': u'John Doe',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"SubmitShipment",
"params"=>
{"account_number"=>"803921577",
"packages"=>[{"weight"=>4, "length"=>7, "width"=>4, "height"=>4}],
"service"=>"N",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"1401 Park Ave",
"ship_city"=>"Emeryville",
"ship_state"=>"CA",
"ship_code"=>"94608",
"ship_phone"=>"1231231234",
"ship_country"=>"US",
"to_name"=>"John Doe",
"to_addr1"=>"940 Presidio Ave",
"to_addr2"=>"#103",
"to_state"=>"CA",
"to_city"=>"San Francisco",
"to_code"=>"94115",
"to_country"=>"US",
"image_type"=>"PDF",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"account_number": "803921577",
"packages": [
{
"weight": 4,
"length": 7,
"width": 4,
"height": 4
}
],
"service": "N",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"test": true
}
}
)
DHL - Label Email Notifications
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"account_number": "803921577",
"notify": [
{
"email": "customer@email.com"
}
],
"packages": [
{
"weight": 4,
"length": 7,
"width": 4,
"height": 4
}
],
"service": "D",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => '803921577',
'notify' =>
array (
0 =>
array (
'email' => 'customer@email.com',
),
),
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 4,
'height' => 4,
),
),
'service' => 'D',
'shipper' => 'RocketShipIt',
'ship_addr1' => '1401 Park Ave',
'ship_city' => 'Emeryville',
'ship_state' => 'CA',
'ship_code' => '94608',
'ship_phone' => '1231231234',
'ship_country' => 'US',
'to_name' => 'John Doe',
'to_addr1' => '940 Presidio Ave',
'to_addr2' => '#103',
'to_state' => 'CA',
'to_city' => 'San Francisco',
'to_code' => '94115',
'to_country' => 'US',
'image_type' => 'PDF',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL',
u'params': {u'account_number': u'803921577',
u'image_type': u'PDF',
u'notify': [{u'email': u'customer@email.com'}],
u'packages': [{u'height': 4,
u'length': 7,
u'weight': 4,
u'width': 4}],
u'service': u'D',
u'ship_addr1': u'1401 Park Ave',
u'ship_city': u'Emeryville',
u'ship_code': u'94608',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'CA',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'940 Presidio Ave',
u'to_addr2': u'#103',
u'to_city': u'San Francisco',
u'to_code': u'94115',
u'to_country': u'US',
u'to_name': u'John Doe',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"SubmitShipment",
"params"=>
{"account_number"=>"803921577",
"notify"=>[{"email"=>"customer@email.com"}],
"packages"=>[{"weight"=>4, "length"=>7, "width"=>4, "height"=>4}],
"service"=>"D",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"1401 Park Ave",
"ship_city"=>"Emeryville",
"ship_state"=>"CA",
"ship_code"=>"94608",
"ship_phone"=>"1231231234",
"ship_country"=>"US",
"to_name"=>"John Doe",
"to_addr1"=>"940 Presidio Ave",
"to_addr2"=>"#103",
"to_state"=>"CA",
"to_city"=>"San Francisco",
"to_code"=>"94115",
"to_country"=>"US",
"image_type"=>"PDF",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"account_number": "803921577",
"notify": [
{
"email": "customer@email.com"
}
],
"packages": [
{
"weight": 4,
"length": 7,
"width": 4,
"height": 4
}
],
"service": "D",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"test": true
}
}
)
DHL - Label GlobalMail
{
"carrier": "DHL-GlobalMail",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_PICKUP_ID",
"key": "YOUR_CLIENT_ID",
"service": "81",
"packages": [
{
"weight": 0.3
}
],
"shipper": "Mr. Returns",
"ship_addr1": "1500 South Point Dr.",
"ship_city": "Forrest Park",
"ship_state": "GA",
"ship_code": "30297",
"ship_phone": "123-123-1234",
"to_name": "Joe Bloggs",
"to_addr1": "1234 Main Street",
"to_state": "GA",
"to_city": "Anytown",
"to_code": "30297",
"to_phone": "123-123-1234"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL-GlobalMail',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'account_number' => 'YOUR_ACCOUNT_PICKUP_ID',
'key' => 'YOUR_CLIENT_ID',
'service' => '81',
'packages' =>
array (
0 =>
array (
'weight' => 0.3,
),
),
'shipper' => 'Mr. Returns',
'ship_addr1' => '1500 South Point Dr.',
'ship_city' => 'Forrest Park',
'ship_state' => 'GA',
'ship_code' => '30297',
'ship_phone' => '123-123-1234',
'to_name' => 'Joe Bloggs',
'to_addr1' => '1234 Main Street',
'to_state' => 'GA',
'to_city' => 'Anytown',
'to_code' => '30297',
'to_phone' => '123-123-1234',
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL-GlobalMail',
u'params': {u'account_number': u'YOUR_ACCOUNT_PICKUP_ID',
u'key': u'YOUR_CLIENT_ID',
u'packages': [{u'weight': 0.3}],
u'password': u'YOUR_PASSWORD',
u'service': u'81',
u'ship_addr1': u'1500 South Point Dr.',
u'ship_city': u'Forrest Park',
u'ship_code': u'30297',
u'ship_phone': u'123-123-1234',
u'ship_state': u'GA',
u'shipper': u'Mr. Returns',
u'to_addr1': u'1234 Main Street',
u'to_city': u'Anytown',
u'to_code': u'30297',
u'to_name': u'Joe Bloggs',
u'to_phone': u'123-123-1234',
u'to_state': u'GA',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL-GlobalMail",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"account_number"=>"YOUR_ACCOUNT_PICKUP_ID",
"key"=>"YOUR_CLIENT_ID",
"service"=>"81",
"packages"=>[{"weight"=>0.3}],
"shipper"=>"Mr. Returns",
"ship_addr1"=>"1500 South Point Dr.",
"ship_city"=>"Forrest Park",
"ship_state"=>"GA",
"ship_code"=>"30297",
"ship_phone"=>"123-123-1234",
"to_name"=>"Joe Bloggs",
"to_addr1"=>"1234 Main Street",
"to_state"=>"GA",
"to_city"=>"Anytown",
"to_code"=>"30297",
"to_phone"=>"123-123-1234"}}
)
rocketshipit.request(
{
"carrier": "DHL-GlobalMail",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_PICKUP_ID",
"key": "YOUR_CLIENT_ID",
"service": "81",
"packages": [
{
"weight": 0.3
}
],
"shipper": "Mr. Returns",
"ship_addr1": "1500 South Point Dr.",
"ship_city": "Forrest Park",
"ship_state": "GA",
"ship_code": "30297",
"ship_phone": "123-123-1234",
"to_name": "Joe Bloggs",
"to_addr1": "1234 Main Street",
"to_state": "GA",
"to_city": "Anytown",
"to_code": "30297",
"to_phone": "123-123-1234"
}
}
)
DHL - Label International
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"shipment_description": "Fashion goods",
"customs_value": 45.99,
"currency": "EUR",
"trade_terms": "DAP",
"packages": [
{
"weight": 5,
"length": 6,
"width": 7,
"height": 8,
"reference_value": "asdf"
}
],
"shipper": "RocketShipIt",
"ship_addr1": "5684 Bay St",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "Toronto Zoo",
"to_addr1": "2000 Meadowvale Road",
"to_state": "MB",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_phone": "1231231234",
"to_country": "CA",
"test": true,
"service": "P"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'shipment_description' => 'Fashion goods',
'customs_value' => 45.99,
'currency' => 'EUR',
'trade_terms' => 'DAP',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 6,
'width' => 7,
'height' => 8,
'reference_value' => 'asdf',
),
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '5684 Bay St',
'ship_city' => 'Emeryville',
'ship_state' => 'CA',
'ship_code' => '94608',
'ship_phone' => '1231231234',
'ship_country' => 'US',
'to_name' => 'Toronto Zoo',
'to_addr1' => '2000 Meadowvale Road',
'to_state' => 'MB',
'to_city' => 'Toronto',
'to_code' => 'M1B5K7',
'to_phone' => '1231231234',
'to_country' => 'CA',
'test' => true,
'service' => 'P',
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'currency': u'EUR',
u'customs_value': 45.99,
u'packages': [{u'height': 8,
u'length': 6,
u'reference_value': u'asdf',
u'weight': 5,
u'width': 7}],
u'password': u'YOUR_PASSWORD',
u'service': u'P',
u'ship_addr1': u'5684 Bay St',
u'ship_city': u'Emeryville',
u'ship_code': u'94608',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'CA',
u'shipment_description': u'Fashion goods',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'2000 Meadowvale Road',
u'to_city': u'Toronto',
u'to_code': u'M1B5K7',
u'to_country': u'CA',
u'to_name': u'Toronto Zoo',
u'to_phone': u'1231231234',
u'to_state': u'MB',
u'trade_terms': u'DAP',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"shipment_description"=>"Fashion goods",
"customs_value"=>45.99,
"currency"=>"EUR",
"trade_terms"=>"DAP",
"packages"=>
[{"weight"=>5,
"length"=>6,
"width"=>7,
"height"=>8,
"reference_value"=>"asdf"}],
"shipper"=>"RocketShipIt",
"ship_addr1"=>"5684 Bay St",
"ship_city"=>"Emeryville",
"ship_state"=>"CA",
"ship_code"=>"94608",
"ship_phone"=>"1231231234",
"ship_country"=>"US",
"to_name"=>"Toronto Zoo",
"to_addr1"=>"2000 Meadowvale Road",
"to_state"=>"MB",
"to_city"=>"Toronto",
"to_code"=>"M1B5K7",
"to_phone"=>"1231231234",
"to_country"=>"CA",
"test"=>true,
"service"=>"P"}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"shipment_description": "Fashion goods",
"customs_value": 45.99,
"currency": "EUR",
"trade_terms": "DAP",
"packages": [
{
"weight": 5,
"length": 6,
"width": 7,
"height": 8,
"reference_value": "asdf"
}
],
"shipper": "RocketShipIt",
"ship_addr1": "5684 Bay St",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "Toronto Zoo",
"to_addr1": "2000 Meadowvale Road",
"to_state": "MB",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_phone": "1231231234",
"to_country": "CA",
"test": true,
"service": "P"
}
}
)
DHL - Label International CI
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"customs_forms": "CMI",
"invoice": "123",
"invoice_date": "2019-03-19",
"shipment_description": "Fashion goods",
"customs_value": 45.99,
"currency": "EUR",
"trade_terms": "DAP",
"packages": [
{
"weight": 5,
"length": 6,
"width": 7,
"height": 8
}
],
"shipper": "RocketShipIt",
"ship_addr1": "5684 Bay St",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "Toronto Zoo",
"to_addr1": "2000 Meadowvale Road",
"to_state": "MB",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_phone": "1231231234",
"to_country": "CA",
"test": true,
"service": "P",
"reference_value": "asdf",
"customs": [
{
"commodity_code": "cc",
"commodity_name": "cn",
"invoice_line_number": "1",
"invoice_line_part_number": "123",
"invoice_line_description": "My Description",
"customs_line_amount": 45.99,
"customs_origin_country": "CA",
"customs_quantity_units": "EA",
"customs_quantity": 1,
"customs_weight": 10
}
]
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'customs_forms' => 'CMI',
'invoice' => '123',
'invoice_date' => '2019-03-19',
'shipment_description' => 'Fashion goods',
'customs_value' => 45.99,
'currency' => 'EUR',
'trade_terms' => 'DAP',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 6,
'width' => 7,
'height' => 8,
),
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '5684 Bay St',
'ship_city' => 'Emeryville',
'ship_state' => 'CA',
'ship_code' => '94608',
'ship_phone' => '1231231234',
'ship_country' => 'US',
'to_name' => 'Toronto Zoo',
'to_addr1' => '2000 Meadowvale Road',
'to_state' => 'MB',
'to_city' => 'Toronto',
'to_code' => 'M1B5K7',
'to_phone' => '1231231234',
'to_country' => 'CA',
'test' => true,
'service' => 'P',
'reference_value' => 'asdf',
'customs' =>
array (
0 =>
array (
'commodity_code' => 'cc',
'commodity_name' => 'cn',
'invoice_line_number' => '1',
'invoice_line_part_number' => '123',
'invoice_line_description' => 'My Description',
'customs_line_amount' => 45.99,
'customs_origin_country' => 'CA',
'customs_quantity_units' => 'EA',
'customs_quantity' => 1,
'customs_weight' => 10,
),
),
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'currency': u'EUR',
u'customs': [{u'commodity_code': u'cc',
u'commodity_name': u'cn',
u'customs_line_amount': 45.99,
u'customs_origin_country': u'CA',
u'customs_quantity': 1,
u'customs_quantity_units': u'EA',
u'customs_weight': 10,
u'invoice_line_description': u'My Description',
u'invoice_line_number': u'1',
u'invoice_line_part_number': u'123'}],
u'customs_forms': u'CMI',
u'customs_value': 45.99,
u'invoice': u'123',
u'invoice_date': u'2019-03-19',
u'packages': [{u'height': 8,
u'length': 6,
u'weight': 5,
u'width': 7}],
u'password': u'YOUR_PASSWORD',
u'reference_value': u'asdf',
u'service': u'P',
u'ship_addr1': u'5684 Bay St',
u'ship_city': u'Emeryville',
u'ship_code': u'94608',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'CA',
u'shipment_description': u'Fashion goods',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'2000 Meadowvale Road',
u'to_city': u'Toronto',
u'to_code': u'M1B5K7',
u'to_country': u'CA',
u'to_name': u'Toronto Zoo',
u'to_phone': u'1231231234',
u'to_state': u'MB',
u'trade_terms': u'DAP',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"customs_forms"=>"CMI",
"invoice"=>"123",
"invoice_date"=>"2019-03-19",
"shipment_description"=>"Fashion goods",
"customs_value"=>45.99,
"currency"=>"EUR",
"trade_terms"=>"DAP",
"packages"=>[{"weight"=>5, "length"=>6, "width"=>7, "height"=>8}],
"shipper"=>"RocketShipIt",
"ship_addr1"=>"5684 Bay St",
"ship_city"=>"Emeryville",
"ship_state"=>"CA",
"ship_code"=>"94608",
"ship_phone"=>"1231231234",
"ship_country"=>"US",
"to_name"=>"Toronto Zoo",
"to_addr1"=>"2000 Meadowvale Road",
"to_state"=>"MB",
"to_city"=>"Toronto",
"to_code"=>"M1B5K7",
"to_phone"=>"1231231234",
"to_country"=>"CA",
"test"=>true,
"service"=>"P",
"reference_value"=>"asdf",
"customs"=>
[{"commodity_code"=>"cc",
"commodity_name"=>"cn",
"invoice_line_number"=>"1",
"invoice_line_part_number"=>"123",
"invoice_line_description"=>"My Description",
"customs_line_amount"=>45.99,
"customs_origin_country"=>"CA",
"customs_quantity_units"=>"EA",
"customs_quantity"=>1,
"customs_weight"=>10}]}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"customs_forms": "CMI",
"invoice": "123",
"invoice_date": "2019-03-19",
"shipment_description": "Fashion goods",
"customs_value": 45.99,
"currency": "EUR",
"trade_terms": "DAP",
"packages": [
{
"weight": 5,
"length": 6,
"width": 7,
"height": 8
}
],
"shipper": "RocketShipIt",
"ship_addr1": "5684 Bay St",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "Toronto Zoo",
"to_addr1": "2000 Meadowvale Road",
"to_state": "MB",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_phone": "1231231234",
"to_country": "CA",
"test": true,
"service": "P",
"reference_value": "asdf",
"customs": [
{
"commodity_code": "cc",
"commodity_name": "cn",
"invoice_line_number": "1",
"invoice_line_part_number": "123",
"invoice_line_description": "My Description",
"customs_line_amount": 45.99,
"customs_origin_country": "CA",
"customs_quantity_units": "EA",
"customs_quantity": 1,
"customs_weight": 10
}
]
}
}
)
DHL - Label International CI Duties and Taxes Paid
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"customs_payment_type": "SENDER",
"customs_account_number": "1234",
"addons": [
"DD"
],
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"customs_forms": "CMI",
"invoice": "123",
"invoice_date": "2019-03-19",
"shipment_description": "Fashion goods",
"customs_value": 45.99,
"currency": "EUR",
"trade_terms": "DAP",
"packages": [
{
"weight": 5,
"length": 6,
"width": 7,
"height": 8
}
],
"shipper": "RocketShipIt",
"ship_addr1": "5684 Bay St",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "Toronto Zoo",
"to_addr1": "2000 Meadowvale Road",
"to_state": "MB",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_phone": "1231231234",
"to_country": "CA",
"test": true,
"service": "P",
"reference_value": "asdf",
"customs": [
{
"commodity_code": "cc",
"commodity_name": "cn",
"invoice_line_number": "1",
"invoice_line_part_number": "123",
"invoice_line_description": "My Description",
"customs_line_amount": 45.99,
"customs_origin_country": "CA",
"customs_quantity_units": "EA",
"customs_quantity": 1,
"customs_weight": 10
}
]
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'SubmitShipment',
'params' =>
array (
'customs_payment_type' => 'SENDER',
'customs_account_number' => '1234',
'addons' =>
array (
0 => 'DD',
),
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'customs_forms' => 'CMI',
'invoice' => '123',
'invoice_date' => '2019-03-19',
'shipment_description' => 'Fashion goods',
'customs_value' => 45.99,
'currency' => 'EUR',
'trade_terms' => 'DAP',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 6,
'width' => 7,
'height' => 8,
),
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '5684 Bay St',
'ship_city' => 'Emeryville',
'ship_state' => 'CA',
'ship_code' => '94608',
'ship_phone' => '1231231234',
'ship_country' => 'US',
'to_name' => 'Toronto Zoo',
'to_addr1' => '2000 Meadowvale Road',
'to_state' => 'MB',
'to_city' => 'Toronto',
'to_code' => 'M1B5K7',
'to_phone' => '1231231234',
'to_country' => 'CA',
'test' => true,
'service' => 'P',
'reference_value' => 'asdf',
'customs' =>
array (
0 =>
array (
'commodity_code' => 'cc',
'commodity_name' => 'cn',
'invoice_line_number' => '1',
'invoice_line_part_number' => '123',
'invoice_line_description' => 'My Description',
'customs_line_amount' => 45.99,
'customs_origin_country' => 'CA',
'customs_quantity_units' => 'EA',
'customs_quantity' => 1,
'customs_weight' => 10,
),
),
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'addons': [u'DD'],
u'currency': u'EUR',
u'customs': [{u'commodity_code': u'cc',
u'commodity_name': u'cn',
u'customs_line_amount': 45.99,
u'customs_origin_country': u'CA',
u'customs_quantity': 1,
u'customs_quantity_units': u'EA',
u'customs_weight': 10,
u'invoice_line_description': u'My Description',
u'invoice_line_number': u'1',
u'invoice_line_part_number': u'123'}],
u'customs_account_number': u'1234',
u'customs_forms': u'CMI',
u'customs_payment_type': u'SENDER',
u'customs_value': 45.99,
u'invoice': u'123',
u'invoice_date': u'2019-03-19',
u'packages': [{u'height': 8,
u'length': 6,
u'weight': 5,
u'width': 7}],
u'password': u'YOUR_PASSWORD',
u'reference_value': u'asdf',
u'service': u'P',
u'ship_addr1': u'5684 Bay St',
u'ship_city': u'Emeryville',
u'ship_code': u'94608',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'CA',
u'shipment_description': u'Fashion goods',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'2000 Meadowvale Road',
u'to_city': u'Toronto',
u'to_code': u'M1B5K7',
u'to_country': u'CA',
u'to_name': u'Toronto Zoo',
u'to_phone': u'1231231234',
u'to_state': u'MB',
u'trade_terms': u'DAP',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"SubmitShipment",
"params"=>
{"customs_payment_type"=>"SENDER",
"customs_account_number"=>"1234",
"addons"=>["DD"],
"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"customs_forms"=>"CMI",
"invoice"=>"123",
"invoice_date"=>"2019-03-19",
"shipment_description"=>"Fashion goods",
"customs_value"=>45.99,
"currency"=>"EUR",
"trade_terms"=>"DAP",
"packages"=>[{"weight"=>5, "length"=>6, "width"=>7, "height"=>8}],
"shipper"=>"RocketShipIt",
"ship_addr1"=>"5684 Bay St",
"ship_city"=>"Emeryville",
"ship_state"=>"CA",
"ship_code"=>"94608",
"ship_phone"=>"1231231234",
"ship_country"=>"US",
"to_name"=>"Toronto Zoo",
"to_addr1"=>"2000 Meadowvale Road",
"to_state"=>"MB",
"to_city"=>"Toronto",
"to_code"=>"M1B5K7",
"to_phone"=>"1231231234",
"to_country"=>"CA",
"test"=>true,
"service"=>"P",
"reference_value"=>"asdf",
"customs"=>
[{"commodity_code"=>"cc",
"commodity_name"=>"cn",
"invoice_line_number"=>"1",
"invoice_line_part_number"=>"123",
"invoice_line_description"=>"My Description",
"customs_line_amount"=>45.99,
"customs_origin_country"=>"CA",
"customs_quantity_units"=>"EA",
"customs_quantity"=>1,
"customs_weight"=>10}]}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"customs_payment_type": "SENDER",
"customs_account_number": "1234",
"addons": [
"DD"
],
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"customs_forms": "CMI",
"invoice": "123",
"invoice_date": "2019-03-19",
"shipment_description": "Fashion goods",
"customs_value": 45.99,
"currency": "EUR",
"trade_terms": "DAP",
"packages": [
{
"weight": 5,
"length": 6,
"width": 7,
"height": 8
}
],
"shipper": "RocketShipIt",
"ship_addr1": "5684 Bay St",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "Toronto Zoo",
"to_addr1": "2000 Meadowvale Road",
"to_state": "MB",
"to_city": "Toronto",
"to_code": "M1B5K7",
"to_phone": "1231231234",
"to_country": "CA",
"test": true,
"service": "P",
"reference_value": "asdf",
"customs": [
{
"commodity_code": "cc",
"commodity_name": "cn",
"invoice_line_number": "1",
"invoice_line_part_number": "123",
"invoice_line_description": "My Description",
"customs_line_amount": 45.99,
"customs_origin_country": "CA",
"customs_quantity_units": "EA",
"customs_quantity": 1,
"customs_weight": 10
}
]
}
}
)
DHL - Label International EOR VAT for EU ICS2 and VAT22
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"ship_tax_id": "15724854",
"ship_tax_id_type": "EOR",
"ship_tax_id_country": "US",
"ship_tax_id2": "5432523452342",
"ship_tax_id_type2": "VAT",
"ship_tax_id_country2": "US",
"to_tax_id": "15724854",
"to_tax_id_type": "EOR",
"to_tax_id_country": "US",
"to_tax_id2": "5432523452342",
"to_tax_id_type2": "VAT",
"to_tax_id_country2": "US",
"packages": [
{
"length": 17,
"width": 15,
"height": 13,
"weight": 18.0,
"reference_value": "C-8PDMV3"
}
],
"package_description": "C-8PDMV3",
"invoice": "C-8PDMV3",
"customs": [
{
"commodity_code": "000000",
"commodity_name": "cn",
"customs_description": "Acme product 1",
"invoice_line_description": "Acme product 1",
"customs_quantity": 1,
"customs_quantity_units": "PCS",
"customs_weight": 6.0,
"customs_value": 79.99,
"customs_line_amount": 79.99,
"customs_origin_country": "US",
"customs_hs_tariff": "000000",
"country_of_manufacture": "US"
},
{
"commodity_code": "000000",
"commodity_name": "cn",
"customs_description": "Acme Product 1",
"invoice_line_description": "Acme Product 1",
"customs_quantity": 1,
"customs_quantity_units": "PCS",
"customs_weight": 6.0,
"customs_value": 23.99,
"customs_line_amount": 23.99,
"customs_origin_country": "US",
"customs_hs_tariff": "000000",
"country_of_manufacture": "US"
},
{
"commodity_code": "000000",
"commodity_name": "cn",
"customs_description": "Acme Product 1",
"invoice_line_description": "Acme Product 1",
"customs_quantity": 1,
"customs_quantity_units": "PCS",
"customs_weight": 6.0,
"customs_value": 135.99,
"customs_line_amount": 135.99,
"customs_origin_country": "US",
"customs_hs_tariff": "000000",
"country_of_manufacture": "US"
}
],
"customs_forms": "CMI",
"customs_value": 239.97,
"currency": "USD",
"weight_unit": "LB",
"length_unit": "IN",
"request_archive_doc": true,
"shipper": "Acme",
"ship_contact": "John Doe",
"ship_name": "John Doe",
"ship_addr1": "123 Not a Real Address st",
"ship_addr2": "",
"ship_city": "Opa-Locka",
"ship_state": "FL",
"ship_code": "33054",
"ship_country": "US",
"ship_phone": "+12366288450",
"to_country": "KY",
"to_name": "Jane Doe",
"to_code": null,
"to_addr1": "123 West Bay Road",
"to_addr2": "Caribbean Plaza, North Building",
"to_city": "George Town",
"to_phone": "+12359286260",
"shipment_description": "Product description",
"pickup_type": "01",
"customer_classification": "01",
"packaging_type": "02",
"test": true,
"to_state": null,
"label_stock_type": "8X4_thermal",
"bill_country": "XC",
"billing": [
{
"account": "YOUR BILLING ACCOUNT NUMBER"
}
],
"trade_terms": "DDU",
"customs_payment_type": "RECEIVER",
"insured_value": 239.97,
"addons": [
"II"
],
"image_type": "pdf",
"service": "P"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'ship_tax_id' => '15724854',
'ship_tax_id_type' => 'EOR',
'ship_tax_id_country' => 'US',
'ship_tax_id2' => '5432523452342',
'ship_tax_id_type2' => 'VAT',
'ship_tax_id_country2' => 'US',
'to_tax_id' => '15724854',
'to_tax_id_type' => 'EOR',
'to_tax_id_country' => 'US',
'to_tax_id2' => '5432523452342',
'to_tax_id_type2' => 'VAT',
'to_tax_id_country2' => 'US',
'packages' =>
array (
0 =>
array (
'length' => 17,
'width' => 15,
'height' => 13,
'weight' => 18.0,
'reference_value' => 'C-8PDMV3',
),
),
'package_description' => 'C-8PDMV3',
'invoice' => 'C-8PDMV3',
'customs' =>
array (
0 =>
array (
'commodity_code' => '000000',
'commodity_name' => 'cn',
'customs_description' => 'Acme product 1',
'invoice_line_description' => 'Acme product 1',
'customs_quantity' => 1,
'customs_quantity_units' => 'PCS',
'customs_weight' => 6.0,
'customs_value' => 79.99,
'customs_line_amount' => 79.99,
'customs_origin_country' => 'US',
'customs_hs_tariff' => '000000',
'country_of_manufacture' => 'US',
),
1 =>
array (
'commodity_code' => '000000',
'commodity_name' => 'cn',
'customs_description' => 'Acme Product 1',
'invoice_line_description' => 'Acme Product 1',
'customs_quantity' => 1,
'customs_quantity_units' => 'PCS',
'customs_weight' => 6.0,
'customs_value' => 23.99,
'customs_line_amount' => 23.99,
'customs_origin_country' => 'US',
'customs_hs_tariff' => '000000',
'country_of_manufacture' => 'US',
),
2 =>
array (
'commodity_code' => '000000',
'commodity_name' => 'cn',
'customs_description' => 'Acme Product 1',
'invoice_line_description' => 'Acme Product 1',
'customs_quantity' => 1,
'customs_quantity_units' => 'PCS',
'customs_weight' => 6.0,
'customs_value' => 135.99,
'customs_line_amount' => 135.99,
'customs_origin_country' => 'US',
'customs_hs_tariff' => '000000',
'country_of_manufacture' => 'US',
),
),
'customs_forms' => 'CMI',
'customs_value' => 239.97,
'currency' => 'USD',
'weight_unit' => 'LB',
'length_unit' => 'IN',
'request_archive_doc' => true,
'shipper' => 'Acme',
'ship_contact' => 'John Doe',
'ship_name' => 'John Doe',
'ship_addr1' => '123 Not a Real Address st',
'ship_addr2' => '',
'ship_city' => 'Opa-Locka',
'ship_state' => 'FL',
'ship_code' => '33054',
'ship_country' => 'US',
'ship_phone' => '+12366288450',
'to_country' => 'KY',
'to_name' => 'Jane Doe',
'to_code' => NULL,
'to_addr1' => '123 West Bay Road',
'to_addr2' => 'Caribbean Plaza, North Building',
'to_city' => 'George Town',
'to_phone' => '+12359286260',
'shipment_description' => 'Product description',
'pickup_type' => '01',
'customer_classification' => '01',
'packaging_type' => '02',
'test' => true,
'to_state' => NULL,
'label_stock_type' => '8X4_thermal',
'bill_country' => 'XC',
'billing' =>
array (
0 =>
array (
'account' => 'YOUR BILLING ACCOUNT NUMBER',
),
),
'trade_terms' => 'DDU',
'customs_payment_type' => 'RECEIVER',
'insured_value' => 239.97,
'addons' =>
array (
0 => 'II',
),
'image_type' => 'pdf',
'service' => 'P',
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'addons': [u'II'],
u'bill_country': u'XC',
u'billing': [{u'account': u'YOUR BILLING ACCOUNT NUMBER'}],
u'currency': u'USD',
u'customer_classification': u'01',
u'customs': [{u'commodity_code': u'000000',
u'commodity_name': u'cn',
u'country_of_manufacture': u'US',
u'customs_description': u'Acme product 1',
u'customs_hs_tariff': u'000000',
u'customs_line_amount': 79.99,
u'customs_origin_country': u'US',
u'customs_quantity': 1,
u'customs_quantity_units': u'PCS',
u'customs_value': 79.99,
u'customs_weight': 6.0,
u'invoice_line_description': u'Acme product 1'},
{u'commodity_code': u'000000',
u'commodity_name': u'cn',
u'country_of_manufacture': u'US',
u'customs_description': u'Acme Product 1',
u'customs_hs_tariff': u'000000',
u'customs_line_amount': 23.99,
u'customs_origin_country': u'US',
u'customs_quantity': 1,
u'customs_quantity_units': u'PCS',
u'customs_value': 23.99,
u'customs_weight': 6.0,
u'invoice_line_description': u'Acme Product 1'},
{u'commodity_code': u'000000',
u'commodity_name': u'cn',
u'country_of_manufacture': u'US',
u'customs_description': u'Acme Product 1',
u'customs_hs_tariff': u'000000',
u'customs_line_amount': 135.99,
u'customs_origin_country': u'US',
u'customs_quantity': 1,
u'customs_quantity_units': u'PCS',
u'customs_value': 135.99,
u'customs_weight': 6.0,
u'invoice_line_description': u'Acme Product 1'}],
u'customs_forms': u'CMI',
u'customs_payment_type': u'RECEIVER',
u'customs_value': 239.97,
u'image_type': u'pdf',
u'insured_value': 239.97,
u'invoice': u'C-8PDMV3',
u'label_stock_type': u'8X4_thermal',
u'length_unit': u'IN',
u'package_description': u'C-8PDMV3',
u'packages': [{u'height': 13,
u'length': 17,
u'reference_value': u'C-8PDMV3',
u'weight': 18.0,
u'width': 15}],
u'packaging_type': u'02',
u'password': u'YOUR_PASSWORD',
u'pickup_type': u'01',
u'request_archive_doc': True,
u'service': u'P',
u'ship_addr1': u'123 Not a Real Address st',
u'ship_addr2': u'',
u'ship_city': u'Opa-Locka',
u'ship_code': u'33054',
u'ship_contact': u'John Doe',
u'ship_country': u'US',
u'ship_name': u'John Doe',
u'ship_phone': u'+12366288450',
u'ship_state': u'FL',
u'ship_tax_id': u'15724854',
u'ship_tax_id2': u'5432523452342',
u'ship_tax_id_country': u'US',
u'ship_tax_id_country2': u'US',
u'ship_tax_id_type': u'EOR',
u'ship_tax_id_type2': u'VAT',
u'shipment_description': u'Product description',
u'shipper': u'Acme',
u'test': True,
u'to_addr1': u'123 West Bay Road',
u'to_addr2': u'Caribbean Plaza, North Building',
u'to_city': u'George Town',
u'to_code': None,
u'to_country': u'KY',
u'to_name': u'Jane Doe',
u'to_phone': u'+12359286260',
u'to_state': None,
u'to_tax_id': u'15724854',
u'to_tax_id2': u'5432523452342',
u'to_tax_id_country': u'US',
u'to_tax_id_country2': u'US',
u'to_tax_id_type': u'EOR',
u'to_tax_id_type2': u'VAT',
u'trade_terms': u'DDU',
u'username': u'YOUR_USERNAME',
u'weight_unit': u'LB'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"ship_tax_id"=>"15724854",
"ship_tax_id_type"=>"EOR",
"ship_tax_id_country"=>"US",
"ship_tax_id2"=>"5432523452342",
"ship_tax_id_type2"=>"VAT",
"ship_tax_id_country2"=>"US",
"to_tax_id"=>"15724854",
"to_tax_id_type"=>"EOR",
"to_tax_id_country"=>"US",
"to_tax_id2"=>"5432523452342",
"to_tax_id_type2"=>"VAT",
"to_tax_id_country2"=>"US",
"packages"=>
[{"length"=>17,
"width"=>15,
"height"=>13,
"weight"=>18.0,
"reference_value"=>"C-8PDMV3"}],
"package_description"=>"C-8PDMV3",
"invoice"=>"C-8PDMV3",
"customs"=>
[{"commodity_code"=>"000000",
"commodity_name"=>"cn",
"customs_description"=>"Acme product 1",
"invoice_line_description"=>"Acme product 1",
"customs_quantity"=>1,
"customs_quantity_units"=>"PCS",
"customs_weight"=>6.0,
"customs_value"=>79.99,
"customs_line_amount"=>79.99,
"customs_origin_country"=>"US",
"customs_hs_tariff"=>"000000",
"country_of_manufacture"=>"US"},
{"commodity_code"=>"000000",
"commodity_name"=>"cn",
"customs_description"=>"Acme Product 1",
"invoice_line_description"=>"Acme Product 1",
"customs_quantity"=>1,
"customs_quantity_units"=>"PCS",
"customs_weight"=>6.0,
"customs_value"=>23.99,
"customs_line_amount"=>23.99,
"customs_origin_country"=>"US",
"customs_hs_tariff"=>"000000",
"country_of_manufacture"=>"US"},
{"commodity_code"=>"000000",
"commodity_name"=>"cn",
"customs_description"=>"Acme Product 1",
"invoice_line_description"=>"Acme Product 1",
"customs_quantity"=>1,
"customs_quantity_units"=>"PCS",
"customs_weight"=>6.0,
"customs_value"=>135.99,
"customs_line_amount"=>135.99,
"customs_origin_country"=>"US",
"customs_hs_tariff"=>"000000",
"country_of_manufacture"=>"US"}],
"customs_forms"=>"CMI",
"customs_value"=>239.97,
"currency"=>"USD",
"weight_unit"=>"LB",
"length_unit"=>"IN",
"request_archive_doc"=>true,
"shipper"=>"Acme",
"ship_contact"=>"John Doe",
"ship_name"=>"John Doe",
"ship_addr1"=>"123 Not a Real Address st",
"ship_addr2"=>"",
"ship_city"=>"Opa-Locka",
"ship_state"=>"FL",
"ship_code"=>"33054",
"ship_country"=>"US",
"ship_phone"=>"+12366288450",
"to_country"=>"KY",
"to_name"=>"Jane Doe",
"to_code"=>nil,
"to_addr1"=>"123 West Bay Road",
"to_addr2"=>"Caribbean Plaza, North Building",
"to_city"=>"George Town",
"to_phone"=>"+12359286260",
"shipment_description"=>"Product description",
"pickup_type"=>"01",
"customer_classification"=>"01",
"packaging_type"=>"02",
"test"=>true,
"to_state"=>nil,
"label_stock_type"=>"8X4_thermal",
"bill_country"=>"XC",
"billing"=>[{"account"=>"YOUR BILLING ACCOUNT NUMBER"}],
"trade_terms"=>"DDU",
"customs_payment_type"=>"RECEIVER",
"insured_value"=>239.97,
"addons"=>["II"],
"image_type"=>"pdf",
"service"=>"P"}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"ship_tax_id": "15724854",
"ship_tax_id_type": "EOR",
"ship_tax_id_country": "US",
"ship_tax_id2": "5432523452342",
"ship_tax_id_type2": "VAT",
"ship_tax_id_country2": "US",
"to_tax_id": "15724854",
"to_tax_id_type": "EOR",
"to_tax_id_country": "US",
"to_tax_id2": "5432523452342",
"to_tax_id_type2": "VAT",
"to_tax_id_country2": "US",
"packages": [
{
"length": 17,
"width": 15,
"height": 13,
"weight": 18.0,
"reference_value": "C-8PDMV3"
}
],
"package_description": "C-8PDMV3",
"invoice": "C-8PDMV3",
"customs": [
{
"commodity_code": "000000",
"commodity_name": "cn",
"customs_description": "Acme product 1",
"invoice_line_description": "Acme product 1",
"customs_quantity": 1,
"customs_quantity_units": "PCS",
"customs_weight": 6.0,
"customs_value": 79.99,
"customs_line_amount": 79.99,
"customs_origin_country": "US",
"customs_hs_tariff": "000000",
"country_of_manufacture": "US"
},
{
"commodity_code": "000000",
"commodity_name": "cn",
"customs_description": "Acme Product 1",
"invoice_line_description": "Acme Product 1",
"customs_quantity": 1,
"customs_quantity_units": "PCS",
"customs_weight": 6.0,
"customs_value": 23.99,
"customs_line_amount": 23.99,
"customs_origin_country": "US",
"customs_hs_tariff": "000000",
"country_of_manufacture": "US"
},
{
"commodity_code": "000000",
"commodity_name": "cn",
"customs_description": "Acme Product 1",
"invoice_line_description": "Acme Product 1",
"customs_quantity": 1,
"customs_quantity_units": "PCS",
"customs_weight": 6.0,
"customs_value": 135.99,
"customs_line_amount": 135.99,
"customs_origin_country": "US",
"customs_hs_tariff": "000000",
"country_of_manufacture": "US"
}
],
"customs_forms": "CMI",
"customs_value": 239.97,
"currency": "USD",
"weight_unit": "LB",
"length_unit": "IN",
"request_archive_doc": true,
"shipper": "Acme",
"ship_contact": "John Doe",
"ship_name": "John Doe",
"ship_addr1": "123 Not a Real Address st",
"ship_addr2": "",
"ship_city": "Opa-Locka",
"ship_state": "FL",
"ship_code": "33054",
"ship_country": "US",
"ship_phone": "+12366288450",
"to_country": "KY",
"to_name": "Jane Doe",
"to_code": null,
"to_addr1": "123 West Bay Road",
"to_addr2": "Caribbean Plaza, North Building",
"to_city": "George Town",
"to_phone": "+12359286260",
"shipment_description": "Product description",
"pickup_type": "01",
"customer_classification": "01",
"packaging_type": "02",
"test": true,
"to_state": null,
"label_stock_type": "8X4_thermal",
"bill_country": "XC",
"billing": [
{
"account": "YOUR BILLING ACCOUNT NUMBER"
}
],
"trade_terms": "DDU",
"customs_payment_type": "RECEIVER",
"insured_value": 239.97,
"addons": [
"II"
],
"image_type": "pdf",
"service": "P"
}
}
)
DHL - Label International Local Product Code
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"username": "",
"password": "",
"account_number": "",
"shipper": "Your Company",
"ship_contact": "Your Name",
"ship_addr1": "Sanhedria Murchevet 102\/8",
"ship_city": "Jerusalem",
"ship_code": "9770602",
"ship_phone": "+9723128183524",
"ship_country": "IL",
"to_name": "John Doe",
"to_addr1": "1415 E 12TH ST",
"to_state": "NY",
"to_city": "BROOKLYN",
"to_code": "11230-6605",
"to_country": "US",
"packages": [
{
"weight": 0.5,
"length": 1,
"width": 1,
"height": 1,
"reference_value": "SYK"
}
],
"local_service": "E",
"service": "X",
"image_type": "PDF",
"currency": "USD",
"documents_only": true,
"request_archive_doc": true,
"packaging_type": "EE",
"shipment_description": "Documents",
"customs_value": 0,
"trade_terms": "DAP"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => '',
'password' => '',
'account_number' => '',
'shipper' => 'Your Company',
'ship_contact' => 'Your Name',
'ship_addr1' => 'Sanhedria Murchevet 102/8',
'ship_city' => 'Jerusalem',
'ship_code' => '9770602',
'ship_phone' => '+9723128183524',
'ship_country' => 'IL',
'to_name' => 'John Doe',
'to_addr1' => '1415 E 12TH ST',
'to_state' => 'NY',
'to_city' => 'BROOKLYN',
'to_code' => '11230-6605',
'to_country' => 'US',
'packages' =>
array (
0 =>
array (
'weight' => 0.5,
'length' => 1,
'width' => 1,
'height' => 1,
'reference_value' => 'SYK',
),
),
'local_service' => 'E',
'service' => 'X',
'image_type' => 'PDF',
'currency' => 'USD',
'documents_only' => true,
'request_archive_doc' => true,
'packaging_type' => 'EE',
'shipment_description' => 'Documents',
'customs_value' => 0,
'trade_terms' => 'DAP',
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL',
u'params': {u'account_number': u'',
u'currency': u'USD',
u'customs_value': 0,
u'documents_only': True,
u'image_type': u'PDF',
u'local_service': u'E',
u'packages': [{u'height': 1,
u'length': 1,
u'reference_value': u'SYK',
u'weight': 0.5,
u'width': 1}],
u'packaging_type': u'EE',
u'password': u'',
u'request_archive_doc': True,
u'service': u'X',
u'ship_addr1': u'Sanhedria Murchevet 102/8',
u'ship_city': u'Jerusalem',
u'ship_code': u'9770602',
u'ship_contact': u'Your Name',
u'ship_country': u'IL',
u'ship_phone': u'+9723128183524',
u'shipment_description': u'Documents',
u'shipper': u'Your Company',
u'to_addr1': u'1415 E 12TH ST',
u'to_city': u'BROOKLYN',
u'to_code': u'11230-6605',
u'to_country': u'US',
u'to_name': u'John Doe',
u'to_state': u'NY',
u'trade_terms': u'DAP',
u'username': u''}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"",
"password"=>"",
"account_number"=>"",
"shipper"=>"Your Company",
"ship_contact"=>"Your Name",
"ship_addr1"=>"Sanhedria Murchevet 102/8",
"ship_city"=>"Jerusalem",
"ship_code"=>"9770602",
"ship_phone"=>"+9723128183524",
"ship_country"=>"IL",
"to_name"=>"John Doe",
"to_addr1"=>"1415 E 12TH ST",
"to_state"=>"NY",
"to_city"=>"BROOKLYN",
"to_code"=>"11230-6605",
"to_country"=>"US",
"packages"=>
[{"weight"=>0.5,
"length"=>1,
"width"=>1,
"height"=>1,
"reference_value"=>"SYK"}],
"local_service"=>"E",
"service"=>"X",
"image_type"=>"PDF",
"currency"=>"USD",
"documents_only"=>true,
"request_archive_doc"=>true,
"packaging_type"=>"EE",
"shipment_description"=>"Documents",
"customs_value"=>0,
"trade_terms"=>"DAP"}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"username": "",
"password": "",
"account_number": "",
"shipper": "Your Company",
"ship_contact": "Your Name",
"ship_addr1": "Sanhedria Murchevet 102\/8",
"ship_city": "Jerusalem",
"ship_code": "9770602",
"ship_phone": "+9723128183524",
"ship_country": "IL",
"to_name": "John Doe",
"to_addr1": "1415 E 12TH ST",
"to_state": "NY",
"to_city": "BROOKLYN",
"to_code": "11230-6605",
"to_country": "US",
"packages": [
{
"weight": 0.5,
"length": 1,
"width": 1,
"height": 1,
"reference_value": "SYK"
}
],
"local_service": "E",
"service": "X",
"image_type": "PDF",
"currency": "USD",
"documents_only": true,
"request_archive_doc": true,
"packaging_type": "EE",
"shipment_description": "Documents",
"customs_value": 0,
"trade_terms": "DAP"
}
}
)
DHL - Label Third Party Billing
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"account_number": "803921577",
"billing": [
{
"type": "transportation",
"payment_type": "third_party",
"account": "abc123"
}
],
"packages": [
{
"weight": 4,
"length": 7,
"width": 4,
"height": 4
}
],
"service": "N",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => '803921577',
'billing' =>
array (
0 =>
array (
'type' => 'transportation',
'payment_type' => 'third_party',
'account' => 'abc123',
),
),
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 4,
'height' => 4,
),
),
'service' => 'N',
'shipper' => 'RocketShipIt',
'ship_addr1' => '1401 Park Ave',
'ship_city' => 'Emeryville',
'ship_state' => 'CA',
'ship_code' => '94608',
'ship_phone' => '1231231234',
'ship_country' => 'US',
'to_name' => 'John Doe',
'to_addr1' => '940 Presidio Ave',
'to_addr2' => '#103',
'to_state' => 'CA',
'to_city' => 'San Francisco',
'to_code' => '94115',
'to_country' => 'US',
'image_type' => 'PDF',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL',
u'params': {u'account_number': u'803921577',
u'billing': [{u'account': u'abc123',
u'payment_type': u'third_party',
u'type': u'transportation'}],
u'image_type': u'PDF',
u'packages': [{u'height': 4,
u'length': 7,
u'weight': 4,
u'width': 4}],
u'service': u'N',
u'ship_addr1': u'1401 Park Ave',
u'ship_city': u'Emeryville',
u'ship_code': u'94608',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'CA',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'940 Presidio Ave',
u'to_addr2': u'#103',
u'to_city': u'San Francisco',
u'to_code': u'94115',
u'to_country': u'US',
u'to_name': u'John Doe',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"SubmitShipment",
"params"=>
{"account_number"=>"803921577",
"billing"=>
[{"type"=>"transportation",
"payment_type"=>"third_party",
"account"=>"abc123"}],
"packages"=>[{"weight"=>4, "length"=>7, "width"=>4, "height"=>4}],
"service"=>"N",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"1401 Park Ave",
"ship_city"=>"Emeryville",
"ship_state"=>"CA",
"ship_code"=>"94608",
"ship_phone"=>"1231231234",
"ship_country"=>"US",
"to_name"=>"John Doe",
"to_addr1"=>"940 Presidio Ave",
"to_addr2"=>"#103",
"to_state"=>"CA",
"to_city"=>"San Francisco",
"to_code"=>"94115",
"to_country"=>"US",
"image_type"=>"PDF",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"account_number": "803921577",
"billing": [
{
"type": "transportation",
"payment_type": "third_party",
"account": "abc123"
}
],
"packages": [
{
"weight": 4,
"length": 7,
"width": 4,
"height": 4
}
],
"service": "N",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"test": true
}
}
)
DHL - Label with Insurance
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"account_number": "803921577",
"addons": [
"II"
],
"insured_value": 1000.00,
"insured_currenty": "USD",
"packages": [
{
"weight": 4,
"length": 7,
"width": 4,
"height": 4
}
],
"service": "N",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => '803921577',
'addons' =>
array (
0 => 'II',
),
'insured_value' => 1000.0,
'insured_currenty' => 'USD',
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 4,
'height' => 4,
),
),
'service' => 'N',
'shipper' => 'RocketShipIt',
'ship_addr1' => '1401 Park Ave',
'ship_city' => 'Emeryville',
'ship_state' => 'CA',
'ship_code' => '94608',
'ship_phone' => '1231231234',
'ship_country' => 'US',
'to_name' => 'John Doe',
'to_addr1' => '940 Presidio Ave',
'to_addr2' => '#103',
'to_state' => 'CA',
'to_city' => 'San Francisco',
'to_code' => '94115',
'to_country' => 'US',
'image_type' => 'PDF',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL',
u'params': {u'account_number': u'803921577',
u'addons': [u'II'],
u'image_type': u'PDF',
u'insured_currenty': u'USD',
u'insured_value': 1000.0,
u'packages': [{u'height': 4,
u'length': 7,
u'weight': 4,
u'width': 4}],
u'service': u'N',
u'ship_addr1': u'1401 Park Ave',
u'ship_city': u'Emeryville',
u'ship_code': u'94608',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'CA',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'940 Presidio Ave',
u'to_addr2': u'#103',
u'to_city': u'San Francisco',
u'to_code': u'94115',
u'to_country': u'US',
u'to_name': u'John Doe',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"SubmitShipment",
"params"=>
{"account_number"=>"803921577",
"addons"=>["II"],
"insured_value"=>1000.0,
"insured_currenty"=>"USD",
"packages"=>[{"weight"=>4, "length"=>7, "width"=>4, "height"=>4}],
"service"=>"N",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"1401 Park Ave",
"ship_city"=>"Emeryville",
"ship_state"=>"CA",
"ship_code"=>"94608",
"ship_phone"=>"1231231234",
"ship_country"=>"US",
"to_name"=>"John Doe",
"to_addr1"=>"940 Presidio Ave",
"to_addr2"=>"#103",
"to_state"=>"CA",
"to_city"=>"San Francisco",
"to_code"=>"94115",
"to_country"=>"US",
"image_type"=>"PDF",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"account_number": "803921577",
"addons": [
"II"
],
"insured_value": 1000.00,
"insured_currenty": "USD",
"packages": [
{
"weight": 4,
"length": 7,
"width": 4,
"height": 4
}
],
"service": "N",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"test": true
}
}
)
DHL - Label with Waybill Doc
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"request_archive_doc": true,
"account_number": "803921577",
"packages": [
{
"weight": 4,
"length": 7,
"width": 4,
"height": 4
}
],
"service": "N",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'SubmitShipment',
'params' =>
array (
'request_archive_doc' => true,
'account_number' => '803921577',
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 4,
'height' => 4,
),
),
'service' => 'N',
'shipper' => 'RocketShipIt',
'ship_addr1' => '1401 Park Ave',
'ship_city' => 'Emeryville',
'ship_state' => 'CA',
'ship_code' => '94608',
'ship_phone' => '1231231234',
'ship_country' => 'US',
'to_name' => 'John Doe',
'to_addr1' => '940 Presidio Ave',
'to_addr2' => '#103',
'to_state' => 'CA',
'to_city' => 'San Francisco',
'to_code' => '94115',
'to_country' => 'US',
'image_type' => 'PDF',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL',
u'params': {u'account_number': u'803921577',
u'image_type': u'PDF',
u'packages': [{u'height': 4,
u'length': 7,
u'weight': 4,
u'width': 4}],
u'request_archive_doc': True,
u'service': u'N',
u'ship_addr1': u'1401 Park Ave',
u'ship_city': u'Emeryville',
u'ship_code': u'94608',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'CA',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'940 Presidio Ave',
u'to_addr2': u'#103',
u'to_city': u'San Francisco',
u'to_code': u'94115',
u'to_country': u'US',
u'to_name': u'John Doe',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"SubmitShipment",
"params"=>
{"request_archive_doc"=>true,
"account_number"=>"803921577",
"packages"=>[{"weight"=>4, "length"=>7, "width"=>4, "height"=>4}],
"service"=>"N",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"1401 Park Ave",
"ship_city"=>"Emeryville",
"ship_state"=>"CA",
"ship_code"=>"94608",
"ship_phone"=>"1231231234",
"ship_country"=>"US",
"to_name"=>"John Doe",
"to_addr1"=>"940 Presidio Ave",
"to_addr2"=>"#103",
"to_state"=>"CA",
"to_city"=>"San Francisco",
"to_code"=>"94115",
"to_country"=>"US",
"image_type"=>"PDF",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"request_archive_doc": true,
"account_number": "803921577",
"packages": [
{
"weight": 4,
"length": 7,
"width": 4,
"height": 4
}
],
"service": "N",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"test": true
}
}
)
DHL - Label with reference
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"packages": [
{
"weight": 4,
"length": 7,
"width": 1,
"height": 1,
"reference_value": "asdf"
}
],
"service": "N",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"account_number": "803921577",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'SubmitShipment',
'params' =>
array (
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
'width' => 1,
'height' => 1,
'reference_value' => 'asdf',
),
),
'service' => 'N',
'shipper' => 'RocketShipIt',
'ship_addr1' => '1401 Park Ave',
'ship_city' => 'Emeryville',
'ship_state' => 'CA',
'ship_code' => '94608',
'ship_phone' => '1231231234',
'ship_country' => 'US',
'to_name' => 'John Doe',
'to_addr1' => '940 Presidio Ave',
'to_addr2' => '#103',
'to_state' => 'CA',
'to_city' => 'San Francisco',
'to_code' => '94115',
'to_country' => 'US',
'image_type' => 'PDF',
'account_number' => '803921577',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL',
u'params': {u'account_number': u'803921577',
u'image_type': u'PDF',
u'packages': [{u'height': 1,
u'length': 7,
u'reference_value': u'asdf',
u'weight': 4,
u'width': 1}],
u'service': u'N',
u'ship_addr1': u'1401 Park Ave',
u'ship_city': u'Emeryville',
u'ship_code': u'94608',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'CA',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'940 Presidio Ave',
u'to_addr2': u'#103',
u'to_city': u'San Francisco',
u'to_code': u'94115',
u'to_country': u'US',
u'to_name': u'John Doe',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"SubmitShipment",
"params"=>
{"packages"=>
[{"weight"=>4,
"length"=>7,
"width"=>1,
"height"=>1,
"reference_value"=>"asdf"}],
"service"=>"N",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"1401 Park Ave",
"ship_city"=>"Emeryville",
"ship_state"=>"CA",
"ship_code"=>"94608",
"ship_phone"=>"1231231234",
"ship_country"=>"US",
"to_name"=>"John Doe",
"to_addr1"=>"940 Presidio Ave",
"to_addr2"=>"#103",
"to_state"=>"CA",
"to_city"=>"San Francisco",
"to_code"=>"94115",
"to_country"=>"US",
"image_type"=>"PDF",
"account_number"=>"803921577",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "SubmitShipment",
"params": {
"packages": [
{
"weight": 4,
"length": 7,
"width": 1,
"height": 1,
"reference_value": "asdf"
}
],
"service": "N",
"shipper": "RocketShipIt",
"ship_addr1": "1401 Park Ave",
"ship_city": "Emeryville",
"ship_state": "CA",
"ship_code": "94608",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PDF",
"account_number": "803921577",
"test": true
}
}
)
DHL - Pickup Cancel
{
"carrier": "DHL",
"action": "CancelPickup",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"pickup_id": "2929AONCALL",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'CancelPickup',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'pickup_id' => '2929AONCALL',
'test' => true,
),
)
);
rs.request(
{u'action': u'CancelPickup',
u'carrier': u'DHL',
u'params': {u'password': u'YOUR_PASSWORD',
u'pickup_id': u'2929AONCALL',
u'test': True,
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"CancelPickup",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"pickup_id"=>"2929AONCALL",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "CancelPickup",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"pickup_id": "2929AONCALL",
"test": true
}
}
)
DHL - Pickup Schedule
{
"carrier": "DHL",
"action": "CreatePickup",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "803921577",
"packages": [
{
"weight": 5,
"width": 10,
"length": 10,
"height": 10
}
],
"shipper": "Acme Inc.",
"ship_contact": "John Doe",
"ship_country": "US",
"ship_phone": "123-123-1234",
"ship_city": "San Francisco",
"ship_code": "94115",
"ship_addr1": "101 Main st",
"to_code": "90210",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'CreatePickup',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'account_number' => '803921577',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'width' => 10,
'length' => 10,
'height' => 10,
),
),
'shipper' => 'Acme Inc.',
'ship_contact' => 'John Doe',
'ship_country' => 'US',
'ship_phone' => '123-123-1234',
'ship_city' => 'San Francisco',
'ship_code' => '94115',
'ship_addr1' => '101 Main st',
'to_code' => '90210',
'test' => true,
),
)
);
rs.request(
{u'action': u'CreatePickup',
u'carrier': u'DHL',
u'params': {u'account_number': u'803921577',
u'packages': [{u'height': 10,
u'length': 10,
u'weight': 5,
u'width': 10}],
u'password': u'YOUR_PASSWORD',
u'ship_addr1': u'101 Main st',
u'ship_city': u'San Francisco',
u'ship_code': u'94115',
u'ship_contact': u'John Doe',
u'ship_country': u'US',
u'ship_phone': u'123-123-1234',
u'shipper': u'Acme Inc.',
u'test': True,
u'to_code': u'90210',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"CreatePickup",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"account_number"=>"803921577",
"packages"=>[{"weight"=>5, "width"=>10, "length"=>10, "height"=>10}],
"shipper"=>"Acme Inc.",
"ship_contact"=>"John Doe",
"ship_country"=>"US",
"ship_phone"=>"123-123-1234",
"ship_city"=>"San Francisco",
"ship_code"=>"94115",
"ship_addr1"=>"101 Main st",
"to_code"=>"90210",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "CreatePickup",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "803921577",
"packages": [
{
"weight": 5,
"width": 10,
"length": 10,
"height": 10
}
],
"shipper": "Acme Inc.",
"ship_contact": "John Doe",
"ship_country": "US",
"ship_phone": "123-123-1234",
"ship_city": "San Francisco",
"ship_code": "94115",
"ship_addr1": "101 Main st",
"to_code": "90210",
"test": true
}
}
)
DHL - Rates
{
"carrier": "DHL",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 5
}
],
"ship_city": "San Francisco",
"ship_code": "94115",
"to_code": "90210",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'GetAllRates',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 5,
),
),
'ship_city' => 'San Francisco',
'ship_code' => '94115',
'to_code' => '90210',
'test' => true,
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'DHL',
u'params': {u'packages': [{u'weight': 5}],
u'password': u'YOUR_PASSWORD',
u'ship_city': u'San Francisco',
u'ship_code': u'94115',
u'test': True,
u'to_code': u'90210',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"GetAllRates",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"packages"=>[{"weight"=>5}],
"ship_city"=>"San Francisco",
"ship_code"=>"94115",
"to_code"=>"90210",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 5
}
],
"ship_city": "San Francisco",
"ship_code": "94115",
"to_code": "90210",
"test": true
}
}
)
DHL - Rates International
{
"carrier": "DHL",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"customs_value": 100.20,
"currency": "EUR",
"packages": [
{
"weight": 0.5,
"length": 15.0,
"width": 10.0,
"height": 4.0
}
],
"weight_unit": "KG",
"length_unit": "CM",
"shipper": "Tom1again SRL",
"ship_addr1": "Dieselstrasse 5B",
"ship_code": "61476",
"ship_city": "Kronberg",
"ship_country": "DE",
"to_country": "RO",
"to_code": "920004",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'GetAllRates',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'customs_value' => 100.2,
'currency' => 'EUR',
'packages' =>
array (
0 =>
array (
'weight' => 0.5,
'length' => 15.0,
'width' => 10.0,
'height' => 4.0,
),
),
'weight_unit' => 'KG',
'length_unit' => 'CM',
'shipper' => 'Tom1again SRL',
'ship_addr1' => 'Dieselstrasse 5B',
'ship_code' => '61476',
'ship_city' => 'Kronberg',
'ship_country' => 'DE',
'to_country' => 'RO',
'to_code' => '920004',
'test' => true,
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'DHL',
u'params': {u'currency': u'EUR',
u'customs_value': 100.2,
u'length_unit': u'CM',
u'packages': [{u'height': 4.0,
u'length': 15.0,
u'weight': 0.5,
u'width': 10.0}],
u'password': u'YOUR_PASSWORD',
u'ship_addr1': u'Dieselstrasse 5B',
u'ship_city': u'Kronberg',
u'ship_code': u'61476',
u'ship_country': u'DE',
u'shipper': u'Tom1again SRL',
u'test': True,
u'to_code': u'920004',
u'to_country': u'RO',
u'username': u'YOUR_USERNAME',
u'weight_unit': u'KG'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"GetAllRates",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"customs_value"=>100.2,
"currency"=>"EUR",
"packages"=>[{"weight"=>0.5, "length"=>15.0, "width"=>10.0, "height"=>4.0}],
"weight_unit"=>"KG",
"length_unit"=>"CM",
"shipper"=>"Tom1again SRL",
"ship_addr1"=>"Dieselstrasse 5B",
"ship_code"=>"61476",
"ship_city"=>"Kronberg",
"ship_country"=>"DE",
"to_country"=>"RO",
"to_code"=>"920004",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"customs_value": 100.20,
"currency": "EUR",
"packages": [
{
"weight": 0.5,
"length": 15.0,
"width": 10.0,
"height": 4.0
}
],
"weight_unit": "KG",
"length_unit": "CM",
"shipper": "Tom1again SRL",
"ship_addr1": "Dieselstrasse 5B",
"ship_code": "61476",
"ship_city": "Kronberg",
"ship_country": "DE",
"to_country": "RO",
"to_code": "920004",
"test": true
}
}
)
DHL - Rates Multi-package
{
"carrier": "DHL",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 5
},
{
"weight": 5
}
],
"ship_city": "San Francisco",
"ship_code": "94115",
"to_code": "90210",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'GetAllRates',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 5,
),
1 =>
array (
'weight' => 5,
),
),
'ship_city' => 'San Francisco',
'ship_code' => '94115',
'to_code' => '90210',
'test' => true,
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'DHL',
u'params': {u'packages': [{u'weight': 5}, {u'weight': 5}],
u'password': u'YOUR_PASSWORD',
u'ship_city': u'San Francisco',
u'ship_code': u'94115',
u'test': True,
u'to_code': u'90210',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"GetAllRates",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"packages"=>[{"weight"=>5}, {"weight"=>5}],
"ship_city"=>"San Francisco",
"ship_code"=>"94115",
"to_code"=>"90210",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 5
},
{
"weight": 5
}
],
"ship_city": "San Francisco",
"ship_code": "94115",
"to_code": "90210",
"test": true
}
}
)
DHL - Rates with Insurance
{
"carrier": "DHL",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 5,
"insured_value": 200
}
],
"ship_city": "San Francisco",
"ship_code": "94115",
"to_code": "90210",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'GetAllRates',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'insured_value' => 200,
),
),
'ship_city' => 'San Francisco',
'ship_code' => '94115',
'to_code' => '90210',
'test' => true,
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'DHL',
u'params': {u'packages': [{u'insured_value': 200, u'weight': 5}],
u'password': u'YOUR_PASSWORD',
u'ship_city': u'San Francisco',
u'ship_code': u'94115',
u'test': True,
u'to_code': u'90210',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"GetAllRates",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"packages"=>[{"weight"=>5, "insured_value"=>200}],
"ship_city"=>"San Francisco",
"ship_code"=>"94115",
"to_code"=>"90210",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 5,
"insured_value": 200
}
],
"ship_city": "San Francisco",
"ship_code": "94115",
"to_code": "90210",
"test": true
}
}
)
DHL - Time in Transit
{
"carrier": "DHL",
"action": "timeintransit",
"params": {
"test": true,
"shipper": "RocketShipIt",
"ship_contact": "Mark Sanborn",
"ship_phone": "1231231234",
"ship_state": "CA",
"ship_code": "90210",
"ship_country": "US",
"to_country": "US",
"to_code": "90210",
"pickup_date": "2018-06-25",
"ready_time": "0900",
"currency": "USD",
"customs_value": 5000
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'timeintransit',
'params' =>
array (
'test' => true,
'shipper' => 'RocketShipIt',
'ship_contact' => 'Mark Sanborn',
'ship_phone' => '1231231234',
'ship_state' => 'CA',
'ship_code' => '90210',
'ship_country' => 'US',
'to_country' => 'US',
'to_code' => '90210',
'pickup_date' => '2018-06-25',
'ready_time' => '0900',
'currency' => 'USD',
'customs_value' => 5000,
),
)
);
rs.request(
{u'action': u'timeintransit',
u'carrier': u'DHL',
u'params': {u'currency': u'USD',
u'customs_value': 5000,
u'pickup_date': u'2018-06-25',
u'ready_time': u'0900',
u'ship_code': u'90210',
u'ship_contact': u'Mark Sanborn',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'CA',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_code': u'90210',
u'to_country': u'US'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"timeintransit",
"params"=>
{"test"=>true,
"shipper"=>"RocketShipIt",
"ship_contact"=>"Mark Sanborn",
"ship_phone"=>"1231231234",
"ship_state"=>"CA",
"ship_code"=>"90210",
"ship_country"=>"US",
"to_country"=>"US",
"to_code"=>"90210",
"pickup_date"=>"2018-06-25",
"ready_time"=>"0900",
"currency"=>"USD",
"customs_value"=>5000}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "timeintransit",
"params": {
"test": true,
"shipper": "RocketShipIt",
"ship_contact": "Mark Sanborn",
"ship_phone": "1231231234",
"ship_state": "CA",
"ship_code": "90210",
"ship_country": "US",
"to_country": "US",
"to_code": "90210",
"pickup_date": "2018-06-25",
"ready_time": "0900",
"currency": "USD",
"customs_value": 5000
}
}
)
DHL - Tracking
{
"carrier": "DHL",
"action": "Track",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"tracking_number": "123456789",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL',
'action' => 'Track',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'tracking_number' => '123456789',
'test' => true,
),
)
);
rs.request(
{u'action': u'Track',
u'carrier': u'DHL',
u'params': {u'password': u'YOUR_PASSWORD',
u'test': True,
u'tracking_number': u'123456789',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL",
"action"=>"Track",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"tracking_number"=>"123456789",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL",
"action": "Track",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"tracking_number": "123456789",
"test": true
}
}
)
DHL eCommerce - Create Manifest
{
"carrier": "DHL-ecommerce",
"action": "CreateManifest",
"params": {
"username": "YOUR_DHL_CLIENT_ID",
"password": "YOUR_DHL_CLIENT_SECRET",
"account_number": "YOUR_DHL_PICKUP_ID",
"shipment_ids": [
"PRCDZNRTDDIYKACEBKUMJQ"
],
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL-ecommerce',
'action' => 'CreateManifest',
'params' =>
array (
'username' => 'YOUR_DHL_CLIENT_ID',
'password' => 'YOUR_DHL_CLIENT_SECRET',
'account_number' => 'YOUR_DHL_PICKUP_ID',
'shipment_ids' =>
array (
0 => 'PRCDZNRTDDIYKACEBKUMJQ',
),
'test' => true,
),
)
);
rs.request(
{u'action': u'CreateManifest',
u'carrier': u'DHL-ecommerce',
u'params': {u'account_number': u'YOUR_DHL_PICKUP_ID',
u'password': u'YOUR_DHL_CLIENT_SECRET',
u'shipment_ids': [u'PRCDZNRTDDIYKACEBKUMJQ'],
u'test': True,
u'username': u'YOUR_DHL_CLIENT_ID'}}
)
rs.request(
{"carrier"=>"DHL-ecommerce",
"action"=>"CreateManifest",
"params"=>
{"username"=>"YOUR_DHL_CLIENT_ID",
"password"=>"YOUR_DHL_CLIENT_SECRET",
"account_number"=>"YOUR_DHL_PICKUP_ID",
"shipment_ids"=>["PRCDZNRTDDIYKACEBKUMJQ"],
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL-ecommerce",
"action": "CreateManifest",
"params": {
"username": "YOUR_DHL_CLIENT_ID",
"password": "YOUR_DHL_CLIENT_SECRET",
"account_number": "YOUR_DHL_PICKUP_ID",
"shipment_ids": [
"PRCDZNRTDDIYKACEBKUMJQ"
],
"test": true
}
}
)
DHL eCommerce - International Label
{
"carrier": "DHL-ecommerce",
"action": "SubmitShipment",
"params": {
"username": "YOUR_DHL_CLIENT_ID",
"password": "YOUR_DHL_CLIENT_SECRET",
"account_number": "YOUR_DHL_PICKUP_ID",
"service": "PLT",
"monetary_value": 10.00,
"packages": [
{
"weight": 0.3
}
],
"customs": [
{
"commodity_code": "000000",
"invoice_line_description": "Acme product 1",
"invoice_line_origin_country_code": "US",
"invoice_line_value": "2.00",
"invoice_line_part_number": "abc123"
}
],
"shipper": "Mr. Returns",
"ship_contact": "John Smith",
"ship_addr1": "1500 South Point Dr.",
"ship_city": "Forrest Park",
"ship_state": "GA",
"ship_code": "30297",
"ship_phone": "123-123-1234",
"to_name": "Joe Bloggs",
"to_addr1": "5048 - 264th Street",
"to_state": "BC",
"to_city": "Aldergrove",
"to_code": "V4W1N7",
"to_country": "CA",
"to_phone": "123-123-1234"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL-ecommerce',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_DHL_CLIENT_ID',
'password' => 'YOUR_DHL_CLIENT_SECRET',
'account_number' => 'YOUR_DHL_PICKUP_ID',
'service' => 'PLT',
'monetary_value' => 10.0,
'packages' =>
array (
0 =>
array (
'weight' => 0.3,
),
),
'customs' =>
array (
0 =>
array (
'commodity_code' => '000000',
'invoice_line_description' => 'Acme product 1',
'invoice_line_origin_country_code' => 'US',
'invoice_line_value' => '2.00',
'invoice_line_part_number' => 'abc123',
),
),
'shipper' => 'Mr. Returns',
'ship_contact' => 'John Smith',
'ship_addr1' => '1500 South Point Dr.',
'ship_city' => 'Forrest Park',
'ship_state' => 'GA',
'ship_code' => '30297',
'ship_phone' => '123-123-1234',
'to_name' => 'Joe Bloggs',
'to_addr1' => '5048 - 264th Street',
'to_state' => 'BC',
'to_city' => 'Aldergrove',
'to_code' => 'V4W1N7',
'to_country' => 'CA',
'to_phone' => '123-123-1234',
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'DHL-ecommerce',
u'params': {u'account_number': u'YOUR_DHL_PICKUP_ID',
u'customs': [{u'commodity_code': u'000000',
u'invoice_line_description': u'Acme product 1',
u'invoice_line_origin_country_code': u'US',
u'invoice_line_part_number': u'abc123',
u'invoice_line_value': u'2.00'}],
u'monetary_value': 10.0,
u'packages': [{u'weight': 0.3}],
u'password': u'YOUR_DHL_CLIENT_SECRET',
u'service': u'PLT',
u'ship_addr1': u'1500 South Point Dr.',
u'ship_city': u'Forrest Park',
u'ship_code': u'30297',
u'ship_contact': u'John Smith',
u'ship_phone': u'123-123-1234',
u'ship_state': u'GA',
u'shipper': u'Mr. Returns',
u'to_addr1': u'5048 - 264th Street',
u'to_city': u'Aldergrove',
u'to_code': u'V4W1N7',
u'to_country': u'CA',
u'to_name': u'Joe Bloggs',
u'to_phone': u'123-123-1234',
u'to_state': u'BC',
u'username': u'YOUR_DHL_CLIENT_ID'}}
)
rs.request(
{"carrier"=>"DHL-ecommerce",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_DHL_CLIENT_ID",
"password"=>"YOUR_DHL_CLIENT_SECRET",
"account_number"=>"YOUR_DHL_PICKUP_ID",
"service"=>"PLT",
"monetary_value"=>10.0,
"packages"=>[{"weight"=>0.3}],
"customs"=>
[{"commodity_code"=>"000000",
"invoice_line_description"=>"Acme product 1",
"invoice_line_origin_country_code"=>"US",
"invoice_line_value"=>"2.00",
"invoice_line_part_number"=>"abc123"}],
"shipper"=>"Mr. Returns",
"ship_contact"=>"John Smith",
"ship_addr1"=>"1500 South Point Dr.",
"ship_city"=>"Forrest Park",
"ship_state"=>"GA",
"ship_code"=>"30297",
"ship_phone"=>"123-123-1234",
"to_name"=>"Joe Bloggs",
"to_addr1"=>"5048 - 264th Street",
"to_state"=>"BC",
"to_city"=>"Aldergrove",
"to_code"=>"V4W1N7",
"to_country"=>"CA",
"to_phone"=>"123-123-1234"}}
)
rocketshipit.request(
{
"carrier": "DHL-ecommerce",
"action": "SubmitShipment",
"params": {
"username": "YOUR_DHL_CLIENT_ID",
"password": "YOUR_DHL_CLIENT_SECRET",
"account_number": "YOUR_DHL_PICKUP_ID",
"service": "PLT",
"monetary_value": 10.00,
"packages": [
{
"weight": 0.3
}
],
"customs": [
{
"commodity_code": "000000",
"invoice_line_description": "Acme product 1",
"invoice_line_origin_country_code": "US",
"invoice_line_value": "2.00",
"invoice_line_part_number": "abc123"
}
],
"shipper": "Mr. Returns",
"ship_contact": "John Smith",
"ship_addr1": "1500 South Point Dr.",
"ship_city": "Forrest Park",
"ship_state": "GA",
"ship_code": "30297",
"ship_phone": "123-123-1234",
"to_name": "Joe Bloggs",
"to_addr1": "5048 - 264th Street",
"to_state": "BC",
"to_city": "Aldergrove",
"to_code": "V4W1N7",
"to_country": "CA",
"to_phone": "123-123-1234"
}
}
)
DHL eCommerce - Rates
{
"carrier": "DHL-ecommerce",
"action": "GetAllRates",
"params": {
"username": "YOUR_DHL_CLIENT_ID",
"password": "YOUR_DHL_CLIENT_SECRET",
"account_number": "YOUR_DHL_PICKUP_ID",
"test": true,
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"customs": [],
"shipper": "RocketShipIt",
"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",
"packaging_type": "02"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL-ecommerce',
'action' => 'GetAllRates',
'params' =>
array (
'username' => 'YOUR_DHL_CLIENT_ID',
'password' => 'YOUR_DHL_CLIENT_SECRET',
'account_number' => 'YOUR_DHL_PICKUP_ID',
'test' => true,
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 5,
'width' => 5,
'height' => 5,
),
),
'customs' =>
array (
),
'shipper' => 'RocketShipIt',
'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',
'packaging_type' => '02',
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'DHL-ecommerce',
u'params': {u'account_number': u'YOUR_DHL_PICKUP_ID',
u'customer_classification': u'01',
u'customs': [],
u'length_unit': u'IN',
u'packages': [{u'height': 5,
u'length': 5,
u'weight': 5,
u'width': 5}],
u'packaging_type': u'02',
u'password': u'YOUR_DHL_CLIENT_SECRET',
u'pickup_type': u'01',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Whitehall',
u'ship_code': u'59759',
u'ship_country': u'US',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_code': u'90210',
u'to_country': u'US',
u'username': u'YOUR_DHL_CLIENT_ID',
u'weight_unit': u'LBS'}}
)
rs.request(
{"carrier"=>"DHL-ecommerce",
"action"=>"GetAllRates",
"params"=>
{"username"=>"YOUR_DHL_CLIENT_ID",
"password"=>"YOUR_DHL_CLIENT_SECRET",
"account_number"=>"YOUR_DHL_PICKUP_ID",
"test"=>true,
"packages"=>[{"weight"=>5, "length"=>5, "width"=>5, "height"=>5}],
"customs"=>[],
"shipper"=>"RocketShipIt",
"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",
"packaging_type"=>"02"}}
)
rocketshipit.request(
{
"carrier": "DHL-ecommerce",
"action": "GetAllRates",
"params": {
"username": "YOUR_DHL_CLIENT_ID",
"password": "YOUR_DHL_CLIENT_SECRET",
"account_number": "YOUR_DHL_PICKUP_ID",
"test": true,
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"customs": [],
"shipper": "RocketShipIt",
"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",
"packaging_type": "02"
}
}
)
DHL eCommerce - Tracking
{
"carrier": "DHL-ecommerce",
"action": "Track",
"params": {
"username": "YOUR_DHL_CLIENT_ID",
"password": "YOUR_DHL_CLIENT_SECRET",
"account_number": "YOUR_DHL_PICKUP_ID",
"tracking_number": "RXGNDLFDMJXYGRYOUKQAOW"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL-ecommerce',
'action' => 'Track',
'params' =>
array (
'username' => 'YOUR_DHL_CLIENT_ID',
'password' => 'YOUR_DHL_CLIENT_SECRET',
'account_number' => 'YOUR_DHL_PICKUP_ID',
'tracking_number' => 'RXGNDLFDMJXYGRYOUKQAOW',
),
)
);
rs.request(
{u'action': u'Track',
u'carrier': u'DHL-ecommerce',
u'params': {u'account_number': u'YOUR_DHL_PICKUP_ID',
u'password': u'YOUR_DHL_CLIENT_SECRET',
u'tracking_number': u'RXGNDLFDMJXYGRYOUKQAOW',
u'username': u'YOUR_DHL_CLIENT_ID'}}
)
rs.request(
{"carrier"=>"DHL-ecommerce",
"action"=>"Track",
"params"=>
{"username"=>"YOUR_DHL_CLIENT_ID",
"password"=>"YOUR_DHL_CLIENT_SECRET",
"account_number"=>"YOUR_DHL_PICKUP_ID",
"tracking_number"=>"RXGNDLFDMJXYGRYOUKQAOW"}}
)
rocketshipit.request(
{
"carrier": "DHL-ecommerce",
"action": "Track",
"params": {
"username": "YOUR_DHL_CLIENT_ID",
"password": "YOUR_DHL_CLIENT_SECRET",
"account_number": "YOUR_DHL_PICKUP_ID",
"tracking_number": "RXGNDLFDMJXYGRYOUKQAOW"
}
}
)
DHL-PL - Label
{
"carrier": "dhl-pl",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"service": "AH",
"shipment_description": "Toys",
"image_type": "LBLP",
"packages": [
{
"weight": 15,
"length": 10,
"width": 10,
"height": 10
}
],
"shipper": "Thomas Test",
"ship_addr1": "Osmanska",
"ship_addr2": "2",
"ship_city": "Warszawa",
"ship_code": "02823",
"ship_phone": "123456789",
"to_name": "John Doe",
"to_addr1": "7 Wroblewskiego",
"to_addr2": "7",
"to_city": "Pulawy",
"to_code": "24100",
"to_phone": "123456789",
"to_country": "PL",
"to_email": "receiver@dhl.com",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'dhl-pl',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'service' => 'AH',
'shipment_description' => 'Toys',
'image_type' => 'LBLP',
'packages' =>
array (
0 =>
array (
'weight' => 15,
'length' => 10,
'width' => 10,
'height' => 10,
),
),
'shipper' => 'Thomas Test',
'ship_addr1' => 'Osmanska',
'ship_addr2' => '2',
'ship_city' => 'Warszawa',
'ship_code' => '02823',
'ship_phone' => '123456789',
'to_name' => 'John Doe',
'to_addr1' => '7 Wroblewskiego',
'to_addr2' => '7',
'to_city' => 'Pulawy',
'to_code' => '24100',
'to_phone' => '123456789',
'to_country' => 'PL',
'to_email' => 'receiver@dhl.com',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'dhl-pl',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'image_type': u'LBLP',
u'packages': [{u'height': 10,
u'length': 10,
u'weight': 15,
u'width': 10}],
u'packaging_type': u'YOUR_PACKAGING',
u'password': u'YOUR_PASSWORD',
u'service': u'AH',
u'ship_addr1': u'Osmanska',
u'ship_addr2': u'2',
u'ship_city': u'Warszawa',
u'ship_code': u'02823',
u'ship_phone': u'123456789',
u'shipment_description': u'Toys',
u'shipper': u'Thomas Test',
u'test': True,
u'to_addr1': u'7 Wroblewskiego',
u'to_addr2': u'7',
u'to_city': u'Pulawy',
u'to_code': u'24100',
u'to_country': u'PL',
u'to_email': u'receiver@dhl.com',
u'to_name': u'John Doe',
u'to_phone': u'123456789',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"dhl-pl",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"service"=>"AH",
"shipment_description"=>"Toys",
"image_type"=>"LBLP",
"packages"=>[{"weight"=>15, "length"=>10, "width"=>10, "height"=>10}],
"shipper"=>"Thomas Test",
"ship_addr1"=>"Osmanska",
"ship_addr2"=>"2",
"ship_city"=>"Warszawa",
"ship_code"=>"02823",
"ship_phone"=>"123456789",
"to_name"=>"John Doe",
"to_addr1"=>"7 Wroblewskiego",
"to_addr2"=>"7",
"to_city"=>"Pulawy",
"to_code"=>"24100",
"to_phone"=>"123456789",
"to_country"=>"PL",
"to_email"=>"receiver@dhl.com",
"packaging_type"=>"YOUR_PACKAGING",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "dhl-pl",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"service": "AH",
"shipment_description": "Toys",
"image_type": "LBLP",
"packages": [
{
"weight": 15,
"length": 10,
"width": 10,
"height": 10
}
],
"shipper": "Thomas Test",
"ship_addr1": "Osmanska",
"ship_addr2": "2",
"ship_city": "Warszawa",
"ship_code": "02823",
"ship_phone": "123456789",
"to_name": "John Doe",
"to_addr1": "7 Wroblewskiego",
"to_addr2": "7",
"to_city": "Pulawy",
"to_code": "24100",
"to_phone": "123456789",
"to_country": "PL",
"to_email": "receiver@dhl.com",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)
DHL-PL - Pickup
{
"carrier": "DHL-PL",
"action": "CreatePickup",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"special_instructions": "Uwaga, paczki zawieraja szklo",
"shipment_ids": [
"90000019278"
],
"pickup_date": "2017-04-17",
"close_time": "16:00",
"ready_time": "08:00",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL-PL',
'action' => 'CreatePickup',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'special_instructions' => 'Uwaga, paczki zawieraja szklo',
'shipment_ids' =>
array (
0 => '90000019278',
),
'pickup_date' => '2017-04-17',
'close_time' => '16:00',
'ready_time' => '08:00',
'test' => true,
),
)
);
rs.request(
{u'action': u'CreatePickup',
u'carrier': u'DHL-PL',
u'params': {u'close_time': u'16:00',
u'password': u'YOUR_PASSWORD',
u'pickup_date': u'2017-04-17',
u'ready_time': u'08:00',
u'shipment_ids': [u'90000019278'],
u'special_instructions': u'Uwaga, paczki zawieraja szklo',
u'test': True,
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL-PL",
"action"=>"CreatePickup",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"special_instructions"=>"Uwaga, paczki zawieraja szklo",
"shipment_ids"=>["90000019278"],
"pickup_date"=>"2017-04-17",
"close_time"=>"16:00",
"ready_time"=>"08:00",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL-PL",
"action": "CreatePickup",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"special_instructions": "Uwaga, paczki zawieraja szklo",
"shipment_ids": [
"90000019278"
],
"pickup_date": "2017-04-17",
"close_time": "16:00",
"ready_time": "08:00",
"test": true
}
}
)
DHL-PL - Track
{
"carrier": "DHL-PL",
"action": "Track",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"shipment_id": "11898773100",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL-PL',
'action' => 'Track',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'shipment_id' => '11898773100',
'test' => true,
),
)
);
rs.request(
{u'action': u'Track',
u'carrier': u'DHL-PL',
u'params': {u'password': u'YOUR_PASSWORD',
u'shipment_id': u'11898773100',
u'test': True,
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL-PL",
"action"=>"Track",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"shipment_id"=>"11898773100",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL-PL",
"action": "Track",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"shipment_id": "11898773100",
"test": true
}
}
)
DHL-PL - Void
{
"carrier": "DHL-PL",
"action": "VoidShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"shipment_id": "16257008778",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL-PL',
'action' => 'VoidShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'shipment_id' => '16257008778',
'test' => true,
),
)
);
rs.request(
{u'action': u'VoidShipment',
u'carrier': u'DHL-PL',
u'params': {u'password': u'YOUR_PASSWORD',
u'shipment_id': u'16257008778',
u'test': True,
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"DHL-PL",
"action"=>"VoidShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"shipment_id"=>"16257008778",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL-PL",
"action": "VoidShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"shipment_id": "16257008778",
"test": true
}
}
)
DPD - Tracking
{
"carrier": "dpd",
"action": "track",
"params": {
"username": "GEOTRACK",
"password": "g30tr4ck",
"tracking_number": "1371134583769923",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'dpd',
'action' => 'track',
'params' =>
array (
'username' => 'GEOTRACK',
'password' => 'g30tr4ck',
'tracking_number' => '1371134583769923',
'test' => true,
),
)
);
rs.request(
{u'action': u'track',
u'carrier': u'dpd',
u'params': {u'password': u'g30tr4ck',
u'test': True,
u'tracking_number': u'1371134583769923',
u'username': u'GEOTRACK'}}
)
rs.request(
{"carrier"=>"dpd",
"action"=>"track",
"params"=>
{"username"=>"GEOTRACK",
"password"=>"g30tr4ck",
"tracking_number"=>"1371134583769923",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "dpd",
"action": "track",
"params": {
"username": "GEOTRACK",
"password": "g30tr4ck",
"tracking_number": "1371134583769923",
"test": true
}
}
)
{
"carrier": "Dicom",
"action": "SubmitShipment",
"params": {
"test": true,
"account_number": "YOUR_ACCOUNT_NUMBER",
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"customs": [],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_country": "US",
"to_city": "Emeryville",
"to_state": "CA",
"to_code": "90210",
"weight_unit": "LBS",
"length_unit": "IN",
"packaging_type": "BX"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'Dicom',
'action' => 'SubmitShipment',
'params' =>
array (
'test' => true,
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 5,
'width' => 5,
'height' => 5,
),
),
'customs' =>
array (
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_country' => 'US',
'to_name' => 'John Doe',
'to_addr1' => '123 Main St',
'to_country' => 'US',
'to_city' => 'Emeryville',
'to_state' => 'CA',
'to_code' => '90210',
'weight_unit' => 'LBS',
'length_unit' => 'IN',
'packaging_type' => 'BX',
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'Dicom',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'customs': [],
u'length_unit': u'IN',
u'packages': [{u'height': 5,
u'length': 5,
u'weight': 5,
u'width': 5}],
u'packaging_type': u'BX',
u'password': u'YOUR_PASSWORD',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Whitehall',
u'ship_code': u'59759',
u'ship_country': u'US',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_addr1': u'123 Main St',
u'to_city': u'Emeryville',
u'to_code': u'90210',
u'to_country': u'US',
u'to_name': u'John Doe',
u'to_state': u'CA',
u'username': u'YOUR_USERNAME',
u'weight_unit': u'LBS'}}
)
rs.request(
{"carrier"=>"Dicom",
"action"=>"SubmitShipment",
"params"=>
{"test"=>true,
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"packages"=>[{"weight"=>5, "length"=>5, "width"=>5, "height"=>5}],
"customs"=>[],
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Whitehall",
"ship_state"=>"MT",
"ship_code"=>"59759",
"ship_country"=>"US",
"to_name"=>"John Doe",
"to_addr1"=>"123 Main St",
"to_country"=>"US",
"to_city"=>"Emeryville",
"to_state"=>"CA",
"to_code"=>"90210",
"weight_unit"=>"LBS",
"length_unit"=>"IN",
"packaging_type"=>"BX"}}
)
rocketshipit.request(
{
"carrier": "Dicom",
"action": "SubmitShipment",
"params": {
"test": true,
"account_number": "YOUR_ACCOUNT_NUMBER",
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5
}
],
"customs": [],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_country": "US",
"to_city": "Emeryville",
"to_state": "CA",
"to_code": "90210",
"weight_unit": "LBS",
"length_unit": "IN",
"packaging_type": "BX"
}
}
)
{
"carrier": "Dicom",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"packages": [
{
"packaging_type": "Box",
"weight": 50,
"length": 5,
"width": 5,
"height": 5
}
],
"customs": [],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_country": "US",
"to_country": "CA",
"to_state": "BC",
"to_code": "V4W1N7",
"division": "express"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'Dicom',
'action' => 'GetAllRates',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'packages' =>
array (
0 =>
array (
'packaging_type' => 'Box',
'weight' => 50,
'length' => 5,
'width' => 5,
'height' => 5,
),
),
'customs' =>
array (
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_country' => 'US',
'to_country' => 'CA',
'to_state' => 'BC',
'to_code' => 'V4W1N7',
'division' => 'express',
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'Dicom',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'customs': [],
u'division': u'express',
u'packages': [{u'height': 5,
u'length': 5,
u'packaging_type': u'Box',
u'weight': 50,
u'width': 5}],
u'password': u'YOUR_PASSWORD',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Whitehall',
u'ship_code': u'59759',
u'ship_country': u'US',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
u'to_code': u'V4W1N7',
u'to_country': u'CA',
u'to_state': u'BC',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"Dicom",
"action"=>"GetAllRates",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"packages"=>
[{"packaging_type"=>"Box",
"weight"=>50,
"length"=>5,
"width"=>5,
"height"=>5}],
"customs"=>[],
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Whitehall",
"ship_state"=>"MT",
"ship_code"=>"59759",
"ship_country"=>"US",
"to_country"=>"CA",
"to_state"=>"BC",
"to_code"=>"V4W1N7",
"division"=>"express"}}
)
rocketshipit.request(
{
"carrier": "Dicom",
"action": "GetAllRates",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"packages": [
{
"packaging_type": "Box",
"weight": 50,
"length": 5,
"width": 5,
"height": 5
}
],
"customs": [],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_country": "US",
"to_country": "CA",
"to_state": "BC",
"to_code": "V4W1N7",
"division": "express"
}
}
)
{
"carrier": "Dicom",
"action": "Track",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"tracking_number": "W1234567"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'Dicom',
'action' => 'Track',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'tracking_number' => 'W1234567',
),
)
);
rs.request(
{u'action': u'Track',
u'carrier': u'Dicom',
u'params': {u'password': u'YOUR_PASSWORD',
u'tracking_number': u'W1234567',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"Dicom",
"action"=>"Track",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"tracking_number"=>"W1234567"}}
)
rocketshipit.request(
{
"carrier": "Dicom",
"action": "Track",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"tracking_number": "W1234567"
}
}
)
FedEx - Address Validation
{
"carrier": "FedEx",
"action": "AddressValidate",
"params": {
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'AddressValidate',
'params' =>
array (
'to_name' => 'John Doe',
'to_addr1' => '123 Main St',
'to_state' => 'CA',
'to_city' => 'Beverly Hills',
'to_code' => '90210',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'test' => true,
),
)
);
rs.request(
{u'action': u'AddressValidate',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'key': u'YOUR_KEY',
u'meter_number': u'YOUR_METER_NUMBER',
u'password': u'YOUR_PASSWORD',
u'test': True,
u'to_addr1': u'123 Main St',
u'to_city': u'Beverly Hills',
u'to_code': u'90210',
u'to_name': u'John Doe',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"FedEx",
"action"=>"AddressValidate",
"params"=>
{"to_name"=>"John Doe",
"to_addr1"=>"123 Main St",
"to_state"=>"CA",
"to_city"=>"Beverly Hills",
"to_code"=>"90210",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "AddressValidate",
"params": {
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"test": true
}
}
)
FedEx - Create Manifest
{
"carrier": "FedEx",
"action": "CreateManifest",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'CreateManifest',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'test' => true,
),
)
);
rs.request(
{u'action': u'CreateManifest',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'key': u'YOUR_KEY',
u'meter_number': u'YOUR_METER_NUMBER',
u'password': u'YOUR_PASSWORD',
u'test': True}}
)
rs.request(
{"carrier"=>"FedEx",
"action"=>"CreateManifest",
"params"=>
{"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "CreateManifest",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"test": true
}
}
)
FedEx - Create Manifest Smart Post
{
"carrier": "FedEx",
"action": "CreateManifest",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"smart_post_hub_id": "5552",
"carrier_code": "FXSP",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'CreateManifest',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'smart_post_hub_id' => '5552',
'carrier_code' => 'FXSP',
'test' => true,
),
)
);
rs.request(
{u'action': u'CreateManifest',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'carrier_code': u'FXSP',
u'key': u'YOUR_KEY',
u'meter_number': u'YOUR_METER_NUMBER',
u'password': u'YOUR_PASSWORD',
u'smart_post_hub_id': u'5552',
u'test': True}}
)
rs.request(
{"carrier"=>"FedEx",
"action"=>"CreateManifest",
"params"=>
{"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"smart_post_hub_id"=>"5552",
"carrier_code"=>"FXSP",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "CreateManifest",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"smart_post_hub_id": "5552",
"carrier_code": "FXSP",
"test": true
}
}
)
FedEx - Email notification on delivery
{
"action": "Notify",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"shipper": "Acme",
"ship_email": "acme@company.com",
"to_email": "john.doe@email.com",
"tracking_number": "123311385959"
},
"carrier": "fedex"
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'action' => 'Notify',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'shipper' => 'Acme',
'ship_email' => 'acme@company.com',
'to_email' => 'john.doe@email.com',
'tracking_number' => '123311385959',
),
'carrier' => 'fedex',
)
);
rs.request(
{u'action': u'Notify',
u'carrier': u'fedex',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'key': u'YOUR_KEY',
u'meter_number': u'YOUR_METER_NUMBER',
u'password': u'YOUR_PASSWORD',
u'ship_email': u'acme@company.com',
u'shipper': u'Acme',
u'to_email': u'john.doe@email.com',
u'tracking_number': u'123311385959'}}
)
rs.request(
{"action"=>"Notify",
"params"=>
{"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"shipper"=>"Acme",
"ship_email"=>"acme@company.com",
"to_email"=>"john.doe@email.com",
"tracking_number"=>"123311385959"},
"carrier"=>"fedex"}
)
rocketshipit.request(
{
"action": "Notify",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"shipper": "Acme",
"ship_email": "acme@company.com",
"to_email": "john.doe@email.com",
"tracking_number": "123311385959"
},
"carrier": "fedex"
}
)
FedEx - Freight Label International
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"freight_account_number": "510087020",
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"service": "FEDEX_FREIGHT_ECONOMY",
"lift_gate_required": false,
"packages": [
{
"description": "Bailing wire",
"weight": 200,
"length": 119,
"width": 80,
"height": 70,
"freight_class": "50",
"packaging_type": "PALLET",
"pieces": 10
}
],
"shipper": "WS1 LLC",
"ship_addr1": "298 CHERRY LN",
"ship_city": "New Castle",
"ship_state": "DE",
"ship_code": "19720",
"ship_country": "US",
"ship_phone": "4403392600",
"to_name": "Ahmed",
"to_addr1": "4815 Dakhnah",
"to_city": "JEDDAH",
"to_state": "Makkah",
"to_country": "SA",
"to_code": "23344",
"to_phone": "0561290777",
"customs_value": 200,
"currency": "USD",
"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"
}
],
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'freight_account_number' => '510087020',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'service' => 'FEDEX_FREIGHT_ECONOMY',
'lift_gate_required' => false,
'packages' =>
array (
0 =>
array (
'description' => 'Bailing wire',
'weight' => 200,
'length' => 119,
'width' => 80,
'height' => 70,
'freight_class' => '50',
'packaging_type' => 'PALLET',
'pieces' => 10,
),
),
'shipper' => 'WS1 LLC',
'ship_addr1' => '298 CHERRY LN',
'ship_city' => 'New Castle',
'ship_state' => 'DE',
'ship_code' => '19720',
'ship_country' => 'US',
'ship_phone' => '4403392600',
'to_name' => 'Ahmed',
'to_addr1' => '4815 Dakhnah',
'to_city' => 'JEDDAH',
'to_state' => 'Makkah',
'to_country' => 'SA',
'to_code' => '23344',
'to_phone' => '0561290777',
'customs_value' => 200,
'currency' => 'USD',
'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',
),
),
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'currency': u'USD',
u'customs': [{u'country_of_manufacture': u'US',
u'customs_description': u'My Description',
u'customs_line_amount': 50.0,
u'customs_quantity': 1,
u'customs_quantity_units': u'EA',
u'customs_weight': 2.5}],
u'customs_value': 200,
u'freight_account_number': u'510087020',
u'key': u'YOUR_KEY',
u'lift_gate_required': False,
u'meter_number': u'YOUR_METER_NUMBER',
u'packages': [{u'description': u'Bailing wire',
u'freight_class': u'50',
u'height': 70,
u'length': 119,
u'packaging_type': u'PALLET',
u'pieces': 10,
u'weight': 200,
u'width': 80}],
u'password': u'YOUR_PASSWORD',
u'service': u'FEDEX_FREIGHT_ECONOMY',
u'ship_addr1': u'298 CHERRY LN',
u'ship_city': u'New Castle',
u'ship_code': u'19720',
u'ship_country': u'US',
u'ship_phone': u'4403392600',
u'ship_state': u'DE',
u'shipper': u'WS1 LLC',
u'test': True,
u'to_addr1': u'4815 Dakhnah',
u'to_city': u'JEDDAH',
u'to_code': u'23344',
u'to_country': u'SA',
u'to_name': u'Ahmed',
u'to_phone': u'0561290777',
u'to_state': u'Makkah'}}
)
rs.request(
{"carrier"=>"FedEx",
"action"=>"SubmitShipment",
"params"=>
{"freight_account_number"=>"510087020",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"service"=>"FEDEX_FREIGHT_ECONOMY",
"lift_gate_required"=>false,
"packages"=>
[{"description"=>"Bailing wire",
"weight"=>200,
"length"=>119,
"width"=>80,
"height"=>70,
"freight_class"=>"50",
"packaging_type"=>"PALLET",
"pieces"=>10}],
"shipper"=>"WS1 LLC",
"ship_addr1"=>"298 CHERRY LN",
"ship_city"=>"New Castle",
"ship_state"=>"DE",
"ship_code"=>"19720",
"ship_country"=>"US",
"ship_phone"=>"4403392600",
"to_name"=>"Ahmed",
"to_addr1"=>"4815 Dakhnah",
"to_city"=>"JEDDAH",
"to_state"=>"Makkah",
"to_country"=>"SA",
"to_code"=>"23344",
"to_phone"=>"0561290777",
"customs_value"=>200,
"currency"=>"USD",
"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"}],
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"freight_account_number": "510087020",
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"service": "FEDEX_FREIGHT_ECONOMY",
"lift_gate_required": false,
"packages": [
{
"description": "Bailing wire",
"weight": 200,
"length": 119,
"width": 80,
"height": 70,
"freight_class": "50",
"packaging_type": "PALLET",
"pieces": 10
}
],
"shipper": "WS1 LLC",
"ship_addr1": "298 CHERRY LN",
"ship_city": "New Castle",
"ship_state": "DE",
"ship_code": "19720",
"ship_country": "US",
"ship_phone": "4403392600",
"to_name": "Ahmed",
"to_addr1": "4815 Dakhnah",
"to_city": "JEDDAH",
"to_state": "Makkah",
"to_country": "SA",
"to_code": "23344",
"to_phone": "0561290777",
"customs_value": 200,
"currency": "USD",
"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"
}
],
"test": true
}
}
)
FedEx - Freight Label Third Party Billing
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 155.0,
"length": 1,
"width": 1,
"height": 1,
"freight_class": "CLASS_070",
"description": "B48-48-16",
"packaging_type": "PALLET",
"pieces": 1
}
],
"customs": [],
"addons": [],
"package_count": 1,
"packageCount": 1,
"service": "FEDEX_FREIGHT_PRIORITY",
"lift_gate_required": false,
"residential": false,
"shipper": "Vendor - Harrison, AR",
"ship_addr1": "1202 Chalet Ln",
"ship_phone": "+1 844-763-0135",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"to_city": "Harrison",
"to_addr1": "2000 Freight LTL Testing",
"to_country": "US",
"to_code": "72601",
"to_state": "AR",
"to_name": "Test Qa",
"to_phone": "+1 844-763-0131",
"weight_unit": "LBS",
"customer_classification": "01",
"packaging_type": "YOUR_PACKAGING",
"special_instructions": "",
"image_type": "PDF",
"test": true,
"billing": [
{
"type": "transportation",
"payment_type": "third_party",
"company": "Acme Inc.",
"account": "805222441",
"postal_code": "72601",
"country_code": "US",
"phone": "+18447630131",
"city": "Harrison",
"state": "AR",
"addr1": "2000 Freight LTL Testing"
}
]
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'freight_account_number' => 'YOUR_FREIGHT_ACCOUNT_NUMBER',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 155.0,
'length' => 1,
'width' => 1,
'height' => 1,
'freight_class' => 'CLASS_070',
'description' => 'B48-48-16',
'packaging_type' => 'PALLET',
'pieces' => 1,
),
),
'customs' =>
array (
),
'addons' =>
array (
),
'package_count' => 1,
'packageCount' => 1,
'service' => 'FEDEX_FREIGHT_PRIORITY',
'lift_gate_required' => false,
'residential' => false,
'shipper' => 'Vendor - Harrison, AR',
'ship_addr1' => '1202 Chalet Ln',
'ship_phone' => '+1 844-763-0135',
'ship_city' => 'Harrison',
'ship_state' => 'AR',
'ship_code' => '72601',
'ship_country' => 'US',
'to_city' => 'Harrison',
'to_addr1' => '2000 Freight LTL Testing',
'to_country' => 'US',
'to_code' => '72601',
'to_state' => 'AR',
'to_name' => 'Test Qa',
'to_phone' => '+1 844-763-0131',
'weight_unit' => 'LBS',
'customer_classification' => '01',
'packaging_type' => 'YOUR_PACKAGING',
'special_instructions' => '',
'image_type' => 'PDF',
'test' => true,
'billing' =>
array (
0 =>
array (
'type' => 'transportation',
'payment_type' => 'third_party',
'company' => 'Acme Inc.',
'account' => '805222441',
'postal_code' => '72601',
'country_code' => 'US',
'phone' => '+18447630131',
'city' => 'Harrison',
'state' => 'AR',
'addr1' => '2000 Freight LTL Testing',
),
),
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'addons': [],
u'billing': [{u'account': u'805222441',
u'addr1': u'2000 Freight LTL Testing',
u'city': u'Harrison',
u'company': u'Acme Inc.',
u'country_code': u'US',
u'payment_type': u'third_party',
u'phone': u'+18447630131',
u'postal_code': u'72601',
u'state': u'AR',
u'type': u'transportation'}],
u'customer_classification': u'01',
u'customs': [],
u'freight_account_number': u'YOUR_FREIGHT_ACCOUNT_NUMBER',
u'image_type': u'PDF',
u'key': u'YOUR_KEY',
u'lift_gate_required': False,
u'meter_number': u'YOUR_METER_NUMBER',
u'packageCount': 1,
u'package_count': 1,
u'packages': [{u'description': u'B48-48-16',
u'freight_class': u'CLASS_070',
u'height': 1,
u'length': 1,
u'packaging_type': u'PALLET',
u'pieces': 1,
u'weight': 155.0,
u'width': 1}],
u'packaging_type': u'YOUR_PACKAGING',
u'password': u'YOUR_PASSWORD',
u'residential': False,
u'service': u'FEDEX_FREIGHT_PRIORITY',
u'ship_addr1': u'1202 Chalet Ln',
u'ship_city': u'Harrison',
u'ship_code': u'72601',
u'ship_country': u'US',
u'ship_phone': u'+1 844-763-0135',
u'ship_state': u'AR',
u'shipper': u'Vendor - Harrison, AR',
u'special_instructions': u'',
u'test': True,
u'to_addr1': u'2000 Freight LTL Testing',
u'to_city': u'Harrison',
u'to_code': u'72601',
u'to_country': u'US',
u'to_name': u'Test Qa',
u'to_phone': u'+1 844-763-0131',
u'to_state': u'AR',
u'weight_unit': u'LBS'}}
)
rs.request(
{"carrier"=>"FedEx",
"action"=>"SubmitShipment",
"params"=>
{"freight_account_number"=>"YOUR_FREIGHT_ACCOUNT_NUMBER",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"packages"=>
[{"weight"=>155.0,
"length"=>1,
"width"=>1,
"height"=>1,
"freight_class"=>"CLASS_070",
"description"=>"B48-48-16",
"packaging_type"=>"PALLET",
"pieces"=>1}],
"customs"=>[],
"addons"=>[],
"package_count"=>1,
"packageCount"=>1,
"service"=>"FEDEX_FREIGHT_PRIORITY",
"lift_gate_required"=>false,
"residential"=>false,
"shipper"=>"Vendor - Harrison, AR",
"ship_addr1"=>"1202 Chalet Ln",
"ship_phone"=>"+1 844-763-0135",
"ship_city"=>"Harrison",
"ship_state"=>"AR",
"ship_code"=>"72601",
"ship_country"=>"US",
"to_city"=>"Harrison",
"to_addr1"=>"2000 Freight LTL Testing",
"to_country"=>"US",
"to_code"=>"72601",
"to_state"=>"AR",
"to_name"=>"Test Qa",
"to_phone"=>"+1 844-763-0131",
"weight_unit"=>"LBS",
"customer_classification"=>"01",
"packaging_type"=>"YOUR_PACKAGING",
"special_instructions"=>"",
"image_type"=>"PDF",
"test"=>true,
"billing"=>
[{"type"=>"transportation",
"payment_type"=>"third_party",
"company"=>"Acme Inc.",
"account"=>"805222441",
"postal_code"=>"72601",
"country_code"=>"US",
"phone"=>"+18447630131",
"city"=>"Harrison",
"state"=>"AR",
"addr1"=>"2000 Freight LTL Testing"}]}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 155.0,
"length": 1,
"width": 1,
"height": 1,
"freight_class": "CLASS_070",
"description": "B48-48-16",
"packaging_type": "PALLET",
"pieces": 1
}
],
"customs": [],
"addons": [],
"package_count": 1,
"packageCount": 1,
"service": "FEDEX_FREIGHT_PRIORITY",
"lift_gate_required": false,
"residential": false,
"shipper": "Vendor - Harrison, AR",
"ship_addr1": "1202 Chalet Ln",
"ship_phone": "+1 844-763-0135",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"to_city": "Harrison",
"to_addr1": "2000 Freight LTL Testing",
"to_country": "US",
"to_code": "72601",
"to_state": "AR",
"to_name": "Test Qa",
"to_phone": "+1 844-763-0131",
"weight_unit": "LBS",
"customer_classification": "01",
"packaging_type": "YOUR_PACKAGING",
"special_instructions": "",
"image_type": "PDF",
"test": true,
"billing": [
{
"type": "transportation",
"payment_type": "third_party",
"company": "Acme Inc.",
"account": "805222441",
"postal_code": "72601",
"country_code": "US",
"phone": "+18447630131",
"city": "Harrison",
"state": "AR",
"addr1": "2000 Freight LTL Testing"
}
]
}
}
)
FedEx - Freight Label w/ BOL
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"service": "FEDEX_FREIGHT_ECONOMY",
"lift_gate_required": true,
"packages": [
{
"description": "Bailing wire",
"weight": 200.00,
"length": 150,
"width": 90,
"height": 100,
"packaging_type": "PALLET",
"freight_class": "50",
"pieces": 10
}
],
"shipper": "FedEx",
"ship_addr1": "1202 Chalet Ln",
"ship_addr2": "Do Not Delete - Test Account",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code":