DHL - Label International CI Duties and Taxes Paid

Carrier
DHL
Action
Label International CI Duties and Taxes Paid
{
  "carrier": "DHL",
  "action": "submitshipment",
  "params": {
    "customs_payment_type": "SENDER",
    "customs_account_number": "1234",
    "addons": [
      "DD"
    ],
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "customs_forms": "CMI",
    "invoice": "123",
    "invoice_date": "2019-03-19",
    "shipment_description": "Fashion goods",
    "customs_value": 45.99,
    "currency": "EUR",
    "trade_terms": "DAP",
    "packages": [
      {
        "weight": 5,
        "length": 6,
        "width": 7,
        "height": 8
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "5684 Bay St",
    "ship_city": "Emeryville",
    "ship_state": "CA",
    "ship_code": "94608",
    "ship_phone": "1231231234",
    "ship_country": "US",
    "to_name": "Toronto Zoo",
    "to_addr1": "2000 Meadowvale Road",
    "to_state": "MB",
    "to_city": "Toronto",
    "to_code": "M1B5K7",
    "to_phone": "1231231234",
    "to_country": "CA",
    "test": true,
    "service": "P",
    "reference_value": "asdf",
    "customs": [
      {
        "commodity_code": "cc",
        "commodity_name": "cn",
        "invoice_line_number": "1",
        "invoice_line_part_number": "123",
        "invoice_line_description": "My Description",
        "customs_line_amount": 45.99,
        "customs_origin_country": "CA",
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "customs_weight": 10
      }
    ]
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'DHL',
  'action' => 'submitshipment',
  'params' => 
  array (
    'customs_payment_type' => 'SENDER',
    'customs_account_number' => '1234',
    'addons' => 
    array (
      0 => 'DD',
    ),
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'customs_forms' => 'CMI',
    'invoice' => '123',
    'invoice_date' => '2019-03-19',
    'shipment_description' => 'Fashion goods',
    'customs_value' => 45.99,
    'currency' => 'EUR',
    'trade_terms' => 'DAP',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 5,
        'length' => 6,
        'width' => 7,
        'height' => 8,
      ),
    ),
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '5684 Bay St',
    'ship_city' => 'Emeryville',
    'ship_state' => 'CA',
    'ship_code' => '94608',
    'ship_phone' => '1231231234',
    'ship_country' => 'US',
    'to_name' => 'Toronto Zoo',
    'to_addr1' => '2000 Meadowvale Road',
    'to_state' => 'MB',
    'to_city' => 'Toronto',
    'to_code' => 'M1B5K7',
    'to_phone' => '1231231234',
    'to_country' => 'CA',
    'test' => true,
    'service' => 'P',
    'reference_value' => 'asdf',
    'customs' => 
    array (
      0 => 
      array (
        'commodity_code' => 'cc',
        'commodity_name' => 'cn',
        'invoice_line_number' => '1',
        'invoice_line_part_number' => '123',
        'invoice_line_description' => 'My Description',
        'customs_line_amount' => 45.99,
        'customs_origin_country' => 'CA',
        'customs_quantity_units' => 'EA',
        'customs_quantity' => 1,
        'customs_weight' => 10,
      ),
    ),
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'DHL',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'addons': ['DD'],
            'currency': 'EUR',
            'customs': [{'commodity_code': 'cc',
                         'commodity_name': 'cn',
                         'customs_line_amount': 45.99,
                         'customs_origin_country': 'CA',
                         'customs_quantity': 1,
                         'customs_quantity_units': 'EA',
                         'customs_weight': 10,
                         'invoice_line_description': 'My Description',
                         'invoice_line_number': '1',
                         'invoice_line_part_number': '123'}],
            'customs_account_number': '1234',
            'customs_forms': 'CMI',
            'customs_payment_type': 'SENDER',
            'customs_value': 45.99,
            'invoice': '123',
            'invoice_date': '2019-03-19',
            'packages': [{'height': 8, 'length': 6, 'weight': 5, 'width': 7}],
            'password': 'YOUR_PASSWORD',
            'reference_value': 'asdf',
            'service': 'P',
            'ship_addr1': '5684 Bay St',
            'ship_city': 'Emeryville',
            'ship_code': '94608',
            'ship_country': 'US',
            'ship_phone': '1231231234',
            'ship_state': 'CA',
            'shipment_description': 'Fashion goods',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '2000 Meadowvale Road',
            'to_city': 'Toronto',
            'to_code': 'M1B5K7',
            'to_country': 'CA',
            'to_name': 'Toronto Zoo',
            'to_phone': '1231231234',
            'to_state': 'MB',
            'trade_terms': 'DAP',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"DHL",
 "action"=>"submitshipment",
 "params"=>
  {"customs_payment_type"=>"SENDER",
   "customs_account_number"=>"1234",
   "addons"=>["DD"],
   "username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "account_number"=>"YOUR_ACCOUNT_NUMBER",
   "customs_forms"=>"CMI",
   "invoice"=>"123",
   "invoice_date"=>"2019-03-19",
   "shipment_description"=>"Fashion goods",
   "customs_value"=>45.99,
   "currency"=>"EUR",
   "trade_terms"=>"DAP",
   "packages"=>[{"weight"=>5, "length"=>6, "width"=>7, "height"=>8}],
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"5684 Bay St",
   "ship_city"=>"Emeryville",
   "ship_state"=>"CA",
   "ship_code"=>"94608",
   "ship_phone"=>"1231231234",
   "ship_country"=>"US",
   "to_name"=>"Toronto Zoo",
   "to_addr1"=>"2000 Meadowvale Road",
   "to_state"=>"MB",
   "to_city"=>"Toronto",
   "to_code"=>"M1B5K7",
   "to_phone"=>"1231231234",
   "to_country"=>"CA",
   "test"=>true,
   "service"=>"P",
   "reference_value"=>"asdf",
   "customs"=>
    [{"commodity_code"=>"cc",
      "commodity_name"=>"cn",
      "invoice_line_number"=>"1",
      "invoice_line_part_number"=>"123",
      "invoice_line_description"=>"My Description",
      "customs_line_amount"=>45.99,
      "customs_origin_country"=>"CA",
      "customs_quantity_units"=>"EA",
      "customs_quantity"=>1,
      "customs_weight"=>10}]}}

)

rocketshipit.request(
  {
  "carrier": "DHL",
  "action": "submitshipment",
  "params": {
    "customs_payment_type": "SENDER",
    "customs_account_number": "1234",
    "addons": [
      "DD"
    ],
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "customs_forms": "CMI",
    "invoice": "123",
    "invoice_date": "2019-03-19",
    "shipment_description": "Fashion goods",
    "customs_value": 45.99,
    "currency": "EUR",
    "trade_terms": "DAP",
    "packages": [
      {
        "weight": 5,
        "length": 6,
        "width": 7,
        "height": 8
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "5684 Bay St",
    "ship_city": "Emeryville",
    "ship_state": "CA",
    "ship_code": "94608",
    "ship_phone": "1231231234",
    "ship_country": "US",
    "to_name": "Toronto Zoo",
    "to_addr1": "2000 Meadowvale Road",
    "to_state": "MB",
    "to_city": "Toronto",
    "to_code": "M1B5K7",
    "to_phone": "1231231234",
    "to_country": "CA",
    "test": true,
    "service": "P",
    "reference_value": "asdf",
    "customs": [
      {
        "commodity_code": "cc",
        "commodity_name": "cn",
        "invoice_line_number": "1",
        "invoice_line_part_number": "123",
        "invoice_line_description": "My Description",
        "customs_line_amount": 45.99,
        "customs_origin_country": "CA",
        "customs_quantity_units": "EA",
        "customs_quantity": 1,
        "customs_weight": 10
      }
    ]
  }
}
)

← All DHL examples