DHL - Label International Local Product Code

Carrier: DHL
Action: Label International Local Product Code
Description: Example implementation for DHL Label International Local Product Code
{
  "carrier": "DHL",
  "action": "SubmitShipment",
  "params": {
    "username": "",
    "password": "",
    "account_number": "",
    "shipper": "Your Company",
    "ship_contact": "Your Name",
    "ship_addr1": "Sanhedria Murchevet 102\/8",
    "ship_city": "Jerusalem",
    "ship_code": "9770602",
    "ship_phone": "+9723128183524",
    "ship_country": "IL",
    "to_name": "John Doe",
    "to_addr1": "1415 E 12TH ST",
    "to_state": "NY",
    "to_city": "BROOKLYN",
    "to_code": "11230-6605",
    "to_country": "US",
    "packages": [
      {
        "weight": 0.5,
        "length": 1,
        "width": 1,
        "height": 1,
        "reference_value": "SYK"
      }
    ],
    "local_service": "E",
    "service": "X",
    "image_type": "PDF",
    "currency": "USD",
    "documents_only": true,
    "request_archive_doc": true,
    "packaging_type": "EE",
    "shipment_description": "Documents",
    "customs_value": 0,
    "trade_terms": "DAP"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'DHL',
  'action' => 'SubmitShipment',
  'params' => 
  array (
    'username' => '',
    'password' => '',
    'account_number' => '',
    'shipper' => 'Your Company',
    'ship_contact' => 'Your Name',
    'ship_addr1' => 'Sanhedria Murchevet 102/8',
    'ship_city' => 'Jerusalem',
    'ship_code' => '9770602',
    'ship_phone' => '+9723128183524',
    'ship_country' => 'IL',
    'to_name' => 'John Doe',
    'to_addr1' => '1415 E 12TH ST',
    'to_state' => 'NY',
    'to_city' => 'BROOKLYN',
    'to_code' => '11230-6605',
    'to_country' => 'US',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 0.5,
        'length' => 1,
        'width' => 1,
        'height' => 1,
        'reference_value' => 'SYK',
      ),
    ),
    'local_service' => 'E',
    'service' => 'X',
    'image_type' => 'PDF',
    'currency' => 'USD',
    'documents_only' => true,
    'request_archive_doc' => true,
    'packaging_type' => 'EE',
    'shipment_description' => 'Documents',
    'customs_value' => 0,
    'trade_terms' => 'DAP',
  ),
)
);

rs.request(
  {'action': 'SubmitShipment',
 'carrier': 'DHL',
 'params': {'account_number': '',
            'currency': 'USD',
            'customs_value': 0,
            'documents_only': True,
            'image_type': 'PDF',
            'local_service': 'E',
            'packages': [{'height': 1,
                          'length': 1,
                          'reference_value': 'SYK',
                          'weight': 0.5,
                          'width': 1}],
            'packaging_type': 'EE',
            'password': '',
            'request_archive_doc': True,
            'service': 'X',
            'ship_addr1': 'Sanhedria Murchevet 102/8',
            'ship_city': 'Jerusalem',
            'ship_code': '9770602',
            'ship_contact': 'Your Name',
            'ship_country': 'IL',
            'ship_phone': '+9723128183524',
            'shipment_description': 'Documents',
            'shipper': 'Your Company',
            'to_addr1': '1415 E 12TH ST',
            'to_city': 'BROOKLYN',
            'to_code': '11230-6605',
            'to_country': 'US',
            'to_name': 'John Doe',
            'to_state': 'NY',
            'trade_terms': 'DAP',
            'username': ''}}

)

rs.request(
  {"carrier"=>"DHL",
 "action"=>"SubmitShipment",
 "params"=>
  {"username"=>"",
   "password"=>"",
   "account_number"=>"",
   "shipper"=>"Your Company",
   "ship_contact"=>"Your Name",
   "ship_addr1"=>"Sanhedria Murchevet 102/8",
   "ship_city"=>"Jerusalem",
   "ship_code"=>"9770602",
   "ship_phone"=>"+9723128183524",
   "ship_country"=>"IL",
   "to_name"=>"John Doe",
   "to_addr1"=>"1415 E 12TH ST",
   "to_state"=>"NY",
   "to_city"=>"BROOKLYN",
   "to_code"=>"11230-6605",
   "to_country"=>"US",
   "packages"=>
    [{"weight"=>0.5,
      "length"=>1,
      "width"=>1,
      "height"=>1,
      "reference_value"=>"SYK"}],
   "local_service"=>"E",
   "service"=>"X",
   "image_type"=>"PDF",
   "currency"=>"USD",
   "documents_only"=>true,
   "request_archive_doc"=>true,
   "packaging_type"=>"EE",
   "shipment_description"=>"Documents",
   "customs_value"=>0,
   "trade_terms"=>"DAP"}}

)

rocketshipit.request(
  {
  "carrier": "DHL",
  "action": "SubmitShipment",
  "params": {
    "username": "",
    "password": "",
    "account_number": "",
    "shipper": "Your Company",
    "ship_contact": "Your Name",
    "ship_addr1": "Sanhedria Murchevet 102\/8",
    "ship_city": "Jerusalem",
    "ship_code": "9770602",
    "ship_phone": "+9723128183524",
    "ship_country": "IL",
    "to_name": "John Doe",
    "to_addr1": "1415 E 12TH ST",
    "to_state": "NY",
    "to_city": "BROOKLYN",
    "to_code": "11230-6605",
    "to_country": "US",
    "packages": [
      {
        "weight": 0.5,
        "length": 1,
        "width": 1,
        "height": 1,
        "reference_value": "SYK"
      }
    ],
    "local_service": "E",
    "service": "X",
    "image_type": "PDF",
    "currency": "USD",
    "documents_only": true,
    "request_archive_doc": true,
    "packaging_type": "EE",
    "shipment_description": "Documents",
    "customs_value": 0,
    "trade_terms": "DAP"
  }
}
)
← Back to All Examples

Other DHL Examples

CreateManifest GlobalMail
Example implementation for DHL CreateManifest GlobalMail
GlobalMail International
Example implementation for DHL GlobalMail International
Label
Example implementation for DHL Label
Label Email Notifications
Example implementation for DHL Label Email Notifications
Label GlobalMail
Example implementation for DHL Label GlobalMail
Label International
Example implementation for DHL Label International
Label International CI
Example implementation for DHL Label International CI
Label International CI Duties and Taxes Paid
Example implementation for DHL Label International CI Duties and Taxes Paid
Label International EOR VAT for EU ICS2 and VAT22
Example implementation for DHL Label International EOR VAT for EU ICS2 and VAT22
Label Third Party Billing
Example implementation for DHL Label Third Party Billing
Label with Insurance
Example implementation for DHL Label with Insurance
Label with Waybill Doc
Example implementation for DHL Label with Waybill Doc
Label with reference
Example implementation for DHL Label with reference
Pickup Cancel
Example implementation for DHL Pickup Cancel
Pickup Schedule
Example implementation for DHL Pickup Schedule
Rates
Example implementation for DHL Rates
Rates International
Example implementation for DHL Rates International
Rates Multi-package
Example implementation for DHL Rates Multi-package
Rates with Insurance
Example implementation for DHL Rates with Insurance
Time in Transit
Example implementation for DHL Time in Transit
Tracking
Example implementation for DHL Tracking