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"
}
}
)
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 - 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 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
}
}
)
DHL - CreateManifest eCommerce/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 - 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 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
}
],
"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"
}
}
<?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.990000000000002,
'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',
),
)
);
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'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", "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"}}
)
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
}
],
"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"
}
}
)
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.990000000000002,
'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.990000000000002,
'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 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 eCommerce
{
"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.29999999999999999,
),
),
'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 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 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.29999999999999999,
),
),
'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-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 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": "72601",
"ship_phone": "8705551234",
"to_name": "ABC Widget Co",
"to_addr1": "1234 Main St",
"to_addr2": "Suite 200",
"to_state": "OH",
"to_city": "Akron",
"to_code": "44333",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?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',
'service' => 'FEDEX_FREIGHT_ECONOMY',
'lift_gate_required' => true,
'packages' =>
array (
0 =>
array (
'description' => 'Bailing wire',
'weight' => 200.0,
'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' => '72601',
'ship_phone' => '8705551234',
'to_name' => 'ABC Widget Co',
'to_addr1' => '1234 Main St',
'to_addr2' => 'Suite 200',
'to_state' => 'OH',
'to_city' => 'Akron',
'to_code' => '44333',
'to_phone' => '1231231234',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'freight_account_number': u'YOUR_FREIGHT_ACCOUNT_NUMBER',
u'key': u'YOUR_KEY',
u'lift_gate_required': True,
u'meter_number': u'YOUR_METER_NUMBER',
u'packages': [{u'description': u'Bailing wire',
u'freight_class': u'50',
u'height': 100,
u'length': 150,
u'packaging_type': u'PALLET',
u'pieces': 10,
u'weight': 200.0,
u'width': 90}],
u'packaging_type': u'YOUR_PACKAGING',
u'password': u'YOUR_PASSWORD',
u'service': u'FEDEX_FREIGHT_ECONOMY',
u'ship_addr1': u'1202 Chalet Ln',
u'ship_addr2': u'Do Not Delete - Test Account',
u'ship_city': u'Harrison',
u'ship_code': u'72601',
u'ship_phone': u'8705551234',
u'ship_state': u'AR',
u'shipper': u'FedEx',
u'test': True,
u'to_addr1': u'1234 Main St',
u'to_addr2': u'Suite 200',
u'to_city': u'Akron',
u'to_code': u'44333',
u'to_name': u'ABC Widget Co',
u'to_phone': u'1231231234',
u'to_state': u'OH'}}
)
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", "service"=>"FEDEX_FREIGHT_ECONOMY", "lift_gate_required"=>true, "packages"=>[{"description"=>"Bailing wire", "weight"=>200.0, "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"=>"72601", "ship_phone"=>"8705551234", "to_name"=>"ABC Widget Co", "to_addr1"=>"1234 Main St", "to_addr2"=>"Suite 200", "to_state"=>"OH", "to_city"=>"Akron", "to_code"=>"44333", "to_phone"=>"1231231234", "packaging_type"=>"YOUR_PACKAGING", "test"=>true}}
)
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",
"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": "72601",
"ship_phone": "8705551234",
"to_name": "ABC Widget Co",
"to_addr1": "1234 Main St",
"to_addr2": "Suite 200",
"to_state": "OH",
"to_city": "Akron",
"to_code": "44333",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)
FedEx - Freight Label w/ BOL multi-pallet
{
"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
},
{
"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": "72601",
"ship_phone": "8705551234",
"to_name": "ABC Widget Co",
"to_addr1": "1234 Main St",
"to_addr2": "Suite 200",
"to_state": "OH",
"to_city": "Akron",
"to_code": "44333",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?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',
'service' => 'FEDEX_FREIGHT_ECONOMY',
'lift_gate_required' => true,
'packages' =>
array (
0 =>
array (
'description' => 'Bailing wire',
'weight' => 200.0,
'length' => 150,
'width' => 90,
'height' => 100,
'packaging_type' => 'PALLET',
'freight_class' => '50',
'pieces' => 10,
),
1 =>
array (
'description' => 'Bailing wire',
'weight' => 200.0,
'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' => '72601',
'ship_phone' => '8705551234',
'to_name' => 'ABC Widget Co',
'to_addr1' => '1234 Main St',
'to_addr2' => 'Suite 200',
'to_state' => 'OH',
'to_city' => 'Akron',
'to_code' => '44333',
'to_phone' => '1231231234',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'freight_account_number': u'YOUR_FREIGHT_ACCOUNT_NUMBER',
u'key': u'YOUR_KEY',
u'lift_gate_required': True,
u'meter_number': u'YOUR_METER_NUMBER',
u'packages': [{u'description': u'Bailing wire',
u'freight_class': u'50',
u'height': 100,
u'length': 150,
u'packaging_type': u'PALLET',
u'pieces': 10,
u'weight': 200.0,
u'width': 90},
{u'description': u'Bailing wire',
u'freight_class': u'50',
u'height': 100,
u'length': 150,
u'packaging_type': u'PALLET',
u'pieces': 10,
u'weight': 200.0,
u'width': 90}],
u'packaging_type': u'YOUR_PACKAGING',
u'password': u'YOUR_PASSWORD',
u'service': u'FEDEX_FREIGHT_ECONOMY',
u'ship_addr1': u'1202 Chalet Ln',
u'ship_addr2': u'Do Not Delete - Test Account',
u'ship_city': u'Harrison',
u'ship_code': u'72601',
u'ship_phone': u'8705551234',
u'ship_state': u'AR',
u'shipper': u'FedEx',
u'test': True,
u'to_addr1': u'1234 Main St',
u'to_addr2': u'Suite 200',
u'to_city': u'Akron',
u'to_code': u'44333',
u'to_name': u'ABC Widget Co',
u'to_phone': u'1231231234',
u'to_state': u'OH'}}
)
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", "service"=>"FEDEX_FREIGHT_ECONOMY", "lift_gate_required"=>true, "packages"=>[{"description"=>"Bailing wire", "weight"=>200.0, "length"=>150, "width"=>90, "height"=>100, "packaging_type"=>"PALLET", "freight_class"=>"50", "pieces"=>10}, {"description"=>"Bailing wire", "weight"=>200.0, "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"=>"72601", "ship_phone"=>"8705551234", "to_name"=>"ABC Widget Co", "to_addr1"=>"1234 Main St", "to_addr2"=>"Suite 200", "to_state"=>"OH", "to_city"=>"Akron", "to_code"=>"44333", "to_phone"=>"1231231234", "packaging_type"=>"YOUR_PACKAGING", "test"=>true}}
)
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",
"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
},
{
"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": "72601",
"ship_phone": "8705551234",
"to_name": "ABC Widget Co",
"to_addr1": "1234 Main St",
"to_addr2": "Suite 200",
"to_state": "OH",
"to_city": "Akron",
"to_code": "44333",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)
FedEx - Freight Rating
{
"carrier": "FedEx",
"action": "GetAllRates",
"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": 200,
"freight_class": "50"
}
],
"customs": [],
"shipper": "RocketShipIt",
"ship_addr1": "1202 Chalet Ln",
"ship_addr2": "Do Not Delete - Test Account",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"to_country": "US",
"to_city": "Akron",
"to_state": "OH",
"to_code": "44333",
"weight_unit": "LB",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'GetAllRates',
'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' => 200,
'freight_class' => '50',
),
),
'customs' =>
array (
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '1202 Chalet Ln',
'ship_addr2' => 'Do Not Delete - Test Account',
'ship_city' => 'Harrison',
'ship_state' => 'AR',
'ship_code' => '72601',
'ship_country' => 'US',
'to_country' => 'US',
'to_city' => 'Akron',
'to_state' => 'OH',
'to_code' => '44333',
'weight_unit' => 'LB',
'test' => true,
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'customs': [],
u'freight_account_number': u'YOUR_FREIGHT_ACCOUNT_NUMBER',
u'key': u'YOUR_KEY',
u'meter_number': u'YOUR_METER_NUMBER',
u'packages': [{u'freight_class': u'50', u'weight': 200}],
u'password': u'YOUR_PASSWORD',
u'ship_addr1': u'1202 Chalet Ln',
u'ship_addr2': u'Do Not Delete - Test Account',
u'ship_city': u'Harrison',
u'ship_code': u'72601',
u'ship_country': u'US',
u'ship_state': u'AR',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_city': u'Akron',
u'to_code': u'44333',
u'to_country': u'US',
u'to_state': u'OH',
u'weight_unit': u'LB'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"GetAllRates", "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"=>200, "freight_class"=>"50"}], "customs"=>[], "shipper"=>"RocketShipIt", "ship_addr1"=>"1202 Chalet Ln", "ship_addr2"=>"Do Not Delete - Test Account", "ship_city"=>"Harrison", "ship_state"=>"AR", "ship_code"=>"72601", "ship_country"=>"US", "to_country"=>"US", "to_city"=>"Akron", "to_state"=>"OH", "to_code"=>"44333", "weight_unit"=>"LB", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "GetAllRates",
"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": 200,
"freight_class": "50"
}
],
"customs": [],
"shipper": "RocketShipIt",
"ship_addr1": "1202 Chalet Ln",
"ship_addr2": "Do Not Delete - Test Account",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"to_country": "US",
"to_city": "Akron",
"to_state": "OH",
"to_code": "44333",
"weight_unit": "LB",
"test": true
}
}
)
FedEx - Freight Rating w/ liftgate
{
"carrier": "FedEx",
"action": "GetAllRates",
"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": 200,
"freight_class": "50"
}
],
"customs": [],
"lift_gate_required": true,
"shipper": "RocketShipIt",
"ship_addr1": "1202 Chalet Ln",
"ship_addr2": "Do Not Delete - Test Account",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"to_country": "US",
"to_city": "Akron",
"to_state": "OH",
"to_code": "44333",
"weight_unit": "LB",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'GetAllRates',
'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' => 200,
'freight_class' => '50',
),
),
'customs' =>
array (
),
'lift_gate_required' => true,
'shipper' => 'RocketShipIt',
'ship_addr1' => '1202 Chalet Ln',
'ship_addr2' => 'Do Not Delete - Test Account',
'ship_city' => 'Harrison',
'ship_state' => 'AR',
'ship_code' => '72601',
'ship_country' => 'US',
'to_country' => 'US',
'to_city' => 'Akron',
'to_state' => 'OH',
'to_code' => '44333',
'weight_unit' => 'LB',
'test' => true,
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'customs': [],
u'freight_account_number': u'YOUR_FREIGHT_ACCOUNT_NUMBER',
u'key': u'YOUR_KEY',
u'lift_gate_required': True,
u'meter_number': u'YOUR_METER_NUMBER',
u'packages': [{u'freight_class': u'50', u'weight': 200}],
u'password': u'YOUR_PASSWORD',
u'ship_addr1': u'1202 Chalet Ln',
u'ship_addr2': u'Do Not Delete - Test Account',
u'ship_city': u'Harrison',
u'ship_code': u'72601',
u'ship_country': u'US',
u'ship_state': u'AR',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_city': u'Akron',
u'to_code': u'44333',
u'to_country': u'US',
u'to_state': u'OH',
u'weight_unit': u'LB'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"GetAllRates", "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"=>200, "freight_class"=>"50"}], "customs"=>[], "lift_gate_required"=>true, "shipper"=>"RocketShipIt", "ship_addr1"=>"1202 Chalet Ln", "ship_addr2"=>"Do Not Delete - Test Account", "ship_city"=>"Harrison", "ship_state"=>"AR", "ship_code"=>"72601", "ship_country"=>"US", "to_country"=>"US", "to_city"=>"Akron", "to_state"=>"OH", "to_code"=>"44333", "weight_unit"=>"LB", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "GetAllRates",
"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": 200,
"freight_class": "50"
}
],
"customs": [],
"lift_gate_required": true,
"shipper": "RocketShipIt",
"ship_addr1": "1202 Chalet Ln",
"ship_addr2": "Do Not Delete - Test Account",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"to_country": "US",
"to_city": "Akron",
"to_state": "OH",
"to_code": "44333",
"weight_unit": "LB",
"test": true
}
}
)
FedEx - Freight Rating with Addons
{
"carrier": "FedEx",
"action": "GetAllRates",
"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": 200,
"freight_class": "50"
}
],
"addons": [
"INSIDE_DELIVERY",
"LIMITED_ACCESS_DELIVERY",
"CALL_BEFORE_DELIVERY"
],
"customs": [],
"shipper": "RocketShipIt",
"ship_addr1": "1202 Chalet Ln",
"ship_addr2": "Do Not Delete - Test Account",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"to_country": "US",
"to_city": "Akron",
"to_state": "OH",
"to_code": "44333",
"weight_unit": "LB",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'GetAllRates',
'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' => 200,
'freight_class' => '50',
),
),
'addons' =>
array (
0 => 'INSIDE_DELIVERY',
1 => 'LIMITED_ACCESS_DELIVERY',
2 => 'CALL_BEFORE_DELIVERY',
),
'customs' =>
array (
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '1202 Chalet Ln',
'ship_addr2' => 'Do Not Delete - Test Account',
'ship_city' => 'Harrison',
'ship_state' => 'AR',
'ship_code' => '72601',
'ship_country' => 'US',
'to_country' => 'US',
'to_city' => 'Akron',
'to_state' => 'OH',
'to_code' => '44333',
'weight_unit' => 'LB',
'test' => true,
),
)
);
rs.request(
{u'action': u'GetAllRates',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'addons': [u'INSIDE_DELIVERY',
u'LIMITED_ACCESS_DELIVERY',
u'CALL_BEFORE_DELIVERY'],
u'customs': [],
u'freight_account_number': u'YOUR_FREIGHT_ACCOUNT_NUMBER',
u'key': u'YOUR_KEY',
u'meter_number': u'YOUR_METER_NUMBER',
u'packages': [{u'freight_class': u'50', u'weight': 200}],
u'password': u'YOUR_PASSWORD',
u'ship_addr1': u'1202 Chalet Ln',
u'ship_addr2': u'Do Not Delete - Test Account',
u'ship_city': u'Harrison',
u'ship_code': u'72601',
u'ship_country': u'US',
u'ship_state': u'AR',
u'shipper': u'RocketShipIt',
u'test': True,
u'to_city': u'Akron',
u'to_code': u'44333',
u'to_country': u'US',
u'to_state': u'OH',
u'weight_unit': u'LB'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"GetAllRates", "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"=>200, "freight_class"=>"50"}], "addons"=>["INSIDE_DELIVERY", "LIMITED_ACCESS_DELIVERY", "CALL_BEFORE_DELIVERY"], "customs"=>[], "shipper"=>"RocketShipIt", "ship_addr1"=>"1202 Chalet Ln", "ship_addr2"=>"Do Not Delete - Test Account", "ship_city"=>"Harrison", "ship_state"=>"AR", "ship_code"=>"72601", "ship_country"=>"US", "to_country"=>"US", "to_city"=>"Akron", "to_state"=>"OH", "to_code"=>"44333", "weight_unit"=>"LB", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "GetAllRates",
"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": 200,
"freight_class": "50"
}
],
"addons": [
"INSIDE_DELIVERY",
"LIMITED_ACCESS_DELIVERY",
"CALL_BEFORE_DELIVERY"
],
"customs": [],
"shipper": "RocketShipIt",
"ship_addr1": "1202 Chalet Ln",
"ship_addr2": "Do Not Delete - Test Account",
"ship_city": "Harrison",
"ship_state": "AR",
"ship_code": "72601",
"ship_country": "US",
"to_country": "US",
"to_city": "Akron",
"to_state": "OH",
"to_code": "44333",
"weight_unit": "LB",
"test": true
}
}
)
FedEx - Get BOL Freight Document
{
"carrier": "FedEx",
"action": "GetTrackingDocuments",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"secure_spod_account": "82073541",
"tracking_number": "4875453004"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'GetTrackingDocuments',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'secure_spod_account' => '82073541',
'tracking_number' => '4875453004',
),
)
);
rs.request(
{u'action': u'GetTrackingDocuments',
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'secure_spod_account': u'82073541',
u'tracking_number': u'4875453004'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"GetTrackingDocuments", "params"=>{"account_number"=>"YOUR_ACCOUNT_NUMBER", "meter_number"=>"YOUR_METER_NUMBER", "key"=>"YOUR_KEY", "password"=>"YOUR_PASSWORD", "secure_spod_account"=>"82073541", "tracking_number"=>"4875453004"}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "GetTrackingDocuments",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"secure_spod_account": "82073541",
"tracking_number": "4875453004"
}
}
)
FedEx - Label
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 15
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 15,
),
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_phone' => '1231231234',
'to_name' => 'John Doe',
'to_addr1' => '123 Main St',
'to_state' => 'CA',
'to_city' => 'Beverly Hills',
'to_code' => '90210',
'to_phone' => '1231231234',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
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'packages': [{u'weight': 15}],
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_phone': u'1231231234',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
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_phone': u'1231231234',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"SubmitShipment", "params"=>{"account_number"=>"YOUR_ACCOUNT_NUMBER", "meter_number"=>"YOUR_METER_NUMBER", "key"=>"YOUR_KEY", "password"=>"YOUR_PASSWORD", "packages"=>[{"weight"=>15}], "shipper"=>"RocketShipIt", "ship_addr1"=>"123 Main St", "ship_city"=>"Whitehall", "ship_state"=>"MT", "ship_code"=>"59759", "ship_phone"=>"1231231234", "to_name"=>"John Doe", "to_addr1"=>"123 Main St", "to_state"=>"CA", "to_city"=>"Beverly Hills", "to_code"=>"90210", "to_phone"=>"1231231234", "packaging_type"=>"YOUR_PACKAGING", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 15
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)
FedEx - Label Alcohol
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 15,
"alcohol": true
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 15,
'alcohol' => true,
),
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_phone' => '1231231234',
'to_name' => 'John Doe',
'to_addr1' => '123 Main St',
'to_state' => 'CA',
'to_city' => 'Beverly Hills',
'to_code' => '90210',
'to_phone' => '1231231234',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
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'packages': [{u'alcohol': True, u'weight': 15}],
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_phone': u'1231231234',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
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_phone': u'1231231234',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"SubmitShipment", "params"=>{"account_number"=>"YOUR_ACCOUNT_NUMBER", "meter_number"=>"YOUR_METER_NUMBER", "key"=>"YOUR_KEY", "password"=>"YOUR_PASSWORD", "packages"=>[{"weight"=>15, "alcohol"=>true}], "shipper"=>"RocketShipIt", "ship_addr1"=>"123 Main St", "ship_city"=>"Whitehall", "ship_state"=>"MT", "ship_code"=>"59759", "ship_phone"=>"1231231234", "to_name"=>"John Doe", "to_addr1"=>"123 Main St", "to_state"=>"CA", "to_city"=>"Beverly Hills", "to_code"=>"90210", "to_phone"=>"1231231234", "packaging_type"=>"YOUR_PACKAGING", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 15,
"alcohol": true
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)
FedEx - Label Alcohol to Licensee
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"recipient_type": "LICENSEE",
"packages": [
{
"weight": 15,
"alcohol": true
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'recipient_type' => 'LICENSEE',
'packages' =>
array (
0 =>
array (
'weight' => 15,
'alcohol' => true,
),
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_phone' => '1231231234',
'to_name' => 'John Doe',
'to_addr1' => '123 Main St',
'to_state' => 'CA',
'to_city' => 'Beverly Hills',
'to_code' => '90210',
'to_phone' => '1231231234',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
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'packages': [{u'alcohol': True, u'weight': 15}],
u'packaging_type': u'YOUR_PACKAGING',
u'password': u'YOUR_PASSWORD',
u'recipient_type': u'LICENSEE',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Whitehall',
u'ship_code': u'59759',
u'ship_phone': u'1231231234',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
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_phone': u'1231231234',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"SubmitShipment", "params"=>{"account_number"=>"YOUR_ACCOUNT_NUMBER", "meter_number"=>"YOUR_METER_NUMBER", "key"=>"YOUR_KEY", "password"=>"YOUR_PASSWORD", "recipient_type"=>"LICENSEE", "packages"=>[{"weight"=>15, "alcohol"=>true}], "shipper"=>"RocketShipIt", "ship_addr1"=>"123 Main St", "ship_city"=>"Whitehall", "ship_state"=>"MT", "ship_code"=>"59759", "ship_phone"=>"1231231234", "to_name"=>"John Doe", "to_addr1"=>"123 Main St", "to_state"=>"CA", "to_city"=>"Beverly Hills", "to_code"=>"90210", "to_phone"=>"1231231234", "packaging_type"=>"YOUR_PACKAGING", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"recipient_type": "LICENSEE",
"packages": [
{
"weight": 15,
"alcohol": true
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)
FedEx - Label Alternate Return Address
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 15
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"label": {
"printed_origin": {
"phone": "123-123-1234",
"name": "John Doe",
"addr1": "940 Presidio Ave",
"state": "CA",
"city": "San Francisco",
"code": "94112",
"country": "US"
}
},
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 15,
),
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_phone' => '1231231234',
'to_name' => 'John Doe',
'to_addr1' => '123 Main St',
'to_state' => 'CA',
'to_city' => 'Beverly Hills',
'to_code' => '90210',
'to_phone' => '1231231234',
'packaging_type' => 'YOUR_PACKAGING',
'label' =>
array (
'printed_origin' =>
array (
'phone' => '123-123-1234',
'name' => 'John Doe',
'addr1' => '940 Presidio Ave',
'state' => 'CA',
'city' => 'San Francisco',
'code' => '94112',
'country' => 'US',
),
),
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'key': u'YOUR_KEY',
u'label': {u'printed_origin': {u'addr1': u'940 Presidio Ave',
u'city': u'San Francisco',
u'code': u'94112',
u'country': u'US',
u'name': u'John Doe',
u'phone': u'123-123-1234',
u'state': u'CA'}},
u'meter_number': u'YOUR_METER_NUMBER',
u'packages': [{u'weight': 15}],
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_phone': u'1231231234',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
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_phone': u'1231231234',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"SubmitShipment", "params"=>{"account_number"=>"YOUR_ACCOUNT_NUMBER", "meter_number"=>"YOUR_METER_NUMBER", "key"=>"YOUR_KEY", "password"=>"YOUR_PASSWORD", "packages"=>[{"weight"=>15}], "shipper"=>"RocketShipIt", "ship_addr1"=>"123 Main St", "ship_city"=>"Whitehall", "ship_state"=>"MT", "ship_code"=>"59759", "ship_phone"=>"1231231234", "to_name"=>"John Doe", "to_addr1"=>"123 Main St", "to_state"=>"CA", "to_city"=>"Beverly Hills", "to_code"=>"90210", "to_phone"=>"1231231234", "packaging_type"=>"YOUR_PACKAGING", "label"=>{"printed_origin"=>{"phone"=>"123-123-1234", "name"=>"John Doe", "addr1"=>"940 Presidio Ave", "state"=>"CA", "city"=>"San Francisco", "code"=>"94112", "country"=>"US"}}, "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 15
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"label": {
"printed_origin": {
"phone": "123-123-1234",
"name": "John Doe",
"addr1": "940 Presidio Ave",
"state": "CA",
"city": "San Francisco",
"code": "94112",
"country": "US"
}
},
"test": true
}
}
)
FedEx - Label Bill Recipient
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"key": "YOUR_UPS_API_KEY",
"account_number": "YOUR_ACCOUNT_NUMBER",
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"billing": [
{
"type": "transportation",
"payment_type": "recipient",
"account": "abc123",
"postal_code": "94608",
"country_code": "US"
}
],
"packages": [
{
"weight": 4,
"length": 7
}
],
"service": "FEDEX_GROUND",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"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": "GIF",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'key' => 'YOUR_UPS_API_KEY',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'billing' =>
array (
0 =>
array (
'type' => 'transportation',
'payment_type' => 'recipient',
'account' => 'abc123',
'postal_code' => '94608',
'country_code' => 'US',
),
),
'packages' =>
array (
0 =>
array (
'weight' => 4,
'length' => 7,
),
),
'service' => 'FEDEX_GROUND',
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'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' => 'GIF',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'billing': [{u'account': u'abc123',
u'country_code': u'US',
u'payment_type': u'recipient',
u'postal_code': u'94608',
u'type': u'transportation'}],
u'image_type': u'GIF',
u'key': u'YOUR_UPS_API_KEY',
u'packages': [{u'length': 7, u'weight': 4}],
u'password': u'YOUR_PASSWORD',
u'service': u'FEDEX_GROUND',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Whitehall',
u'ship_code': u'59759',
u'ship_country': u'US',
u'ship_phone': u'1231231234',
u'ship_state': u'MT',
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',
u'username': u'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"SubmitShipment", "params"=>{"key"=>"YOUR_UPS_API_KEY", "account_number"=>"YOUR_ACCOUNT_NUMBER", "username"=>"YOUR_USERNAME", "password"=>"YOUR_PASSWORD", "billing"=>[{"type"=>"transportation", "payment_type"=>"recipient", "account"=>"abc123", "postal_code"=>"94608", "country_code"=>"US"}], "packages"=>[{"weight"=>4, "length"=>7}], "service"=>"FEDEX_GROUND", "shipper"=>"RocketShipIt", "ship_addr1"=>"123 Main St", "ship_city"=>"Whitehall", "ship_state"=>"MT", "ship_code"=>"59759", "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"=>"GIF", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"key": "YOUR_UPS_API_KEY",
"account_number": "YOUR_ACCOUNT_NUMBER",
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"billing": [
{
"type": "transportation",
"payment_type": "recipient",
"account": "abc123",
"postal_code": "94608",
"country_code": "US"
}
],
"packages": [
{
"weight": 4,
"length": 7
}
],
"service": "FEDEX_GROUND",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"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": "GIF",
"test": true
}
}
)
FedEx - Label Dry Ice
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 15,
"dry_ice": {
"weight": 2
}
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 15,
'dry_ice' =>
array (
'weight' => 2,
),
),
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_phone' => '1231231234',
'to_name' => 'John Doe',
'to_addr1' => '123 Main St',
'to_state' => 'CA',
'to_city' => 'Beverly Hills',
'to_code' => '90210',
'to_phone' => '1231231234',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
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'packages': [{u'dry_ice': {u'weight': 2}, u'weight': 15}],
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_phone': u'1231231234',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
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_phone': u'1231231234',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"SubmitShipment", "params"=>{"account_number"=>"YOUR_ACCOUNT_NUMBER", "meter_number"=>"YOUR_METER_NUMBER", "key"=>"YOUR_KEY", "password"=>"YOUR_PASSWORD", "packages"=>[{"weight"=>15, "dry_ice"=>{"weight"=>2}}], "shipper"=>"RocketShipIt", "ship_addr1"=>"123 Main St", "ship_city"=>"Whitehall", "ship_state"=>"MT", "ship_code"=>"59759", "ship_phone"=>"1231231234", "to_name"=>"John Doe", "to_addr1"=>"123 Main St", "to_state"=>"CA", "to_city"=>"Beverly Hills", "to_code"=>"90210", "to_phone"=>"1231231234", "packaging_type"=>"YOUR_PACKAGING", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 15,
"dry_ice": {
"weight": 2
}
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)
FedEx - Label Email Notifications
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"notify": [
{
"email": "customer@email.com",
"type": "ON_SHIPMENT,ON_TENDER,ON_EXCEPTION,ON_DELIVERY"
}
],
"packages": [
{
"weight": 15
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'notify' =>
array (
0 =>
array (
'email' => 'customer@email.com',
'type' => 'ON_SHIPMENT,ON_TENDER,ON_EXCEPTION,ON_DELIVERY',
),
),
'packages' =>
array (
0 =>
array (
'weight' => 15,
),
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_phone' => '1231231234',
'to_name' => 'John Doe',
'to_addr1' => '123 Main St',
'to_state' => 'CA',
'to_city' => 'Beverly Hills',
'to_code' => '90210',
'to_phone' => '1231231234',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
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'notify': [{u'email': u'customer@email.com',
u'type': u'ON_SHIPMENT,ON_TENDER,ON_EXCEPTION,ON_DELIVERY'}],
u'packages': [{u'weight': 15}],
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_phone': u'1231231234',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
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_phone': u'1231231234',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"SubmitShipment", "params"=>{"account_number"=>"YOUR_ACCOUNT_NUMBER", "meter_number"=>"YOUR_METER_NUMBER", "key"=>"YOUR_KEY", "password"=>"YOUR_PASSWORD", "notify"=>[{"email"=>"customer@email.com", "type"=>"ON_SHIPMENT,ON_TENDER,ON_EXCEPTION,ON_DELIVERY"}], "packages"=>[{"weight"=>15}], "shipper"=>"RocketShipIt", "ship_addr1"=>"123 Main St", "ship_city"=>"Whitehall", "ship_state"=>"MT", "ship_code"=>"59759", "ship_phone"=>"1231231234", "to_name"=>"John Doe", "to_addr1"=>"123 Main St", "to_state"=>"CA", "to_city"=>"Beverly Hills", "to_code"=>"90210", "to_phone"=>"1231231234", "packaging_type"=>"YOUR_PACKAGING", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"notify": [
{
"email": "customer@email.com",
"type": "ON_SHIPMENT,ON_TENDER,ON_EXCEPTION,ON_DELIVERY"
}
],
"packages": [
{
"weight": 15
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)
FedEx - Label Ground Collect (Not COD)
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"billing": [
{
"type": "transportation",
"payment_type": "collect"
}
],
"packages": [
{
"width": 14,
"length": 11,
"height": 8,
"weight": 5,
"reference_code": "P_O_NUMBER",
"reference_value": "abc123",
"reference_code2": "CUSTOMER_REFERENCE",
"reference_value2": "123456"
}
],
"shipper": "Acme Inc",
"ship_addr1": "123 Main St.",
"ship_city": "Vancouver",
"ship_state": "WA",
"ship_code": "98685",
"ship_phone": "123-123-1234",
"ship_country": "US",
"to_country": "US",
"to_code": "11040",
"to_name": "Big Box Store",
"to_addr1": "123 Fake St.",
"to_state": "NY",
"to_city": "New Hyde Park",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'billing' =>
array (
0 =>
array (
'type' => 'transportation',
'payment_type' => 'collect',
),
),
'packages' =>
array (
0 =>
array (
'width' => 14,
'length' => 11,
'height' => 8,
'weight' => 5,
'reference_code' => 'P_O_NUMBER',
'reference_value' => 'abc123',
'reference_code2' => 'CUSTOMER_REFERENCE',
'reference_value2' => '123456',
),
),
'shipper' => 'Acme Inc',
'ship_addr1' => '123 Main St.',
'ship_city' => 'Vancouver',
'ship_state' => 'WA',
'ship_code' => '98685',
'ship_phone' => '123-123-1234',
'ship_country' => 'US',
'to_country' => 'US',
'to_code' => '11040',
'to_name' => 'Big Box Store',
'to_addr1' => '123 Fake St.',
'to_state' => 'NY',
'to_city' => 'New Hyde Park',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'FedEx',
u'params': {u'account_number': u'YOUR_ACCOUNT_NUMBER',
u'billing': [{u'payment_type': u'collect',
u'type': u'transportation'}],
u'key': u'YOUR_KEY',
u'meter_number': u'YOUR_METER_NUMBER',
u'packages': [{u'height': 8,
u'length': 11,
u'reference_code': u'P_O_NUMBER',
u'reference_code2': u'CUSTOMER_REFERENCE',
u'reference_value': u'abc123',
u'reference_value2': u'123456',
u'weight': 5,
u'width': 14}],
u'packaging_type': u'YOUR_PACKAGING',
u'password': u'YOUR_PASSWORD',
u'ship_addr1': u'123 Main St.',
u'ship_city': u'Vancouver',
u'ship_code': u'98685',
u'ship_country': u'US',
u'ship_phone': u'123-123-1234',
u'ship_state': u'WA',
u'shipper': u'Acme Inc',
u'test': True,
u'to_addr1': u'123 Fake St.',
u'to_city': u'New Hyde Park',
u'to_code': u'11040',
u'to_country': u'US',
u'to_name': u'Big Box Store',
u'to_state': u'NY'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"SubmitShipment", "params"=>{"account_number"=>"YOUR_ACCOUNT_NUMBER", "meter_number"=>"YOUR_METER_NUMBER", "key"=>"YOUR_KEY", "password"=>"YOUR_PASSWORD", "billing"=>[{"type"=>"transportation", "payment_type"=>"collect"}], "packages"=>[{"width"=>14, "length"=>11, "height"=>8, "weight"=>5, "reference_code"=>"P_O_NUMBER", "reference_value"=>"abc123", "reference_code2"=>"CUSTOMER_REFERENCE", "reference_value2"=>"123456"}], "shipper"=>"Acme Inc", "ship_addr1"=>"123 Main St.", "ship_city"=>"Vancouver", "ship_state"=>"WA", "ship_code"=>"98685", "ship_phone"=>"123-123-1234", "ship_country"=>"US", "to_country"=>"US", "to_code"=>"11040", "to_name"=>"Big Box Store", "to_addr1"=>"123 Fake St.", "to_state"=>"NY", "to_city"=>"New Hyde Park", "packaging_type"=>"YOUR_PACKAGING", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"billing": [
{
"type": "transportation",
"payment_type": "collect"
}
],
"packages": [
{
"width": 14,
"length": 11,
"height": 8,
"weight": 5,
"reference_code": "P_O_NUMBER",
"reference_value": "abc123",
"reference_code2": "CUSTOMER_REFERENCE",
"reference_value2": "123456"
}
],
"shipper": "Acme Inc",
"ship_addr1": "123 Main St.",
"ship_city": "Vancouver",
"ship_state": "WA",
"ship_code": "98685",
"ship_phone": "123-123-1234",
"ship_country": "US",
"to_country": "US",
"to_code": "11040",
"to_name": "Big Box Store",
"to_addr1": "123 Fake St.",
"to_state": "NY",
"to_city": "New Hyde Park",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)
FedEx - Label Hold at Location
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"packages": [
{
"weight": 15
}
],
"hold_at_location": true,
"hold_phone": "1231231234",
"hold_addr1": "8549 Wilshire Blvd",
"hold_city": "Beverly Hills",
"hold_state": "CA",
"hold_code": "90211",
"hold_country": "US",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'packages' =>
array (
0 =>
array (
'weight' => 15,
),
),
'hold_at_location' => true,
'hold_phone' => '1231231234',
'hold_addr1' => '8549 Wilshire Blvd',
'hold_city' => 'Beverly Hills',
'hold_state' => 'CA',
'hold_code' => '90211',
'hold_country' => 'US',
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_phone' => '1231231234',
'to_name' => 'John Doe',
'to_addr1' => '123 Main St',
'to_state' => 'CA',
'to_city' => 'Beverly Hills',
'to_code' => '90210',
'to_phone' => '1231231234',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
u'carrier': u'FedEx',
u'params': {u'hold_addr1': u'8549 Wilshire Blvd',
u'hold_at_location': True,
u'hold_city': u'Beverly Hills',
u'hold_code': u'90211',
u'hold_country': u'US',
u'hold_phone': u'1231231234',
u'hold_state': u'CA',
u'packages': [{u'weight': 15}],
u'packaging_type': u'YOUR_PACKAGING',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Whitehall',
u'ship_code': u'59759',
u'ship_phone': u'1231231234',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
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_phone': u'1231231234',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"SubmitShipment", "params"=>{"packages"=>[{"weight"=>15}], "hold_at_location"=>true, "hold_phone"=>"1231231234", "hold_addr1"=>"8549 Wilshire Blvd", "hold_city"=>"Beverly Hills", "hold_state"=>"CA", "hold_code"=>"90211", "hold_country"=>"US", "shipper"=>"RocketShipIt", "ship_addr1"=>"123 Main St", "ship_city"=>"Whitehall", "ship_state"=>"MT", "ship_code"=>"59759", "ship_phone"=>"1231231234", "to_name"=>"John Doe", "to_addr1"=>"123 Main St", "to_state"=>"CA", "to_city"=>"Beverly Hills", "to_code"=>"90210", "to_phone"=>"1231231234", "packaging_type"=>"YOUR_PACKAGING", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"packages": [
{
"weight": 15
}
],
"hold_at_location": true,
"hold_phone": "1231231234",
"hold_addr1": "8549 Wilshire Blvd",
"hold_city": "Beverly Hills",
"hold_state": "CA",
"hold_code": "90211",
"hold_country": "US",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)
FedEx - Label Home Delivery No Signature
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 15,
"signature_type": "NO_SIGNATURE_REQUIRED"
}
],
"service": "GROUND_HOME_DELIVERY",
"residential": true,
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 15,
'signature_type' => 'NO_SIGNATURE_REQUIRED',
),
),
'service' => 'GROUND_HOME_DELIVERY',
'residential' => true,
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_phone' => '1231231234',
'to_name' => 'John Doe',
'to_addr1' => '123 Main St',
'to_state' => 'CA',
'to_city' => 'Beverly Hills',
'to_code' => '90210',
'to_phone' => '1231231234',
'packaging_type' => 'YOUR_PACKAGING',
'test' => true,
),
)
);
rs.request(
{u'action': u'SubmitShipment',
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'packages': [{u'signature_type': u'NO_SIGNATURE_REQUIRED',
u'weight': 15}],
u'packaging_type': u'YOUR_PACKAGING',
u'password': u'YOUR_PASSWORD',
u'residential': True,
u'service': u'GROUND_HOME_DELIVERY',
u'ship_addr1': u'123 Main St',
u'ship_city': u'Whitehall',
u'ship_code': u'59759',
u'ship_phone': u'1231231234',
u'ship_state': u'MT',
u'shipper': u'RocketShipIt',
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_phone': u'1231231234',
u'to_state': u'CA'}}
)
rs.request(
{"carrier"=>"FedEx", "action"=>"SubmitShipment", "params"=>{"account_number"=>"YOUR_ACCOUNT_NUMBER", "meter_number"=>"YOUR_METER_NUMBER", "key"=>"YOUR_KEY", "password"=>"YOUR_PASSWORD", "packages"=>[{"weight"=>15, "signature_type"=>"NO_SIGNATURE_REQUIRED"}], "service"=>"GROUND_HOME_DELIVERY", "residential"=>true, "shipper"=>"RocketShipIt", "ship_addr1"=>"123 Main St", "ship_city"=>"Whitehall", "ship_state"=>"MT", "ship_code"=>"59759", "ship_phone"=>"1231231234", "to_name"=>"John Doe", "to_addr1"=>"123 Main St", "to_state"=>"CA", "to_city"=>"Beverly Hills", "to_code"=>"90210", "to_phone"=>"1231231234", "packaging_type"=>"YOUR_PACKAGING", "test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 15,
"signature_type": "NO_SIGNATURE_REQUIRED"
}
],
"service": "GROUND_HOME_DELIVERY",
"residential": true,
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Main St",
"to_state": "CA",
"to_city": "Beverly Hills",
"to_code": "90210",
"to_phone": "1231231234",
"packaging_type": "YOUR_PACKAGING",
"test": true
}
}
)
FedEx - Label IN -> IN with COD
{
"carrier": "FedEx",
"action": "SubmitShipment",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"test": true,
"purpose": "SOLD",
"currency": "INR",
"cod_amount": 100,
"cod_fund_type": "CASH",
"packages": [
{
"weight": 5,
"length": 1,
"width": 1,
"height": 1
}
],
"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"
}
],
"service": "STANDARD_OVERNIGHT",
"shipper": "John Doe",
"ship_contact": "John Doe",
"ship_addr1": "2000 Meadowvale Rd",
"ship_city": "mumbai",
"ship_state": "MH",
"ship_code": "400037",
"ship_country": "IN",
"ship_phone": "1231231234",
"to_attention_name": "John Doe",
"to_name": "John Doe",
"to_addr1": "2300 Southern Blvd",
"to_state": "MH",
"to_city": "Mumbai",
"to_code": "400037",
"to_country": "IN",
"to_phone": "1231231234",
"image_type": "PNG",
"shipment_description": "xxx",
"packaging_type": "YOUR_PACKAGING",
"pickup_type": "02",
"weight_unit": "LB",
"length_unit": "IN"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'SubmitShipment',
'params' =>
array (
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'test' => true,
'purpose' => 'SOLD',
'currency' => 'INR',
'cod_amount' => 100,
'cod_fund_type' => 'CASH',
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 1,
'width' => 1,
'height' => 1,
),
),
'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',
),
),
'service' =>