DHL - Label International EOR VAT for EU ICS2 and VAT22

Carrier
DHL
Action
Label International EOR VAT for EU ICS2 and VAT22
{
  "carrier": "DHL",
  "action": "submitshipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "ship_tax_id": "15724854",
    "ship_tax_id_type": "EOR",
    "ship_tax_id_country": "US",
    "ship_tax_id2": "5432523452342",
    "ship_tax_id_type2": "VAT",
    "ship_tax_id_country2": "US",
    "to_tax_id": "15724854",
    "to_tax_id_type": "EOR",
    "to_tax_id_country": "US",
    "to_tax_id2": "5432523452342",
    "to_tax_id_type2": "VAT",
    "to_tax_id_country2": "US",
    "packages": [
      {
        "length": 17,
        "width": 15,
        "height": 13,
        "weight": 18.0,
        "reference_value": "C-8PDMV3"
      }
    ],
    "package_description": "C-8PDMV3",
    "invoice": "C-8PDMV3",
    "customs": [
      {
        "commodity_code": "000000",
        "commodity_name": "cn",
        "customs_description": "Acme product 1",
        "invoice_line_description": "Acme product 1",
        "customs_quantity": 1,
        "customs_quantity_units": "PCS",
        "customs_weight": 6.0,
        "customs_value": 79.99,
        "customs_line_amount": 79.99,
        "customs_origin_country": "US",
        "customs_hs_tariff": "000000",
        "country_of_manufacture": "US"
      },
      {
        "commodity_code": "000000",
        "commodity_name": "cn",
        "customs_description": "Acme Product 1",
        "invoice_line_description": "Acme Product 1",
        "customs_quantity": 1,
        "customs_quantity_units": "PCS",
        "customs_weight": 6.0,
        "customs_value": 23.99,
        "customs_line_amount": 23.99,
        "customs_origin_country": "US",
        "customs_hs_tariff": "000000",
        "country_of_manufacture": "US"
      },
      {
        "commodity_code": "000000",
        "commodity_name": "cn",
        "customs_description": "Acme Product 1",
        "invoice_line_description": "Acme Product 1",
        "customs_quantity": 1,
        "customs_quantity_units": "PCS",
        "customs_weight": 6.0,
        "customs_value": 135.99,
        "customs_line_amount": 135.99,
        "customs_origin_country": "US",
        "customs_hs_tariff": "000000",
        "country_of_manufacture": "US"
      }
    ],
    "customs_forms": "CMI",
    "customs_value": 239.97,
    "currency": "USD",
    "weight_unit": "LB",
    "length_unit": "IN",
    "request_archive_doc": true,
    "shipper": "Acme",
    "ship_contact": "John Doe",
    "ship_name": "John Doe",
    "ship_addr1": "123 Not a Real Address st",
    "ship_addr2": "",
    "ship_city": "Opa-Locka",
    "ship_state": "FL",
    "ship_code": "33054",
    "ship_country": "US",
    "ship_phone": "+12366288450",
    "to_country": "KY",
    "to_name": "Jane Doe",
    "to_code": null,
    "to_addr1": "123 West Bay Road",
    "to_addr2": "Caribbean Plaza, North Building",
    "to_city": "George Town",
    "to_phone": "+12359286260",
    "shipment_description": "Product description",
    "pickup_type": "01",
    "customer_classification": "01",
    "packaging_type": "02",
    "test": true,
    "to_state": null,
    "label_stock_type": "8X4_thermal",
    "bill_country": "XC",
    "billing": [
      {
        "account": "YOUR BILLING ACCOUNT NUMBER"
      }
    ],
    "trade_terms": "DDU",
    "customs_payment_type": "RECEIVER",
    "insured_value": 239.97,
    "addons": [
      "II"
    ],
    "image_type": "pdf",
    "service": "P"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'DHL',
  'action' => 'submitshipment',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'ship_tax_id' => '15724854',
    'ship_tax_id_type' => 'EOR',
    'ship_tax_id_country' => 'US',
    'ship_tax_id2' => '5432523452342',
    'ship_tax_id_type2' => 'VAT',
    'ship_tax_id_country2' => 'US',
    'to_tax_id' => '15724854',
    'to_tax_id_type' => 'EOR',
    'to_tax_id_country' => 'US',
    'to_tax_id2' => '5432523452342',
    'to_tax_id_type2' => 'VAT',
    'to_tax_id_country2' => 'US',
    'packages' => 
    array (
      0 => 
      array (
        'length' => 17,
        'width' => 15,
        'height' => 13,
        'weight' => 18.0,
        'reference_value' => 'C-8PDMV3',
      ),
    ),
    'package_description' => 'C-8PDMV3',
    'invoice' => 'C-8PDMV3',
    'customs' => 
    array (
      0 => 
      array (
        'commodity_code' => '000000',
        'commodity_name' => 'cn',
        'customs_description' => 'Acme product 1',
        'invoice_line_description' => 'Acme product 1',
        'customs_quantity' => 1,
        'customs_quantity_units' => 'PCS',
        'customs_weight' => 6.0,
        'customs_value' => 79.99,
        'customs_line_amount' => 79.99,
        'customs_origin_country' => 'US',
        'customs_hs_tariff' => '000000',
        'country_of_manufacture' => 'US',
      ),
      1 => 
      array (
        'commodity_code' => '000000',
        'commodity_name' => 'cn',
        'customs_description' => 'Acme Product 1',
        'invoice_line_description' => 'Acme Product 1',
        'customs_quantity' => 1,
        'customs_quantity_units' => 'PCS',
        'customs_weight' => 6.0,
        'customs_value' => 23.99,
        'customs_line_amount' => 23.99,
        'customs_origin_country' => 'US',
        'customs_hs_tariff' => '000000',
        'country_of_manufacture' => 'US',
      ),
      2 => 
      array (
        'commodity_code' => '000000',
        'commodity_name' => 'cn',
        'customs_description' => 'Acme Product 1',
        'invoice_line_description' => 'Acme Product 1',
        'customs_quantity' => 1,
        'customs_quantity_units' => 'PCS',
        'customs_weight' => 6.0,
        'customs_value' => 135.99,
        'customs_line_amount' => 135.99,
        'customs_origin_country' => 'US',
        'customs_hs_tariff' => '000000',
        'country_of_manufacture' => 'US',
      ),
    ),
    'customs_forms' => 'CMI',
    'customs_value' => 239.97,
    'currency' => 'USD',
    'weight_unit' => 'LB',
    'length_unit' => 'IN',
    'request_archive_doc' => true,
    'shipper' => 'Acme',
    'ship_contact' => 'John Doe',
    'ship_name' => 'John Doe',
    'ship_addr1' => '123 Not a Real Address st',
    'ship_addr2' => '',
    'ship_city' => 'Opa-Locka',
    'ship_state' => 'FL',
    'ship_code' => '33054',
    'ship_country' => 'US',
    'ship_phone' => '+12366288450',
    'to_country' => 'KY',
    'to_name' => 'Jane Doe',
    'to_code' => NULL,
    'to_addr1' => '123 West Bay Road',
    'to_addr2' => 'Caribbean Plaza, North Building',
    'to_city' => 'George Town',
    'to_phone' => '+12359286260',
    'shipment_description' => 'Product description',
    'pickup_type' => '01',
    'customer_classification' => '01',
    'packaging_type' => '02',
    'test' => true,
    'to_state' => NULL,
    'label_stock_type' => '8X4_thermal',
    'bill_country' => 'XC',
    'billing' => 
    array (
      0 => 
      array (
        'account' => 'YOUR BILLING ACCOUNT NUMBER',
      ),
    ),
    'trade_terms' => 'DDU',
    'customs_payment_type' => 'RECEIVER',
    'insured_value' => 239.97,
    'addons' => 
    array (
      0 => 'II',
    ),
    'image_type' => 'pdf',
    'service' => 'P',
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'DHL',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'addons': ['II'],
            'bill_country': 'XC',
            'billing': [{'account': 'YOUR BILLING ACCOUNT NUMBER'}],
            'currency': 'USD',
            'customer_classification': '01',
            'customs': [{'commodity_code': '000000',
                         'commodity_name': 'cn',
                         'country_of_manufacture': 'US',
                         'customs_description': 'Acme product 1',
                         'customs_hs_tariff': '000000',
                         'customs_line_amount': 79.99,
                         'customs_origin_country': 'US',
                         'customs_quantity': 1,
                         'customs_quantity_units': 'PCS',
                         'customs_value': 79.99,
                         'customs_weight': 6.0,
                         'invoice_line_description': 'Acme product 1'},
                        {'commodity_code': '000000',
                         'commodity_name': 'cn',
                         'country_of_manufacture': 'US',
                         'customs_description': 'Acme Product 1',
                         'customs_hs_tariff': '000000',
                         'customs_line_amount': 23.99,
                         'customs_origin_country': 'US',
                         'customs_quantity': 1,
                         'customs_quantity_units': 'PCS',
                         'customs_value': 23.99,
                         'customs_weight': 6.0,
                         'invoice_line_description': 'Acme Product 1'},
                        {'commodity_code': '000000',
                         'commodity_name': 'cn',
                         'country_of_manufacture': 'US',
                         'customs_description': 'Acme Product 1',
                         'customs_hs_tariff': '000000',
                         'customs_line_amount': 135.99,
                         'customs_origin_country': 'US',
                         'customs_quantity': 1,
                         'customs_quantity_units': 'PCS',
                         'customs_value': 135.99,
                         'customs_weight': 6.0,
                         'invoice_line_description': 'Acme Product 1'}],
            'customs_forms': 'CMI',
            'customs_payment_type': 'RECEIVER',
            'customs_value': 239.97,
            'image_type': 'pdf',
            'insured_value': 239.97,
            'invoice': 'C-8PDMV3',
            'label_stock_type': '8X4_thermal',
            'length_unit': 'IN',
            'package_description': 'C-8PDMV3',
            'packages': [{'height': 13,
                          'length': 17,
                          'reference_value': 'C-8PDMV3',
                          'weight': 18.0,
                          'width': 15}],
            'packaging_type': '02',
            'password': 'YOUR_PASSWORD',
            'pickup_type': '01',
            'request_archive_doc': True,
            'service': 'P',
            'ship_addr1': '123 Not a Real Address st',
            'ship_addr2': '',
            'ship_city': 'Opa-Locka',
            'ship_code': '33054',
            'ship_contact': 'John Doe',
            'ship_country': 'US',
            'ship_name': 'John Doe',
            'ship_phone': '+12366288450',
            'ship_state': 'FL',
            'ship_tax_id': '15724854',
            'ship_tax_id2': '5432523452342',
            'ship_tax_id_country': 'US',
            'ship_tax_id_country2': 'US',
            'ship_tax_id_type': 'EOR',
            'ship_tax_id_type2': 'VAT',
            'shipment_description': 'Product description',
            'shipper': 'Acme',
            'test': True,
            'to_addr1': '123 West Bay Road',
            'to_addr2': 'Caribbean Plaza, North Building',
            'to_city': 'George Town',
            'to_code': None,
            'to_country': 'KY',
            'to_name': 'Jane Doe',
            'to_phone': '+12359286260',
            'to_state': None,
            'to_tax_id': '15724854',
            'to_tax_id2': '5432523452342',
            'to_tax_id_country': 'US',
            'to_tax_id_country2': 'US',
            'to_tax_id_type': 'EOR',
            'to_tax_id_type2': 'VAT',
            'trade_terms': 'DDU',
            'username': 'YOUR_USERNAME',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"DHL",
 "action"=>"submitshipment",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "account_number"=>"YOUR_ACCOUNT_NUMBER",
   "ship_tax_id"=>"15724854",
   "ship_tax_id_type"=>"EOR",
   "ship_tax_id_country"=>"US",
   "ship_tax_id2"=>"5432523452342",
   "ship_tax_id_type2"=>"VAT",
   "ship_tax_id_country2"=>"US",
   "to_tax_id"=>"15724854",
   "to_tax_id_type"=>"EOR",
   "to_tax_id_country"=>"US",
   "to_tax_id2"=>"5432523452342",
   "to_tax_id_type2"=>"VAT",
   "to_tax_id_country2"=>"US",
   "packages"=>
    [{"length"=>17,
      "width"=>15,
      "height"=>13,
      "weight"=>18.0,
      "reference_value"=>"C-8PDMV3"}],
   "package_description"=>"C-8PDMV3",
   "invoice"=>"C-8PDMV3",
   "customs"=>
    [{"commodity_code"=>"000000",
      "commodity_name"=>"cn",
      "customs_description"=>"Acme product 1",
      "invoice_line_description"=>"Acme product 1",
      "customs_quantity"=>1,
      "customs_quantity_units"=>"PCS",
      "customs_weight"=>6.0,
      "customs_value"=>79.99,
      "customs_line_amount"=>79.99,
      "customs_origin_country"=>"US",
      "customs_hs_tariff"=>"000000",
      "country_of_manufacture"=>"US"},
     {"commodity_code"=>"000000",
      "commodity_name"=>"cn",
      "customs_description"=>"Acme Product 1",
      "invoice_line_description"=>"Acme Product 1",
      "customs_quantity"=>1,
      "customs_quantity_units"=>"PCS",
      "customs_weight"=>6.0,
      "customs_value"=>23.99,
      "customs_line_amount"=>23.99,
      "customs_origin_country"=>"US",
      "customs_hs_tariff"=>"000000",
      "country_of_manufacture"=>"US"},
     {"commodity_code"=>"000000",
      "commodity_name"=>"cn",
      "customs_description"=>"Acme Product 1",
      "invoice_line_description"=>"Acme Product 1",
      "customs_quantity"=>1,
      "customs_quantity_units"=>"PCS",
      "customs_weight"=>6.0,
      "customs_value"=>135.99,
      "customs_line_amount"=>135.99,
      "customs_origin_country"=>"US",
      "customs_hs_tariff"=>"000000",
      "country_of_manufacture"=>"US"}],
   "customs_forms"=>"CMI",
   "customs_value"=>239.97,
   "currency"=>"USD",
   "weight_unit"=>"LB",
   "length_unit"=>"IN",
   "request_archive_doc"=>true,
   "shipper"=>"Acme",
   "ship_contact"=>"John Doe",
   "ship_name"=>"John Doe",
   "ship_addr1"=>"123 Not a Real Address st",
   "ship_addr2"=>"",
   "ship_city"=>"Opa-Locka",
   "ship_state"=>"FL",
   "ship_code"=>"33054",
   "ship_country"=>"US",
   "ship_phone"=>"+12366288450",
   "to_country"=>"KY",
   "to_name"=>"Jane Doe",
   "to_code"=>nil,
   "to_addr1"=>"123 West Bay Road",
   "to_addr2"=>"Caribbean Plaza, North Building",
   "to_city"=>"George Town",
   "to_phone"=>"+12359286260",
   "shipment_description"=>"Product description",
   "pickup_type"=>"01",
   "customer_classification"=>"01",
   "packaging_type"=>"02",
   "test"=>true,
   "to_state"=>nil,
   "label_stock_type"=>"8X4_thermal",
   "bill_country"=>"XC",
   "billing"=>[{"account"=>"YOUR BILLING ACCOUNT NUMBER"}],
   "trade_terms"=>"DDU",
   "customs_payment_type"=>"RECEIVER",
   "insured_value"=>239.97,
   "addons"=>["II"],
   "image_type"=>"pdf",
   "service"=>"P"}}

)

rocketshipit.request(
  {
  "carrier": "DHL",
  "action": "submitshipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "ship_tax_id": "15724854",
    "ship_tax_id_type": "EOR",
    "ship_tax_id_country": "US",
    "ship_tax_id2": "5432523452342",
    "ship_tax_id_type2": "VAT",
    "ship_tax_id_country2": "US",
    "to_tax_id": "15724854",
    "to_tax_id_type": "EOR",
    "to_tax_id_country": "US",
    "to_tax_id2": "5432523452342",
    "to_tax_id_type2": "VAT",
    "to_tax_id_country2": "US",
    "packages": [
      {
        "length": 17,
        "width": 15,
        "height": 13,
        "weight": 18.0,
        "reference_value": "C-8PDMV3"
      }
    ],
    "package_description": "C-8PDMV3",
    "invoice": "C-8PDMV3",
    "customs": [
      {
        "commodity_code": "000000",
        "commodity_name": "cn",
        "customs_description": "Acme product 1",
        "invoice_line_description": "Acme product 1",
        "customs_quantity": 1,
        "customs_quantity_units": "PCS",
        "customs_weight": 6.0,
        "customs_value": 79.99,
        "customs_line_amount": 79.99,
        "customs_origin_country": "US",
        "customs_hs_tariff": "000000",
        "country_of_manufacture": "US"
      },
      {
        "commodity_code": "000000",
        "commodity_name": "cn",
        "customs_description": "Acme Product 1",
        "invoice_line_description": "Acme Product 1",
        "customs_quantity": 1,
        "customs_quantity_units": "PCS",
        "customs_weight": 6.0,
        "customs_value": 23.99,
        "customs_line_amount": 23.99,
        "customs_origin_country": "US",
        "customs_hs_tariff": "000000",
        "country_of_manufacture": "US"
      },
      {
        "commodity_code": "000000",
        "commodity_name": "cn",
        "customs_description": "Acme Product 1",
        "invoice_line_description": "Acme Product 1",
        "customs_quantity": 1,
        "customs_quantity_units": "PCS",
        "customs_weight": 6.0,
        "customs_value": 135.99,
        "customs_line_amount": 135.99,
        "customs_origin_country": "US",
        "customs_hs_tariff": "000000",
        "country_of_manufacture": "US"
      }
    ],
    "customs_forms": "CMI",
    "customs_value": 239.97,
    "currency": "USD",
    "weight_unit": "LB",
    "length_unit": "IN",
    "request_archive_doc": true,
    "shipper": "Acme",
    "ship_contact": "John Doe",
    "ship_name": "John Doe",
    "ship_addr1": "123 Not a Real Address st",
    "ship_addr2": "",
    "ship_city": "Opa-Locka",
    "ship_state": "FL",
    "ship_code": "33054",
    "ship_country": "US",
    "ship_phone": "+12366288450",
    "to_country": "KY",
    "to_name": "Jane Doe",
    "to_code": null,
    "to_addr1": "123 West Bay Road",
    "to_addr2": "Caribbean Plaza, North Building",
    "to_city": "George Town",
    "to_phone": "+12359286260",
    "shipment_description": "Product description",
    "pickup_type": "01",
    "customer_classification": "01",
    "packaging_type": "02",
    "test": true,
    "to_state": null,
    "label_stock_type": "8X4_thermal",
    "bill_country": "XC",
    "billing": [
      {
        "account": "YOUR BILLING ACCOUNT NUMBER"
      }
    ],
    "trade_terms": "DDU",
    "customs_payment_type": "RECEIVER",
    "insured_value": 239.97,
    "addons": [
      "II"
    ],
    "image_type": "pdf",
    "service": "P"
  }
}
)

← All DHL examples