{
"carrier": "DHL-REST",
"action": "SubmitShipment",
"params": {
"client_id": "demo-key",
"client_secret": "demo-secret",
"account_number": "803921577",
"currency": "EUR",
"customs_value": 120.00,
"incoterms": "DAP",
"packages": [
{
"weight": 1,
"length": 10,
"width": 8,
"height": 4
}
],
"customs": [
{
"customs_description": "Silicone product",
"customs_quantity": 1,
"customs_quantity_units": "PCS",
"customs_line_amount": 120.00,
"customs_weight": 1,
"customs_hs_tariff": "392690",
"country_of_manufacture": "US",
"regulatory_details": [
{
"regulation_code": "EU_DE_MINIMIS",
"product_id": "SKU-123",
"product_id_type": "SKU",
"merchant_product_id": "SKU-123",
"non_standard_manufacturer_product_id": "SH123456-L",
"standard_manufacturer_product_id": "01233456789012"
}
]
}
],
"service": "P",
"shipper": "Bad Dragon LLC",
"ship_contact": "Jane Smith",
"ship_addr1": "100 Main Street",
"ship_city": "Phoenix",
"ship_state": "AZ",
"ship_code": "85001",
"ship_country": "US",
"ship_phone": "6025551234",
"to_name": "Max Mustermann",
"to_addr1": "Friedrichstrasse 100",
"to_city": "Berlin",
"to_code": "10117",
"to_country": "DE",
"to_phone": "493055551234",
"image_type": "PDF",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'DHL-REST',
'action' => 'SubmitShipment',
'params' =>
array (
'client_id' => 'demo-key',
'client_secret' => 'demo-secret',
'account_number' => '803921577',
'currency' => 'EUR',
'customs_value' => 120.0,
'incoterms' => 'DAP',
'packages' =>
array (
0 =>
array (
'weight' => 1,
'length' => 10,
'width' => 8,
'height' => 4,
),
),
'customs' =>
array (
0 =>
array (
'customs_description' => 'Silicone product',
'customs_quantity' => 1,
'customs_quantity_units' => 'PCS',
'customs_line_amount' => 120.0,
'customs_weight' => 1,
'customs_hs_tariff' => '392690',
'country_of_manufacture' => 'US',
'regulatory_details' =>
array (
0 =>
array (
'regulation_code' => 'EU_DE_MINIMIS',
'product_id' => 'SKU-123',
'product_id_type' => 'SKU',
'merchant_product_id' => 'SKU-123',
'non_standard_manufacturer_product_id' => 'SH123456-L',
'standard_manufacturer_product_id' => '01233456789012',
),
),
),
),
'service' => 'P',
'shipper' => 'Bad Dragon LLC',
'ship_contact' => 'Jane Smith',
'ship_addr1' => '100 Main Street',
'ship_city' => 'Phoenix',
'ship_state' => 'AZ',
'ship_code' => '85001',
'ship_country' => 'US',
'ship_phone' => '6025551234',
'to_name' => 'Max Mustermann',
'to_addr1' => 'Friedrichstrasse 100',
'to_city' => 'Berlin',
'to_code' => '10117',
'to_country' => 'DE',
'to_phone' => '493055551234',
'image_type' => 'PDF',
'test' => true,
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'DHL-REST',
'params': {'account_number': '803921577',
'client_id': 'demo-key',
'client_secret': 'demo-secret',
'currency': 'EUR',
'customs': [{'country_of_manufacture': 'US',
'customs_description': 'Silicone product',
'customs_hs_tariff': '392690',
'customs_line_amount': 120.0,
'customs_quantity': 1,
'customs_quantity_units': 'PCS',
'customs_weight': 1,
'regulatory_details': [{'merchant_product_id': 'SKU-123',
'non_standard_manufacturer_product_id': 'SH123456-L',
'product_id': 'SKU-123',
'product_id_type': 'SKU',
'regulation_code': 'EU_DE_MINIMIS',
'standard_manufacturer_product_id': '01233456789012'}]}],
'customs_value': 120.0,
'image_type': 'PDF',
'incoterms': 'DAP',
'packages': [{'height': 4, 'length': 10, 'weight': 1, 'width': 8}],
'service': 'P',
'ship_addr1': '100 Main Street',
'ship_city': 'Phoenix',
'ship_code': '85001',
'ship_contact': 'Jane Smith',
'ship_country': 'US',
'ship_phone': '6025551234',
'ship_state': 'AZ',
'shipper': 'Bad Dragon LLC',
'test': True,
'to_addr1': 'Friedrichstrasse 100',
'to_city': 'Berlin',
'to_code': '10117',
'to_country': 'DE',
'to_name': 'Max Mustermann',
'to_phone': '493055551234'}}
)
rs.request(
{"carrier"=>"DHL-REST",
"action"=>"SubmitShipment",
"params"=>
{"client_id"=>"demo-key",
"client_secret"=>"demo-secret",
"account_number"=>"803921577",
"currency"=>"EUR",
"customs_value"=>120.0,
"incoterms"=>"DAP",
"packages"=>[{"weight"=>1, "length"=>10, "width"=>8, "height"=>4}],
"customs"=>
[{"customs_description"=>"Silicone product",
"customs_quantity"=>1,
"customs_quantity_units"=>"PCS",
"customs_line_amount"=>120.0,
"customs_weight"=>1,
"customs_hs_tariff"=>"392690",
"country_of_manufacture"=>"US",
"regulatory_details"=>
[{"regulation_code"=>"EU_DE_MINIMIS",
"product_id"=>"SKU-123",
"product_id_type"=>"SKU",
"merchant_product_id"=>"SKU-123",
"non_standard_manufacturer_product_id"=>"SH123456-L",
"standard_manufacturer_product_id"=>"01233456789012"}]}],
"service"=>"P",
"shipper"=>"Bad Dragon LLC",
"ship_contact"=>"Jane Smith",
"ship_addr1"=>"100 Main Street",
"ship_city"=>"Phoenix",
"ship_state"=>"AZ",
"ship_code"=>"85001",
"ship_country"=>"US",
"ship_phone"=>"6025551234",
"to_name"=>"Max Mustermann",
"to_addr1"=>"Friedrichstrasse 100",
"to_city"=>"Berlin",
"to_code"=>"10117",
"to_country"=>"DE",
"to_phone"=>"493055551234",
"image_type"=>"PDF",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "DHL-REST",
"action": "SubmitShipment",
"params": {
"client_id": "demo-key",
"client_secret": "demo-secret",
"account_number": "803921577",
"currency": "EUR",
"customs_value": 120.00,
"incoterms": "DAP",
"packages": [
{
"weight": 1,
"length": 10,
"width": 8,
"height": 4
}
],
"customs": [
{
"customs_description": "Silicone product",
"customs_quantity": 1,
"customs_quantity_units": "PCS",
"customs_line_amount": 120.00,
"customs_weight": 1,
"customs_hs_tariff": "392690",
"country_of_manufacture": "US",
"regulatory_details": [
{
"regulation_code": "EU_DE_MINIMIS",
"product_id": "SKU-123",
"product_id_type": "SKU",
"merchant_product_id": "SKU-123",
"non_standard_manufacturer_product_id": "SH123456-L",
"standard_manufacturer_product_id": "01233456789012"
}
]
}
],
"service": "P",
"shipper": "Bad Dragon LLC",
"ship_contact": "Jane Smith",
"ship_addr1": "100 Main Street",
"ship_city": "Phoenix",
"ship_state": "AZ",
"ship_code": "85001",
"ship_country": "US",
"ship_phone": "6025551234",
"to_name": "Max Mustermann",
"to_addr1": "Friedrichstrasse 100",
"to_city": "Berlin",
"to_code": "10117",
"to_country": "DE",
"to_phone": "493055551234",
"image_type": "PDF",
"test": true
}
}
)