UPS - Label EU IOSS

Carrier
UPS
Action
Label EU IOSS
{
  "carrier": "UPS",
  "action": "submitshipment",
  "params": {
    "test": true,
    "account_number": "YOUR_ACCOUNT",
    "key": "YOUR_KEY",
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "ship_tax_id": "IMDEU1234567",
    "ship_tax_id_type": "0356",
    "customs_forms": "01",
    "currency": "CAD",
    "invoice_date": "20170610",
    "reason_for_export": "SALE",
    "invoice_line_total": 100,
    "packages": [
      {
        "weight": 1,
        "length": 1,
        "width": 1,
        "height": 1,
        "reference_code": "TN",
        "reference_value": "12345678"
      }
    ],
    "customs": [
      {
        "invoice_line_number": "1",
        "invoice_line_part_number": "123",
        "invoice_line_description": "My Description",
        "invoice_line_value": "1",
        "invoice_line_origin_country_code": "CA",
        "customs_quantity_units": "EA",
        "commodity_code": "240110"
      }
    ],
    "invoice": "12345",
    "sold_company": "Acme Inc.",
    "sold_name": "John Doe",
    "sold_tax_id": "123abc",
    "sold_phone": "1231231234",
    "sold_addr1": "2000 Meadowvale Rd",
    "sold_city": "London",
    "sold_code": "NW14RY",
    "sold_country": "GB",
    "service": "65",
    "shipper": "John Doe",
    "ship_contact": "John Doe",
    "ship_name": "John Doe",
    "ship_addr1": "2300 Southern Blvd",
    "ship_state": "NY",
    "ship_city": "Bronx",
    "ship_code": "10460",
    "ship_country": "US",
    "ship_phone": "1231231234",
    "to_company": "Acme Inc.",
    "to_attention_name": "John Doe",
    "to_addr1": "Outer Cir",
    "to_city": "London",
    "to_code": "NW14RY",
    "to_country": "GB",
    "to_phone": "1231231234",
    "image_type": "PNG",
    "shipment_description": "xxx",
    "packaging_type": "02",
    "pickup_type": "02",
    "weight_unit": "LBS",
    "length_unit": "IN"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'UPS',
  'action' => 'submitshipment',
  'params' => 
  array (
    'test' => true,
    'account_number' => 'YOUR_ACCOUNT',
    'key' => 'YOUR_KEY',
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'ship_tax_id' => 'IMDEU1234567',
    'ship_tax_id_type' => '0356',
    'customs_forms' => '01',
    'currency' => 'CAD',
    'invoice_date' => '20170610',
    'reason_for_export' => 'SALE',
    'invoice_line_total' => 100,
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 1,
        'length' => 1,
        'width' => 1,
        'height' => 1,
        'reference_code' => 'TN',
        'reference_value' => '12345678',
      ),
    ),
    'customs' => 
    array (
      0 => 
      array (
        'invoice_line_number' => '1',
        'invoice_line_part_number' => '123',
        'invoice_line_description' => 'My Description',
        'invoice_line_value' => '1',
        'invoice_line_origin_country_code' => 'CA',
        'customs_quantity_units' => 'EA',
        'commodity_code' => '240110',
      ),
    ),
    'invoice' => '12345',
    'sold_company' => 'Acme Inc.',
    'sold_name' => 'John Doe',
    'sold_tax_id' => '123abc',
    'sold_phone' => '1231231234',
    'sold_addr1' => '2000 Meadowvale Rd',
    'sold_city' => 'London',
    'sold_code' => 'NW14RY',
    'sold_country' => 'GB',
    'service' => '65',
    'shipper' => 'John Doe',
    'ship_contact' => 'John Doe',
    'ship_name' => 'John Doe',
    'ship_addr1' => '2300 Southern Blvd',
    'ship_state' => 'NY',
    'ship_city' => 'Bronx',
    'ship_code' => '10460',
    'ship_country' => 'US',
    'ship_phone' => '1231231234',
    'to_company' => 'Acme Inc.',
    'to_attention_name' => 'John Doe',
    'to_addr1' => 'Outer Cir',
    'to_city' => 'London',
    'to_code' => 'NW14RY',
    'to_country' => 'GB',
    'to_phone' => '1231231234',
    'image_type' => 'PNG',
    'shipment_description' => 'xxx',
    'packaging_type' => '02',
    'pickup_type' => '02',
    'weight_unit' => 'LBS',
    'length_unit' => 'IN',
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'UPS',
 'params': {'account_number': 'YOUR_ACCOUNT',
            'currency': 'CAD',
            'customs': [{'commodity_code': '240110',
                         'customs_quantity_units': 'EA',
                         'invoice_line_description': 'My Description',
                         'invoice_line_number': '1',
                         'invoice_line_origin_country_code': 'CA',
                         'invoice_line_part_number': '123',
                         'invoice_line_value': '1'}],
            'customs_forms': '01',
            'image_type': 'PNG',
            'invoice': '12345',
            'invoice_date': '20170610',
            'invoice_line_total': 100,
            'key': 'YOUR_KEY',
            'length_unit': 'IN',
            'packages': [{'height': 1,
                          'length': 1,
                          'reference_code': 'TN',
                          'reference_value': '12345678',
                          'weight': 1,
                          'width': 1}],
            'packaging_type': '02',
            'password': 'YOUR_PASSWORD',
            'pickup_type': '02',
            'reason_for_export': 'SALE',
            'service': '65',
            'ship_addr1': '2300 Southern Blvd',
            'ship_city': 'Bronx',
            'ship_code': '10460',
            'ship_contact': 'John Doe',
            'ship_country': 'US',
            'ship_name': 'John Doe',
            'ship_phone': '1231231234',
            'ship_state': 'NY',
            'ship_tax_id': 'IMDEU1234567',
            'ship_tax_id_type': '0356',
            'shipment_description': 'xxx',
            'shipper': 'John Doe',
            'sold_addr1': '2000 Meadowvale Rd',
            'sold_city': 'London',
            'sold_code': 'NW14RY',
            'sold_company': 'Acme Inc.',
            'sold_country': 'GB',
            'sold_name': 'John Doe',
            'sold_phone': '1231231234',
            'sold_tax_id': '123abc',
            'test': True,
            'to_addr1': 'Outer Cir',
            'to_attention_name': 'John Doe',
            'to_city': 'London',
            'to_code': 'NW14RY',
            'to_company': 'Acme Inc.',
            'to_country': 'GB',
            'to_phone': '1231231234',
            'username': 'YOUR_USERNAME',
            'weight_unit': 'LBS'}}

)

rs.request(
  {"carrier"=>"UPS",
 "action"=>"submitshipment",
 "params"=>
  {"test"=>true,
   "account_number"=>"YOUR_ACCOUNT",
   "key"=>"YOUR_KEY",
   "username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "ship_tax_id"=>"IMDEU1234567",
   "ship_tax_id_type"=>"0356",
   "customs_forms"=>"01",
   "currency"=>"CAD",
   "invoice_date"=>"20170610",
   "reason_for_export"=>"SALE",
   "invoice_line_total"=>100,
   "packages"=>
    [{"weight"=>1,
      "length"=>1,
      "width"=>1,
      "height"=>1,
      "reference_code"=>"TN",
      "reference_value"=>"12345678"}],
   "customs"=>
    [{"invoice_line_number"=>"1",
      "invoice_line_part_number"=>"123",
      "invoice_line_description"=>"My Description",
      "invoice_line_value"=>"1",
      "invoice_line_origin_country_code"=>"CA",
      "customs_quantity_units"=>"EA",
      "commodity_code"=>"240110"}],
   "invoice"=>"12345",
   "sold_company"=>"Acme Inc.",
   "sold_name"=>"John Doe",
   "sold_tax_id"=>"123abc",
   "sold_phone"=>"1231231234",
   "sold_addr1"=>"2000 Meadowvale Rd",
   "sold_city"=>"London",
   "sold_code"=>"NW14RY",
   "sold_country"=>"GB",
   "service"=>"65",
   "shipper"=>"John Doe",
   "ship_contact"=>"John Doe",
   "ship_name"=>"John Doe",
   "ship_addr1"=>"2300 Southern Blvd",
   "ship_state"=>"NY",
   "ship_city"=>"Bronx",
   "ship_code"=>"10460",
   "ship_country"=>"US",
   "ship_phone"=>"1231231234",
   "to_company"=>"Acme Inc.",
   "to_attention_name"=>"John Doe",
   "to_addr1"=>"Outer Cir",
   "to_city"=>"London",
   "to_code"=>"NW14RY",
   "to_country"=>"GB",
   "to_phone"=>"1231231234",
   "image_type"=>"PNG",
   "shipment_description"=>"xxx",
   "packaging_type"=>"02",
   "pickup_type"=>"02",
   "weight_unit"=>"LBS",
   "length_unit"=>"IN"}}

)

rocketshipit.request(
  {
  "carrier": "UPS",
  "action": "submitshipment",
  "params": {
    "test": true,
    "account_number": "YOUR_ACCOUNT",
    "key": "YOUR_KEY",
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "ship_tax_id": "IMDEU1234567",
    "ship_tax_id_type": "0356",
    "customs_forms": "01",
    "currency": "CAD",
    "invoice_date": "20170610",
    "reason_for_export": "SALE",
    "invoice_line_total": 100,
    "packages": [
      {
        "weight": 1,
        "length": 1,
        "width": 1,
        "height": 1,
        "reference_code": "TN",
        "reference_value": "12345678"
      }
    ],
    "customs": [
      {
        "invoice_line_number": "1",
        "invoice_line_part_number": "123",
        "invoice_line_description": "My Description",
        "invoice_line_value": "1",
        "invoice_line_origin_country_code": "CA",
        "customs_quantity_units": "EA",
        "commodity_code": "240110"
      }
    ],
    "invoice": "12345",
    "sold_company": "Acme Inc.",
    "sold_name": "John Doe",
    "sold_tax_id": "123abc",
    "sold_phone": "1231231234",
    "sold_addr1": "2000 Meadowvale Rd",
    "sold_city": "London",
    "sold_code": "NW14RY",
    "sold_country": "GB",
    "service": "65",
    "shipper": "John Doe",
    "ship_contact": "John Doe",
    "ship_name": "John Doe",
    "ship_addr1": "2300 Southern Blvd",
    "ship_state": "NY",
    "ship_city": "Bronx",
    "ship_code": "10460",
    "ship_country": "US",
    "ship_phone": "1231231234",
    "to_company": "Acme Inc.",
    "to_attention_name": "John Doe",
    "to_addr1": "Outer Cir",
    "to_city": "London",
    "to_code": "NW14RY",
    "to_country": "GB",
    "to_phone": "1231231234",
    "image_type": "PNG",
    "shipment_description": "xxx",
    "packaging_type": "02",
    "pickup_type": "02",
    "weight_unit": "LBS",
    "length_unit": "IN"
  }
}
)

← All UPS examples